:root{color-scheme:dark;--bg:#101210;--panel:#191c19;--panel2:#20241e;--line:#2b3029;--text:#f0f2ec;--muted:#939b8c;--lime:#c3f26b;--green:#8faf60;--orange:#f3b378;--purple:#b5a3ed;--radius:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}button,a,input,textarea,select,summary{outline-offset:4px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--lime)}button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);color:var(--text);padding:11px 17px;font-weight:600;transition:background .15s,transform .15s}button:hover{background:var(--track)}button:active{transform:translateY(1px)}button:disabled{opacity:.45;cursor:default}.primary{background:var(--lime);color:var(--primary-text);border-color:var(--lime)}.primary:hover{background:var(--accent-hover)}.ghost{background:transparent}.small{padding:8px 12px;font-size:12px}.icon-btn{padding:10px}.link{border:0;background:none;color:var(--lime);padding:0;font-size:12px}.danger{color:var(--danger)}.muted{color:var(--muted)}.accent{color:var(--lime)}.orange{color:var(--orange)}.purple{color:var(--purple)}.mono{font-variant-numeric:tabular-nums}.eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:650;text-transform:uppercase;color:var(--muted)}.pill{display:inline-flex;align-items:center;gap:6px;font-size:11px;border-radius:6px;padding:5px 8px;background:var(--accent-soft);color:var(--lime)}.pill.neutral{color:var(--muted);background:var(--panel2)}.pill.orange{color:var(--orange);background:var(--warning-bg)}.dot{width:6px;height:6px;border-radius:50%;background:currentColor;display:inline-block}h1,h2,h3,p{margin:0}h1{font-size:32px;letter-spacing:-1.15px;font-weight:650}h2{font-size:19px;letter-spacing:-.4px;font-weight:600}h3{font-size:15px;font-weight:600}p{line-height:1.7}.subtext{font-size:13px;color:var(--muted);margin-top:9px}a{color:var(--lime)}
.sidebar{width:220px;position:fixed;inset:0 auto 0 0;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:35px 20px 20px;background:var(--sidebar);z-index:20}.brand{display:flex;align-items:center;gap:9px;font-size:27px;font-weight:850;letter-spacing:2px;margin:0 12px 47px}.brand img{height:33px;width:33px}.nav-caption{font-size:10px;letter-spacing:1.7px;color:var(--muted);padding:0 15px;margin-bottom:13px}.nav{display:grid;gap:7px}.nav button{justify-content:flex-start;background:transparent;border-color:transparent;color:var(--muted);min-height:46px;font-weight:500;padding:12px 16px}.nav button.active{color:var(--lime);background:var(--accent-soft);border-color:var(--accent-line)}.nav button:hover{background:var(--panel2)}.nav svg{width:19px;height:19px}.nav button span{flex:1;text-align:left}.nav .new{flex:0;font-size:9px;background:var(--lime);color:var(--primary-text);border-radius:4px;padding:3px 4px;font-weight:700}.sidebar-bottom{margin-top:auto;display:grid;gap:20px}.local{border:1px solid var(--line);padding:15px;border-radius:12px;font-size:11px;color:var(--muted);line-height:1.6}.local strong{color:var(--text);font-size:12px;display:block;margin-bottom:5px}.profile-button{padding:15px 8px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none;justify-content:flex-start}.avatar{width:34px;height:34px;display:grid;place-items:center;background:var(--track);color:var(--lime);border-radius:50%;font-weight:650}.profile-button strong{font-size:12px;display:block;text-align:left}.profile-button small{font-size:10px;color:var(--muted)}
.main{margin-left:220px;max-width:1600px;padding:29px 38px 40px}.topbar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:23px;margin-bottom:30px}.breadcrumb{color:var(--muted);font-size:12px;display:flex;align-items:center;gap:11px}.breadcrumb strong{font-weight:500;color:var(--text)}.top-actions{display:flex;align-items:center;gap:14px}.top-actions .date{font-size:12px;color:var(--muted)}.demo{font-size:10px;border-radius:30px;color:var(--muted);background:var(--panel2);padding:7px 10px;font-weight:500}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px;gap:16px}.page-heading p{color:var(--muted);margin-top:7px;font-size:13px}.heading-actions{display:flex;gap:10px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:23px}.metric{border:1px solid var(--line);background:var(--panel);border-radius:14px;padding:18px 20px}.metric-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.metric-top svg{color:var(--muted)}.metric-value{display:flex;align-items:baseline;gap:8px;font-size:30px;letter-spacing:-.7px;font-weight:600;margin-top:13px}.metric-value small{font-size:12px;color:var(--muted);font-weight:400;letter-spacing:0}.metric-foot{color:var(--muted);font-size:10px;margin-top:9px;display:flex;align-items:center;gap:6px}.metric-foot strong{color:var(--lime);font-weight:500}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(290px,1fr);gap:22px}.left-column,.right-column{display:flex;flex-direction:column;gap:22px}.hero{min-height:292px;position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--accent-line);border-radius:var(--radius);padding:30px 30px;background:linear-gradient(110deg,var(--accent-soft) 0%,var(--primary-text) 58%,var(--primary-text))}.hero:after{content:'';position:absolute;inset:0;background-image:linear-gradient(var(--accent-soft) 1px,transparent 1px),linear-gradient(90deg,var(--accent-soft) 1px,transparent 1px);background-size:34px 34px;z-index:-1}.hero-content{position:relative;z-index:2;width:65%}.hero .eyebrow{color:var(--muted);font-size:10px;margin-bottom:19px}.hero h2{font-size:33px;line-height:1.13;letter-spacing:-1px;font-weight:650;max-width:340px}.hero p{font-size:12px;color:var(--muted);margin-top:15px;max-width:235px;line-height:1.8}.hero button{margin-top:23px}.hero-art{width:330px;height:290px;position:absolute;right:-59px;bottom:-18px;transform:rotate(-7deg);opacity:.85;z-index:1}.hero-tags{display:flex;gap:15px;margin-top:20px;color:var(--muted);font-size:10px}.hero-tags span{display:flex;gap:5px;align-items:center}.hero-tags svg{height:13px;width:13px}
.panel{border:1px solid var(--line);border-radius:var(--radius);padding:23px;background:var(--panel)}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:10px}.panel-head h2{font-size:16px}.panel-head p{color:var(--muted);font-size:11px;margin-top:4px}.week{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.day{display:flex;flex-direction:column;gap:9px;padding:12px 4px;background:var(--panel2);border:1px solid transparent;border-radius:10px;color:var(--muted);font-size:10px;position:relative;font-weight:400}.day strong{font-size:17px;color:var(--text);font-weight:500}.day .day-mark{height:21px;width:21px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--lime)}.day .day-mark svg{height:12px;width:12px}.day.today{border-color:var(--accent-line);background:var(--accent-soft)}.day.today strong{color:var(--lime)}.day.today:before{content:'';height:4px;width:4px;border-radius:50%;background:var(--lime);position:absolute;top:6px;right:6px}.day.rest .day-mark{background:transparent;color:var(--muted)}.plan-row{display:flex;justify-content:space-between;align-items:center;padding-top:20px;margin-top:18px;border-top:1px solid var(--line);gap:8px}.plan-row h3{font-size:13px}.plan-row p{font-size:11px;color:var(--muted);margin-top:5px}.plan-row .plan-icon{height:37px;width:37px;display:grid;place-items:center;background:var(--accent-soft);color:var(--lime);border-radius:9px}.flex{display:flex;align-items:center;gap:12px}.between{display:flex;align-items:center;justify-content:space-between;gap:12px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:22px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.stack{display:grid;gap:20px}.space{margin-top:22px}.chart{display:block;width:100%;height:164px}.chart text{fill:var(--muted);font-size:10px}.legend{display:flex;justify-content:center;gap:24px;color:var(--muted);font-size:10px;margin-top:6px}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:7px;height:7px;background:var(--lime);border-radius:50%}.ring-row{display:flex;align-items:center;gap:24px;margin-top:5px}.ring{width:126px;height:126px;flex:none;border-radius:50%;background:conic-gradient(var(--lime) calc(var(--progress)*1%),var(--track) 0);padding:9px;transform:rotate(-90deg)}.ring-center{background:var(--panel);width:100%;height:100%;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(90deg)}.ring-center strong{font-size:26px;letter-spacing:-.7px}.ring-center span{font-size:10px;color:var(--muted);margin-top:4px}.ring-details strong{font-size:24px;font-weight:600;letter-spacing:-.5px}.ring-details small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.macro-list{display:grid;gap:17px;margin-top:24px}.macro-label{display:flex;justify-content:space-between;align-items:baseline;font-size:11px;margin-bottom:8px;color:var(--text)}.macro-label span:last-child{color:var(--muted);font-size:10px}.macro-label b{color:var(--text);font-weight:500}.track{height:5px;background:var(--track);border-radius:5px;overflow:hidden}.track i{display:block;width:var(--progress);height:100%;border-radius:5px;background:var(--lime)}.full{width:100%}.nutrition-bottom{margin-top:23px}.coach-card{background:linear-gradient(130deg,var(--accent-soft),var(--panel));border-color:var(--accent-line)}.coach-card .coach-icon{height:34px;width:34px;background:var(--accent-soft);color:var(--lime);display:grid;place-items:center;border-radius:9px}.coach-card p{font-size:12px;color:var(--text);line-height:1.8;margin:17px 0 21px}.coach-card .panel-head{margin:0}.gym-mini{display:flex;gap:13px;align-items:center;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:17px}.gym-mini>svg{color:var(--lime);flex:none}.gym-mini h3{font-size:12px}.gym-mini p{font-size:10px;color:var(--muted);margin-top:5px}.gym-mini button{margin-left:auto}.water{display:flex;justify-content:space-between;align-items:center;gap:12px}.water-icon{color:var(--water-text);background:var(--water-bg);padding:10px;border-radius:10px;display:flex}.water h3{font-size:12px}.water p{font-size:11px;color:var(--muted);margin-top:5px}.history-row{padding:15px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.history-row:last-child{border:0}.history-row strong{font-size:12px;font-weight:600}.history-row p{font-size:11px;color:var(--muted);margin-top:5px}.history-row .history-icon{height:35px;width:35px;background:var(--panel2);color:var(--lime);border-radius:9px;display:grid;place-items:center}.history-value{font-size:12px;text-align:right}
.routine-card{overflow:hidden;border:1px solid var(--line);background:var(--panel);border-radius:var(--radius)}.routine-top{padding:24px;position:relative;background:linear-gradient(130deg,var(--accent-soft),var(--panel));min-height:137px;overflow:hidden}.routine-top .exercise-art{position:absolute;width:190px;right:-25px;bottom:-9px;opacity:.65}.routine-top h2{position:relative;margin-top:20px;font-size:25px}.routine-content{padding:22px}.routine-content p{font-size:12px;color:var(--muted);margin-bottom:19px}.routine-facts{display:flex;gap:18px;font-size:11px;color:var(--muted);margin-bottom:23px}.routine-actions{display:flex;gap:8px}.routine-actions .primary{flex:1}.toolbar{display:flex;align-items:center;gap:12px;margin:0 0 22px;flex-wrap:wrap}.search-box{display:flex;align-items:center;gap:9px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:0 12px;flex:1;min-width:180px}.search-box input{border:0;background:none;padding:12px 0;width:100%}.chips{display:flex;gap:7px;flex-wrap:wrap}.chips button{font-size:11px;padding:9px 14px}.chips button.selected{background:var(--accent-soft);color:var(--lime);border-color:var(--accent-line)}.exercise-card{padding:0;overflow:hidden;text-align:left;display:block;font-weight:400;border-radius:16px;background:var(--panel);width:100%}.exercise-card .exercise-image{background:linear-gradient(140deg,var(--panel2),var(--panel));height:155px;display:grid;place-items:center;position:relative}.exercise-art{width:215px;height:150px}.exercise-card-info{padding:18px}.exercise-card h3{font-size:13px;margin-bottom:8px}.exercise-card-info p{font-size:11px;color:var(--muted)}.exercise-image .pill{position:absolute;top:12px;left:12px;font-size:9px}.exercise-card-info .between{margin-top:16px;font-size:10px;color:var(--muted)}.empty{text-align:center;padding:40px 15px;color:var(--muted);line-height:1.8}.empty svg{color:var(--lime);display:block;margin:0 auto 15px}.meal-list{margin-top:4px}.meal{padding:18px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:15px}.meal:last-child{border:0}.meal-symbol{height:42px;width:42px;background:var(--accent-soft);border-radius:12px;display:grid;place-items:center;font-size:20px}.meal h3{font-size:13px;margin-top:5px}.meal p{font-size:11px;color:var(--muted);margin-top:5px}.meal .cal{margin-left:auto;text-align:right;font-weight:500;font-size:14px}.meal .cal small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.nutrition-hero{display:grid;grid-template-columns:1.1fr 1.2fr;gap:40px;align-items:center}.nutrition-hero .ring{width:172px;height:172px;padding:11px}.nutrition-hero .macro-list{margin-top:0}.nutrition-hero .ring-center strong{font-size:35px}.ai-box{border:1px solid var(--accent-line);background:linear-gradient(145deg,var(--accent-soft),var(--panel));border-radius:16px;padding:25px}.ai-box p{font-size:12px;color:var(--muted);margin:12px 0 20px}.ai-box textarea{min-height:100px}.ai-box .between{margin-top:12px}.source-note{font-size:11px;color:var(--muted);line-height:1.7;margin-top:15px}.source-note a{color:var(--muted)}.mobile-nav{display:none}
input,select,textarea{background:var(--input);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:11px 12px;max-width:100%}input::placeholder,textarea::placeholder{color:var(--muted)}input:focus,textarea:focus,select:focus{outline:1px solid var(--lime);border-color:var(--lime)}textarea{resize:vertical;width:100%;line-height:1.6}label{display:grid;gap:8px;color:var(--text);font-size:12px}label small{color:var(--muted);font-size:10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .wide{grid-column:1/-1}.form-row{display:flex;align-items:center;gap:12px}.form-row>*{flex:1}.notice{padding:15px 17px;background:var(--accent-soft);border:1px solid var(--accent-line);color:var(--text);line-height:1.7;font-size:12px;border-radius:10px}.notice.warning{background:var(--warning-bg);border-color:var(--warning-line);color:var(--warning-text)}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.settings-panel{max-width:810px}.settings-panel h2{margin-bottom:8px}.settings-panel p{font-size:12px;color:var(--muted);margin-bottom:22px}.settings-panel+.settings-panel{margin-top:22px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:17px 0;border-bottom:1px solid var(--line)}.setting-row:last-child{border:0}.setting-row strong{font-size:12px}.setting-row small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.toggle{appearance:none;width:42px;height:24px;flex:none;padding:2px;background:var(--panel2);border-radius:15px;position:relative;cursor:pointer}.toggle:before{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--text);transition:left .2s}.toggle:checked{background:var(--accent-line)}.toggle:checked:before{left:21px;background:var(--lime)}
dialog{background:var(--panel);color:var(--text);border:1px solid var(--accent-line);border-radius:20px;max-width:600px;width:calc(100% - 32px);padding:27px;max-height:90dvh;overflow-y:auto;box-shadow:0 30px 120px #0008}dialog::backdrop{background:var(--backdrop);backdrop-filter:blur(6px)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.modal-head h2{font-size:22px}.modal-head button{padding:6px;background:none;border:none}.modal-sub{font-size:12px;color:var(--muted);line-height:1.8;margin:-6px 0 22px}.demo-detail{background:var(--panel2);border:1px solid var(--accent-line);border-radius:14px;display:grid;place-items:center;margin-bottom:23px}.exercise-art.large{height:225px;width:330px}.cue-list{padding-left:20px;color:var(--text);font-size:13px;line-height:1.8}.cue-list li{margin-bottom:11px}.exercise-meta{display:flex;gap:8px;margin-bottom:16px}#toast{position:fixed;bottom:30px;left:calc(50% + 100px);transform:translateX(-50%) translateY(25px);padding:13px 20px;max-width:calc(100% - 32px);border:1px solid var(--accent-line);background:var(--accent-soft);border-radius:12px;color:var(--text);z-index:100;opacity:0;pointer-events:none;transition:all .2s;font-size:12px;box-shadow:0 12px 40px #0006}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.active-banner{display:flex;justify-content:space-between;align-items:center;background:var(--accent-soft);border:1px solid var(--accent-line);padding:15px 20px;border-radius:12px;margin-bottom:20px}.active-banner strong{font-size:12px}.active-banner small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.session-header{display:flex;align-items:center;gap:20px;margin-bottom:25px}.session-header .elapsed{margin-left:auto;font-size:27px;letter-spacing:-.5px;color:var(--lime)}.session-exercise{margin-top:18px}.session-exercise-head{display:flex;align-items:center;gap:16px;margin-bottom:19px}.mini-art{width:72px;height:53px;overflow:hidden;border-radius:8px;background:var(--panel2);flex:none}.mini-art svg{width:72px;height:53px}.session-exercise-head h2{font-size:15px}.session-exercise-head p{font-size:11px;color:var(--muted);margin-top:5px}.set-table{width:100%;border-collapse:collapse}.set-table th{text-align:left;font-size:10px;color:var(--muted);font-weight:400;padding:10px 8px;border-bottom:1px solid var(--line)}.set-table td{padding:9px 8px;font-size:12px}.set-table input{width:85px;padding:9px 10px;font-variant-numeric:tabular-nums}.set-table .done input{opacity:.6}.set-table .done td:first-child{color:var(--lime)}.complete-set{width:35px;height:35px;padding:0;background:var(--panel2)}.done .complete-set{background:var(--lime);color:var(--primary-text)}.rest-bar{position:sticky;bottom:20px;margin-top:20px;display:flex;align-items:center;justify-content:space-between;padding:18px 25px;background:var(--accent-soft);border:1px solid var(--accent-line);border-radius:14px;z-index:4;box-shadow:0 5px 40px #0006}.rest-bar strong{font-size:24px;color:var(--lime);font-variant-numeric:tabular-nums}.rest-bar p{font-size:11px;color:var(--text)}.coach-message{padding:18px 21px;border:1px solid var(--line);background:var(--panel2);border-radius:14px;font-size:13px;line-height:1.85;color:var(--text);white-space:pre-wrap}.coach-message.user{background:var(--accent-soft);border-color:var(--accent-line);margin-left:40px}.coach-thread{display:grid;gap:16px;max-width:800px}.coach-prompts{display:flex;gap:10px;flex-wrap:wrap;margin:23px 0}.coach-form{display:flex;gap:10px;margin-top:24px;max-width:800px}.coach-form input{flex:1;min-width:0}.coach-thread .eyebrow{font-size:9px;margin-bottom:8px}.progress-controls{display:flex;align-items:center;gap:10px}.progress-chart{height:245px}.stat-highlight{color:var(--lime);font-size:33px;font-weight:600;margin:15px 0 0}.stat-highlight small{font-size:12px;color:var(--muted);font-weight:400}.meal-review{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}.meal-review label input{width:100%}.checkbox-list{display:grid;gap:10px;margin-top:20px}.checkbox-list label{display:flex;align-items:center;gap:11px;background:var(--panel2);padding:12px;border-radius:8px}.checkbox-list input{accent-color:var(--lime)}.error{color:var(--danger);font-size:12px;line-height:1.7;margin-top:14px}.success{color:var(--lime);font-size:12px}.footer{margin-top:28px;color:var(--muted);font-size:10px;display:flex;justify-content:space-between;gap:10px}.confirm-copy{font-size:13px;color:var(--text);line-height:1.9}.help-list{display:grid;gap:16px}.help-list p{font-size:12px;color:var(--muted)}.hide{display:none!important}
@media(min-width:1500px){.main{padding-left:48px;padding-right:48px}.hero-art{right:-8px;width:375px}.hero{min-height:314px}}
@media(max-width:1150px){.sidebar{width:190px;padding-left:13px;padding-right:13px}.main{margin-left:190px;padding:26px}.dashboard-grid{grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:18px}.hero{padding:26px}.hero h2{font-size:30px}.hero-art{width:275px;right:-77px}.metrics{gap:10px}.metric{padding:15px}.grid3{grid-template-columns:repeat(2,1fr)}.ring-row{gap:15px}.ring{width:111px;height:111px}.panel{padding:20px}}
@media(max-width:950px){.sidebar{width:80px;padding:29px 12px}.brand{margin:0 auto 40px}.brand span,.nav-caption,.nav button span,.nav .new,.local,.profile-button>div:not(.avatar),.profile-button>svg{display:none}.nav button{justify-content:center;padding:14px}.sidebar-bottom{margin-top:auto}.profile-button{justify-content:center}.main{margin-left:80px;padding:24px}.dashboard-grid{grid-template-columns:1fr 1fr}.hero h2{font-size:27px}.hero p{max-width:185px}.hero-art{width:230px;right:-91px;opacity:.5}.hero-content{width:90%}.hero{min-height:295px}.hero-tags{gap:9px}.grid2{gap:16px}.nutrition-hero{gap:20px;grid-template-columns:1fr}.metric-value{font-size:25px}.metric-foot{font-size:9px}.date{display:none}.day{gap:8px}#toast{left:calc(50% + 40px)}}
@media(max-width:740px){.sidebar{display:none}.main{margin-left:0;padding:env(safe-area-inset-top) 19px 100px}.topbar{padding-top:22px;padding-bottom:18px;margin-bottom:26px}.topbar .breadcrumb{font-size:10px}.topbar .breadcrumb>svg{display:none}.topbar .breadcrumb:before{content:'F';display:grid;place-items:center;background:var(--lime);color:var(--primary-text);width:26px;height:26px;border-radius:6px;font-size:19px;font-weight:850;font-style:italic}.top-actions{gap:8px}.demo{font-size:9px;padding:7px 9px}.top-actions .icon-btn{padding:7px}.page-heading{align-items:flex-start;margin-bottom:23px}h1{font-size:29px}.page-heading p{font-size:12px;line-height:1.7}.heading-actions{gap:7px}.heading-actions button{font-size:11px;padding:10px}.heading-actions button svg{height:15px;width:15px}.metrics{grid-template-columns:1fr 1fr;gap:11px;margin-bottom:20px}.metric{padding:17px}.metric-value{font-size:28px}.metric-top{font-size:11px}.metric-foot{font-size:10px}.dashboard-grid{grid-template-columns:1fr;gap:20px}.left-column,.right-column{gap:20px}.hero{min-height:282px;padding:25px}.hero h2{font-size:32px;max-width:245px}.hero-content{width:80%}.hero p{max-width:205px}.hero-art{width:290px;right:-83px;bottom:-25px;opacity:.55}.hero-tags{gap:18px}.panel{padding:21px}.week{gap:7px}.day{padding:12px 4px}.ring-row{justify-content:space-evenly}.ring{width:140px;height:140px}.ring-center strong{font-size:29px}.grid2{grid-template-columns:1fr;gap:20px}.grid3{gap:13px}.exercise-card .exercise-image{height:130px}.exercise-art{width:170px;height:125px}.exercise-card-info{padding:15px 13px}.exercise-card h3{font-size:12px;line-height:1.6}.exercise-card-info p{font-size:10px}.routine-top{padding:20px}.routine-top h2{font-size:22px}.routine-top .exercise-art{width:160px;right:-55px}.routine-content{padding:18px}.routine-facts{gap:12px;font-size:10px}.routine-actions .primary{font-size:11px;padding:10px}.routine-actions .icon-btn{padding:9px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;z-index:25;border-top:1px solid var(--accent-line);background:var(--nav-glass);backdrop-filter:blur(14px);padding:9px 5px calc(9px + env(safe-area-inset-bottom))}.mobile-nav button{border:0;background:none;display:grid;gap:5px;place-items:center;padding:6px 9px;color:var(--muted);font-size:9px;font-weight:500}.mobile-nav button svg{width:21px;height:21px}.mobile-nav button.active{color:var(--lime)}#toast{left:50%;bottom:88px;font-size:11px;min-width:250px;text-align:center}.form-grid{gap:15px}.meal-review{grid-template-columns:repeat(2,1fr)}.set-table th,.set-table td{padding:8px 4px}.set-table input{width:65px;font-size:12px;padding:9px 6px}.set-table td:first-child{width:30px}.session-exercise-head{gap:12px}.session-exercise-head h2{font-size:13px}.rest-bar{bottom:80px;padding:15px 18px}.session-header{gap:10px}.session-header h1{font-size:23px}.session-header .elapsed{font-size:23px}.nutrition-hero{grid-template-columns:1fr}.nutrition-hero .ring-row{gap:22px}.nutrition-hero .ring{width:155px;height:155px}.footer{font-size:9px}.progress-chart{height:200px}.coach-message.user{margin-left:20px}.ai-box .between{gap:8px}.ai-box .between button{padding:10px 12px;font-size:11px}}
.routine-choice{border:1px solid var(--line);border-radius:10px;padding:12px;background:var(--accent-soft)}.checkbox-list .routine-choice>label{background:none;padding:0;font-size:12px}.routine-targets{display:flex;gap:14px;margin-top:13px;padding-left:24px}.checkbox-list .routine-targets label{padding:0;background:none;font-size:10px;gap:9px}.routine-targets input{width:65px;padding:7px;font-size:12px}.form-grid>label{min-width:0}.form-grid input,.form-grid select{width:100%;min-width:0}.grid2>*,.grid3>*{min-width:0}
@media(max-width:740px){.routine-grid{grid-template-columns:1fr}.routine-top .exercise-art{width:215px;right:10px}.routine-top h2{font-size:26px}.routine-actions .primary{font-size:13px}.routine-content{padding:21px}.nutrition-hero .ring{width:137px;height:137px}.nutrition-hero .ring-center strong{font-size:30px}.nutrition-hero .ring-row{gap:15px}.ring-details strong{font-size:24px}.heading-actions{flex:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.split-panel{margin-bottom:25px}.split-panel .panel-head{align-items:flex-start}.split-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:23px}.split-preset{border:1px solid var(--accent-line);border-radius:14px;padding:20px;background:linear-gradient(145deg,var(--accent-soft),var(--panel));display:flex;flex-direction:column;align-items:stretch}.split-preset h3{margin-top:18px;font-size:18px;letter-spacing:-.4px}.split-preset p{color:var(--muted);font-size:12px;line-height:1.85;margin:12px 0 20px;flex:1}.split-preset button{font-size:11px}.split-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.split-day{min-height:107px;padding:13px 10px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;background:var(--accent-soft);color:var(--lime);border:1px solid var(--accent-line);border-radius:10px;gap:10px}.split-day span{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}.split-day strong{font-size:11px;line-height:1.6;font-weight:500;text-align:left;overflow-wrap:anywhere}.split-day.rest{background:var(--panel2);border-color:var(--line);color:var(--muted)}.saved-splits{border-top:1px solid var(--line);margin-top:22px;padding-top:23px}.saved-split{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--line)}.saved-split:last-child{border-bottom:0}.saved-split strong{font-size:13px;font-weight:550}.saved-split p{font-size:10px;color:var(--muted);margin-top:5px}.split-editor-days{display:grid;gap:14px;margin:21px 0}.split-editor-day{background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:14px}.split-editor-day .between{margin-bottom:14px}.split-editor-day .eyebrow{font-size:10px}.split-editor-day .form-grid{gap:12px}.history-tabs{margin-bottom:22px}.lift-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:22px}.lift-stats>div{padding:13px 12px;background:var(--panel2);border:1px solid var(--accent-line);border-radius:10px;min-width:0}.lift-stats span{display:block;color:var(--muted);font-size:10px}.lift-stats strong{display:block;font-weight:600;font-size:19px;margin-top:9px;overflow-wrap:anywhere}.lift-stats small{color:var(--muted);font-size:10px;font-weight:400}.lift-log{display:grid;gap:16px;margin-top:23px}.lift-entry{border:1px solid var(--line);border-radius:12px;padding:17px;background:var(--panel2)}.lift-entry h3{font-size:13px}.lift-entry p{font-size:10px;color:var(--muted);margin-top:5px}.lift-sets{list-style:none;padding:0;margin:16px 0 0;border-top:1px solid var(--line)}.lift-sets li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.lift-sets li:last-child{border:0;padding-bottom:0}.lift-sets span{font-size:11px;color:var(--muted)}.lift-sets strong{font-size:12px;font-weight:500}.last-lift{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:-3px 0 13px;padding:13px 15px;background:var(--accent-soft);border:1px solid var(--accent-line);border-radius:10px}.last-lift p{color:var(--text);font-size:11px}.last-lift .source-note{font-size:10px;margin-top:4px;color:var(--muted);line-height:1.7}.last-lift-actions{display:flex;align-items:center;gap:15px;flex:none}.previous-set{font-size:9px;display:block;color:var(--muted);margin-top:5px;white-space:nowrap}.routine-last{border-top:1px solid var(--line);padding-top:15px;margin-top:17px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:10px}
@media(max-width:950px){.split-week{grid-template-columns:repeat(4,minmax(0,1fr))}.last-lift{flex-direction:column;align-items:stretch;gap:12px}.last-lift-actions{justify-content:space-between}}
@media(max-width:740px){.split-presets{grid-template-columns:1fr}.split-preset{padding:20px}.split-preset h3{font-size:20px}.split-preset p{margin-bottom:16px}.split-preset button{font-size:12px;padding:11px}.split-week{grid-template-columns:repeat(2,minmax(0,1fr))}.split-panel .panel-head{flex-wrap:wrap;gap:15px}.split-panel .space{flex-wrap:wrap}.split-editor-day .form-grid{grid-template-columns:1fr}.saved-split{flex-wrap:wrap}.lift-stats{grid-template-columns:1fr 1fr}.lift-stats>div:last-child{grid-column:1/-1}.lift-stats strong{font-size:20px}.last-lift{padding:12px}.last-lift-actions .link{font-size:11px}.previous-set{font-size:8px}.lift-entry{padding:14px}.split-day{min-height:100px}.lift-sets span{font-size:10px}.lift-sets strong{font-size:11px}}
.saved-split>div:first-child{min-width:0;flex:1}.saved-split strong{overflow-wrap:anywhere}
@media(max-width:380px){.session-exercise{padding:16px 12px}.set-table input{width:48px;padding:8px 4px;font-size:11px}.set-table th,.set-table td{padding:8px 3px}.set-table td:first-child{width:22px}.complete-set{width:29px;height:33px}.previous-set{max-width:50px;white-space:normal;font-size:8px;line-height:1.5}.session-exercise-head{gap:9px}.session-exercise-head h2{font-size:12px}.session-exercise-head .mini-art{width:56px;flex-basis:56px}}
/* Apple Health — readable recovery context at every screen size. */
.health-connect{display:flex;gap:24px;padding:32px;background:radial-gradient(ellipse at top right,var(--accent-soft),transparent 65%),var(--panel)}
.health-mark{width:64px;height:64px;background:var(--accent-soft);color:var(--lime);border:1px solid var(--accent-line);border-radius:20px;display:grid;place-items:center;flex-shrink:0}
.health-connect h2{font-size:26px;margin:12px 0}.health-connect p{max-width:650px;color:var(--muted);line-height:1.7}
.health-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}.health-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:24px}.health-stats article{border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:24px;position:relative;min-width:0}.health-stats svg{position:absolute;right:20px;top:24px;color:var(--lime)}.health-stats small{display:block;color:var(--muted);margin-bottom:16px}.health-stats strong{display:block;font-size:30px;letter-spacing:-1px}.health-stats p{font-size:11px;color:var(--muted);margin-top:12px;line-height:1.5}.health-insight{border-color:var(--accent-line)}.health-insight p{line-height:1.7;font-size:14px;max-width:800px}.health-insight small{color:var(--muted)}.health-table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}.health-table th,.health-table td{padding:14px 10px;text-align:right;border-bottom:1px solid var(--line)}.health-table th{color:var(--muted);font-size:11px;font-weight:500}.health-table th:first-child,.health-table td:first-child{text-align:left}.health-vitals{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin-top:24px}.health-vitals div{display:flex;flex-direction:column;gap:8px;background:var(--accent-soft);border-radius:9px;padding:12px;min-width:0}.health-vitals small,.health-vitals span{font-size:10px;color:var(--muted)}.health-vitals strong{font-size:12px}.health-scope-list{display:grid;gap:8px}.health-scope-list label{display:flex;flex-direction:row;align-items:center;gap:14px;border:1px solid var(--line);border-radius:10px;padding:14px;cursor:pointer}.health-scope-list input{width:18px;height:18px;accent-color:var(--lime);flex-shrink:0}.health-scope-list span{display:flex;flex-direction:column;gap:5px}.health-scope-list small{font-size:11px;color:var(--muted);line-height:1.4}.health-mini p{line-height:1.6;color:var(--muted);font-size:12px}.health-mini svg{color:var(--lime)}.health-mini .flex{align-items:flex-start}.health-mini h3{line-height:1.5}
@media(max-width:740px){.health-connect{padding:22px;gap:14px}.health-mark{width:44px;height:44px;border-radius:14px}.health-connect h2{font-size:22px}.health-stats{grid-template-columns:1fr;gap:10px}.health-stats article{padding:20px}.health-stats small{margin-bottom:10px}.health-stats strong{font-size:28px}.health-vitals{grid-template-columns:repeat(3,1fr)}.health-table th,.health-table td{padding:12px 4px;font-size:11px}.health-connect .health-actions button{width:100%}.health-connect p{font-size:13px}.health-table-wrap{overflow-x:auto}}
@media(max-height:800px) and (min-width:741px){.sidebar .local{display:none}}

