:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#161817;background:#f5f2ec;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(180deg,#5b8f7814,#f5f2ec00 220px),#f5f2ec}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}.app-shell{width:min(100%,680px);min-height:100vh;margin:0 auto;padding:max(18px,env(safe-area-inset-top)) 14px calc(92px + env(safe-area-inset-bottom))}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.topbar-actions,.action-row,.account-actions{display:inline-flex;align-items:center;gap:8px}.topbar h1,.hero-panel h2,.section-heading h2,.rules-panel h3,.history-card h3{margin:0;letter-spacing:0}.topbar h1{font-size:25px;line-height:1.08}.eyebrow{margin:0 0 5px;color:#6d746f;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.week-pill,.status-pill,.meta-row,.chip,.icon-button,.done-button{display:inline-flex;align-items:center;justify-content:center}.week-pill{gap:7px;min-width:70px;height:38px;border:1px solid #dcd6ca;border-radius:999px;background:#fffaf1;font-weight:800}.status-pill{width:38px;height:38px;border:1px solid #dcd6ca;border-radius:999px;background:#fffaf1;color:#101312}.mode-pill{display:inline-flex;align-items:center;gap:5px;min-width:68px;height:38px;justify-content:center;border:1px solid #dcd6ca;border-radius:999px;background:#fffaf1;color:#6a6256;font-size:12px;font-weight:900}.mode-pill.cloud{border-color:#5b8f7861;background:#5b8f781f;color:#345646}.status-pill.muted{color:#9b332c}.toast-line{display:inline-flex;align-items:center;gap:7px;margin:-4px 0 12px;padding:8px 10px;border:1px solid rgba(91,143,120,.22);border-radius:8px;background:#5b8f7817;color:#345646;font-size:13px;font-weight:850}.account-row,.setup-panel,.auth-panel{border:1px solid #dcd6ca;border-radius:8px;background:#fffaf1db}.account-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding:12px}.account-row>div:first-child,.setup-panel{display:grid;gap:4px;min-width:0}.account-row strong,.setup-panel strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.account-row span,.setup-panel span{color:#69706a;font-size:12px;font-weight:750;line-height:1.35}.account-actions{flex:0 0 auto}.account-row button,.text-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;border:1px solid #d4cec1;border-radius:8px;background:#fffdf8;color:#424844;font-size:12px;font-weight:900;padding:0 10px}.setup-panel{margin-bottom:14px;padding:12px}.auth-panel{display:grid;gap:14px;padding:18px}.auth-panel h2{margin:0;font-size:24px;line-height:1.1}.auth-panel p{margin:8px 0 0;color:#5e655f;font-size:14px;line-height:1.45}.auth-panel form{display:grid;gap:11px}.auth-panel label{display:grid;gap:7px;color:#424844;font-size:13px;font-weight:850}.auth-panel input{width:100%;height:44px;border:1px solid #d4cec1;border-radius:8px;background:#fffdf8;padding:0 11px;color:#111412;font-weight:750}.auth-panel input:focus{border-color:#5b8f78;outline:3px solid rgba(91,143,120,.18)}.auth-panel .primary-action{margin-top:2px}.text-action{width:100%;background:transparent}.view-stack{display:grid;gap:14px}.hero-panel{display:grid;grid-template-columns:1fr 72px;align-items:center;gap:14px;padding:18px;border:1px solid #dcd6ca;border-radius:8px;background:#fffaf1;box-shadow:0 10px 26px #1013120f}.hero-panel h2{font-size:24px;line-height:1.08}.hero-panel p,.section-heading p,.history-card p,.rules-panel li{color:#5e655f;line-height:1.45}.hero-panel p{margin:8px 0 0;font-size:14px}.progress-ring{display:grid;place-items:center;width:72px;height:72px;border:8px solid #e7b65f;border-right-color:#5b8f78;border-radius:50%;color:#101312;font-size:16px;font-weight:900}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stats-grid div{display:grid;gap:3px;min-height:68px;align-content:center;padding:10px;border:1px solid #dcd6ca;border-radius:8px;background:#fffaf1c2}.stats-grid strong{color:#101312;font-size:22px;line-height:1}.stats-grid span{color:#69706a;font-size:12px;font-weight:800}.workout-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.workout-choice-list,.editor-list,.editor-exercises{display:grid;gap:10px}.workout-choice{display:grid;grid-template-columns:74px 1fr 22px;align-items:center;gap:12px;width:100%;min-height:78px;padding:13px;border:1px solid #dcd6ca;border-radius:8px;background:#fffaf1;color:#151816;text-align:left}.workout-choice>span{display:grid;gap:4px;min-width:0}.workout-choice strong{overflow-wrap:anywhere;font-size:15px;line-height:1.15}.workout-choice small{color:#69706a;font-size:12px;font-weight:750;line-height:1.3}.chip{min-height:42px;padding:0 9px;border:1px solid #dcd6ca;border-radius:999px;background:#fffaf1b8;color:#333734;font-weight:800}.chip.active{border-color:#101312;background:#101312;color:#f5f2ec}.meta-row{justify-content:space-between;padding:0 3px;color:#69706a;font-size:13px;font-weight:750}.draft-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #dcd6ca;border-radius:8px;background:#fffaf1b8}.draft-row div{display:grid;gap:3px;min-width:0}.draft-row strong{font-size:13px}.draft-row span{color:#6d746f;font-size:12px;font-weight:700}.draft-row button{display:inline-flex;flex:0 0 auto;align-items:center;gap:6px;min-height:36px;padding:0 10px;border:1px solid #d4cec1;border-radius:8px;background:#fffdf8;color:#424844;font-size:12px;font-weight:900}.row-actions,.history-actions{display:inline-flex;align-items:center;gap:7px}.row-actions{flex-wrap:wrap;justify-content:flex-end}.exercise-list,.history-list,.schedule-list{display:grid;gap:10px}.exercise-card,.history-card,.rules-panel,.empty-state{border:1px solid #dcd6ca;border-radius:8px;background:#fffaf1db}.exercise-heading{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;padding:15px;border:0;background:transparent;color:inherit;text-align:left}.exercise-heading strong{display:block;font-size:16px;line-height:1.25}.exercise-heading small{display:block;margin-top:5px;color:#6d746f;font-size:12px;line-height:1.3}.chevron{flex:0 0 auto;transition:transform .16s ease}.chevron.open{transform:rotate(180deg)}.exercise-body{display:grid;gap:12px;padding:0 15px 15px}.cue-row{display:flex;flex-wrap:wrap;gap:6px}.cue-row span{padding:6px 8px;border-radius:999px;background:#edf1ed;color:#48504b;font-size:12px;font-weight:700}.set-grid{display:grid;grid-template-columns:40px minmax(0,1fr) minmax(0,1fr) 50px;gap:8px;align-items:center}.set-grid>span{color:#747a75;font-size:12px;font-weight:800}.set-number{display:grid;place-items:center;height:42px;border-radius:8px;background:#efebe2;font-weight:900}.set-grid input{width:100%;height:42px;border:1px solid #d4cec1;border-radius:8px;background:#fffdf8;padding:0 10px;color:#111412;font-weight:750}.set-grid input:focus,.notes-box textarea:focus{border-color:#5b8f78;outline:3px solid rgba(91,143,120,.18)}.done-button,.icon-button{border:1px solid #d4cec1;border-radius:8px;background:#fffdf8;color:#4f5651}.done-button{width:50px;height:42px}.done-button.checked{border-color:#5b8f78;background:#5b8f78;color:#fff}.notes-box{display:grid;gap:8px;color:#424844;font-size:13px;font-weight:850}.notes-box textarea{min-height:86px;resize:vertical;border:1px solid #d4cec1;border-radius:8px;background:#fffdf8;padding:12px;color:#111412}.primary-action{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:52px;border:0;border-radius:8px;background:#101312;color:#fffaf1;font-weight:900}.primary-action-row{display:grid;grid-template-columns:1fr;gap:9px}.secondary-action{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:48px;border:1px solid #d4cec1;border-radius:8px;background:#fffdf8;color:#242927;font-weight:900}.plan-editor{display:grid;gap:12px;padding-top:2px}.editor-card{display:grid;gap:12px;padding:13px;border:1px solid #dcd6ca;border-radius:8px;background:#fffaf1db}.editor-card-header,.editor-exercise-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.editor-card-header strong{font-size:15px}.editor-grid{display:grid;grid-template-columns:1fr 88px 108px;gap:8px}.editor-grid.compact{grid-template-columns:112px 1fr 108px}.editor-grid label,.editor-wide{display:grid;gap:6px;color:#424844;font-size:12px;font-weight:850}.editor-grid input,.editor-grid select,.editor-wide input,.editor-wide textarea,.editor-exercise-top input{width:100%;min-width:0;min-height:40px;border:1px solid #d4cec1;border-radius:8px;background:#fffdf8;color:#111412;padding:0 10px;font-weight:750}.editor-wide textarea{min-height:70px;padding:10px;resize:vertical}.editor-grid input:focus,.editor-grid select:focus,.editor-wide input:focus,.editor-wide textarea:focus,.editor-exercise-top input:focus{border-color:#5b8f78;outline:3px solid rgba(91,143,120,.18)}.editor-exercise{display:grid;gap:9px;padding:10px;border:1px solid #e2dccf;border-radius:8px;background:#fffdf8ad}.editor-exercise-top input{flex:1 1 auto}.set-stepper{display:grid;grid-template-columns:1fr 34px 34px;align-items:end;gap:6px}.set-stepper span{align-self:center;color:#424844;font-size:12px;font-weight:900}.set-stepper button{display:grid;place-items:center;width:34px;height:40px;border:1px solid #d4cec1;border-radius:8px;background:#fffdf8;color:#242927}.section-heading{padding:3px 2px}.section-heading.inline{display:flex;align-items:center;justify-content:space-between;gap:16px}.section-heading h2{font-size:24px}.section-heading p{margin:6px 0 0;font-size:14px}.schedule-item{display:grid;grid-template-columns:38px 1fr;align-items:center;gap:10px;padding:12px;border-radius:8px;background:#fffaf1;border:1px solid #dcd6ca}.schedule-item span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e7b65f;color:#101312;font-weight:950}.schedule-item p{margin:0;font-weight:800}.rules-panel{padding:16px}.rules-panel h3{font-size:18px}.rules-panel ul{margin:10px 0 0;padding-left:20px}.rules-panel li+li{margin-top:8px}.history-card{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:start;padding:14px}.history-main{display:flex;min-width:0;align-items:flex-start;justify-content:space-between;gap:10px;border:0;background:transparent;color:inherit;padding:0;text-align:left}.history-main>div{min-width:0}.history-card h3{font-size:16px}.history-card p,.history-card small{display:block;margin:5px 0 0;font-size:13px}.history-card small{color:#565e58;line-height:1.35}.session-detail{display:grid;grid-column:1 / -1;gap:9px;padding-top:12px;border-top:1px solid #e2dccf}.session-detail div{display:grid;gap:3px}.session-detail strong{font-size:13px}.session-detail span,.session-detail p{margin:0;color:#5f6761;font-size:12px;font-weight:700;line-height:1.35}.file-input{display:none}.icon-button{width:40px;height:40px}.icon-button.danger{color:#9b332c}.empty-state{display:grid;place-items:center;gap:9px;min-height:160px;color:#69706a}.empty-state p{margin:0;font-weight:800}.bottom-nav{position:fixed;right:0;bottom:0;left:0;z-index:5;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:min(100%,680px);margin:0 auto;padding:10px 14px max(10px,env(safe-area-inset-bottom));border-top:1px solid rgba(220,214,202,.9);background:#f5f2eceb;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.bottom-nav button{display:inline-flex;min-width:0;min-height:52px;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:8px;background:transparent;color:#5f6761;font-size:13px;font-weight:900}.bottom-nav button.active{border-color:#dcd6ca;background:#fffaf1;color:#101312}@media(min-width:620px){.app-shell{padding-inline:22px}.hero-panel{padding:22px}.exercise-list{grid-template-columns:1fr}.primary-action-row{grid-template-columns:1fr 1fr}}@media(max-width:430px){.editor-grid,.editor-grid.compact{grid-template-columns:1fr}.set-stepper{grid-template-columns:1fr 42px 42px}.set-stepper button{width:42px}}
