:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#172724;background:#f6f8f9;font-synthesis:none;--ink:#172724;--muted:#84918e;--green:#b3efc0;--dark:#142b24;--line:#edf0ef;--radius:20px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #69ba85;outline-offset:3px}button{border:0}a{color:inherit}svg{display:block}h1,h2,h3,p{margin:0}button svg{width:19px;height:19px;flex-shrink:0}.icon{width:21px;height:21px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:#fff;border-right:1px solid var(--line);padding:36px 24px 24px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:flex;align-items:center;justify-content:center;background:var(--dark);color:var(--green);width:42px;height:42px;border-radius:13px}.brand-mark svg{width:27px;height:27px}.brand-name{font-weight:760;font-size:24px;letter-spacing:2px}.brand-sub{font-size:9px;letter-spacing:3.7px;color:#8a9591;margin-top:2px}.nav-label{font-size:10px;letter-spacing:2px;color:#a2aba8;padding:45px 14px 16px}.nav{display:grid;gap:8px}.nav-item{background:transparent;border-radius:12px;color:#7b8783;display:flex;align-items:center;gap:13px;width:100%;padding:15px 16px;text-align:left;font-size:14px;font-weight:550}.nav-item.active{background:#e8f6ec;color:#224d35}.nav-item.active:after{content:"";width:5px;height:5px;border-radius:50%;background:#4a9564;margin-left:auto}@media(hover:hover) and (pointer:fine){.nav-item:hover{background:#f1f6f3}}.sidebar-bottom{margin-top:auto}.sidebar-note{background:#f5f7f6;border-radius:15px;padding:17px;font-size:12px;line-height:1.8;color:#8b9690}.sidebar-note strong{display:block;color:#476252;font-size:12px;margin-bottom:4px}.user{display:flex;align-items:center;gap:10px;padding:23px 0 0}.avatar{display:grid;place-items:center;background:#edf0e7;color:#6a7755;width:37px;height:37px;border-radius:50%;font-size:13px;font-weight:700}.user-name{font-size:12px;font-weight:600}.user-caption{font-size:10px;color:#929c98;margin-top:3px}.user button{margin-left:auto;background:none;color:#8d9793;padding:5px}.main{margin-left:232px;max-width:1612px;padding:33px 42px 40px}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:29px;gap:16px}.eyebrow{font-size:10px;letter-spacing:2.1px;color:#8c9692;margin-bottom:8px}.topbar h1{font-size:25px;letter-spacing:-.5px;font-weight:720}.top-actions{display:flex;align-items:center;gap:20px}.date-label{font-size:12px;color:#7d8b85;display:flex;align-items:center;gap:8px}.date-label svg{width:15px;height:15px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;padding:12px 18px;background:var(--dark);color:#fff;font-size:12px;font-weight:600;line-height:1.3;text-decoration:none;white-space:nowrap}@media(hover:hover) and (pointer:fine){.btn:hover{background:#254739}}.btn.soft{background:#edf7ef;color:#345b40}@media(hover:hover) and (pointer:fine){.btn.soft:hover{background:#dcefe1}}.btn.outline{background:#fff;border:1px solid #dfe6e2;color:#466051}@media(hover:hover) and (pointer:fine){.btn.outline:hover{background:#f4f8f5}}.btn.danger{background:#fff0ee;color:#bd5c50}.btn.small{padding:8px 12px;font-size:11px}.btn.icon-only{padding:9px}.demo-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff6df;border:1px solid #f2e5c5;color:#8b784b;border-radius:12px;font-size:11px;padding:10px 15px;margin-bottom:20px}.demo-banner button{background:transparent;color:#766136;font-weight:650;white-space:nowrap;font-size:11px}.demo-banner .demo-dot{width:5px;height:5px;background:#c5a252;border-radius:50%;display:inline-block;margin-right:7px}.hero{position:relative;overflow:hidden;background:#e4f3e8;min-height:220px;border-radius:var(--radius);padding:32px 36px;margin-bottom:23px;display:flex;align-items:center;justify-content:space-between}.hero-tag{font-size:10px;letter-spacing:2.3px;color:#6e987d;display:flex;align-items:center;gap:8px;margin-bottom:15px}.hero-tag:before{content:"";height:5px;width:5px;border-radius:50%;background:#6ba77d}.hero h2{font-size:31px;line-height:1.48;font-weight:720;letter-spacing:1px;position:relative;z-index:2}.hero p{font-size:12px;color:#81988a;margin-top:14px;position:relative;z-index:2}.hero-art{width:330px;height:210px;position:absolute;right:22px;top:9px}.hero-footer{position:absolute;right:30px;bottom:21px;font-size:9px;letter-spacing:2px;color:#7b9a86}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:19px 21px}.stat-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#8b9691}.stat-icon{color:#8d9b91}.stat-icon svg{width:17px;height:17px}.stat-value{font-size:30px;font-weight:700;letter-spacing:-1px;margin:14px 0 10px;font-variant-numeric:tabular-nums}.stat-unit{font-size:11px;font-weight:400;color:#9ca59f;letter-spacing:0;margin-left:5px}.stat-foot{font-size:10px;color:#a0aaa4;display:flex;align-items:center;gap:4px}.stat-foot .positive{color:#76a181}.stat-foot .tag{padding:3px 5px;border-radius:4px;background:#ecf7ef;color:#7b9c81;margin-right:5px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:22px;margin-bottom:24px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px 25px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}.panel-title{font-size:14px;font-weight:650}.panel-sub{font-size:10px;color:#a0aaa4;margin-top:6px}.text-btn{background:none;font-size:10px;color:#8c9b91;display:flex;align-items:center;gap:5px;padding:5px 0}.text-btn svg{width:13px;height:13px}.segmented{display:flex;gap:2px;background:#f3f6f4;border-radius:8px;padding:3px}.segmented button{font-size:10px;border-radius:6px;padding:6px 12px;background:none;color:#9aa59f}.segmented button.active{background:#fff;color:#476553;box-shadow:0 1px 5px #152c2410}.chart-summary{display:flex;align-items:baseline;gap:8px;margin:8px 0}.chart-summary strong{font-size:25px;letter-spacing:-.6px}.chart-summary span{font-size:10px;color:#a0aaa4}.change-tag{margin-left:auto;background:#edf7f0;padding:5px 7px;border-radius:5px;color:#72917b!important;font-size:9px!important}.chart-svg{width:100%;height:170px;overflow:visible}.chart-labels{display:flex;justify-content:space-between;font-size:9px;color:#a5aea8;padding:0 4px}.chart-empty{height:195px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#a0aca5;font-size:12px}.chart-empty svg{width:30px;height:30px}.chart-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:18px;padding-top:15px;border-top:1px solid #f2f4f3;font-size:10px;color:#9da89f}.legend{display:flex;align-items:center;gap:6px}.legend:before{content:"";height:6px;width:6px;background:#90c5a0;border-radius:50%}.week-head{display:flex;align-items:baseline;gap:7px;margin-top:9px}.week-head strong{font-size:29px;letter-spacing:-1px}.week-head span{font-size:11px;color:#a0aaa4}.week-head .target{margin-left:auto;font-size:9px;background:#f1f5f2;border-radius:5px;padding:5px 7px}.week-chart{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;height:156px;margin:16px 0 13px}.day-column{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:10px}.day-bar{width:100%;max-width:28px;background:#edf2ef;border-radius:5px;min-height:7px;position:relative}.day-bar.filled{background:#bcdec5}.day-bar.today{background:#6c9d7a}.day-label{font-size:9px;color:#a2ada5}.day-label.current{color:#508262;font-weight:700}.week-footer{padding-top:16px;border-top:1px solid #f0f3f1;display:flex;justify-content:space-between;font-size:10px;color:#8e9e94}.week-footer strong{color:#70907a;font-weight:500}.recent-head{margin-bottom:6px}.record-row{display:flex;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid #f0f3f1;width:100%;background:none;text-align:left}.record-row:last-child{border:0;padding-bottom:2px}.record-icon{height:42px;width:42px;border-radius:12px;display:grid;place-items:center;background:#eaf4ed;color:#70937a;flex-shrink:0}.record-icon.cardio{background:#edf2fb;color:#8197bb}.record-main{min-width:0}.record-main strong{font-size:12px;font-weight:600;display:block}.record-main small{font-size:10px;color:#a3ada6;display:block;margin-top:6px}.record-meta{display:flex;gap:33px;margin-left:auto;align-items:center;color:#8d9c93;font-size:11px;font-variant-numeric:tabular-nums}.record-meta .record-date{width:64px;color:#a8b0aa;font-size:10px}.row-arrow{width:14px;height:14px;color:#a4aea7;margin-left:15px}.pill{font-size:9px;padding:4px 7px;border-radius:5px;background:#f1f6f2;color:#859b8c}.pill.blue{background:#f0f4fc;color:#889ebc}.bottom-note{font-size:9px;text-align:center;letter-spacing:.5px;color:#b2bab5;margin-top:24px}.mobile-nav{display:none}.page-intro{font-size:12px;color:#919e95;margin:-15px 0 26px}.wide-chart .chart-svg{height:230px}.body-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:22px}.body-grid .stat-card{padding:22px}.body-grid .stat-value{font-size:34px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap;text-align:left}th{font-weight:500;color:#9aa59e;background:#f8faf9;font-size:10px;padding:12px 14px}td{padding:16px 14px;color:#526b5c;border-bottom:1px solid #f0f3f1;font-variant-numeric:tabular-nums}td.note{max-width:180px;overflow:hidden;text-overflow:ellipsis;color:#97a198;font-size:10px}.table-action{background:none;color:#8a9b8d;padding:5px}.table-action svg{width:15px;height:15px}.empty{padding:44px 20px;text-align:center;color:#9aa69d;font-size:12px;line-height:2}.empty svg{margin:0 auto 14px;width:35px;height:35px;color:#bbc9bd}.empty .btn{margin-top:15px}.workout-toolbar{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:24px}.filter-tabs{display:flex;gap:8px}.filter-tabs button{background:#fff;color:#8c9c92;font-size:11px;padding:11px 19px;border:1px solid #e9efeb;border-radius:9px}.filter-tabs button.active{background:var(--dark);border-color:var(--dark);color:#fff}.search-input{border:1px solid #e4ece6;border-radius:9px;padding:10px 14px;font-size:11px;width:210px;background:#fff;outline:none}.search-input:focus{border-color:#88b897}.workout-list{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.workout-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:23px;text-align:left;transition:transform .15s,border-color .15s}@media(hover:hover) and (pointer:fine){.workout-card:hover{transform:translateY(-2px);border-color:#cce4d2}}.workout-card-head{display:flex;align-items:center;justify-content:space-between}.workout-card h3{font-size:16px;margin:19px 0 7px}.workout-card p{font-size:10px;color:#97a49a}.workout-card-stats{display:flex;gap:25px;border-top:1px solid #f0f3f1;padding-top:16px;margin-top:20px}.workout-card-stats strong{display:block;font-size:18px;font-weight:650}.workout-card-stats small{display:block;color:#a0aba2;font-size:9px;margin-top:5px}.workout-date{color:#9ba69e;font-size:10px}.data-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:22px;align-items:start}.export-option{display:flex;align-items:center;gap:13px;padding:19px 0;border-bottom:1px solid #f0f3f1}.export-option:last-child{border:0}.export-option .record-icon{width:38px;height:38px;border-radius:9px}.export-option strong{font-size:12px;font-weight:550;display:block}.export-option small{font-size:10px;color:#99a59c;display:block;margin-top:6px}.export-option button{margin-left:auto}.import-note{font-size:10px;color:#9aa69d;line-height:1.9;margin-top:12px}.share-preview{background:#172c24;color:#fff;border-radius:16px;padding:28px;position:relative;overflow:hidden}.share-preview:after{content:"";position:absolute;width:150px;height:150px;border:1px solid #63986e30;border-radius:50%;right:-60px;top:-55px}.share-brand{font-size:10px;color:#9cc4a6;letter-spacing:2px}.share-preview h3{font-size:25px;line-height:1.5;font-weight:650;margin-top:25px}.share-date{font-size:10px;color:#87a490;margin:9px 0 24px}.share-stats{display:flex;justify-content:space-between;border-top:1px solid #ffffff18;padding-top:20px}.share-stats strong{font-size:28px;display:block;color:#b4ecc0}.share-stats small{font-size:9px;color:#90af9a;display:block;margin-top:7px}.share-end{font-size:9px;letter-spacing:2px;color:#709880;margin-top:25px}.share-actions{display:flex;gap:8px;margin-top:16px}.share-actions .btn{flex:1}.settings{margin-top:22px}.setting-line{display:flex;gap:20px;align-items:center;margin-top:20px}.setting-line p{font-size:11px;line-height:1.8;color:#95a298}.setting-line strong{font-weight:500;color:#5e7565}.settings-divider{border-top:1px solid var(--line);margin:22px 0}.profile-form{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.field label,.field-label{display:block;font-size:11px;color:#718476;margin-bottom:8px}.field input,.field select,.field textarea{width:100%;border:1px solid #e2e9e3;border-radius:9px;background:#fff;padding:12px;color:#365640;font-size:13px;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:#72a784;box-shadow:0 0 0 3px #75ae8720}.field textarea{resize:vertical;min-height:74px}.field small{font-size:9px;color:#a1aca4;margin-top:5px;display:block}.field.required label:after{content:" *";color:#89a692}.fields{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-bottom:19px}.field.full{grid-column:1 / -1}.form-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #edf1ed;padding-top:20px;margin-top:24px}.form-error{font-size:12px;color:#bf6154;background:#fff2f0;padding:10px 12px;border-radius:8px;margin-bottom:14px}.form-error:empty{display:none}dialog{border:0;border-radius:22px;box-shadow:0 20px 100px #0d2d2130;padding:0;width:min(560px,calc(100% - 28px));max-height:90dvh;color:var(--ink);background:#fff}dialog::backdrop{background:#11251db0;backdrop-filter:blur(4px)}.modal-header{padding:25px 26px 20px;display:flex;justify-content:space-between;align-items:center;background:#fff;position:sticky;top:0;z-index:3;border-bottom:1px solid #f0f3f1}.modal-header h2{font-size:18px;font-weight:650}.modal-header small{font-size:10px;color:#9ba99f;display:block;margin-top:7px}.close-btn{background:#f4f7f4;border-radius:50%;height:29px;width:29px;color:#91a095;display:grid;place-items:center}.close-btn svg{width:15px;height:15px}.modal-body{padding:24px 26px;overflow:auto}.modal-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:22px}.modal-tabs button{display:flex;gap:8px;align-items:center;justify-content:center;padding:13px;border-radius:10px;background:#f4f7f4;color:#91a198;font-size:12px}.modal-tabs button.active{background:#e5f4e9;color:#4c7659}.modal-tabs svg{width:16px;height:16px}.exercise{border:1px solid #e4ece6;border-radius:12px;padding:15px;margin-top:12px;background:#fbfdfb}.exercise-head{display:flex;align-items:center;gap:8px;margin-bottom:14px}.exercise-head select{flex:1;min-width:0;background:none;font-weight:550;font-size:12px;border:0;outline:none;color:#57765f}.exercise-head button{background:none;color:#abb9ad}.exercise-head button svg{width:15px;height:15px}.set-head,.set-row{display:grid;grid-template-columns:30px 1fr 1fr 25px;gap:10px;align-items:center}.set-head{font-size:9px;color:#a0afa2;margin-bottom:8px;text-align:center}.set-row{margin-bottom:7px}.set-number{font-size:10px;color:#91a292;text-align:center}.set-row input{width:100%;padding:9px;border:1px solid #e0e8e1;border-radius:7px;background:#fff;font-size:12px;color:#56715b;text-align:center;outline:none}.set-row input:focus{border-color:#7fad87}.set-row button{padding:0;color:#9bb09f;background:none}.set-row button svg{width:14px;height:14px}.add-set{width:100%;border-radius:7px;padding:8px;font-size:10px;background:#edf4ee;color:#83a089}.add-exercise{width:100%;margin-top:12px}.section-label{font-size:11px;color:#7d9182;margin:22px 0 10px}.detail-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:22px}.detail-summary div{padding:16px 12px;border-radius:10px;background:#f5f8f5}.detail-summary strong{display:block;font-size:21px}.detail-summary small{display:block;font-size:9px;color:#98a89a;margin-top:8px}.detail-exercise{margin-top:17px}.detail-exercise h3{font-size:12px;margin-bottom:10px;color:#68826d}.detail-exercise p{font-size:11px;background:#f7f9f7;padding:10px;border-bottom:2px solid #fff;border-radius:5px;color:#93a497;display:flex;justify-content:space-between}.detail-note{font-size:11px;color:#9aa69c;line-height:1.8;margin-top:20px;white-space:pre-wrap}.confirm-text{font-size:13px;color:#7c8d80;line-height:1.9}.privacy-line{font-size:10px;line-height:1.9;color:#95a499}.app-install{background:#f2f7f3;padding:15px;border-radius:12px;margin-top:20px}.app-install strong{font-size:11px;color:#617d69}.app-install p{font-size:10px;color:#97a69a;line-height:1.9;margin-top:6px}#toast{position:fixed;bottom:28px;left:calc(50% + 116px);transform:translate(-50%,10px);background:#243d2d;color:#fff;box-shadow:0 10px 25px #1c3a2520;padding:13px 22px;border-radius:11px;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:100;max-width:calc(100% - 30px);text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}.mode-label{font-size:9px;letter-spacing:0;padding:3px 5px;background:#526541;color:#dae6c9;border-radius:3px;display:inline-block;margin-left:6px}.share-modal-card{max-width:350px;margin:0 auto}.share-check{display:flex;align-items:center;gap:8px;font-size:11px;color:#94a398;margin:20px 0 8px}.share-check input{accent-color:#467c51}.share-modal-note{font-size:10px;color:#a5afa6;line-height:1.8;margin-top:12px}.info-strip{background:#f3f7f4;border-radius:10px;padding:13px 15px;font-size:11px;color:#8fa494;line-height:1.8;margin-bottom:20px}.inline-num{font-variant-numeric:tabular-nums}.overflow-note{font-size:10px;color:#a2aea5;margin-top:15px}
@media(min-width:1600px){.main{margin-right:auto;margin-left:232px;padding:40px 60px}.hero{min-height:245px}.hero-art{right:60px;width:370px;height:230px}.hero h2{font-size:36px}}
@media(max-width:1150px){.sidebar{width:196px;padding:30px 18px}.main{margin-left:196px;padding:28px}.top-actions{gap:12px}.dashboard-grid{grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr)}.stat-card{padding:17px}.hero-art{right:-30px;opacity:.8}.hero h2{font-size:27px}.record-meta{gap:18px}.data-grid{grid-template-columns:1fr 1fr}#toast{left:calc(50% + 98px)}}
@media(max-width:900px){.sidebar{width:80px;padding:26px 14px}.brand{justify-content:center}.brand>div:last-child,.nav-label,.nav-item span,.sidebar-note,.user-name,.user-caption,.user button{display:none}.nav{margin-top:35px}.nav-item{padding:15px;justify-content:center}.nav-item.active:after{display:none}.user{justify-content:center}.main{margin-left:80px;padding:25px}.stat-grid{gap:10px}.stat-value{font-size:26px}.stat-card{padding:16px}.stat-label{font-size:10px}.dashboard-grid{gap:16px;grid-template-columns:1.4fr 1fr}.panel{padding:20px}.hero-art{width:270px;right:-20px;top:13px}.hero h2{font-size:26px}.date-label{display:none}.chart-svg{height:164px}.record-meta .record-date{display:none}#toast{left:calc(50% + 40px)}}
@media(max-width:700px){.sidebar{display:none}.main{margin-left:0;padding:25px 19px 100px}.topbar{margin-bottom:22px}.topbar h1{font-size:23px}.eyebrow{font-size:9px;margin-bottom:6px}.top-actions .btn{padding:11px 12px;font-size:11px}.top-actions .btn svg{width:15px;height:15px}.demo-banner{font-size:10px;padding:10px 12px;margin-bottom:17px}.hero{min-height:193px;border-radius:18px;padding:24px;margin-bottom:18px}.hero h2{font-size:25px;line-height:1.5}.hero-tag{font-size:9px;letter-spacing:1.4px;margin-bottom:11px}.hero p{font-size:10px;max-width:180px;line-height:1.8;margin-top:12px}.hero-art{width:226px;height:190px;right:-37px;top:0;opacity:.55}.hero-footer{font-size:7px;bottom:17px;right:16px}.stat-grid{grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:18px}.stat-card{padding:17px 18px;border-radius:15px}.stat-value{font-size:29px;margin:13px 0 9px}.stat-label{font-size:10px}.stat-foot{font-size:9px}.dashboard-grid{grid-template-columns:1fr;gap:18px;margin-bottom:18px}.panel{padding:21px 19px;border-radius:18px}.panel-title{font-size:13px}.chart-svg{height:174px}.week-chart{height:130px;padding:0 5px}.week-head{margin-top:3px}.record-row{gap:10px;padding:17px 0}.record-icon{width:37px;height:37px;border-radius:10px}.record-main strong{font-size:11px}.record-main small{font-size:9px}.record-meta{gap:10px;font-size:10px}.record-meta .pill,.record-meta .volume{display:none}.row-arrow{margin-left:0;width:12px}.bottom-note{font-size:8px;line-height:2;margin-top:20px}.mobile-nav{position:fixed;inset:auto 0 0;z-index:20;background:#fffffff2;backdrop-filter:blur(16px);border-top:1px solid #e9efeb;display:grid;grid-template-columns:repeat(4,1fr);padding:9px 10px calc(9px + env(safe-area-inset-bottom))}.mobile-nav button{background:transparent;color:#a2afa5;display:flex;align-items:center;flex-direction:column;gap:5px;font-size:9px;padding:4px}.mobile-nav button svg{width:21px;height:21px}.mobile-nav button.active{color:#497453}.mobile-nav button.active svg{background:#e7f3e9;box-sizing:content-box;padding:4px 12px;border-radius:9px;margin-top:-4px;margin-bottom:-4px}.body-grid{grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:18px}.body-grid .stat-card{padding:15px 12px}.body-grid .stat-label{font-size:9px}.body-grid .stat-icon{display:none}.body-grid .stat-value{font-size:25px}.body-grid .stat-unit{font-size:9px;margin-left:2px}.body-grid .stat-foot{font-size:8px}.wide-chart .chart-svg{height:200px}.table-panel{padding-left:12px;padding-right:12px}.table-panel .panel-head{padding-left:6px;padding-right:6px}th{padding:11px 10px}td{padding:15px 10px;font-size:10px}.workout-toolbar{flex-wrap:wrap;margin-bottom:18px;gap:12px}.filter-tabs{gap:6px}.filter-tabs button{font-size:10px;padding:10px 14px}.search-input{width:100%;font-size:12px}.workout-list{grid-template-columns:1fr;gap:14px}.workout-card{padding:21px}.workout-card h3{font-size:15px;margin-top:15px}.data-grid{grid-template-columns:1fr;gap:18px}.profile-form{grid-template-columns:1fr 1fr;gap:14px}.profile-form .field:first-child{grid-column:1 / -1}.setting-line{gap:12px}.setting-line p{font-size:10px}.page-intro{font-size:11px;line-height:1.8;margin:-10px 0 20px}dialog{max-height:93dvh;border-radius:20px}.modal-header{padding:21px 20px 18px}.modal-body{padding:20px}.fields{gap:14px}.field label{font-size:10px}.field input,.field select,.field textarea{font-size:12px;padding:12px 10px}.share-preview{padding:26px}.share-preview h3{font-size:24px}#toast{left:50%;bottom:calc(88px + env(safe-area-inset-bottom));font-size:11px}.export-option .btn.small{padding:9px}.export-option{gap:10px}.export-option strong{font-size:11px}.export-option small{font-size:9px}.detail-summary{gap:7px}.detail-summary strong{font-size:19px}.detail-summary small{font-size:9px}.info-strip{font-size:10px}}
.set-head,.set-row{grid-template-columns:25px 1fr 1fr 30px 25px}.set-row input.set-done{width:16px;height:16px;min-height:16px;padding:0;accent-color:#598967;justify-self:center}.close-btn{min-width:36px;min-height:36px}.bottom-note .icon{width:11px;height:11px;margin-right:3px}.panel>.panel-head>.icon{width:17px;height:17px;color:#9ead9f}.stat-unit,.panel-sub,.record-main small,.chart-labels,.record-date,.import-note,.privacy-line,.share-modal-note,.field small,.stat-foot{color:#76877b}.page-intro{color:#7b8d80}.chart-bottom,.week-footer{color:#7c9082}
@media(max-width:700px){.field input,.field select,.field textarea,.search-input,.set-row input,.exercise-head select{font-size:16px}.close-btn,.table-action,.exercise-head button,.set-row button{min-width:44px;min-height:44px}.set-head,.set-row{grid-template-columns:25px 1fr 1fr 44px;gap:8px}.set-row input{min-height:44px}.set-row button{display:grid;place-items:center}.add-set{min-height:44px}.text-btn{min-height:44px}.segmented button{min-height:36px}.table-action{display:inline-grid;place-items:center}.exercise-head button{display:grid;place-items:center}.share-check{min-height:44px}.demo-banner{align-items:center}.demo-banner button{min-height:38px}.btn.small{min-height:40px}.modal-body{padding-bottom:calc(20px + env(safe-area-inset-bottom))}}
@media(max-width:700px){.set-head,.set-row{grid-template-columns:20px 1fr 1fr 34px 40px;gap:6px}.set-row button{min-width:40px}.set-row input.set-done{width:22px;height:22px}.set-head{font-size:8px}.wide-chart .panel-head{flex-direction:column;align-items:flex-start;gap:14px}.wide-chart .panel-head>div{width:100%;justify-content:space-between}.segmented button{white-space:nowrap}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.calorie-panel{margin-bottom:24px}.calorie-values{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.calorie-value{padding:8px 20px 8px 0;border-right:1px solid #edf0ed;min-width:0}.calorie-value:last-child{border:0}.calorie-value>span{display:flex;align-items:center;gap:7px;font-size:11px;color:#75897b}.calorie-value>span svg{width:16px;height:16px}.calorie-value strong{display:block;font-size:32px;font-weight:680;letter-spacing:-.8px;margin:13px 0 9px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.calorie-value strong small{font-size:10px;font-weight:400;letter-spacing:0;color:#8b9b90;margin-left:6px}.calorie-value.intake strong{color:#927d50}.calorie-value.burn strong{color:#5d9271}.calorie-value.balance strong{color:#304d3b}.calorie-value strong.unknown{font-size:24px}.calorie-value p{font-size:10px;color:#7d9082;line-height:1.6}.calorie-scope{display:flex;align-items:flex-start;gap:7px;font-size:10px;line-height:1.8;color:#7f9185;margin-top:19px;padding-top:15px;border-top:1px solid #edf1ed}.calorie-scope svg{width:13px;height:13px;flex-shrink:0;margin-top:2px}.nutrition-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.day-picker{display:flex;align-items:center;gap:8px}.day-picker input{border:1px solid #dfe8e1;border-radius:10px;padding:10px 13px;background:#fff;color:#526f59;font-size:13px;min-width:160px}.day-picker button:first-child svg{transform:rotate(180deg)}.nutrition-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:22px;align-items:start}.meal-group{margin-top:18px}.meal-heading{display:flex;align-items:center;gap:12px;padding-bottom:9px;border-bottom:1px solid #edf2ee}.meal-heading strong{font-size:12px;font-weight:600;color:#587260}.meal-heading span{margin-left:auto;font-size:11px;color:#9a987f}.meal-heading button{display:grid;place-items:center;background:#f0f7f1;border-radius:8px;width:28px;height:28px;color:#789882}.meal-heading button svg{width:15px;height:15px}.meal-empty{font-size:11px;color:#94a398;padding:16px 0}.food-record{display:grid;grid-template-columns:minmax(0,1fr) auto 30px 30px;align-items:center;gap:8px;padding:17px 0;border-bottom:1px solid #f1f4f1}.food-record:last-child{border:0}.food-record strong{display:block;font-size:12px;font-weight:550;line-height:1.6}.food-record>div>small{display:block;font-size:10px;line-height:1.7;color:#7f9285;margin-top:3px}.food-record>div>p{font-size:10px;line-height:1.7;color:#8b998f;overflow-wrap:anywhere;margin-top:5px}.food-energy{font-size:15px;font-weight:600;color:#857652;white-space:nowrap;text-align:right}.food-energy small{display:block;color:#9aaa9b;font-size:9px;font-weight:400;margin-top:3px}.calorie-workout{display:flex;align-items:center;gap:12px;text-align:left;background:transparent;width:100%;padding:17px 0;border-bottom:1px solid #eef2ee}.calorie-workout:last-of-type{border:0}.calorie-workout>.icon{width:13px;color:#8c9e90}.calorie-workout-total{font-size:15px;margin-left:auto;color:#659276;white-space:nowrap}.calorie-workout-total small{font-size:9px;display:block;text-align:right;color:#94a99a;margin-top:3px}.calorie-reference{margin-top:22px}.calorie-reference>p{font-size:11px;color:#7d9283;line-height:1.95;margin-top:15px}.source-links{display:flex;flex-wrap:wrap;gap:15px;font-size:10px;color:#769281;margin-top:18px}.source-links a{text-decoration:none}@media(hover:hover) and (pointer:fine){.source-links a:hover{text-decoration:underline}}.food-library-tools{display:flex;align-items:center;gap:10px;margin-bottom:12px}.food-library-tools .search-input{width:100%;min-width:0;flex:1}.food-library-tools select{width:110px;border:1px solid #e2eae3;border-radius:9px;padding:10px 8px;background:#fff;color:#71907a;font-size:11px}.food-library{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:220px;overflow-y:auto;padding:1px 3px 1px 1px}.food-choice{padding:12px 13px;border:1px solid #e5ece6;border-radius:10px;background:#fafcf9;text-align:left;min-height:65px;color:#5a765f}.food-choice strong{display:block;font-size:11px;font-weight:550;line-height:1.7}.food-choice small{display:block;font-size:10px;color:#879c8b;margin-top:4px}.food-choice.selected{background:#e8f5eb;border-color:#94bd9c;color:#406b4b}.custom-food{margin:12px 0 18px;color:#6b9276;font-size:11px}.calorie-live{display:flex;align-items:center;justify-content:space-between;background:#edf6ef;border:1px solid #e0eee3;border-radius:12px;padding:15px 17px;gap:10px;margin-top:15px}.calorie-live>span{font-size:11px;color:#6b8a73}.calorie-live strong{font-size:24px;font-weight:650;color:#517e5c;font-variant-numeric:tabular-nums}.calorie-live strong small{font-size:10px;font-weight:400;margin-left:7px;color:#8eaa94}.food-source{font-size:10px;line-height:1.9;color:#839789;margin-top:10px}.food-source a{color:#678671;white-space:nowrap;margin-left:5px}.cardio-options{padding-top:5px}.calorie-method-tabs{margin:20px 0 18px}.cardio-weight-note{margin-top:-5px;margin-bottom:15px}.cardio-options .fields{margin-bottom:12px}
@media(max-width:900px){.calorie-values{gap:14px}.nutrition-grid{grid-template-columns:1fr}.calorie-value{padding-right:12px}.calorie-value strong{font-size:29px}}
@media(max-width:700px){.mobile-nav{grid-template-columns:repeat(5,1fr)}.mobile-nav button{font-size:9px}.mobile-nav button.active svg{padding:4px 9px}.calorie-panel{padding:20px 17px;margin-bottom:18px}.calorie-values{gap:10px}.calorie-value{padding:4px 8px 4px 0}.calorie-value>span{font-size:9px;gap:4px;line-height:1.8;min-height:32px;align-items:flex-start}.calorie-value>span svg{width:13px;height:13px;margin-top:2px;flex-shrink:0}.calorie-value strong{font-size:26px;margin:9px 0}.calorie-value strong small{font-size:8px;margin-left:3px}.calorie-value strong.unknown{font-size:20px}.calorie-value p{font-size:9px;line-height:1.8}.calorie-scope{font-size:9px;margin-top:13px;padding-top:12px}.nutrition-toolbar{gap:10px;margin-bottom:16px}.day-picker{gap:6px}.day-picker input{font-size:16px;min-width:0;width:155px;padding:10px}.day-picker .btn{min-height:44px;padding:10px}.nutrition-grid{gap:18px}.meal-heading button{height:44px;width:44px}.food-record{grid-template-columns:minmax(0,1fr) auto 36px 36px;gap:4px;padding:13px 0}.food-record strong{font-size:11px}.food-record>div>small{font-size:9px}.food-record .table-action{width:36px;min-width:36px;min-height:44px}.food-energy{font-size:14px}.calorie-workout{gap:9px}.calorie-workout .record-main{flex:1}.calorie-workout-total{font-size:14px}.calorie-reference>p{font-size:10px}.food-library-tools{gap:8px}.food-library-tools select{font-size:16px;width:108px;padding:10px 7px}.food-library-tools .search-input{font-size:16px}.food-choice{padding:11px 10px}.food-choice strong{font-size:11px}.food-choice small{font-size:9px}.food-library{max-height:195px}.calorie-live{padding:15px}.food-source{font-size:9px}.nutrition-grid .panel{min-width:0}}
@media(max-width:360px){.calorie-values{gap:6px}.calorie-value{padding-right:4px}.calorie-value strong{font-size:23px}.calorie-value>span svg{display:none}.day-picker input{width:135px}.food-record{grid-template-columns:minmax(0,1fr) auto 32px 32px}.food-record .table-action{min-width:32px;width:32px}}
.calorie-method-tabs{grid-template-columns:repeat(3,1fr)}.calorie-method-tabs button{font-size:11px;padding:12px 6px;gap:4px}.calorie-method-tabs button svg{width:14px;height:14px}
@media(max-width:700px){.day-picker{flex:1;min-width:0}.day-picker input{flex:1;min-width:0;width:0}.day-picker button,.nutrition-toolbar>button{flex-shrink:0}.calorie-value strong{font-size:22px;white-space:nowrap;overflow-wrap:normal}.calorie-value strong small{display:block;margin:4px 0 0}}
@media(max-width:360px){.calorie-values{grid-template-columns:1fr;gap:0}.calorie-value{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;padding:12px 0;border-right:0;border-bottom:1px solid #edf0ed}.calorie-value:last-child{border:0}.calorie-value>span{min-height:0;align-items:center}.calorie-value strong{font-size:23px;margin:0}.calorie-value strong small{display:inline;margin-left:4px}.calorie-value p{grid-column:1 / -1}.calorie-value strong.unknown{font-size:19px}}
@media(max-width:360px){.nutrition-toolbar{flex-wrap:wrap}.day-picker{flex-basis:100%}.nutrition-toolbar>button{margin-left:auto}}

/* Share options adapt to their panel or dialog, including narrow desktop cards. */
.share-controls{display:grid;gap:10px;min-width:0;margin:0 0 18px;container-type:inline-size;container-name:share-controls}
.share-control-label{display:block;font-size:11px;font-weight:600;line-height:1.6;color:#627b6a;margin:0}
.share-controls>.share-control-label:not(:first-child){margin-top:6px}
.share-controls>[data-share-fields]:empty,.share-summary:empty{display:none}
.share-choice-group{display:grid;gap:8px;min-width:0}
.share-periods{grid-template-columns:repeat(2,minmax(0,1fr))}
.share-types{grid-template-columns:repeat(3,minmax(0,1fr))}
.share-choice-group button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #e0e9e2;border-radius:10px;background:#f8faf8;color:#718777;font-size:12px;font-weight:500;line-height:1.5;text-align:center;white-space:normal;overflow-wrap:anywhere;transition:background .15s,border-color .15s,color .15s}@media(hover:hover) and (pointer:fine){
.share-choice-group button:hover{background:#eff6f0;border-color:#c6ddcb;color:#496d54}}
.share-choice-group button.active,.share-choice-group button[aria-pressed="true"]{background:#e5f3e8;border-color:#91b99b;color:#315b3e;font-weight:650}
.share-choice-group button:focus-visible{outline:3px solid #69ba85;outline-offset:2px}
.share-date-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.share-date-fields.single{grid-template-columns:minmax(0,1fr)}
.share-date-fields>.field{min-width:0}
.share-date-fields>.field.full,.share-date-fields>.field:only-child{grid-column:1 / -1}
.share-date-fields input[type="date"]{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;padding:10px 9px;font-size:16px;line-height:1.4}
.share-date-fields input[type="date"]::-webkit-date-and-time-value{min-height:1.4em;text-align:left}
.share-error{margin:0;padding:10px 12px;border:1px solid #f0d7d1;border-radius:9px;background:#fff4f1;color:#a35247;font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.share-error:empty,.share-error[hidden]{display:none}
.share-summary{font-size:11px;line-height:1.8;color:#75897c;overflow-wrap:anywhere}
.share-extra{margin-top:14px;font-size:10px;line-height:1.8;color:#7a8f80;overflow-wrap:anywhere}
.share-preview .share-extra{color:#a1c6ab}
.share-empty{padding:14px;border:1px dashed #dbe8de;border-radius:10px;background:#f7faf7;color:#7b9182;font-size:11px;line-height:1.9;overflow-wrap:anywhere}
.share-preview .share-empty{margin-top:16px;background:#ffffff08;border-color:#a1c6ab40;color:#adc9b6}
.share-stats{gap:10px}
.share-stats>div{flex:1 1 0;min-width:0;container-type:inline-size}
.share-stats strong{max-width:100%;font-size:min(28px,calc(160cqi / var(--share-value-length,3)));font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1.25}
.share-stats small{line-height:1.7;overflow-wrap:anywhere}
@container share-controls (max-width:360px){.share-date-fields{grid-template-columns:minmax(0,1fr)}.share-choice-group button{padding-right:8px;padding-left:8px}}
@container share-controls (max-width:360px){.share-types button{font-size:11px;padding-right:4px;padding-left:4px;white-space:nowrap;overflow-wrap:normal}}
@container share-controls (min-width:480px){.share-periods{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.share-actions .btn{min-width:0;min-height:44px;padding-right:10px;padding-left:10px}}
@media(max-width:360px){.share-date-fields{grid-template-columns:minmax(0,1fr)}}

/* Strength and cardio library controls within the existing workout form. */
#workout-form{min-width:0;container-type:inline-size;container-name:workout-form}
#workout-form :is(.exercise-library-tools,.cardio-library-tools){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;min-width:0;margin:12px 0 16px}
#workout-form :is(.exercise-sort-field,.cardio-sort-field){min-width:0;margin:0}
#workout-form :is(.exercise-sort-field,.cardio-sort-field,.custom-exercise-fields,.custom-cardio-fields) label{font-size:12px;line-height:1.6;color:#617f69;margin-bottom:7px}
#workout-form :is(.exercise-sort-field,.cardio-sort-field) select{display:block;width:100%;min-width:0;max-width:100%;min-height:44px;padding:10px 12px;font-size:13px}
#workout-form :is(.exercise-custom-toggle,.cardio-custom-toggle){min-width:0;max-width:100%;min-height:44px;padding:10px 12px;gap:7px;font-size:12px;line-height:1.5}
#workout-form :is(.exercise-custom-toggle,.cardio-custom-toggle)[aria-expanded="true"]{background:#eaf5ed;border-color:#98bda0;color:#3c6948}
#workout-form :is(.custom-exercise-panel,.custom-cardio-panel){min-width:0;margin:0 0 18px;padding:16px;border:1px solid #dbe9de;border-radius:12px;background:#f3f9f4}
#workout-form :is(.custom-exercise-panel,.custom-cardio-panel)[hidden]{display:none}
#workout-form :is(.custom-exercise-fields,.custom-cardio-fields){display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px;min-width:0}
#workout-form :is(.custom-exercise-fields,.custom-cardio-fields)>.field{min-width:0;grid-column:auto}
#workout-form :is(.custom-exercise-fields,.custom-cardio-fields)>.field.full{grid-column:1 / -1}
#workout-form :is(.custom-exercise-fields,.custom-cardio-fields) :is(input,select,textarea){display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;padding:10px 11px;background:#fff;font-size:13px;line-height:1.5}
#workout-form :is(.custom-exercise-fields,.custom-cardio-fields) textarea{min-height:80px;resize:vertical}
#workout-form :is(.custom-exercise-note,.custom-cardio-note){margin-top:12px;font-size:11px;line-height:1.8;color:#738b7b;overflow-wrap:anywhere}
#workout-form :is(.custom-exercise-error,.custom-cardio-error){margin-top:10px;padding:9px 11px;border:1px solid #eed8d2;border-radius:8px;background:#fff5f2;font-size:11px;line-height:1.8;color:#a65246;overflow-wrap:anywhere}
#workout-form :is(.custom-exercise-error,.custom-cardio-error):empty,#workout-form :is(.custom-exercise-error,.custom-cardio-error)[hidden]{display:none}
#workout-form :is(.custom-exercise-actions,.custom-cardio-actions){display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:14px;min-width:0}
#workout-form :is(.custom-exercise-actions,.custom-cardio-actions) .btn{min-width:0;max-width:100%;min-height:44px;padding:10px 12px;font-size:12px;line-height:1.5;white-space:normal;text-align:center}
@container workout-form (max-width:360px){#workout-form :is(.exercise-library-tools,.cardio-library-tools){grid-template-columns:minmax(0,1fr);gap:10px}#workout-form :is(.exercise-custom-toggle,.cardio-custom-toggle){justify-self:end}}
@container workout-form (max-width:300px){#workout-form :is(.custom-exercise-fields,.custom-cardio-fields){grid-template-columns:minmax(0,1fr)}#workout-form :is(.custom-exercise-panel,.custom-cardio-panel){padding:14px}}
@media(max-width:700px){#workout-form :is(.exercise-sort-field,.cardio-sort-field) select,#workout-form :is(.custom-exercise-fields,.custom-cardio-fields) :is(input,select,textarea){font-size:16px}}
@media(max-width:360px){#workout-form :is(.exercise-library-tools,.cardio-library-tools,.custom-exercise-fields,.custom-cardio-fields){grid-template-columns:minmax(0,1fr)}#workout-form :is(.exercise-custom-toggle,.cardio-custom-toggle){justify-self:end}#workout-form :is(.custom-exercise-panel,.custom-cardio-panel){padding:14px}}

/* Readable startup and recovery card, including direct file:// opening. */
.app-launch-card{box-shadow:0 12px 40px #17342608}
.app-launch h1{font-weight:700;letter-spacing:-.5px}
.app-launch-button:focus-visible,.app-launch-details summary:focus-visible{outline:3px solid #69ba85;outline-offset:3px}@media(hover:hover) and (pointer:fine){
.app-launch-button:hover{background:#254739}}@media(hover:hover) and (pointer:fine){
.app-launch-button.secondary:hover{background:#f2f7f3}}
.app-launch-details pre{max-width:100%;word-break:break-word}
@media(max-width:480px){.app-launch{padding:24px 16px}.app-launch-card{padding:24px 20px;border-radius:18px}.app-launch h1{font-size:22px}.app-launch-message{font-size:14px}.app-launch-actions{gap:8px}.app-launch-button{flex:1 1 120px;min-width:0;font-size:14px;white-space:normal;overflow-wrap:anywhere}}

/* The exit prompt overlays the intact workout form, preserving every input. */
.workout-exit-dialog{width:min(420px,calc(100% - 32px))}
.workout-exit-content{padding:26px}
.workout-exit-content h2{font-size:18px;line-height:1.6}
.workout-exit-content p{font-size:13px;line-height:1.9;color:#718476;margin-top:12px}
.workout-exit-actions{display:grid;gap:10px;margin-top:24px}
.workout-exit-actions .btn{width:100%;min-height:44px;white-space:normal}
@media(max-width:360px){.workout-exit-content{padding:22px}}
.app-update-notice{position:fixed;top:12px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;width:max-content;max-width:calc(100% - 24px);padding:12px 14px;border:1px solid #c7decf;border-radius:12px;background:#f1faf3;box-shadow:0 4px 22px #142b2420;color:#426c4e;font-size:12px;line-height:1.7;z-index:90}
.app-update-notice[hidden]{display:none}
.app-update-notice span{min-width:0}
.app-update-notice .btn{flex-shrink:0;min-height:44px}
.app-update-notice.in-modal{position:static;transform:none;width:auto;max-width:100%;margin-bottom:18px;box-shadow:none}

/* Accounts stay available on desktop and mobile without displacing record forms. */
.account-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:-4px 0 24px;padding:13px 16px;border:1px solid #dce9e0;border-radius:12px;background:#f0f7f2;color:#557661;font-size:12px;line-height:1.8}
.account-summary>span{min-width:0;overflow-wrap:anywhere}
.account-summary .btn{flex-shrink:0;min-height:44px}
.account-panel{margin-bottom:24px}
.account-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:15px}
.account-actions .btn{min-height:44px;white-space:normal}
.account-state{color:#557661;font-size:13px;line-height:1.9;overflow-wrap:anywhere}
#account-form .fields{grid-template-columns:minmax(0,1fr)}
#account-form input{width:100%;min-height:44px;font-size:16px}
#account-form .form-actions{display:flex;flex-wrap:wrap;gap:10px}
#account-form .form-actions .btn{min-height:44px;white-space:normal}
@media(max-width:480px){.account-summary{padding:12px;margin-bottom:20px;gap:8px;font-size:11px}.account-summary .btn{padding:10px 11px;font-size:12px}.account-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.account-actions .btn{padding:10px 9px;font-size:12px}.account-panel .panel-sub{overflow-wrap:anywhere}}

/* A dedicated account dialog keeps the everyday record forms unchanged. */
dialog.auth-dialog{width:min(744px,calc(100% - 32px));max-height:92dvh;border-radius:24px;background:#fcfcf8;box-shadow:0 24px 110px #081b1740;overflow:auto}
.auth-dialog::backdrop{background:#10271d99;backdrop-filter:blur(7px)}
.auth-dialog .modal-header{position:absolute;inset:18px 18px auto auto;padding:0;background:transparent;border:0;z-index:4}
.auth-dialog .modal-header>div{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.auth-dialog .close-btn{width:44px;height:44px;min-width:44px;min-height:44px;background:transparent;color:#7e8f83;border-radius:12px;transition:background .15s,color .15s}@media(hover:hover) and (pointer:fine){
.auth-dialog .close-btn:hover{background:#eaf0e8;color:#274b36}}
.auth-dialog .close-btn svg{width:19px;height:19px}
.auth-dialog .modal-body{padding:0;overflow:visible}
.auth-layout{display:grid;grid-template-columns:288px minmax(0,1fr);min-height:528px}
.auth-story{position:relative;display:flex;flex-direction:column;overflow:hidden;padding:36px 30px 28px;background:#18382d;color:#f1f5e9;isolation:isolate}
.auth-story:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 0 100%,#4c6c3e38,transparent 68%);z-index:-1}
.auth-brand{display:flex;align-items:center;gap:11px}
.auth-brand-mark{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border:1px solid #c1e3bb42;border-radius:12px;color:#c6e7b9}
.auth-brand-mark svg{width:25px;height:25px}
.auth-brand-name{display:flex;align-items:center;gap:11px;font-size:20px;font-weight:650;letter-spacing:2.4px;line-height:1.2}
.auth-brand-name>span{font-size:13px;font-weight:550;letter-spacing:1px;padding-left:11px;border-left:1px solid #b7d1b75c;color:#d7e1cf}
.auth-brand-caption{display:block;margin-top:6px;font-size:7px;letter-spacing:1.75px;color:#9cb5a2}
.auth-story-copy{position:relative;z-index:1;margin-top:53px}
.auth-story-kicker{font-size:10px;letter-spacing:1.6px;color:#b1c6a6}
.auth-story-copy h3{margin-top:14px;font-size:29px;font-weight:550;line-height:1.6;letter-spacing:1px}
.auth-story-copy p{margin-top:18px;font-size:12px;line-height:1.9;color:#afc1b2}
.auth-trajectory{display:block;width:100%;height:auto;margin:24px 0 4px;opacity:.85}
.auth-story-foot{display:flex;align-items:center;gap:8px;margin-top:auto;font-size:7px;letter-spacing:1.7px;color:#a1b59e;white-space:nowrap}
.auth-story-foot>span{width:5px;height:5px;border-radius:50%;background:#b5d49e}
.auth-content{min-width:0;padding:57px 40px 29px}
.auth-heading{margin-bottom:27px}
.auth-kicker{font-size:11px;letter-spacing:1px;color:#6e8970}
.auth-heading h3{margin-top:8px;font-size:27px;font-weight:650;letter-spacing:-.8px;line-height:1.45;color:#173a29}
.auth-heading>p{margin-top:10px;font-size:12px;line-height:1.7;color:#7a8d7f}
.auth-dialog #account-form .fields{gap:18px;margin-bottom:23px}
.auth-dialog #account-form .field label{font-size:12px;font-weight:550;color:#415e48;margin-bottom:9px}
.auth-dialog #account-form input{height:51px;min-height:51px;padding:13px 14px;border-radius:11px;border:1px solid #dae3d9;background:#fffefb;font-size:16px;color:#233f2d;transition:border-color .15s,box-shadow .15s,background .15s}
.auth-dialog #account-form input::placeholder{color:#9ca99c;font-size:13px}
.auth-dialog #account-form input:focus{border-color:#809f7b;background:#fff;box-shadow:0 0 0 3px #80a3731a}
.auth-dialog #account-form .field small{font-size:10px;line-height:1.7;margin-top:7px;color:#7b8e7c}
.auth-password-field{position:relative}
.auth-dialog #account-form .auth-password-field input{padding-right:51px}
.auth-password-toggle{position:absolute;top:4px;right:4px;display:grid;place-items:center;width:43px;height:43px;min-width:44px;min-height:44px;border-radius:8px;background:transparent;color:#8b9c89;transition:background .15s,color .15s}@media(hover:hover) and (pointer:fine){
.auth-password-toggle:hover{background:#edf2e9;color:#4e714a}}
.auth-password-toggle svg{width:19px;height:19px}
.auth-eye-slash{display:none}
.auth-password-toggle[aria-pressed="true"] .auth-eye-slash{display:block}
.auth-dialog .form-error{font-size:12px;line-height:1.7;margin-top:-5px;margin-bottom:14px}
.auth-dialog .auth-submit{display:flex;justify-content:center;position:relative;width:100%;min-height:51px;padding:14px 46px;border:1px solid #173a29;border-radius:11px;background:#193e2c;color:#f5f9f0;font-size:14px;font-weight:600;letter-spacing:.5px;box-shadow:0 4px 9px #193e2c0a;transition:background .15s,box-shadow .15s}
.auth-dialog .auth-submit svg{position:absolute;right:17px;width:18px;height:18px;color:#b9d5ac}@media(hover:hover) and (pointer:fine){
.auth-dialog .auth-submit:hover{background:#28553a;box-shadow:0 5px 14px #193e2c20}}
.auth-switch{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:12px;font-size:11px;color:#889985}
.auth-switch button{display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:8px 5px;background:transparent;color:#315d39;font-size:12px;font-weight:600}@media(hover:hover) and (pointer:fine){
.auth-switch button:hover{color:#527e45;text-decoration:underline;text-underline-offset:4px}}
.auth-switch button>span{font-size:15px;font-weight:400;line-height:1}
.auth-note{margin-top:10px;font-size:10px;line-height:1.9;color:#849280}
.auth-assurance{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin-top:22px;padding-top:17px;border-top:1px solid #e6ebe0;font-size:9px;line-height:1.8;color:#899884}
.auth-assurance svg{width:14px;height:14px;color:#8da087}
.auth-assurance>span{margin:0 3px;color:#a4b29e}
@media(max-width:640px){
  dialog.auth-dialog{width:min(430px,calc(100% - 24px));max-height:94dvh;border-radius:21px}
  .auth-dialog .modal-header{top:13px;right:12px}
  .auth-dialog .close-btn{color:#c3d4bd}@media(hover:hover) and (pointer:fine){
  .auth-dialog .close-btn:hover{background:#ffffff12;color:#fff}}
  .auth-layout{grid-template-columns:minmax(0,1fr);min-height:0}
  .auth-story{padding:21px 25px 22px}
  .auth-brand-mark{width:34px;height:34px;border-radius:10px}
  .auth-brand-mark svg{width:23px;height:23px}
  .auth-brand-name{font-size:18px}
  .auth-brand-caption{font-size:6.5px;letter-spacing:1.6px}
  .auth-story-copy,.auth-trajectory,.auth-story-foot{display:none}
  .auth-content{padding:27px 27px 23px}
  .auth-heading{margin-bottom:24px}
  .auth-heading h3{font-size:25px;margin-top:6px}
  .auth-heading>p{font-size:11px;margin-top:8px}
  .auth-dialog #account-form .fields{gap:16px;margin-bottom:21px}
  .auth-dialog #account-form input{height:51px;min-height:51px}
  .auth-note{margin-top:8px}
  .auth-assurance{margin-top:18px;padding-top:14px}
}
@media(max-width:360px){.auth-content{padding-left:22px;padding-right:22px}.auth-story{padding-left:22px}.auth-heading h3{font-size:24px}.auth-assurance{gap:4px;font-size:8.5px}}
@media(prefers-reduced-motion:reduce){.auth-dialog input,.auth-dialog button{transition:none}}

/* Motion follows deliberate navigation and dialog changes, never background sync. */
:root{--motion-fast:160ms;--motion-page:220ms;--motion-ease:cubic-bezier(.22,1,.36,1)}
.main.page-enter{animation:page-enter var(--motion-page) var(--motion-ease)}
@keyframes page-enter{from{opacity:.35;transform:translateY(8px)}to{opacity:1;transform:none}}
#modal[open],#workout-exit[open]{animation:dialog-enter 200ms var(--motion-ease)}
#modal[open]::backdrop,#workout-exit[open]::backdrop{animation:backdrop-enter 200ms ease-out}
@keyframes dialog-enter{from{opacity:0;transform:translateY(6px) scale(.985)}to{opacity:1;transform:none}}
@keyframes backdrop-enter{from{opacity:0}to{opacity:1}}
.auth-content-enter{animation:auth-content-enter 170ms var(--motion-ease)}
@keyframes auth-content-enter{from{opacity:.3;transform:translateY(4px)}to{opacity:1;transform:none}}
:where(button,.btn){transition:background-color var(--motion-fast) ease,color var(--motion-fast) ease,border-color var(--motion-fast) ease,box-shadow var(--motion-fast) ease,transform var(--motion-fast) var(--motion-ease)}
:where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){transition:border-color var(--motion-fast) ease,box-shadow var(--motion-fast) ease,background-color var(--motion-fast) ease}
:where(button,.btn):not(:disabled):not([aria-disabled="true"]):active{transform:scale(.98)}
.workout-card{transition:transform var(--motion-fast) var(--motion-ease),border-color var(--motion-fast) ease,box-shadow var(--motion-fast) ease,background-color var(--motion-fast) ease}
.auth-dialog .auth-submit,.auth-dialog .close-btn,.auth-password-toggle,.share-choice-group button{transition:background-color var(--motion-fast) ease,color var(--motion-fast) ease,border-color var(--motion-fast) ease,box-shadow var(--motion-fast) ease,transform var(--motion-fast) var(--motion-ease)}
:where(button,.btn):disabled,:where(button,.btn)[aria-disabled="true"],.workout-card:disabled,.workout-card[aria-disabled="true"],.auth-dialog button:disabled,.share-choice-group button:disabled{transform:none;transition:none}
@media(hover:hover) and (pointer:fine){
  .record-row:not(:disabled):hover,.calorie-workout:not(:disabled):hover{background:#f6faf6}
  .food-choice:not(:disabled):hover{border-color:#b6d1bb;box-shadow:0 2px 8px #193e2c09}
  .segmented button:not(.active):not(:disabled):hover,.modal-tabs button:not(.active):not(:disabled):hover{background:#eaf1eb;color:#54745d}
  .filter-tabs button:not(.active):not(:disabled):hover{background:#f5f9f5;border-color:#cce0d0;color:#4d6c55}
  .nav-item:not(.active):not(:disabled):hover{color:#446b50}
  .mobile-nav button:not(.active):not(:disabled):hover{color:#608369}
  .workout-card:not(:disabled):hover{box-shadow:0 4px 14px #193e2c08}
}
@media(prefers-reduced-motion:reduce){
  .main.page-enter,#modal[open],#workout-exit[open],#modal[open]::backdrop,#workout-exit[open]::backdrop,.auth-content-enter{animation:none}
  :where(button,.btn,input,select,textarea),.workout-card,.auth-dialog .auth-submit,.auth-dialog .close-btn,.auth-password-toggle{transition:none}
  :where(button,.btn):not(:disabled):not([aria-disabled="true"]):active,.workout-card:hover{transform:none}
}