/* Readability and layout: visible labels, consistent controls, and room to wrap. */
:root { --muted: #adb5a6; --line: #384132; }
body { font-size:15px; }
button { min-height:44px; line-height:1.4; }
button svg { flex-shrink:0; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline:2px solid var(--lime); outline-offset:3px;
}
h1, h2, h3, .setting-row strong, .saved-split strong { overflow-wrap:anywhere; }
.sidebar { padding-top:26px; overflow-y:auto; overscroll-behavior:contain; }
.brand { margin-bottom:25px; flex-shrink:0; }
.nav { gap:4px; flex-shrink:0; }
.nav-group-label { padding:16px 15px 7px; color:var(--muted); font-size:11px; font-weight:650; letter-spacing:1.5px; }
.nav-group-label:first-child { padding-top:0; }
.nav button { font-size:14px; min-height:46px; padding:10px 15px; }
.nav button > span { min-width:0; }
.nav button.active { box-shadow:inset 3px 0 var(--lime); }
.sidebar-bottom { flex-shrink:0; padding-top:22px; gap:16px; }
.local { font-size:12px; }
.profile-button small { font-size:11px; }
.breadcrumb { font-size:13px; gap:10px; min-width:0; }
.workspace-label { font-weight:650; letter-spacing:1px; }
.breadcrumb strong { color:var(--text); }
.top-actions { flex-shrink:0; }
.demo { font-size:11px; }
.page-heading { gap:20px; }
.page-heading > div:first-child { min-width:0; }
.page-heading p { font-size:14px; max-width:650px; }
.heading-actions { flex-shrink:0; flex-wrap:wrap; }
.panel, .metric, .left-column, .right-column { min-width:0; }
.panel-head { flex-wrap:wrap; gap:12px; }
.panel-head > div { min-width:0; flex:1; }
.panel-head h2 { font-size:18px; line-height:1.4; }
.panel-head p, .source-note, .settings-panel p, .modal-sub, .confirm-copy { font-size:13px; line-height:1.65; }
.source-note { max-width:75ch; }
.small, .link { font-size:13px; }
.link { min-height:36px; text-align:left; }
.metric-top { font-size:13px; gap:10px; }
.metric-top svg { flex-shrink:0; }
.metric-value { flex-wrap:wrap; row-gap:4px; font-variant-numeric:tabular-nums; }
.metric-value small { font-size:13px; }
.metric-foot { font-size:12px; line-height:1.5; align-items:flex-start; }
.hero p { font-size:14px; max-width:270px; }
.hero .eyebrow, .hero-tags { font-size:12px; }
.hero-content { width:72%; }
.hero-art { opacity:.55; pointer-events:none; }
.macro-label { font-size:13px; gap:10px; }
.macro-label span:last-child, .ring-center span, .ring-details small { font-size:12px; }
.ring-details { min-width:0; }
.nutrition-hero { grid-template-columns:1fr; gap:24px; }
.nutrition-hero .ring-row { justify-content:flex-start; flex-wrap:wrap; }
.ai-box .between { flex-wrap:wrap; gap:14px; }
.ai-box p, .coach-card p { font-size:14px; }
.routine-top { isolation:isolate; }
.routine-top .exercise-art { opacity:.22; z-index:-1; pointer-events:none; }
.routine-top h2 { line-height:1.3; }
.routine-content p, .routine-facts, .routine-last { font-size:13px; }
.routine-facts { flex-wrap:wrap; gap:14px; }
.routine-facts span { display:flex; align-items:center; gap:5px; }
.exercise-card h3 { font-size:15px; line-height:1.4; }
.exercise-card-info p, .exercise-card-info .between { font-size:12px; }
.history-row strong, .meal h3, .setting-row strong { font-size:14px; line-height:1.5; }
.history-row p, .meal p, .setting-row small { font-size:12px; line-height:1.6; }
.history-row > .flex, .meal > div:nth-child(2), .setting-row > div:first-child { min-width:0; flex:1; }
.history-row .history-icon, .meal-symbol { flex-shrink:0; }
.history-value { flex-shrink:0; font-size:13px; }
.meal h3, .meal p, .history-row strong, .plan-row h3 { overflow-wrap:anywhere; }
.meal .cal { flex-shrink:0; }
.setting-row > button { flex-shrink:0; }
.water { flex-wrap:wrap; gap:16px; }
.water h3, .gym-mini h3 { font-size:14px; }
.water p, .gym-mini p { font-size:12px; }
label { font-size:14px; line-height:1.5; }
label small { font-size:12px; line-height:1.6; }
input:not([type=checkbox]), select, textarea { min-height:44px; font-size:16px; }
input::placeholder, textarea::placeholder { color:var(--muted); }
.form-actions { flex-wrap:wrap; }
.form-actions button { max-width:100%; }
.modal-head { gap:16px; align-items:flex-start; }
.modal-head h2 { font-size:23px; line-height:1.35; }
.modal-head button { min-width:44px; min-height:44px; flex-shrink:0; border:1px solid var(--line); border-radius:10px; }
.notice { font-size:13px; }
.footer { font-size:11px; color:var(--muted); gap:16px; flex-wrap:wrap; line-height:1.5; }
.split-preset p { font-size:13px; line-height:1.65; }
.split-preset button { font-size:13px; }
.split-day span { font-size:12px; }
.split-day strong { font-size:13px; }
.split-day.rest { color:var(--muted); }
.saved-split p { font-size:12px; }
.lift-stats span, .lift-stats small, .lift-entry p { font-size:12px; }
.lift-entry h3, .lift-sets strong { font-size:14px; }
.lift-sets span, .last-lift p, .last-lift .source-note { font-size:12px; }
.previous-set { font-size:11px; white-space:normal; line-height:1.5; max-width:none; }
.session-exercise-head h2 { font-size:17px; line-height:1.4; }
.session-exercise-head p { font-size:12px; line-height:1.6; }
.session-exercise-head > div:nth-child(2) { min-width:0; }
.set-table th { font-size:12px; font-weight:550; }
.complete-set { width:44px; height:44px; }
.set-table .done input { opacity:1; color:var(--text); background:var(--accent-soft); border-color:var(--accent-line); }
.coach-message { font-size:15px; line-height:1.7; }
.coach-thread .eyebrow { font-size:11px; }
.health-stats p, .health-stats small, .health-vitals small, .health-vitals span, .health-scope-list small { font-size:12px; }
.health-stats strong { font-size:28px; }
.health-table th { font-size:12px; }
.health-mini p { font-size:13px; }
.more-menu { display:grid; gap:10px; }
.more-menu-item { justify-content:flex-start; gap:14px; padding:16px; text-align:left; background:var(--panel2); }
.more-menu-item > svg:first-child { color:var(--lime); }
.more-menu-item > svg:last-child { margin-left:auto; }
.more-menu-item span { min-width:0; }
.more-menu-item strong { display:block; font-size:15px; }
.more-menu-item small { display:block; font-size:12px; color:var(--muted); line-height:1.5; margin-top:5px; }
@media (max-width: 1150px) and (min-width: 741px) {
  .dashboard-grid { grid-template-columns:1fr; }
  .right-column { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
  .hero-art { width:310px; right:-20px; }
  .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 950px) and (min-width: 741px) {
  .sidebar { width:190px; padding:24px 13px; }
  .brand { margin:0 12px 25px; font-size:24px; }
  .brand span, .nav button span { display:inline; }
  .nav button { justify-content:flex-start; padding:10px 12px; }
  .profile-button { justify-content:flex-start; }
  .main { margin-left:190px; padding:24px; }
  .grid2, .grid3, .split-presets, .health-stats { grid-template-columns:1fr; }
  .right-column { display:flex; }
  #toast { left:calc(50% + 95px); }
}
@media (max-height: 800px) and (min-width: 741px) {
  .sidebar .local { display:none; }
}
@media (max-width: 740px) {
  .main { padding:calc(14px + env(safe-area-inset-top)) 18px calc(110px + env(safe-area-inset-bottom)); }
  .topbar { padding-top:0; gap:12px; }
  .topbar .breadcrumb { font-size:13px; gap:9px; }
  .workspace-label { display:none; }
  .demo { font-size:11px; padding:8px 10px; }
  .top-actions .icon-btn { width:44px; padding:10px; }
  .page-heading { display:block; }
  h1 { font-size:28px; line-height:1.2; }
  .page-heading p { font-size:14px; }
  .heading-actions { margin-top:16px; }
  .heading-actions button { font-size:14px; padding:11px 16px; }
  .panel { padding:20px; }
  .panel-head h2 { font-size:17px; }
  .panel-head > div { flex-basis:180px; }
  .panel-head .link { min-height:44px; }
  .metric { padding:16px 14px; }
  .metric-top { font-size:12px; }
  .metric-top svg { width:16px; height:16px; }
  .metric-value { font-size:27px; }
  .metric-foot { font-size:11px; }
  .hero { padding:24px; }
  .hero p { font-size:14px; }
  .hero-tags { flex-wrap:wrap; gap:12px; }
  .hero-art { opacity:.3; }
  .day { min-height:84px; font-size:12px; }
  .week { gap:4px; }
  .ring-row { flex-wrap:wrap; justify-content:flex-start; gap:18px; }
  .nutrition-hero .ring-row { justify-content:center; }
  .ring-details strong { font-size:26px; }
  .routine-content { padding:20px; }
  .routine-actions .primary { font-size:14px; }
  .form-grid { grid-template-columns:1fr; gap:18px; }
  .meal-review { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .meal { gap:10px; flex-wrap:wrap; }
  .meal > div:nth-child(2) { flex-basis:calc(100% - 58px); }
  .meal .cal { margin-left:52px; }
  .meal > button { margin-left:auto; }
  .setting-row { flex-wrap:wrap; align-items:flex-start; gap:12px; }
  .setting-row > div:first-child { flex-basis:calc(100% - 65px); }
  .setting-row > button { align-self:flex-start; }
  .water > .flex:last-child { flex-wrap:wrap; }
  .mobile-nav { gap:2px; padding:7px 4px calc(7px + env(safe-area-inset-bottom)); }
  .mobile-nav button { flex:1; min-width:0; min-height:52px; padding:6px 3px; font-size:11px; gap:5px; color:var(--muted); }
  .mobile-nav button.active { background:var(--accent-soft); border-radius:10px; }
  .mobile-nav button svg { width:22px; height:22px; }
  .session-header { align-items:flex-start; flex-wrap:wrap; }
  .session-header > div:nth-child(2) { flex:1; min-width:0; }
  .session-header .elapsed { flex-basis:100%; margin-left:54px; font-size:22px; }
  .session-exercise { padding:18px 12px; }
  .session-exercise-head { gap:10px; }
  .session-exercise-head h2 { font-size:15px; }
  .session-exercise-head .mini-art { width:48px; flex-basis:48px; }
  .mini-art svg { width:48px; }
  .set-table { table-layout:fixed; }
  .set-table th, .set-table td { padding:9px 3px; }
  .set-table th:first-child { width:26px; }
  .set-table th:nth-child(2) { width:33%; }
  .set-table th:last-child { width:48px; }
  .set-table input { width:100%; min-width:0; font-size:16px; padding:9px 4px; }
  .previous-set { font-size:11px; max-width:none; }
  .complete-set { width:44px; height:44px; }
  .last-lift-actions { flex-wrap:wrap; gap:10px; }
  .last-lift-actions .link { font-size:13px; min-height:44px; }
  .rest-bar { bottom:calc(82px + env(safe-area-inset-bottom)); }
  .footer { font-size:11px; }
  dialog { padding:20px; width:calc(100% - 24px); max-height:calc(100dvh - 40px); }
  .health-connect { flex-direction:column; }
  .health-table th, .health-table td { font-size:12px; }
  .health-vitals { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #toast { font-size:13px; bottom:calc(88px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .main { padding-left:16px; padding-right:16px; }
  #exercise-grid { grid-template-columns:1fr; }
  .exercise-card .exercise-image { height:160px; }
  .exercise-card-info { padding:18px; }
  .exercise-card h3 { font-size:16px; }
  .exercise-art.large { width:100%; max-width:330px; height:210px; }
  .health-connect h2 { font-size:23px; }
}
.chart text { font-size:12px; }
.pill { font-size:12px; }
.plan-row h3 { font-size:14px; }
.plan-row p { font-size:12px; line-height:1.6; }
.day.rest { color:var(--muted); }
.meal .eyebrow { font-size:11px !important; }
.coach-card .panel-head p { font-size:12px !important; }
.split-preset .muted { font-size:12px !important; }
.checkbox-list .routine-choice > label { font-size:14px; }
.routine-targets { flex-wrap:wrap; }
.checkbox-list .routine-targets label { font-size:13px; }
.routine-targets input { width:76px; font-size:16px; }
@media (max-width: 740px) {
  .routine-targets { padding-left:0; gap:12px; }
  .history-row { flex-wrap:wrap; }
  .history-row > .flex { flex-basis:100%; }
  .history-row .history-value { margin-left:47px; }
  .history-row > button { margin-left:auto; }
}
@media (max-width: 420px) {
  .set-table th:nth-child(2) { width:28%; }
}
input[type=number] { appearance:textfield; -moz-appearance:textfield; }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
@media (max-height: 700px) and (min-width: 741px) {
  .sidebar { padding-top:20px; padding-bottom:20px; }
  .brand { margin-bottom:12px; }
  .nav { gap:2px; }
  .nav button { min-height:44px; }
  .nav-group-label { font-size:11px; padding-top:10px; padding-bottom:6px; }
  .sidebar-bottom { padding-top:12px; }
}
.sidebar { scrollbar-width:thin; scrollbar-color:var(--line) transparent; }
@media (max-width: 950px) and (min-width: 741px) {
  .profile-button > div:not(.avatar) { display:block; flex:1; min-width:0; }
  .profile-button > svg { display:block; flex-shrink:0; }
  .profile-button small { display:block; line-height:1.5; }
}

/* Coordinated appearance tokens; accents are set from the saved theme preference. */
:root {
  color-scheme: dark;
  --bg: #101210; --sidebar: #121512; --panel: #191c19; --panel2: #222820;
  --input: #11150f; --track: #343c30; --text: #f0f2ec; --muted: #adb5a6; --line: #384132;
  --accent-soft: color-mix(in srgb, var(--lime) 12%, var(--panel));
  --accent-line: color-mix(in srgb, var(--lime) 34%, var(--line));
  --accent-hover: color-mix(in srgb, var(--lime) 82%, white);
  --hero-start: color-mix(in srgb, var(--lime) 17%, var(--panel));
  --hero-end: color-mix(in srgb, var(--lime) 4%, var(--bg));
  --primary-text: #14200d; --figure: #bbc5b3; --figure-head: #e5e8e0; --equipment: #7c946c;
  --danger: #ffb1a4; --warning-bg: #352c1e; --warning-line: #806442; --warning-text: #f2d2a5;
  --water-bg: #253234; --water-text: #9ecacb;
  --nav-glass: color-mix(in srgb, var(--sidebar) 94%, transparent); --backdrop: #060a05b8;
}
:root[data-appearance=light] {
  color-scheme: light;
  --bg: #f4f6f2; --sidebar: #ffffff; --panel: #ffffff; --panel2: #edf1e9;
  --input: #ffffff; --track: #dce3d6; --text: #20271c; --muted: #535f4d; --line: #ccd5c6;
  --accent-hover: color-mix(in srgb, var(--lime) 85%, black);
  --primary-text: #ffffff; --figure: #56634f; --figure-head: #354031; --equipment: #697a61;
  --danger: #a72d25; --warning-bg: #fff1d8; --warning-line: #cba057; --warning-text: #744b0c;
  --water-bg: #deeff0; --water-text: #285c65; --purple: #7042ac; --orange: #985017;
  --backdrop: #1a241c85;
}
.primary, .done .complete-set, .topbar .breadcrumb:before, .nav .new { color: var(--primary-text); }
.sidebar .brand img { filter: hue-rotate(var(--art-hue, 0deg)); }
.hero { background: linear-gradient(110deg, var(--hero-start), var(--hero-end)); }
.hero-art { filter: hue-rotate(var(--art-hue, 0deg)); }
.hero .eyebrow { color: var(--text); }
.hero .eyebrow span { color: var(--muted); }
.coach-card, .ai-box, .split-preset, .routine-top, .exercise-card .exercise-image {
  background: linear-gradient(135deg, var(--accent-soft), var(--panel));
}
.health-connect { background: radial-gradient(ellipse at top right, var(--accent-soft), transparent 65%), var(--panel); }
.coach-message { color: var(--text); }
.source-note a { color: var(--lime); }
:root[data-appearance=light] .hero-art { opacity: .8; }
:root[data-appearance=light] dialog { box-shadow: 0 25px 90px #18241433; }
.theme-picker { display: grid; gap: 24px; }
.theme-picker fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.theme-picker legend { padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--text); }
.theme-modes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.theme-accents { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.theme-choice { position: relative; cursor: pointer; padding: 16px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); color: var(--text); font-size: 14px; }
.theme-choice:hover { background: var(--accent-soft); }
.theme-choice:has(input:checked) { border: 2px solid var(--lime); padding: 15px 11px; background: var(--accent-soft); }
.theme-choice:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 3px; }
.theme-choice input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; min-height: 44px; padding: 0; margin: 0; border: 0; border-radius: inherit; cursor: pointer; z-index: 1; }
.theme-modes .theme-choice > span { display: flex; align-items: center; justify-content: center; gap: 9px; }
.theme-modes strong { font-weight: 550; }
.theme-modes svg { flex-shrink: 0; color: var(--muted); }
.theme-modes .theme-choice:has(input:checked) svg { color: var(--lime); }
.theme-color { align-content: start; gap: 6px; }
.theme-color strong { font-size: 14px; font-weight: 600; margin-top: 6px; }
.theme-color small { color: var(--muted); font-size: 12px; }
.theme-swatch { display: flex; align-items: flex-end; gap: 5px; width: 100%; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.theme-swatch i { height: 10px; background: var(--swatch); border-radius: 3px; flex: 1; }
.theme-swatch i:nth-child(2) { height: 18px; opacity: .75; }
.theme-swatch i:nth-child(3) { height: 24px; opacity: .45; }
.theme-selected { display: none; position: absolute; top: 8px; right: 8px; background: var(--lime); color: var(--primary-text); border-radius: 50%; width: 24px; height: 24px; place-items: center; }
.theme-choice:has(input:checked) .theme-selected { display: grid; }
.appearance-panel #theme-status { margin: 20px 0 0; }
.library-intro { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:24px; border:1px solid var(--line); border-radius:16px; background:linear-gradient(120deg,var(--accent-soft),var(--panel)); margin-bottom:24px; }
.library-intro h2 { margin:8px 0; font-size:24px; letter-spacing:-.6px; }
.library-intro p { margin:0; font-size:14px; color:var(--muted); }
.library-toolbar { display:grid; gap:16px; }
.library-toolbar .search-box { max-width:none; width:100%; }
.library-selects { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; max-width:600px; }
.library-selects label { font-size:13px; gap:7px; }
.library-toolbar .chips { flex-wrap:wrap; }
.library-count { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:18px 0; color:var(--muted); font-size:13px; }
.exercise-card .exercise-image { height:204px; overflow:hidden; }
.exercise-card .exercise-image .exercise-art { width:100%; max-width:260px; height:190px; }
.exercise-card-info h3 { line-height:1.4; }
.movement-art { display:block; width:100%; height:auto; }
.anatomical-art { isolation:isolate; }
.movement-viewer .anatomical-art { max-height:340px; }
.movement-viewer[data-view="compare"] .anatomical-art { height:230px; }
.anatomy-legend { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; line-height:1.5; margin:12px 0 0; }
.anatomy-legend::before { content:''; flex:none; width:10px; height:10px; border-radius:3px; background:#e36556; }
@media(max-width:740px){.movement-viewer .anatomical-art { max-height:310px; }.movement-viewer[data-view="compare"] .anatomical-art { height:260px; }}
.movement-art { --skin:#c6c5bf; --skin-edge:#646d73; --shirt:#536b80; --shorts:#2c3b48; --metal:#c2ccd0; --shoe:#d7dedc; }
[data-appearance="light"] .movement-art { --skin:#dfc6ad; --skin-edge:#7e7165; --shirt:#50697f; --shorts:#293d4e; --metal:#596973; --shoe:#eef0ed; }
.art-skin { fill:var(--skin); stroke:var(--skin-edge); stroke-width:.8; stroke-linejoin:round; }
.art-far { filter:brightness(.79); }
.art-shirt { fill:var(--shirt); stroke:var(--shorts); stroke-width:1; }
.art-shirt-seam { fill:none; stroke:#acbac5; stroke-width:.9; opacity:.6; }
.art-shorts { fill:var(--shorts); stroke:var(--skin-edge); stroke-width:.7; }
.art-crease { fill:none; stroke:var(--skin-edge); stroke-width:.7; opacity:.65; }
.art-hair { fill:#29343d; }
.art-face { fill:none; stroke:var(--skin-edge); stroke-width:.65; }
.art-shoe { fill:var(--shoe); stroke:var(--skin-edge); stroke-width:.8; }
.art-sole { fill:none; stroke:var(--shorts); stroke-width:1.5; }
.art-metal { fill:none; stroke:var(--metal); stroke-linecap:round; }
.motion-weight { stroke:var(--metal); stroke-width:.8; }
.art-pad { fill:none; stroke:var(--shorts); stroke-width:9; stroke-linecap:round; }
.art-stack rect,.art-pulley { fill:var(--panel); stroke:var(--equipment); stroke-width:1.5; }
.art-stack path { stroke:var(--equipment); stroke-width:1; }
.art-pin { fill:var(--lime); }
.guide-view-controls { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; padding:4px; background:var(--panel2); border:1px solid var(--line); border-radius:12px; margin-top:20px; }
.guide-view-controls button { min-height:44px; padding:10px 7px; font-size:13px; border:0; background:transparent; color:var(--muted); border-radius:8px; }
.guide-view-controls button[aria-pressed="true"] { background:var(--panel); color:var(--text); box-shadow:0 1px 5px #0002; }
.guide-view-controls button:focus-visible { outline:2px solid var(--lime); outline-offset:1px; }
.movement-viewer[data-view="start"] .movement-stage:last-child,.movement-viewer[data-view="finish"] .movement-stage:first-child { display:none; }
.movement-viewer[data-view="start"] .movement-stages,.movement-viewer[data-view="finish"] .movement-stages { grid-template-columns:minmax(0,1fr); }
.movement-viewer .movement-art { max-width:440px; margin:auto; }
.movement-viewer .movement-stages { margin-top:12px; }
.movement-viewer .movement-stage { background:radial-gradient(ellipse at 50% 48%,var(--panel),var(--panel2)); }
.movement-viewer .stage-top { display:flex; gap:8px; }
.movement-viewer .stage-top small { margin:0; }
.movement-viewer .movement-return { margin-bottom:22px; }
@media(max-width:740px){.movement-viewer[data-view="compare"] .movement-stages { grid-template-columns:minmax(0,1fr); }.movement-viewer[data-view="compare"] .movement-art { max-width:320px; }.movement-viewer .movement-stage { padding:14px; }.movement-viewer .stage-top small { font-size:10px; }}
.motion-floor { fill:none; stroke:var(--line); stroke-width:1.5; }
.motion-limb { fill:none; stroke:var(--figure); stroke-width:12; stroke-linecap:round; stroke-linejoin:round; }
.motion-joint { fill:var(--figure-head); opacity:.55; }
.motion-head { fill:var(--figure-head); }
.motion-torso { fill:var(--figure); stroke:var(--figure-head); stroke-width:1; stroke-linejoin:round; }
.motion-weight { fill:var(--equipment); }
.motion-machine { fill:none; stroke:var(--equipment); stroke-width:5; stroke-linecap:round; stroke-linejoin:round; }
.motion-mat { fill:none; stroke:var(--equipment); stroke-width:4; stroke-linecap:round; }
.movement-stages { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:20px; }
.movement-stage { margin:0; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--panel2); min-width:0; }
.stage-top { display:flex; align-items:center; gap:8px; }
.stage-top > span { font-size:15px; color:var(--lime); font-weight:700; }
.stage-top small { font-size:10px; letter-spacing:.6px; color:var(--muted); }
.movement-stage figcaption { font-size:13px; line-height:1.4; font-weight:600; padding:8px 2px 0; }
.movement-return { font-size:13px; color:var(--muted); line-height:1.5; margin:12px 0 24px; }
.guide-muscles { display:grid; grid-template-columns:1fr; gap:22px; padding:20px; border:1px solid var(--line); border-radius:12px; }
.muscle-map { display:block; width:100%; max-width:440px; height:auto; margin:auto; }
.map-region { fill:none; stroke:none; }
.map-primary { fill:#ff663f; fill-opacity:.94; stroke:none; }
.muscle-map text { fill:var(--muted); font-size:18px; letter-spacing:2px; }
.athlete-muscle-map { border-radius:12px; }
.muscle-key h3 { margin:0 0 12px; font-size:15px; }
.muscle-key p { margin:12px 0; font-size:13px; line-height:1.6; }
.muscle-key .source-note { font-size:12px; }
.muscle-symbol { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px; background:#ff6b47; }
.muscle-secondary .muscle-symbol { background:transparent; border:1.5px dashed var(--muted); }
.muscle-stabilizer .muscle-symbol { background:transparent; border:1.5px solid var(--muted); border-radius:50%; }
.muscle-key .target-focus { font-size:12px; color:var(--text); }
.guide-load,.guide-watch { margin:20px 0; padding:15px 17px; background:var(--panel2); border:1px solid var(--line); border-radius:10px; font-size:14px; }
.guide-load { border-left:3px solid var(--lime); }
.guide-load p,.guide-watch p { margin:6px 0 0; font-size:13px; line-height:1.6; color:var(--muted); }
.guide-section-title { margin:24px 0 10px; }
.style-guide-list { display:grid; gap:12px; margin:20px 0; }
.style-guide-card { display:flex; align-items:flex-start; gap:14px; padding:18px; border:1px solid var(--line); border-radius:12px; background:var(--panel2); }
.style-guide-number { color:var(--lime); font-size:16px; font-weight:600; }
.style-guide-card h3 { margin:7px 0 9px; font-size:17px; }
.style-guide-card p { margin:0; font-size:14px; line-height:1.6; }
.style-guide-card .style-practice { color:var(--muted); margin-top:10px; font-size:13px; }
.session-exercise-head .session-load-note { font-size:12px; line-height:1.6; margin-top:5px; }
.routine-group h3 { margin:22px 0 10px; font-size:15px; color:var(--lime); }
.routine-group:first-child h3 { margin-top:8px; }
.routine-group { min-width:0; }
@media(max-width:740px){
  .library-intro { display:block; padding:20px; }
  .library-intro button { margin-top:18px; }
  .library-intro h2 { font-size:22px; }
  .movement-stage { padding:10px 7px; }
  .stage-top { display:block; }
  .stage-top small { display:block; margin-top:4px; font-size:9px; }
  .guide-muscles { grid-template-columns:1fr; gap:12px; padding:16px; }
  .muscle-map { max-width:420px; margin:auto; }
  .muscle-key { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px; }
  .muscle-key h3,.muscle-key .source-note,.muscle-key .target-focus,.muscle-key .muscle-stabilizer { grid-column:1/-1; }
  .muscle-key h3 { font-size:14px; }
  .muscle-key p { font-size:12px; }
  .muscle-key .source-note { font-size:11px; }
  .style-guide-card { padding:15px; gap:10px; }
}
@media(max-width:360px){.movement-stages { grid-template-columns:1fr; }.movement-stage .movement-art { max-width:240px; margin:auto; }.stage-top { display:flex; }.stage-top small { margin:0; }}
@media (max-width: 740px) {
  .theme-accents { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .theme-modes .theme-choice > span { display: grid; place-items: center; text-align: center; gap: 10px; }
  .theme-modes .theme-choice { padding: 14px 7px; }
  .theme-modes .theme-choice:has(input:checked) { padding: 13px 6px; }
  .theme-modes strong { font-size: 13px; line-height: 1.4; overflow-wrap: normal; }
}

.guide-grip{padding:14px 16px;margin:12px 0 20px;border:1px solid var(--line);border-radius:12px}.guide-grip p{margin:8px 0 0;font-size:13px;line-height:1.6;color:var(--muted)}
[hidden]{display:none!important}

/* Small image copies use the same bounded slots as the original SVG artwork. */
.mini-art img.exercise-thumb,.cockpit-art img.exercise-thumb{display:block;width:100%;height:100%;max-width:100%;object-fit:contain}
