
:root{--bg:#0b1014;--panel:#151c21;--panel2:#1c252b;--panel3:#26323a;--line:#293238;--text:#f2f6f4;--muted:#98a7ab;--soft:#c6d1cf;--accent:#c5ef79;--accentText:#132010;--warn:#f6bf65;--red:#f28075;--green:#73d7ab;--radius:18px;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:#070b0f;color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:not-allowed;opacity:.48}a{color:var(--accent)}.device-shell{margin:auto;max-width:520px;min-height:100vh;min-height:100dvh;background:var(--bg);position:relative;box-shadow:0 0 70px #0009}.topbar{position:sticky;top:0;z-index:20;min-height:72px;padding:calc(13px + env(safe-area-inset-top)) 21px 11px;background:rgba(11,16,20,.97);border-bottom:1px solid #233037;display:flex;align-items:center;justify-content:space-between;gap:10px;backdrop-filter:blur(18px)}.brand{display:flex;align-items:center;gap:10px}.brandmark{display:grid;place-items:center;height:36px;width:36px;background:var(--accent);border-radius:12px;font-weight:1000;font-size:20px;color:var(--accentText);letter-spacing:-2px}.brandname{font-weight:900;letter-spacing:.09em;font-size:19px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:var(--muted);font-weight:750}.header-right{display:flex;align-items:center;gap:9px}.tiny-status{font-size:11px;color:var(--green);white-space:nowrap}.iconbtn{width:36px;height:36px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--soft);font-size:19px;display:inline-grid;place-items:center}.main{padding:21px 18px calc(112px + env(safe-area-inset-bottom));min-height:calc(100dvh - 160px)}.bottom-nav{position:fixed;bottom:0;width:100%;max-width:520px;height:calc(72px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);z-index:22;display:flex;justify-content:space-around;background:rgba(16,22,26,.98);border-top:1px solid var(--line);backdrop-filter:blur(15px)}.nav-item{flex:1;border:0;background:transparent;color:var(--muted);font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;letter-spacing:.01em}.nav-item .navico{font-size:23px;line-height:1}.nav-item.active{color:var(--accent)}.view-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:0 0 18px}.h1{font-size:27px;line-height:1.24;margin:4px 0;font-weight:850;letter-spacing:-.05em}.sub{color:var(--muted);font-size:13px;line-height:1.65}.section{margin-top:23px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.section-title{font-size:16px;font-weight:850;letter-spacing:-.025em}.section-link{font-size:12px;color:var(--accent);border:0;background:transparent;font-weight:750;padding:4px}.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:17px;margin:0}.card.accent-card{background:linear-gradient(123deg,#24392d,#161f20 85%);border-color:#3b5a40}.stack{display:grid;gap:11px}.stack-lg{display:grid;gap:15px}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.flex{display:flex;align-items:center;gap:9px}.between{display:flex;justify-content:space-between;align-items:center;gap:10px}.align-start{align-items:flex-start}.grow{flex:1;min-width:0}.tiny{font-size:11px;color:var(--muted)}.small{font-size:12px}.strong{font-weight:850}.muted{color:var(--muted)}.accent{color:var(--accent)}.green{color:var(--green)}.warning{color:var(--warn)}.error{color:var(--red)}.metric{font-size:24px;font-weight:850;letter-spacing:-.04em}.metric-sm{font-size:19px;font-weight:830}.mini-card{background:var(--panel2);border-radius:14px;padding:13px;min-width:0}.mini-card .metric{margin-top:5px}.chip{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:6px 9px;background:var(--panel2);color:var(--soft);font-size:11px;font-weight:750;line-height:1.1}.chip.greenish{background:#253a30;color:var(--green)}.chip.lime{background:#31412c;color:var(--accent)}.chip.amber{background:#473622;color:var(--warn)}.chip.gray{background:#27323a}.hr{border:0;border-top:1px solid var(--line);margin:16px 0}.btn{border:1px solid transparent;background:var(--accent);color:var(--accentText);border-radius:13px;min-height:46px;padding:12px 15px;font-weight:850;font-size:14px;display:inline-flex;justify-content:center;align-items:center;gap:7px;white-space:nowrap}.btn.secondary{background:var(--panel2);color:var(--text);border-color:var(--line)}.btn.outline{background:transparent;color:var(--accent);border-color:#5d7844}.btn.danger{background:#45272a;border-color:#674245;color:#ffc4bc}.btn.ghost{background:transparent;color:var(--soft);border:0}.btn.smallbtn{min-height:34px;padding:7px 11px;font-size:12px;border-radius:10px}.btn.block{display:flex;width:100%}.btnrow{display:flex;gap:8px;flex-wrap:wrap}.btnrow>*{flex:1}.field{display:flex;flex-direction:column;gap:6px}.label{font-size:12px;font-weight:750;color:var(--soft)}.input,.select,.textinput{height:45px;border:1px solid #35434c;background:#10171c;border-radius:11px;color:var(--text);padding:10px 12px;width:100%;min-width:0;outline:none}.input:focus,.select:focus,.textinput:focus{border-color:var(--accent)}.textinput{min-height:75px;resize:vertical;line-height:1.5}.inline-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.option-strip{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.option-strip::-webkit-scrollbar{display:none}.choice{border:1px solid #35414a;background:var(--panel2);color:var(--soft);padding:9px 13px;border-radius:11px;white-space:nowrap;font-size:12px;font-weight:750}.choice.active{border-color:var(--accent);background:#32422e;color:var(--accent)}.routine-card{border:1px solid var(--line);border-radius:15px;background:var(--panel);padding:15px;display:flex;align-items:center;gap:12px;text-align:left;width:100%;color:inherit}.routine-card.active{border-color:var(--accent);background:#23342a}.routine-day{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:12px;background:var(--panel2);color:var(--accent);font-size:11px;font-weight:900}.routine-name{font-size:15px;font-weight:850}.workout-main{display:flex;flex-direction:column;gap:12px}.workout-top{background:linear-gradient(160deg,#21322b,var(--panel));border:1px solid #385342;border-radius:18px;padding:15px}.progress-track{background:#394a44;height:5px;border-radius:999px;overflow:hidden;margin-top:12px}.progress-fill{height:100%;background:var(--accent);border-radius:999px}.exercise-select{width:100%;display:flex;gap:8px;overflow-x:auto;padding:3px 0 7px;scrollbar-width:none}.exercise-pill{border:1px solid var(--line);background:var(--panel);border-radius:11px;color:var(--muted);padding:9px 12px;min-width:92px;max-width:164px;text-align:left}.exercise-pill.active{background:#2b3c30;color:var(--accent);border-color:#759b58}.exercise-pill.done{border-color:#466756}.exercise-pill b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.exercise-pill small{font-size:10px}.exercise-header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.exercise-title{font-size:22px;font-weight:880;letter-spacing:-.035em;line-height:1.3}.set-table{display:grid;gap:7px;margin:12px 0}.set-row{display:grid;grid-template-columns:57px minmax(0,1fr) minmax(0,1fr) 48px;gap:7px;align-items:center}.set-head{font-size:11px;font-weight:800;color:var(--muted);text-align:center;padding:3px 0}.set-index{height:43px;background:var(--panel2);border:1px solid var(--line);border-radius:10px;color:var(--text);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;font-size:14px;font-weight:850}.set-index.warm{color:var(--warn);border-color:#725636}.set-index span{font-size:9px;font-weight:700;line-height:1}.set-num{height:43px;width:100%;min-width:0;padding:4px 6px;text-align:center;font-size:17px;font-weight:750;outline:none;border-radius:10px;border:1px solid var(--line);background:#222b31;color:var(--text);font-variant-numeric:tabular-nums}.set-num:focus{border-color:var(--accent);background:#25342b}.set-num.done{background:#1e342c;color:#b6e9bc;border-color:#3c6651}.set-done{height:43px;width:48px;border-radius:10px;border:1px solid #3f4b50;background:var(--panel2);color:var(--muted);font-size:21px;font-weight:900}.set-done.checked{border-color:var(--accent);background:var(--accent);color:var(--accentText)}.set-row-footer{display:flex;align-items:center;justify-content:space-between;gap:6px;padding-top:5px}.simple-link{font-size:12px;font-weight:800;border:0;background:none;color:var(--accent);padding:8px 1px}.simple-link.secondary{color:var(--soft)}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.stat{background:#1a2429;border:1px solid #29373d;border-radius:10px;padding:9px 5px;text-align:center;min-width:0}.stat strong{font-size:15px;display:block;margin-top:3px;white-space:nowrap}.stat small{color:var(--muted);font-size:10px}.rest-bar{display:flex;align-items:center;justify-content:space-between;gap:7px;background:#28342c;border-radius:13px;padding:11px 12px;border:1px solid #3f5846}.rest-time{font-weight:900;font-size:20px;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.rest-actions{display:flex;gap:4px}.rest-actions button{height:34px;min-width:35px;border-radius:9px;border:1px solid #57725a;background:#334637;color:var(--text);font-size:12px;font-weight:850}.rest-actions button:last-child{border-color:#486b55;color:var(--accent)}.save-note{font-size:11px;color:var(--muted)}.chart-wrap{width:100%;min-height:175px;background:var(--panel2);border-radius:13px;padding:9px}.chart-wrap svg{display:block;width:100%;height:auto}.chart-placeholder{min-height:147px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;text-align:center;color:var(--muted);font-size:12px}.chart-placeholder .bigico{font-size:28px}.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.cal-head{text-align:center;font-size:11px;color:var(--muted);padding:3px}.cal-day{height:38px;display:grid;place-items:center;border-radius:10px;background:#171f24;color:var(--soft);font-size:12px;position:relative}.cal-day.done:after{position:absolute;content:'';width:5px;height:5px;background:var(--accent);border-radius:100%;bottom:4px}.cal-day.today{border:1px solid var(--accent)}.cal-day.empty{background:transparent}.history-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 0;border-bottom:1px solid var(--line)}.history-item:last-child{border-bottom:0}.banner{border-radius:13px;padding:12px 13px;background:#2b3427;color:#d6f3b8;font-size:12px;line-height:1.5}.banner.warning-banner{background:#3a2e21;color:#e9cea0}.banner.privacy{background:#222d36;color:#b9d0e4}.rating-stars{display:flex;align-items:center;justify-content:center;gap:5px}.star-btn{background:none;border:none;font-size:38px;color:#58616a;padding:1px 4px}.star-btn.on{color:#f7bd58}.stars-small{color:#f7bd58;letter-spacing:1px}.modal-overlay{position:fixed;z-index:50;inset:0;background:#000b;display:flex;justify-content:center;align-items:flex-end}.modal-panel{width:100%;max-width:520px;max-height:min(92dvh,900px);overflow:auto;overscroll-behavior:contain;border:1px solid #35414a;border-bottom:none;background:#121a1f;border-radius:23px 23px 0 0;padding:18px 18px calc(25px + env(safe-area-inset-bottom));box-shadow:0 -20px 100px #0009}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.modal-title{font-size:19px;font-weight:900}.modal-close{border:0;background:var(--panel2);color:var(--text);width:32px;height:32px;border-radius:10px;font-size:18px}.modal-list{max-height:43dvh;overflow-y:auto;display:grid;gap:7px}.modal-opt{display:flex;align-items:center;justify-content:space-between;text-align:left;background:var(--panel2);border:1px solid var(--line);color:var(--text);padding:12px;border-radius:11px;width:100%;font-size:13px}.modal-opt strong{font-size:13px}.suggestion-title{font-size:10px;color:var(--muted);font-weight:900;letter-spacing:.08em;margin:8px 0}.routine-overview{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line)}.routine-overview:last-child{border-bottom:0}.setting-row{padding:10px 0;border-bottom:1px solid var(--line)}.setting-row:last-child{border-bottom:0}.empty{text-align:center;background:var(--panel);border:1px dashed var(--line);border-radius:16px;padding:25px 16px;color:var(--muted);font-size:13px;line-height:1.7}.bigico{font-size:30px}.hide{display:none!important}.toast{position:fixed;bottom:calc(86px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%) translateY(10px);z-index:80;background:#2b3931;border:1px solid #6c9264;color:#e4f5d3;border-radius:12px;padding:11px 16px;font-size:12px;font-weight:750;white-space:nowrap;opacity:0;pointer-events:none;transition:.16s;max-width:92vw;overflow:hidden;text-overflow:ellipsis}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.divider-label{font-size:11px;color:var(--muted);font-weight:800;letter-spacing:.04em;margin:7px 0}.pick{background:var(--panel2);border-radius:12px;padding:11px;border:1px solid var(--line)}.home-hero{position:relative;overflow:hidden}.home-hero:after{content:'F';font-weight:1000;font-size:160px;color:#d2ff7a08;position:absolute;right:-6px;top:-30px;transform:rotate(-10deg);pointer-events:none}.no-wrap{white-space:nowrap}.wrap{overflow-wrap:anywhere}.center{text-align:center}.margin-top{margin-top:12px}.inset{padding:12px;background:var(--panel2);border-radius:12px}.scroll{overflow:auto}.footnote{font-size:11px;color:var(--muted);line-height:1.65}.date-input{color-scheme:dark}.loading{padding:25vh 15px;text-align:center;color:var(--muted)}
@media(min-width:700px){body{padding:30px 0;background:radial-gradient(circle at 25% 0,#193029 0%,#070b0f 55%)}.device-shell{border-radius:28px;overflow:clip;min-height:850px}.topbar{top:0}.bottom-nav{left:50%;transform:translateX(-50%);bottom:0}.main{min-height:850px}.modal-panel{border-radius:23px;margin-bottom:14px;border-bottom:1px solid var(--line)} }
@media(max-width:360px){.main{padding-left:11px;padding-right:11px}.set-row{grid-template-columns:50px minmax(0,1fr) minmax(0,1fr) 42px;gap:5px}.set-done{width:42px}.stats-grid{gap:4px}.stat strong{font-size:13px}.card{padding:13px}.h1{font-size:24px}}

/* FORM v2 — refined, photography-free light-first design system */
:root{--bg:#f7f9f4;--panel:#fff;--panel2:#f2f5ef;--panel3:#e8eee3;--line:#e7ebe5;--text:#1a251c;--muted:#828c80;--soft:#536157;--accent:#bcf45c;--accentText:#192614;--warn:#ba8635;--red:#db655e;--green:#368354;--radius:23px;color-scheme:light}
html{scroll-behavior:smooth} body{background:#eff2eb;color:var(--text);letter-spacing:-.025em}body,button,input,textarea,select{font-family:-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Pretendard','Noto Sans KR',sans-serif}
.device-shell{background:var(--bg);box-shadow:0 24px 65px #22382414;isolation:isolate;overflow:visible}
.topbar{min-height:74px;background:rgba(247,249,244,.87);border-bottom:0;box-shadow:none;padding:calc(13px + env(safe-area-inset-top)) 24px 9px;backdrop-filter:blur(24px) saturate(150%)}
.brand{gap:10px}.brandmark{display:none}.brandname{font-size:25px;font-weight:800;letter-spacing:-.095em;line-height:1}.brandname:after{content:'.';color:#82b92b}.eyebrow{font-size:10px;letter-spacing:.145em;color:#849182;font-weight:750}.brand .eyebrow{font-size:8px;letter-spacing:.12em;margin-top:4px}.tiny-status{color:#7d8d7a;font-size:10px}.header-right{gap:0}.topbar .header-right .tiny-status:before{content:' ';display:inline-block;width:5px;height:5px;background:#9ed858;border-radius:50%;margin-right:6px;vertical-align:middle}
.main{padding:15px 22px calc(114px + env(safe-area-inset-bottom))}.bottom-nav{height:calc(76px + env(safe-area-inset-bottom));background:rgba(252,253,251,.9);border:1px solid #eef1eb;border-bottom:0;border-radius:24px 24px 0 0;box-shadow:0 -9px 30px #1d38200d;backdrop-filter:blur(24px) saturate(150%)}.nav-item{color:#a2aba0;font-size:10px;font-weight:650;gap:4px;transition:color .2s ease}.nav-item .navico{font-size:23px;line-height:1;display:grid;place-items:center;width:32px;height:28px;border-radius:10px;transition:background .2s ease,transform .18s}.navico svg{width:21px;height:21px}.nav-item.active{color:#26361e}.nav-item.active .navico{background:#e7f6d0;color:#283d1e}.nav-item:active .navico{transform:scale(.87)}
.view-head{align-items:flex-start;margin:4px 0 23px}.h1{font-size:29px;font-weight:790;letter-spacing:-.065em;line-height:1.22;margin:9px 0 6px}.sub{font-size:12px;color:#839080;line-height:1.65}.section{margin-top:27px}.section-title{font-size:17px;font-weight:800;letter-spacing:-.04em}.section-head{margin-bottom:12px}.section-link{color:#577d22;font-weight:750}.card{background:#fff;border:1px solid #edf1eb;box-shadow:0 7px 24px #253c2510;border-radius:23px;padding:18px}.mini-card{background:#fff;border:1px solid #eef1eb;box-shadow:0 6px 21px #1b381b0b;border-radius:20px;padding:15px}.tiny{font-size:11px;color:#8e9a8a}.metric{font-size:29px;font-weight:790}.metric-sm{font-size:22px;font-weight:790}.chip{background:#eff4e9;color:#53644d;border-radius:999px;padding:7px 10px}.chip.lime{background:#e9f9d4;color:#4f8023}.chip.greenish{background:#eff7e9;color:#4c8a40}.chip.amber{background:#fff4da;color:#87651c}.chip.gray{background:#f3f6f1;color:#69756d}.hr{border-color:#edf1ea}.label{color:#637061}.btn{border-radius:999px;min-height:50px;background:#bbf456;color:#172314;font-weight:790;box-shadow:0 7px 15px #9dde3c29;transition:transform .14s ease,box-shadow .22s ease,filter .22s ease}.btn:active{transform:scale(.975);box-shadow:0 3px 8px #88c9331d}.btn.secondary{background:#f2f5ee;color:#2c3a30;border-color:#edf1ea;box-shadow:none}.btn.outline{background:#fff;border-color:#d4e2c5;color:#45622c;box-shadow:none}.btn.ghost{color:#6d786b}.btn.danger{background:#fff1ef;color:#bc514e;border-color:#f4e0da;box-shadow:none}.btn.smallbtn{border-radius:12px}.iconbtn{background:#f3f5f1;color:#39483a;border:0;border-radius:50%;width:38px;height:38px}.input,.select,.textinput{background:#f5f7f2;border:1px solid #e9eee5;color:#233126;border-radius:14px;min-height:47px;outline:0}.input:focus,.select:focus,.textinput:focus{border-color:#99cd65;box-shadow:0 0 0 3px #c5ed9c66}.date-input{color-scheme:light}.choice{background:#f3f6ef;color:#697867;border-color:#e9eee5;border-radius:999px}.choice.active{background:#203224;color:#fff;border-color:#203224}.routine-card{background:#fff;border-color:#edf1eb;border-radius:19px;padding:17px;box-shadow:0 5px 17px #253c2510;transition:transform .16s,box-shadow .17s}.routine-card:active{transform:scale(.985)}.routine-card.active{border-color:#b9e985;background:#f8fdee}.routine-day{width:43px;height:43px;background:#ecf5e3;color:#456e33;border-radius:13px}.routine-name{font-size:16px}.green{color:#368354}.accent{color:#5c8b2a}.warning{color:#a97724}.error{color:#c7534b}
/* Home: restrained expressive gradient, no stock photography */
.home-welcome{margin-top:6px;margin-bottom:22px}.home-welcome .h1{font-size:32px;margin:9px 0 6px;letter-spacing:-.07em}.home-welcome .date-line{display:flex;align-items:center;gap:7px;color:#879584;font-size:11px;font-weight:650}.home-greeting{font-size:12px;color:#70836e}.home-hero-v2{position:relative;overflow:hidden;min-height:226px;background:linear-gradient(120deg,#dcf9b4 0%,#bbf278 49%,#92ce56 100%);border:0;border-radius:28px;box-shadow:0 18px 35px #8bb84b2a;padding:23px 22px 22px;display:flex;flex-direction:column;justify-content:space-between;color:#152514}.home-hero-v2::before{content:'';position:absolute;width:240px;height:240px;border:46px solid #f5ffdf70;border-radius:50%;right:-84px;top:-97px;transform:rotate(-20deg)}.home-hero-v2::after{content:'';position:absolute;width:160px;height:160px;border-radius:50%;background:radial-gradient(circle at 20% 20%,#faffc8b0,transparent 65%);right:-25px;bottom:-56px}.home-hero-v2>*{position:relative;z-index:1}.hero-kicker{font-size:10px;letter-spacing:.15em;color:#3b672c;font-weight:800}.hero-title{font-size:29px;line-height:1.24;letter-spacing:-.07em;font-weight:820;max-width:255px;margin:11px 0 7px}.hero-desc{font-size:12px;color:#3e652e;max-width:270px;line-height:1.6}.hero-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.hero-meta{font-size:12px;font-weight:680;color:#345d29}.hero-circle{width:54px;height:54px;border:0;border-radius:50%;background:#182c19;color:white;box-shadow:0 11px 22px #25451f45;font-size:24px;display:grid;place-items:center;flex-shrink:0;transition:transform .18s}.hero-circle:active{transform:scale(.88)}.home-priority{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.home-priority .mini-card{background:rgba(255,255,255,.9);min-height:80px;padding:13px}.home-priority .metric-sm{margin-top:7px}.home-measurement{display:grid;grid-template-columns:1fr 1fr;gap:10px}.home-measurement .mini-card{min-height:118px}.home-measurement .metric-sm{font-size:24px;margin:8px 0 2px}.soft-graph{height:30px;width:100%;margin-top:8px;overflow:hidden}.soft-graph svg{width:100%;height:100%}.home-recent{display:flex;align-items:center;justify-content:space-between;gap:15px}.home-recent-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:16px;background:#eff6e9;color:#567b3d;font-size:20px}.home-hint{background:#eff6e9;color:#5b7054;padding:14px 16px;border-radius:17px;font-size:11px;line-height:1.7}
/* Active workout: Dark Forest / Light-first exception */
body[data-screen="workout"][data-active="true"]{--bg:#121915;--panel:#1d2720;--panel2:#283329;--panel3:#344234;--line:#334239;--text:#f5f9f2;--muted:#97a998;--soft:#c2d1c0;--green:#b7f07c;--accent:#bcf45c;color-scheme:dark;background:#0e1510;color:#f5f9f2}
body[data-screen="workout"][data-active="true"] .device-shell{background:#121915}body[data-screen="workout"][data-active="true"] .topbar{background:rgba(18,25,21,.86)}body[data-screen="workout"][data-active="true"] .brandname{color:#f7faf4}body[data-screen="workout"][data-active="true"] .tiny-status{color:#93aa90}body[data-screen="workout"][data-active="true"] .bottom-nav{background:rgba(24,33,27,.93);border-color:#2d4030;box-shadow:0 -12px 40px #060e0960}body[data-screen="workout"][data-active="true"] .nav-item{color:#879687}body[data-screen="workout"][data-active="true"] .nav-item.active{color:#bbf45a}body[data-screen="workout"][data-active="true"] .nav-item.active .navico{background:#3a5638;color:#d5ff98}
body[data-screen="workout"][data-active="true"] .card{background:#1d2820;border-color:#2a382e;box-shadow:0 11px 28px #09110a3b}body[data-screen="workout"][data-active="true"] .inset{background:#26352a;color:#e0e8db}body[data-screen="workout"][data-active="true"] .mini-card{background:#253329;border-color:#344638;box-shadow:none}body[data-screen="workout"][data-active="true"] .chip{background:#2b3e2e;color:#d0e1c9}body[data-screen="workout"][data-active="true"] .chip.greenish{background:#314731;color:#c5f299}body[data-screen="workout"][data-active="true"] .tiny{color:#a0b39e}body[data-screen="workout"][data-active="true"] .sub{color:#a1b49f}body[data-screen="workout"][data-active="true"] .btn.secondary{background:#2b392e;color:#f7faf2;border-color:#3b4a3d}body[data-screen="workout"][data-active="true"] .btn.outline{background:#162117;color:#d6f5b4;border-color:#496342}body[data-screen="workout"][data-active="true"] .btn.ghost{color:#abb8a8}body[data-screen="workout"][data-active="true"] .iconbtn{background:#2b382e;color:#f1f6ec}body[data-screen="workout"][data-active="true"] .hr{border-color:#344034}body[data-screen="workout"][data-active="true"] .section-link{color:#c6f585}
.workout-main{gap:14px}.workout-top{padding:21px 19px 18px;border-radius:25px;background:linear-gradient(135deg,#293b2c 0%,#1b2920 72%,#1a2c20 100%);border:1px solid #344e37;box-shadow:0 12px 27px #060e0963}.workout-top .progress-track{height:6px;background:#405844;margin-top:12px}.progress-fill{background:linear-gradient(90deg,#baf257,#e1ff9b);transition:width .26s ease}.workout-top .eyebrow{color:#afc5ad}.exercise-select{gap:9px;padding:4px 0 7px}.exercise-pill{min-width:130px;max-width:180px;background:#202c23;border:1px solid #334535;color:#a7b5a4;border-radius:15px;padding:12px 14px;transition:transform .17s,background .2s}.exercise-pill.active{background:#d6f8a5;color:#243821;border-color:#dcfbb7;box-shadow:0 8px 20px #92e05424}.exercise-pill.done{border-color:#63895b}.exercise-pill small{font-size:10px;color:inherit;opacity:.7}.exercise-pill b{font-size:12px;margin-top:5px}.exercise-pill:active{transform:scale(.97)}.exercise-title{font-size:25px;font-weight:810;letter-spacing:-.065em}.exercise-header .eyebrow{color:#93bd7b}.set-table{gap:8px;margin:16px 0}.set-row{grid-template-columns:58px minmax(0,1fr) minmax(0,1fr) 50px;gap:7px}.set-head{color:#8da28d;font-size:10px;letter-spacing:.04em}.set-index{height:48px;background:#28352b;color:#f4f7f0;border:1px solid #344536;border-radius:13px}.set-index.warm{background:#3d3828;border-color:#655940;color:#e9c181}.set-num{height:48px;border-radius:13px;background:#2a382e;border:1px solid #3a4a3f;color:#fff;font-size:19px;font-weight:750;transition:border .16s,background .16s}.set-num:focus{background:#344734;border-color:#c1f477;box-shadow:0 0 0 2px #baf25b25}.set-num.done{background:#31432f;color:#e2ffba;border-color:#537d45}.set-done{height:48px;width:50px;border-radius:14px;background:#2b3a2e;color:#788a78;border-color:#455b46;font-size:24px;transition:transform .16s,background .18s}.set-done.checked{background:#bcf45c;color:#1d3016;border-color:#bcf45c;box-shadow:0 3px 10px #a9e64d2e}.set-done:active{transform:scale(.86)}.set-row-footer{gap:2px;flex-wrap:wrap}.set-row-footer .simple-link{font-size:11px}.simple-link{color:#bff47e}.simple-link.secondary{color:#acbeaa}.stats-grid{gap:7px}.stat{background:#27352b;border:1px solid #344538;border-radius:14px;padding:12px 4px}.stat strong{font-size:16px;color:#f0f8eb}.stat small{color:#a1b29e}.rest-bar{background:linear-gradient(125deg,#304b32,#26392a);border:1px solid #425d41;border-radius:20px;padding:14px 15px;box-shadow:0 9px 25px #080e0a3b}.rest-time{font-size:27px;font-weight:800}.rest-actions button{border-radius:12px;border-color:#587058;background:#405741;color:#f1f8e8;min-height:38px;padding:0 8px}.rest-actions button:last-child{color:#dbffa8}.save-note{color:#9caf9d}
/* Non-active workout follows the light theme */
body:not([data-active="true"]) .accent-card{background:linear-gradient(130deg,#e3fac1,#bbf07c);border:none;color:#203320;box-shadow:0 15px 32px #82ae3d20}body:not([data-active="true"]) .accent-card .eyebrow{color:#49683a}body:not([data-active="true"]) .accent-card .sub{color:#5b7a47}
/* Analysis / profile / charts / modal */
.chart-wrap{background:#fbfcfa;border-radius:17px;min-height:175px;padding:10px}.chart-wrap svg line{opacity:.4}.chart-placeholder{color:#899588}.cal-day{background:#f4f7f1;color:#738070}.cal-day.done{background:#e9f6dc;color:#375527}.cal-day.done:after{background:#75bc35}.cal-day.today{border:1px solid #9ed65c;color:#3d612c}.cal-head{color:#9ca99a}.history-item{border-color:#e6ece1}.banner{background:#edf6e6;color:#54734f;border-radius:16px}.banner.warning-banner{background:#fff1dc;color:#9b6f2b}.banner.privacy{background:#f0f5eb;color:#60745b}.footnote{color:#91a08c}.empty{background:#fbfcfa;color:#8c988a;border-color:#e6ece2;border-radius:20px}.modal-overlay{background:#15201c8c;backdrop-filter:blur(5px)}.modal-panel{background:#fbfcfa;color:#233025;border:none;border-radius:29px 29px 0 0;box-shadow:0 -25px 70px #101b1270;padding:20px 20px calc(27px + env(safe-area-inset-bottom));animation:sheet-in .29s cubic-bezier(.19,.84,.25,1) both}.modal-panel:before{content:'';display:block;height:4px;width:43px;background:#dfe5db;border-radius:10px;margin:-9px auto 16px}.modal-title{font-size:20px;font-weight:800}.modal-close{background:#edf1ea;color:#394738;border-radius:50%}.modal-opt{background:#fff;color:#233025;border-color:#e8eee5;border-radius:16px;box-shadow:0 3px 12px #18281808}.modal-opt:active{background:#eef8e5}.inset{background:#f3f7f1;border-radius:16px}.rating-stars .star-btn{color:#bec6b7}.rating-stars .star-btn.on{color:#eca947}.suggestion-title{color:#859582}.pick{background:#f5f8f1;border-color:#e4ede1}.setting-row{border-color:#e7ede5}.divider-label{color:#8b9b88}.toast{background:#25392a;border-color:#638653;color:#f3ffe9;border-radius:15px;box-shadow:0 15px 30px #101c1250}
/* interaction motion with reduced motion support */
.main.route-enter{animation:content-in .24s cubic-bezier(.2,.8,.23,1) both}.main.focus-enter{animation:focus-in .19s cubic-bezier(.2,.8,.23,1) both}.btn,.iconbtn,.nav-item,.exercise-pill,.set-done,.routine-card{touch-action:manipulation}.iconbtn:active,.modal-close:active{transform:scale(.92)}.modal-opt{transition:transform .13s,background .13s}.modal-opt:active{transform:scale(.985)}
@keyframes content-in{from{opacity:.45;transform:translateY(9px)}to{opacity:1;transform:none}}@keyframes focus-in{from{opacity:.64;transform:translateX(10px)}to{opacity:1;transform:none}}@keyframes sheet-in{from{opacity:.78;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:700px){body{background:radial-gradient(circle at 10% 0,#e5f1d8 0,#f5f7f2 45%,#e5eee3 100%);padding:30px 0}.device-shell{border-radius:30px;overflow:clip;min-height:850px}.modal-panel{border-radius:29px;margin-bottom:12px}}@media(max-width:360px){.main{padding-left:15px;padding-right:15px}.home-hero-v2{min-height:213px}.home-priority .mini-card{padding:9px}.set-row{grid-template-columns:48px minmax(0,1fr) minmax(0,1fr) 43px;gap:5px}.set-done{width:43px}.set-row-footer .simple-link{font-size:10px}.card{padding:14px}.h1{font-size:27px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* v2.1 workout light refresh */
body[data-screen="workout"][data-active="true"]{--bg:#f7f9f4;--panel:#ffffff;--panel2:#f2f5ef;--panel3:#e8eee3;--line:#e7ebe5;--text:#1a251c;--muted:#828c80;--soft:#536157;--green:#368354;--accent:#bcf45c;color-scheme:light;background:#eff2eb;color:var(--text)}
body[data-screen="workout"][data-active="true"] .device-shell{background:var(--bg)}
body[data-screen="workout"][data-active="true"] .topbar{background:rgba(247,249,244,.87)}
body[data-screen="workout"][data-active="true"] .brandname{color:var(--text)}
body[data-screen="workout"][data-active="true"] .tiny-status{color:#7d8d7a}
body[data-screen="workout"][data-active="true"] .bottom-nav{background:rgba(252,253,251,.9);border-color:#eef1eb;box-shadow:0 -9px 30px #1d38200d}
body[data-screen="workout"][data-active="true"] .nav-item{color:#a2aba0}
body[data-screen="workout"][data-active="true"] .nav-item.active{color:#26361e}
body[data-screen="workout"][data-active="true"] .nav-item.active .navico{background:#e7f6d0;color:#283d1e}
body[data-screen="workout"][data-active="true"] .card{background:#fff;border-color:#edf1eb;box-shadow:0 7px 24px #253c2510}
body[data-screen="workout"][data-active="true"] .inset{background:#f3f7f1;color:#233126}
body[data-screen="workout"][data-active="true"] .mini-card{background:#fff;border-color:#eef1eb;box-shadow:0 6px 21px #1b381b0b}
body[data-screen="workout"][data-active="true"] .chip{background:#eff4e9;color:#53644d}
body[data-screen="workout"][data-active="true"] .chip.greenish{background:#eff7e9;color:#4c8a40}
body[data-screen="workout"][data-active="true"] .tiny{color:#8e9a8a}
body[data-screen="workout"][data-active="true"] .sub{color:#839080}
body[data-screen="workout"][data-active="true"] .btn.secondary{background:#f2f5ee;color:#2c3a30;border-color:#edf1ea}
body[data-screen="workout"][data-active="true"] .btn.outline{background:#fff;border-color:#d4e2c5;color:#45622c}
body[data-screen="workout"][data-active="true"] .btn.ghost{color:#6d786b}
body[data-screen="workout"][data-active="true"] .iconbtn{background:#f3f5f1;color:#39483a}
body[data-screen="workout"][data-active="true"] .hr{border-color:#edf1ea}
body[data-screen="workout"][data-active="true"] .section-link{color:#577d22}
.workout-top{padding:21px 19px 18px;border-radius:25px;background:linear-gradient(135deg,#f7fbe9 0%,#edf8d8 42%,#dbf4b4 100%);border:1px solid #e3edd8;box-shadow:0 12px 27px #cfe2b340}
.workout-top .progress-track{height:6px;background:#dbe6d1;margin-top:12px}
.workout-top .eyebrow{color:#6b7f62}
.exercise-pill{background:#fff;border:1px solid #e3eade;color:#71806f;box-shadow:0 3px 10px #253c2506}
.exercise-pill.active{background:#dff6b2;color:#243821;border-color:#d6f0a0;box-shadow:0 8px 20px #92e05424}
.exercise-pill.done{border-color:#9ec98c;background:#f5fbef}
.exercise-title{color:#1a251c}
.exercise-header .eyebrow{color:#65804d}
.set-head{color:#8da28d}
.set-index{background:#f3f6ef;color:#314031;border:1px solid #e2e9dd}
.set-index.warm{background:#fff5df;border-color:#f0ddae;color:#9a6d20}
.set-num{background:#fff;border:1px solid #e0e7da;color:#223126;box-shadow:0 4px 12px #20332008}
.set-num:focus{background:#fff;border-color:#99cd65;box-shadow:0 0 0 3px #c5ed9c66}
.set-num.done{background:#f3faea;color:#345627;border-color:#b6de84}
.set-done{background:#f7faf4;color:#95a492;border-color:#dbe4d4;box-shadow:0 4px 12px #20332008}
.set-done.checked{background:#bcf45c;color:#1d3016;border-color:#bcf45c;box-shadow:0 6px 16px #a9e64d33}
.set-row-footer .simple-link{color:#5a802d}.simple-link.secondary{color:#8a9888}
.stats-grid .stat{background:#fff;border:1px solid #e6ece1;box-shadow:0 4px 14px #20332008}
.stats-grid .stat strong{color:#1f2c22}.stats-grid .stat small{color:#7d8b7c}
.rest-bar{background:linear-gradient(135deg,#f7fbef 0%,#edf8dc 100%);border:1px solid #e0ecd0;border-radius:20px;padding:14px 15px;box-shadow:0 9px 25px #bfd19d26}
.rest-time{font-size:27px;font-weight:800;color:#21311f}
.rest-actions button{border-radius:12px;border-color:#d9e5ca;background:#fff;color:#4f6348;min-height:38px;padding:0 8px}.rest-actions button:last-child{color:#5c812f}
.save-note{color:#849182}

/* FORM 3.0 — two deliberately-designed themes, coaching and usability refinements */
:root{--focusRing:#9bd968}
.workout-clock{margin-top:8px;display:inline-flex;align-items:center;gap:6px;font-size:17px;font-weight:820;letter-spacing:.01em;font-variant-numeric:tabular-nums;color:#344b2b;background:#ffffffa8;padding:7px 10px;border:1px solid #eff4e7;border-radius:11px}
.workout-clock:before{content:'◷';font-weight:600;font-size:14px}
.workout-top .chip.greenish{background:#ffffffc4;color:#4c6e3b}
.exercise-select{scroll-behavior:smooth;scroll-snap-type:x proximity;scroll-padding-inline:16px;overscroll-behavior-x:contain;padding-bottom:10px}
.exercise-pill{scroll-snap-align:center;flex-shrink:0}
.set-row{grid-template-columns:minmax(49px,55px) minmax(0,1fr) minmax(0,1fr) 43px 30px;gap:5px}
.set-done{width:43px}
.set-index{font-size:13px}
.set-index b{font-size:13px}
.set-index span{font-size:9px}
.set-num{padding:4px 2px;font-size:17px}
.set-remove{width:30px;height:43px;border:1px solid #f0e3df;background:#fff8f6;border-radius:11px;color:#aa7772;font-size:22px;line-height:1;font-weight:400;transition:transform .15s,background .15s}
.set-remove:active{transform:scale(.88);background:#ffe2dc}
.set-row-footer{flex-wrap:wrap;justify-content:flex-start;gap:13px}
.set-row-footer .simple-link{font-size:11px}
.weight-rule{color:#6e8d58;font-weight:750;display:inline-block;margin-top:3px}
.coach-plan{font-size:12px;font-weight:760;color:#44602d;background:#e5f5d3;border-radius:11px;padding:8px 10px;margin-top:8px}
.coach-card{position:relative;margin:12px 0 3px;border-radius:22px;background:linear-gradient(135deg,#f5fbe9,#dff5be 92%);border:1px solid #d7eaba;box-shadow:0 14px 28px #8bba6322;padding:19px 17px 14px;color:#253c20;animation:coach-appear .22s ease-out}
.coach-kicker{font-size:11px;font-weight:850;color:#487c38;letter-spacing:.075em;display:flex;align-items:center;justify-content:space-between;gap:10px}
.coach-kicker span{font-size:10px;font-weight:600;letter-spacing:0;color:#76926c}
.coach-card h3{font-size:18px;line-height:1.38;letter-spacing:-.04em;margin:11px 0 8px;color:#223821}
.coach-card p{font-size:12px;line-height:1.73;color:#537046;margin:0 0 14px}
.coach-question{font-size:12px;color:#36542e;font-weight:750;margin-bottom:8px}
.coach-effort{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:15px}
.coach-effort .choice{padding:11px 5px;text-align:center;background:#ffffffae;border-color:#d5e6c7;color:#58724b;border-radius:12px;font-size:11px;white-space:normal}
.coach-effort .choice.active{background:#273b26;border-color:#273b26;color:#d9ffae}
.coach-targets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:12px}
.coach-targets>div{background:#ffffffc9;border:1px solid #e4eddb;border-radius:13px;padding:12px 7px;display:flex;flex-direction:column;align-items:center;gap:6px}
.coach-targets small{font-size:10px;font-weight:650;color:#718469}
.coach-targets strong{font-size:17px;letter-spacing:-.035em;color:#1f3320}
.coach-card .coach-apply{background:#253926;color:#fff;box-shadow:0 8px 15px #264b2440;border-radius:14px}
.coach-dismiss{background:none;border:0;color:#769066;font-size:11px;font-weight:750;display:block;margin:9px auto 0;padding:7px 18px}
.coach-invite{border:1px solid #daebc8;background:#f6fbef;color:#50793b;border-radius:14px;padding:13px 14px;width:100%;text-align:left;font-size:12px;font-weight:750;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.coach-invite span{font-size:18px}
.undo-row{background:#fff5e8;border:1px solid #f1dfc6;color:#816133;border-radius:12px;display:flex;align-items:center;justify-content:space-between;font-size:12px;margin:10px 0;padding:8px 12px;gap:8px}
.undo-row button{border:0;background:#fff;color:#6d542c;font-size:12px;font-weight:800;border-radius:10px;padding:8px 11px}
.rest-bar .rest-label{color:#6a8a5f}
.snapshot-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-top:1px solid var(--line)}
.snapshot-row>span{display:flex;flex-direction:column;gap:3px;min-width:0}
.snapshot-row b{font-size:12px;color:var(--text)}.snapshot-row small{font-size:10px;color:var(--muted)}
.snapshot-row .btn{white-space:nowrap;flex-shrink:0}
@keyframes coach-appear{from{opacity:.3;transform:translateY(8px)}to{opacity:1;transform:none}}
/* Dark is a separate composed theme, not a black overlay. */
body[data-theme="dark"]{--bg:#202720;--panel:#303b32;--panel2:#39463c;--panel3:#455346;--line:#445247;--text:#f2f6ed;--muted:#b0bfad;--soft:#cfddca;--green:#b8e393;--accent:#c0ed79;--accentText:#1b2a1b;--focusRing:#b4e681;color-scheme:dark;background:#18211b;color:var(--text)}
body[data-theme="dark"] .device-shell{background:#202720;box-shadow:0 24px 65px #0713093b}
body[data-theme="dark"] .topbar{background:rgba(32,39,32,.93);border-bottom:1px solid #344138}
body[data-theme="dark"] .brandname{color:#f6f9f0}
body[data-theme="dark"] .eyebrow{color:#a0b59a}
body[data-theme="dark"] .tiny-status{color:#b1caaa}
body[data-theme="dark"] .bottom-nav{background:rgba(35,45,38,.94);border-color:#405046;box-shadow:0 -10px 35px #0d1a113e}
body[data-theme="dark"] .nav-item{color:#a2b29f}
body[data-theme="dark"] .nav-item.active{color:#d0ff9c}
body[data-theme="dark"] .nav-item.active .navico{background:#485e43;color:#d6ffa8}
body[data-theme="dark"] .h1,body[data-theme="dark"] .section-title,body[data-theme="dark"] .exercise-title{color:#f6f9f3}
body[data-theme="dark"] .sub,body[data-theme="dark"] .tiny,body[data-theme="dark"] .muted{color:#b0c0ad}
body[data-theme="dark"] .card,body[data-theme="dark"] .mini-card,body[data-theme="dark"] .routine-card{background:#303b32;border-color:#415043;box-shadow:0 8px 25px #08130c20;color:#f2f8ee}
body[data-theme="dark"] .inset{background:#3b4a3d;color:#eaf4e6}
body[data-theme="dark"] .label{color:#c2d1be}
body[data-theme="dark"] .btn.secondary{background:#405044;border-color:#516150;color:#ecf4e9;box-shadow:none}
body[data-theme="dark"] .btn.outline{background:#2f3b30;border-color:#708d62;color:#d4f5b9}
body[data-theme="dark"] .btn.danger{background:#4b3736;border-color:#765354;color:#f4c7c1}
body[data-theme="dark"] .btn.ghost{color:#c3d2bf}
body[data-theme="dark"] .iconbtn{background:#435144;color:#ecf6e7}
body[data-theme="dark"] .hr{border-color:#4b5a4d}
body[data-theme="dark"] .chip{background:#435445;color:#d9e8d4}
body[data-theme="dark"] .chip.greenish{background:#485f3f;color:#d4f3b6}
body[data-theme="dark"] .chip.lime{background:#4a623f;color:#d8ffb1}
body[data-theme="dark"] .choice{background:#415043;border-color:#526452;color:#d7e8d1}
body[data-theme="dark"] .choice.active{background:#c0ed79;border-color:#c0ed79;color:#243a20}
body[data-theme="dark"] .input,body[data-theme="dark"] .select,body[data-theme="dark"] .textinput{background:#3b4a3f;color:#f1f9eb;border-color:#536650;color-scheme:dark}
body[data-theme="dark"] .routine-card.active{background:#3e5038;border-color:#83b16a}
body[data-theme="dark"] .routine-day{background:#4b6540;color:#d6ffa8}
body[data-theme="dark"] .home-welcome .date-line,body[data-theme="dark"] .home-greeting{color:#b9cbb4}
body[data-theme="dark"] .home-hero-v2{background:linear-gradient(125deg,#c3ef91 0%,#97ce75 53%,#79ae68 100%);box-shadow:0 18px 35px #05140858;color:#16331a}
body[data-theme="dark"] .home-hint{background:#374637;color:#d1e5c7}
body[data-theme="dark"] .home-recent-icon{background:#465e3d;color:#d3f1bf}
body[data-theme="dark"] .home-measurement .mini-card,body[data-theme="dark"] .home-priority .mini-card{background:#344335}
body[data-theme="dark"] .workout-top{background:linear-gradient(132deg,#43573f 0%,#3a4b38 54%,#2d3d30 100%);border-color:#58704e;box-shadow:0 12px 27px #13241a4b;color:#eff8e9}
body[data-theme="dark"] .workout-top .eyebrow{color:#bdd5b2}
body[data-theme="dark"] .workout-top .progress-track{background:#5d7356}
body[data-theme="dark"] .workout-top .chip.greenish{background:#506746;color:#e2f8d2}
body[data-theme="dark"] .workout-clock{background:#ffffff12;color:#f0f9e8;border-color:#667c5d}
body[data-theme="dark"] .exercise-pill{background:#344235;border-color:#4c614a;color:#bed1b7}
body[data-theme="dark"] .exercise-pill.active{background:#c6ee95;border-color:#c6ee95;color:#243821}
body[data-theme="dark"] .exercise-pill.done{background:#475b43;border-color:#6c9868}
body[data-theme="dark"] .exercise-header .eyebrow{color:#b8d39f}
body[data-theme="dark"] .weight-rule{color:#aad98a}
body[data-theme="dark"] .set-index{background:#3e4d41;border-color:#536753;color:#ecf5e8}
body[data-theme="dark"] .set-index.warm{background:#554b37;color:#f4d6a3;border-color:#796441}
body[data-theme="dark"] .set-num{background:#3b4a3f;border-color:#556c55;color:#f2f7f0;box-shadow:none}
body[data-theme="dark"] .set-num:focus{background:#465849;border-color:#bddb95;box-shadow:0 0 0 3px #afe58c38}
body[data-theme="dark"] .set-num.done{background:#465b44;border-color:#6c8c5c;color:#d2f5b7}
body[data-theme="dark"] .set-done{background:#405044;border-color:#60705b;color:#abc1a2}
body[data-theme="dark"] .set-done.checked{background:#c0ed79;border-color:#c0ed79;color:#1d3016}
body[data-theme="dark"] .set-remove{background:#453c3b;border-color:#745a58;color:#f0bdb4}
body[data-theme="dark"] .set-head{color:#a7bea0}
body[data-theme="dark"] .set-row-footer .simple-link{color:#c4f097}
body[data-theme="dark"] .set-row-footer .simple-link.secondary{color:#b2d39b}
body[data-theme="dark"] .coach-plan{background:#485d43;color:#e1facb}
body[data-theme="dark"] .coach-invite{background:#3b4f39;border-color:#5b7952;color:#d2f4b9}
body[data-theme="dark"] .coach-card{background:linear-gradient(135deg,#3d543c,#4b6542 100%);border-color:#68865d;box-shadow:0 12px 28px #14231950;color:#e7f5e2}
body[data-theme="dark"] .coach-kicker{color:#d3f9a8}
body[data-theme="dark"] .coach-kicker span{color:#b6d9a7}
body[data-theme="dark"] .coach-card h3{color:#f1ffe6}
body[data-theme="dark"] .coach-card p{color:#d3e6ce}
body[data-theme="dark"] .coach-question{color:#e1f6d6}
body[data-theme="dark"] .coach-effort .choice{background:#ffffff15;border-color:#77916d;color:#e5f5db}
body[data-theme="dark"] .coach-effort .choice.active{background:#c2f08c;border-color:#c2f08c;color:#1f361d}
body[data-theme="dark"] .coach-targets>div{background:#ffffff12;border-color:#7b9570}
body[data-theme="dark"] .coach-targets small{color:#d2e7c8}
body[data-theme="dark"] .coach-targets strong{color:#f3ffe9}
body[data-theme="dark"] .coach-card .coach-apply{background:#c0ed79;color:#213820;box-shadow:none}
body[data-theme="dark"] .coach-dismiss{color:#c7e4b8}
body[data-theme="dark"] .undo-row{background:#594b36;border-color:#806949;color:#f7dfbd}
body[data-theme="dark"] .undo-row button{background:#69583d;color:#f9e2c2}
body[data-theme="dark"] .stats-grid .stat{background:#39493d;border-color:#506151;box-shadow:none}
body[data-theme="dark"] .stats-grid .stat strong{color:#f2f9ec}
body[data-theme="dark"] .stats-grid .stat small{color:#bbd0b4}
body[data-theme="dark"] .rest-bar{background:linear-gradient(130deg,#3b533b,#334533);border-color:#567051;box-shadow:0 9px 25px #13201a48}
body[data-theme="dark"] .rest-time{color:#edf8e7}
body[data-theme="dark"] .rest-bar .rest-label{color:#c2dcb4}
body[data-theme="dark"] .rest-actions button{background:#4c624a;border-color:#6a8464;color:#effae7}
body[data-theme="dark"] .rest-actions button:last-child{color:#e1ffbb}
body[data-theme="dark"] .chart-wrap{background:#37453a}
body[data-theme="dark"] .cal-day{background:#3b493e;color:#d7e4d3}
body[data-theme="dark"] .cal-day.done{background:#4a6344;color:#e2ffca}
body[data-theme="dark"] .cal-day.today{color:#d5f4c0}
body[data-theme="dark"] .history-item,body[data-theme="dark"] .setting-row{border-color:#526251}
body[data-theme="dark"] .banner{background:#3c5137;color:#d1eaca}
body[data-theme="dark"] .banner.warning-banner{background:#564632;color:#f5dbb0}
body[data-theme="dark"] .banner.privacy{background:#39463e;color:#c6dac1}
body[data-theme="dark"] .footnote{color:#a4b9a0}
body[data-theme="dark"] .empty{background:#344336;border-color:#4b5d4d;color:#bccfb8}
body[data-theme="dark"] .modal-panel{background:#2c382f;color:#f1f8ed;box-shadow:0 -25px 70px #09140b88}
body[data-theme="dark"] .modal-panel:before{background:#657260}
body[data-theme="dark"] .modal-opt{background:#39493d;color:#f1f6ed;border-color:#506151;box-shadow:none}
body[data-theme="dark"] .modal-opt:active{background:#475b48}
body[data-theme="dark"] .modal-close{background:#46584a;color:#eff8ed}
body[data-theme="dark"] .pick{background:#3b4e3a;border-color:#5a7255}
body[data-theme="dark"] .rating-stars .star-btn{color:#84947e}
body[data-theme="dark"] .rating-stars .star-btn.on{color:#f4c56c}
body[data-theme="dark"] .snapshot-row{border-color:#506150}
body[data-theme="dark"] .save-note{color:#b3c4ae}
@media(max-width:360px){.set-row{grid-template-columns:45px minmax(0,1fr) minmax(0,1fr) 39px 28px;gap:4px}.set-done{width:39px}.set-remove{width:28px}.set-num{font-size:16px}.coach-card{padding:15px 12px}.coach-targets strong{font-size:15px}.rest-actions button{min-width:29px;padding:0 6px}.workout-clock{font-size:14px}}
@media(prefers-reduced-motion:reduce){.coach-card{animation:none}.exercise-select{scroll-behavior:auto}}
/* Active-workout specificity reset: prevent legacy light-only overrides leaking into dark mode. */
body[data-theme="dark"][data-screen="workout"][data-active="true"]{--bg:#202720;--panel:#303b32;--panel2:#39463c;--panel3:#455346;--line:#445247;--text:#f2f6ed;--muted:#b0bfad;--soft:#cfddca;--green:#b8e393;--accent:#c0ed79;--accentText:#1b2a1b;color-scheme:dark;background:#18211b;color:#f2f6ed}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .device-shell{background:#202720}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .topbar{background:rgba(32,39,32,.93);border-bottom:1px solid #344138}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .brandname{color:#f6f9f0}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .tiny-status{color:#b1caaa}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .bottom-nav{background:rgba(35,45,38,.94);border-color:#405046;box-shadow:0 -10px 35px #0d1a113e}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .nav-item{color:#a2b29f}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .nav-item.active{color:#d0ff9c}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .nav-item.active .navico{background:#485e43;color:#d6ffa8}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .card{background:#303b32;border-color:#415043;box-shadow:0 8px 25px #08130c20;color:#f2f8ee}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .mini-card{background:#344335;border-color:#415043;box-shadow:none}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .inset{background:#3b4a3d;color:#eaf4e6}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .chip{background:#435445;color:#d9e8d4}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .chip.greenish{background:#485f3f;color:#d4f3b6}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .tiny{color:#b0c0ad}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .sub{color:#b0c0ad}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .btn.secondary{background:#405044;border-color:#516150;color:#ecf4e9}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .btn.outline{background:#2f3b30;border-color:#708d62;color:#d4f5b9}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .btn.ghost{color:#c3d2bf}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .iconbtn{background:#435144;color:#ecf6e7}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .hr{border-color:#4b5a4d}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .section-link{color:#d4f5b9}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .workout-top .eyebrow{color:#bdd5b2}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .workout-top .chip.greenish{background:#506746;color:#e2f8d2}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .exercise-header .eyebrow{color:#b8d39f}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .set-head{color:#a7bea0}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .set-index{background:#3e4d41;border-color:#536753;color:#ecf5e8}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .set-index.warm{background:#554b37;color:#f4d6a3;border-color:#796441}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .set-num{background:#3b4a3f;border-color:#556c55;color:#f2f7f0;box-shadow:none}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .set-num.done{background:#465b44;border-color:#6c8c5c;color:#d2f5b7}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .set-done{background:#405044;border-color:#60705b;color:#abc1a2}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .set-done.checked{background:#c0ed79;border-color:#c0ed79;color:#1d3016}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .stats-grid .stat{background:#39493d;border-color:#506151;box-shadow:none}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .stats-grid .stat strong{color:#f2f9ec}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .stats-grid .stat small{color:#bbd0b4}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .rest-bar .rest-label{color:#c2dcb4}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .save-note{color:#b3c4ae}
body[data-theme="dark"] .accent{color:#bee994}
body[data-theme="dark"] .section-link{color:#bfe997}
body[data-theme="dark"][data-screen="workout"][data-active="true"] .accent{color:#bee994}

/* FORM 4.0 — Quiet shell, assertive contextual coaching. */
:root{--coachLime:#b9ee79}
body{font-kerning:normal}
button{cursor:pointer}
button:focus-visible,.input:focus-visible,.set-num:focus-visible{outline:2px solid #91c857;outline-offset:2px}
.main{padding-bottom:calc(116px + env(safe-area-inset-bottom))}
/* Daily coach: compact first, more detail on demand. */
.coach-tipbar{display:flex;align-items:flex-start;gap:10px;background:#fff;border:1px solid #e6eedc;border-radius:17px;padding:13px 14px;margin:0 0 3px;box-shadow:0 5px 17px #213b1c0b}
.coach-tip-mark{color:#569047;font-size:21px;line-height:20px;font-weight:850}
.coach-tipbar>span:nth-child(2){display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.coach-tipbar b{font-size:12px;color:#273e27}
.coach-tipbar small{font-size:11px;line-height:1.55;color:#6f816b}
.coach-tipbar>button{border:0;border-radius:12px;padding:10px 11px;flex-shrink:0;color:#426f2f;font-size:11px;font-weight:780;background:#eaf7dd}
.coach-chat-open{width:100%;border:1px solid #d9eac8;background:linear-gradient(105deg,#f3faeb,#e9f8db);border-radius:15px;color:#395a31;padding:13px 14px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:820;text-align:left}
.coach-chat-open>span:first-child{color:#6aa646;font-size:20px}
.coach-chat-open>span:last-child{margin-left:auto;font-size:10px;font-weight:650;color:#6e8c60;text-align:right}
.coach-utility{margin-top:14px}
.coach-stop-note{padding:12px 13px;border:1px solid #d7e6c7;border-radius:13px;background:#f6fced;margin-bottom:12px;display:flex;flex-direction:column;gap:5px}
.coach-stop-note b{font-size:12px;color:#3e6137}
.coach-stop-note small{font-size:11px;line-height:1.55;color:#64805d}
.coach-stop-note.caution{background:#fff8e8;border-color:#f0e3c5}
.coach-stop-note.caution b{color:#926428}.coach-stop-note.caution small{color:#856a41}
.coach-stop-note.stop{background:#fff1ee;border-color:#f3d7d0}.coach-stop-note.stop b{color:#a23b38}.coach-stop-note.stop small{color:#8c6560}
.coach-quick-links{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px}
.coach-quick-links button{border:1px solid #d6e9c2;border-radius:11px;min-height:39px;background:#fffdf8ac;color:#4d703c;font-size:11px;font-weight:780}
/* Chat modal: on-device rules and transparent limitations. */
.coach-chat-intro{background:linear-gradient(120deg,#f3fae8,#e8f6d9);border-radius:16px;padding:14px 14px 11px;margin-bottom:13px}
.coach-chat-intro p{font-size:11px;line-height:1.6;color:#62765c;margin:7px 0 0}
.chat-messages{display:flex;flex-direction:column;gap:9px;max-height:min(33vh,265px);min-height:115px;overflow-y:auto;padding:2px 2px 9px;overscroll-behavior:contain}
.chat-message{max-width:93%;align-self:flex-start;white-space:pre-wrap;line-height:1.65;background:#edf4e8;border:1px solid #e3ebdd;padding:11px 12px;border-radius:7px 15px 15px 15px;font-size:12px;color:#2b4030}
.chat-message.user{background:#dff3c8;border:1px solid #cee7b8;align-self:flex-end;border-radius:15px 15px 7px 15px;max-width:86%}
.chat-empty{text-align:center;font-size:12px;color:#84927f;margin:auto}
.chat-quick{display:flex;flex-wrap:wrap;gap:6px;margin:5px 0 12px}
.chat-quick .choice{font-size:11px;border-radius:10px;padding:8px 11px}
.chat-compose{display:flex;gap:8px;align-items:center}
.chat-compose .input{min-width:0;flex:1;min-height:46px}
.chat-compose .btn{min-width:66px;min-height:46px;box-shadow:none;border-radius:12px;font-size:12px}
.chat-answer-actions{display:flex;flex-direction:column;gap:6px}
.chat-answer-actions:empty{display:none}
.chat-action-label{font-size:10px;color:var(--muted);margin-top:11px}
.chat-answer-actions .btn{font-size:12px;min-height:41px;border-radius:12px}
.modal-panel:has(.chat-messages){max-height:94vh;overflow-y:auto}
/* Weekly coaching insight. */
.coach-weekly{margin-top:24px}.coach-weekly-total{font-size:12px;color:var(--soft);margin:8px 0 16px;line-height:1.6}.coach-weekly-total b{color:var(--text)}
.week-bars{display:flex;flex-direction:column;gap:11px}
.week-row{display:grid;grid-template-columns:42px 1fr 25px;align-items:center;gap:9px;font-size:11px;color:var(--soft)}
.week-row b{color:var(--text);font-variant-numeric:tabular-nums;text-align:right}
.week-track{height:10px;border-radius:99px;background:var(--panel2);overflow:hidden}.week-track i{display:block;height:100%;background:#9bd45d;border-radius:99px}
.debrief{padding:15px;border:1px solid #d9eac9;background:#f4faee;border-radius:18px;color:#2f4a2b}
.debrief>b{font-size:19px;display:block;margin:9px 0 4px}.debrief p{line-height:1.6;font-size:12px;margin:0}
.three-increments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.three-increments label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:var(--soft)}.three-increments .input{width:100%;min-height:41px;font-size:14px;padding:6px 10px}
.set-index:has(span:first-child){letter-spacing:-.05em}.set-index:has(span:first-child) span{font-size:9px}
/* Dark is a designed alternative, not a page-wide inversion. */
body[data-theme="dark"] .coach-tipbar{background:#303c31;border-color:#485b46;box-shadow:none}
body[data-theme="dark"] .coach-tip-mark{color:#b8e78b}
body[data-theme="dark"] .coach-tipbar b{color:#e8f5e5}
body[data-theme="dark"] .coach-tipbar small{color:#b7cdb2}
body[data-theme="dark"] .coach-tipbar>button{background:#465e43;color:#e1f8cc}
body[data-theme="dark"] .coach-chat-open{background:linear-gradient(120deg,#394d38,#435c3c);border-color:#566d4f;color:#e5f7d9}
body[data-theme="dark"] .coach-chat-open>span:first-child{color:#c8f19c}
body[data-theme="dark"] .coach-chat-open>span:last-child{color:#bbd5ad}
body[data-theme="dark"] .coach-stop-note{background:#3d5539;border-color:#58714f}
body[data-theme="dark"] .coach-stop-note b{color:#e5f9d9}
body[data-theme="dark"] .coach-stop-note small{color:#c9ddc1}
body[data-theme="dark"] .coach-stop-note.caution{background:#53482f;border-color:#82704e}
body[data-theme="dark"] .coach-stop-note.caution b{color:#ffe5ad}
body[data-theme="dark"] .coach-stop-note.caution small{color:#f1d4a1}
body[data-theme="dark"] .coach-stop-note.stop{background:#593d3e;border-color:#7d5352}
body[data-theme="dark"] .coach-stop-note.stop b{color:#ffe2d7}
body[data-theme="dark"] .coach-stop-note.stop small{color:#efc2bd}
body[data-theme="dark"] .coach-quick-links button{background:#405442;border-color:#678362;color:#ecf9df}
body[data-theme="dark"] .coach-chat-intro{background:linear-gradient(110deg,#40583d,#4b6643)}
body[data-theme="dark"] .coach-chat-intro p{color:#e0f1d8}
body[data-theme="dark"] .chat-message{background:#3b4d3d;border-color:#566e53;color:#ecf7e8}
body[data-theme="dark"] .chat-message.user{background:#526e43;border-color:#698956;color:#f1ffec}
body[data-theme="dark"] .chat-empty{color:#b5c6b1}
body[data-theme="dark"] .chat-compose .input{background:#3a4a3e}
body[data-theme="dark"] .debrief{background:#3e5539;border-color:#5b784f;color:#e5f4de}
body[data-theme="dark"] .coach-weekly .section-title{color:#f4f9f1}
body[data-theme="dark"] .week-track{background:#405443}
@media(max-width:370px){.coach-chat-open>span:last-child{font-size:9px}.coach-tipbar{padding:11px}.coach-tipbar>button{padding:8px}.chat-quick .choice{padding:7px 9px}.three-increments .input{padding:4px 7px}}
@media(prefers-reduced-motion:reduce){.coach-tipbar,.chat-message{animation:none;transition:none}}
.coach-goal-reason{font-size:10px;font-weight:500;line-height:1.55;opacity:.88;margin-top:6px}

/* FORM v5 — deliberately quiet coaching + routine editing */
.set-guidance{font-size:11px;line-height:1.65;color:var(--soft);background:var(--panel2);border:1px solid var(--line);padding:10px 12px;border-radius:13px;margin-top:13px}
.set-guidance b{color:var(--text)}
.set-num::placeholder{color:#879b7f;opacity:.65}
.set-index:has(span:first-child){line-height:1.3}
.set-index:has(span:first-child) span{font-size:9px}
.set-index:has(span:first-child) b{font-size:15px}
.coach-feedback{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:10px;border-top:1px solid #bcdca6;padding-top:9px}
.coach-feedback span{font-size:10px;color:#5e7855;margin-right:3px;font-weight:700}
.coach-feedback button{font-size:10px;border:1px solid #bedda7;background:#fff;border-radius:10px;color:#45683e;padding:7px 9px;font-weight:700}
.coach-tip-end{font-size:10px;font-weight:750;color:var(--muted);margin-left:auto;white-space:nowrap}
.routine-preview-list{display:grid;gap:9px;max-height:none}
.routine-preview-row{background:var(--panel2);border:1px solid var(--line);border-radius:17px;padding:12px 13px}
.routine-preview-row .between{align-items:flex-start}
.routine-preview-row .grow{display:grid;gap:4px}
.routine-preview-row .grow small{font-size:10px;font-weight:700;color:var(--muted)}
.routine-preview-row .grow b{font-size:14px;line-height:1.4;color:var(--text)}
.routine-preview-row .grow span{font-size:11px;color:var(--soft)}
.routine-tune{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:11px}
.routine-tune label{display:grid;gap:5px;font-size:10px;color:var(--soft);font-weight:730;min-width:0}
.routine-tune input{width:100%;min-width:0;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);text-align:center;padding:9px 2px;font-size:14px;font-weight:800}
.routine-actions{display:flex;gap:6px;margin-top:9px}
.routine-actions button{flex:1;min-height:34px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--soft);font-weight:700;font-size:11px}
.routine-actions button:last-child{color:#c96860}
.routine-actions button:disabled{opacity:.4}
.modal-panel:has(.routine-preview-list){max-height:min(92dvh,850px);overflow-y:auto;overscroll-behavior:contain}
.modal-panel:has(.routine-preview-list) .modal-head{position:sticky;top:-20px;z-index:2;background:var(--panel);padding:10px 0}
body[data-theme="dark"] .coach-feedback{border-top-color:#64795b}
body[data-theme="dark"] .coach-feedback span{color:#c1d8b9}
body[data-theme="dark"] .coach-feedback button{color:#e2f4db;border-color:#5f7855;background:#354732}
body[data-theme="dark"] .set-num::placeholder{color:#a4be9d;opacity:.75}
body[data-theme="dark"] .set-guidance{color:#becdba;background:#323d33;border-color:#485b45}
body[data-theme="dark"] .set-guidance b{color:#f1ffe5}
body[data-theme="dark"] .routine-preview-row{background:#344239;border-color:#485b46}
body[data-theme="dark"] .routine-preview-row .grow b{color:#f0f9e9}
body[data-theme="dark"] .routine-preview-row .grow span{color:#bed3b8}
body[data-theme="dark"] .routine-tune input,body[data-theme="dark"] .routine-actions button{background:#28372c;color:#edf5e9;border-color:#536b50}
body[data-theme="dark"] .modal-panel:has(.routine-preview-list) .modal-head{background:#2c382f}
@media(max-width:350px){.routine-tune{grid-template-columns:repeat(2,minmax(0,1fr))}.set-row-footer{gap:6px}}
.coach-feedback button.selected{background:#294a2a;color:#fff;border-color:#294a2a}
body[data-theme="dark"] .coach-feedback button.selected{background:#b6ee84;color:#21311e}
.progress-compare{background:var(--panel2);border:1px solid var(--line);padding:13px;border-radius:14px;margin-top:8px;display:grid;gap:11px}
.progress-compare>b{font-size:13px}
.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.compare-grid>div{background:var(--panel);padding:11px;border:1px solid var(--line);border-radius:12px;display:grid;gap:4px}
.compare-grid small{font-size:10px;color:var(--muted)}.compare-grid strong{font-size:21px;color:var(--text)}.compare-grid span{font-size:11px;color:var(--soft)}
.compare-foot{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--text)}

/* FORM v5.1: four focused enhancements, compatible with legacy palettes */
.v51-mission{margin-top:14px;border:1px solid #cfe2b5;border-radius:16px;padding:15px;background:linear-gradient(130deg,#f4fae9,#e8f3d7);display:grid;gap:7px;color:#2e4728}
.v51-mission-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;font-weight:850}
.v51-mission-head small{font-size:10px;font-weight:750;color:#64745b}
.v51-mission>b{font-size:18px;letter-spacing:-.4px}
.v51-mission>strong{font-size:14px}
.v51-mission>p{margin:0;font-size:11px;line-height:1.65;color:#5c6c51}
.v51-feel{background:var(--panel2);border:1px solid var(--line);border-radius:14px;padding:13px;margin:6px 0}
.v51-feel .section-title{font-size:13px}
.v51-feel p{margin:8px 0 10px;font-size:11px;line-height:1.5}
.v51-feel-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.v51-feel-options .choice{padding:10px 4px;min-height:43px;font-size:11px;white-space:normal;line-height:1.4}
.v51-weekly{margin-top:13px}
.v51-week-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0}
.v51-week-grid>div{background:var(--panel2);border:1px solid var(--line);border-radius:13px;padding:12px 6px;text-align:center;display:grid;gap:3px}
.v51-week-grid b{font-size:23px;color:var(--text)}
.v51-week-grid small{font-size:10px;color:var(--soft)}
.v51-weekly p{font-size:11px;line-height:1.65;margin:8px 0 13px}
body[data-theme="dark"] .v51-mission{background:linear-gradient(140deg,#283d2c,#334d33);border-color:#57724e;color:#e9f6d8}
body[data-theme="dark"] .v51-mission-head small,body[data-theme="dark"] .v51-mission>p{color:#bcd2b1}
@media(max-width:350px){.v51-feel-options{grid-template-columns:1fr}.v51-feel-options .choice{min-height:35px}}

