:root{color-scheme:dark;--bg:#0b1020;--surface:#151c2e;--surface2:#1c263b;--surface3:#252f44;--line:#303c50;--ink:#f5f7fe;--muted:#9eaabd;--sub:#78869b;--accent:#a5f47b;--accent-dark:#16321c;--blue:#81b9ff;--red:#ff716f;--yellow:#ffcd74;--shadow:0 18px 45px #02051055;font-family:-apple-system,BlinkMacSystemFont,"PingFang TC","Noto Sans TC",Segoe UI,sans-serif;font-size:15px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);-webkit-tap-highlight-color:transparent}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}input,select,textarea{border:1px solid var(--line);outline:none;background:var(--surface2);border-radius:13px;padding:12px;min-width:0;width:100%}input:focus,select:focus,textarea:focus{border-color:var(--accent)}input[type=checkbox]{width:auto;accent-color:var(--accent)}button:focus-visible{outline:2px solid var(--accent)}button:disabled{opacity:.5;cursor:not-allowed}#app{max-width:680px;min-height:100dvh;margin:auto;position:relative;background:linear-gradient(180deg,#0e1527 0%,#0b1020 28%)}.topbar{height:74px;padding:calc(env(safe-area-inset-top) + 10px) 20px 10px;box-sizing:content-box;display:flex;justify-content:space-between;align-items:center;max-height:91px}.brand{display:flex;align-items:center;gap:11px}.mark{height:42px;width:42px;display:grid;place-items:center;font-size:23px;font-weight:900;color:var(--ink);background:#25333b;border:1px solid #416a52;border-radius:14px;letter-spacing:-2px}.mark span{color:var(--accent)}.brandText{display:flex;flex-direction:column;gap:1px}.brandText b{font-size:18px;letter-spacing:-.5px}.brandText small{font-size:9px;letter-spacing:2.2px;color:var(--sub);font-weight:800}.iconBtn{background:transparent;border:0;color:var(--muted);font-size:24px;padding:8px}main{min-height:calc(100dvh - 186px);padding:12px 18px calc(110px + env(safe-area-inset-bottom));}h1,h2,h3,p{margin-top:0}h1{font-size:29px;letter-spacing:-.8px;line-height:1.2;margin-bottom:8px}h2{font-size:20px;margin-bottom:10px;letter-spacing:-.3px}h3{font-size:16px;margin-bottom:8px}.sub{color:var(--muted);font-size:13px;line-height:1.7}.tiny{font-size:11px;color:var(--sub)}.eyebrow{letter-spacing:2px;font-size:10px;font-weight:800;color:var(--accent);margin-bottom:8px}.lead{margin-bottom:22px}.section{margin:24px 0 14px}.sectionRow{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.sectionRow h2{margin:0}.panel{background:var(--surface);border:1px solid #273349;border-radius:20px;padding:17px;margin-bottom:12px;box-shadow:0 4px 20px #0000001a}.panel.soft{background:var(--surface2)}.panel.accent{background:linear-gradient(128deg,#203529 0%,#172a28 70%,#1d293a 100%);border-color:#416a50}.panel.red{background:#322027;border-color:#67414a}.row{display:flex;align-items:center;justify-content:space-between;gap:11px}.flex{display:flex;gap:10px;align-items:center}.grow{flex:1;min-width:0}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.metric{padding:15px;border-radius:17px;background:var(--surface);border:1px solid #293449}.metric .value{font-size:26px;font-weight:850;letter-spacing:-1px;margin:7px 0}.metric .value small{font-size:12px;font-weight:500;color:var(--muted)}.meter{height:6px;background:#344056;border-radius:20px;overflow:hidden;margin-top:12px}.meter span{display:block;height:100%;background:var(--accent);border-radius:20px;max-width:100%}.meter.blue span{background:var(--blue)}.button{border:0;display:flex;align-items:center;justify-content:center;gap:7px;text-align:center;border-radius:14px;font-weight:750;min-height:45px;padding:11px 15px;background:var(--accent);color:#101a16}.button.dark{background:var(--surface2);color:var(--ink);border:1px solid var(--line)}.button.ghost{background:transparent;color:var(--muted);border:1px solid var(--line)}.button.danger{background:#612d36;color:#fff}.button.compact{min-height:36px;padding:8px 12px;font-size:12px}.button.block{width:100%}.pill{border-radius:100px;padding:7px 12px;background:#27334a;color:#bdcadd;font-size:12px;display:inline-flex;align-items:center;gap:5px;border:1px solid #3b4b61}.pill.selected{color:#132316;background:var(--accent);border-color:var(--accent);font-weight:800}.pills{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.tag{font-size:11px;background:#253349;color:#cbd4e1;padding:5px 8px;border-radius:7px;display:inline-block}.tag.green{background:#21492b;color:#b7f69b}.tag.red{background:#4c2931;color:#ffb0ae}.tag.yellow{background:#423825;color:#f3d59a}.divider{height:1px;background:var(--line);margin:15px 0}.link{border:0;background:transparent;color:var(--accent);font-size:13px;font-weight:700;padding:5px}.back{background:none;border:0;color:var(--muted);padding:5px 0 17px;display:inline-flex;align-items:center;gap:8px}.tile{display:flex;align-items:center;gap:13px;text-align:left;padding:12px;background:var(--surface);border:1px solid #2b3950;border-radius:17px;width:100%;color:var(--ink)}.tile:active,.button:active{transform:scale(.995)}.tileInfo{flex:1;min-width:0}.tileInfo b{display:block;font-size:14px;margin-bottom:5px}.tileInfo p{margin:0;font-size:12px;color:var(--muted);line-height:1.5}.arrow{color:#65758a;font-size:20px}.thumb{width:72px;height:74px;flex:none;border-radius:12px;overflow:hidden;background:#232d3e}.thumb svg{width:100%;height:100%}.thumb.big{width:100%;height:225px;border-radius:18px;background:linear-gradient(160deg,#263242,#151f30)}.thumb.big svg{height:100%}.catCard{border:1px solid #304057;background:var(--surface);border-radius:19px;text-align:left;padding:15px 12px;width:100%;display:flex;flex-direction:column;gap:12px;min-height:120px}.catSymbol{height:45px;width:45px;border-radius:15px;display:grid;place-items:center;background:#2b3d39;color:var(--accent);font-size:20px;font-weight:850}.catCard b{font-size:17px}.catCard small{color:var(--muted);font-size:11px}.segment{background:#1c2639;padding:5px;border-radius:14px;display:flex;gap:5px;margin:14px 0}.segment button{flex:1;border:0;background:transparent;border-radius:11px;color:var(--muted);padding:11px 6px;font-size:12px;font-weight:750}.segment button.active{background:#3c4f53;color:#d7ffc9}.stack{display:flex;flex-direction:column;gap:9px}.formRow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:12px 0}.formField{display:flex;flex-direction:column;gap:7px}.formField label{font-size:12px;color:var(--muted);font-weight:650}.formField.full{grid-column:1/-1}.formHelp{font-size:11px;color:var(--muted);line-height:1.7}.mealRow{display:grid;grid-template-columns:1fr 90px;gap:10px;align-items:center}.mealItem{border-bottom:1px solid #2c3748;padding:12px 0;display:flex;justify-content:space-between;gap:8px}.mealItem:last-child{border:0}.foodPic{height:130px;background:var(--surface2);border:1px dashed #4e596c;border-radius:14px;display:grid;place-items:center;text-align:center;color:var(--muted);font-size:13px;overflow:hidden}.foodPic img{width:100%;height:100%;object-fit:contain}.statsChart{display:flex;align-items:flex-end;justify-content:space-between;gap:7px;height:115px;padding-top:12px;border-bottom:1px solid #425068}.barCol{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;height:100%;flex:1}.barCol span{display:block;background:linear-gradient(180deg,#a3f281,#46694e);border-radius:6px 6px 2px 2px;width:100%;max-width:34px;min-height:3px}.barCol small{font-size:10px;color:var(--muted)}.workoutSetHeader,.workoutSet{display:grid;grid-template-columns:27px 1fr 1fr 1fr 35px;gap:6px;align-items:center;margin:8px 0}.workoutSetHeader{font-size:11px;color:var(--muted);text-align:center}.workoutSet input,.workoutSet select{padding:9px 4px;text-align:center;font-size:13px;border-radius:9px}.workoutSet button{border:1px solid #40516a;background:#26374a;border-radius:10px;color:#c4e9b5;height:37px;font-size:17px}.workoutSet button.done{background:#335737;border-color:#6fbd58}.groupBadge{height:39px;width:39px;background:#2c3f3b;border-radius:12px;display:grid;place-items:center;color:var(--accent);font-weight:850}.floatAction{position:sticky;bottom:95px;background:#151e30ed;backdrop-filter:blur(15px);border:1px solid #42536d;padding:11px;border-radius:18px;box-shadow:var(--shadow)}.tabbar{height:calc(72px + env(safe-area-inset-bottom));display:flex;position:fixed;z-index:10;bottom:0;width:100%;max-width:680px;background:#111b2df0;backdrop-filter:blur(20px);border-top:1px solid #344055;padding:7px 4px calc(7px + env(safe-area-inset-bottom))}.tabbar button{flex:1;background:transparent;border:0;display:flex;flex-direction:column;align-items:center;gap:4px;color:#8391a8;font-size:10px;font-weight:600;padding:4px 0}.tabbar .ico{font-size:22px;line-height:26px}.tabbar button.active{color:var(--accent)}.empty{padding:32px 14px;text-align:center;color:var(--muted);background:#151d2e;border:1px dashed #364258;border-radius:18px;line-height:1.7}.lineIcon{background:#2d4140;border-radius:13px;width:45px;height:45px;display:grid;place-items:center;font-size:20px}.helpBox{border:1px solid #554c38;background:#2a2826;border-radius:15px;padding:12px;color:#f1d3a1;font-size:12px;line-height:1.8;margin-top:12px}.dangerBox{background:#34212b;border:1px solid #704757;border-radius:15px;padding:12px;color:#ffc0c7;font-size:12px;line-height:1.8}.guideList{padding-left:20px;color:#dce4f0;line-height:1.9;font-size:13px}.guideList li{margin:8px 0}.miniHeader{font-size:12px;font-weight:800;letter-spacing:.6px;color:#c1d1e2}.weightDisplay{font-weight:900;font-size:32px}.callout{font-size:12px;line-height:1.75;background:#203029;border-radius:12px;padding:12px;color:#c4efc0}#toast{position:fixed;z-index:100;bottom:calc(95px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%) translateY(15px);opacity:0;pointer-events:none;transition:.22s;background:#d8fcbf;color:#1b2819;border-radius:12px;font-size:13px;font-weight:750;padding:11px 17px;box-shadow:var(--shadow);max-width:90vw;white-space:nowrap}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}a{color:var(--accent)}.motionSvg{width:100%;height:auto;max-height:210px}.motionCanvas{background:radial-gradient(ellipse at center,#28374c,#172034);border:1px solid #37455c;border-radius:18px;padding:8px;overflow:hidden}.motionCaption{font-size:11px;color:var(--muted);text-align:center;margin-top:6px}.heroStat{display:flex;align-items:center;gap:10px}.heroStat .big{font-size:31px;font-weight:900}.smallAction{background:transparent;border:0;color:var(--muted);padding:8px;font-size:12px}.checks{display:flex;gap:6px;flex-wrap:wrap}.checks label{display:flex;align-items:center;gap:6px;font-size:12px;border:1px solid var(--line);padding:7px 10px;border-radius:9px}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.calendarDay{aspect-ratio:1;display:grid;place-items:center;border-radius:8px;background:#1f2939;color:#9aa9c1;font-size:11px}.calendarDay.active{background:#3b6242;color:#e8ffe0}.calendarDay.today{outline:1px solid #94da73}.warnText{font-size:12px;color:#ffbec5}.photoTip{font-size:11px;color:var(--muted);line-height:1.7}.logoHero{font-size:35px;font-weight:900;letter-spacing:-2px}.logoHero span{color:var(--accent)}.notes{white-space:pre-wrap;font-size:12px;line-height:1.8;color:var(--muted)}.tableScroll{overflow:auto}.resultLine{display:flex;justify-content:space-between;gap:10px;font-size:13px;padding:10px 0;border-bottom:1px solid #29354a}@media(min-width:681px){.tabbar{left:50%;transform:translateX(-50%)}#app{box-shadow:0 0 70px #0008}.topbar{padding-top:14px}}@media(max-width:350px){.metric .value{font-size:22px}.grid3{gap:6px}.catCard{padding:12px 9px}}

/* FITATLAS / EDITION 02 — Quiet utility: fewer colors, warmer neutrals, restrained spacing. */
:root{--bg:#0f1114;--surface:#181b1f;--surface2:#202429;--surface3:#282d32;--line:#31373b;--ink:#f2f2ec;--muted:#9ca6a7;--sub:#778184;--accent:#bdd4c3;--accent-dark:#1b3028;--blue:#a9bdcf;--red:#db7e73;--yellow:#dcb984;--shadow:0 18px 50px #0006;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang TC","Noto Sans TC",sans-serif;font-size:15px}
body{background:var(--bg)}#app{background:var(--bg);max-width:560px}main{padding:13px 20px calc(113px + env(safe-area-inset-bottom))}h1{font-size:29px;letter-spacing:-1.15px;font-weight:760;line-height:1.25;margin-bottom:10px}h2{font-size:18px;letter-spacing:-.55px;font-weight:700}h3{font-size:15px}p{line-height:1.6}.sub{font-size:13px;color:#8e999c;line-height:1.65}.tiny{font-size:11px;color:#8f9a9c}.eyebrow{font-weight:700;letter-spacing:1.7px;font-size:10px;color:#91a49c;margin-bottom:13px}.lead{margin-top:12px;margin-bottom:23px}.section{margin:30px 0 14px}.sectionRow{margin-bottom:15px}
.topbar{height:58px;box-sizing:content-box;padding:calc(env(safe-area-inset-top) + 4px) 20px 7px;max-height:86px;border-bottom:1px solid #ffffff0d}.brand{gap:10px}.mark{height:35px;width:35px;border:1px solid #536d5f;background:#26332e;border-radius:10px;font-size:20px;letter-spacing:-1.5px}.mark span{color:#bdd4c3}.brandText{gap:1px}.brandText b{font-size:16px;letter-spacing:-.6px;font-weight:760}.brandText small{font-size:8px;color:#7f8d89;letter-spacing:1.8px;font-weight:650}.iconBtn{color:#afbbbc;display:grid;place-items:center;border:1px solid #333c40;border-radius:11px;width:38px;height:38px;padding:0;font-size:20px}.iconBtn:active{background:#ffffff0a}
.panel{background:#1a1e22;border:1px solid #343b3e;border-radius:16px;padding:18px;margin-bottom:12px;box-shadow:none}.panel.soft{background:#20262a}.panel.accent{background:#1b2823;border:1px solid #41594b}.panel.red{background:#302126;border-color:#64424a}.metric{padding:17px;border-radius:15px;background:#1b1f23;border:1px solid #31393c}.metric .value{font-size:27px;font-weight:740;letter-spacing:-1.2px}.grid2{gap:10px}.meter{height:4px;background:#3c4746;margin-top:16px}.meter span{background:#b6d1bb}.meter.blue span{background:#b0bfcd}
.button{min-height:45px;border-radius:11px;background:#c5dbcb;color:#10221b;font-weight:700;box-shadow:none}.button.dark{background:#24292e;border:1px solid #414b4b;color:#e8ece7}.button.ghost{background:transparent;border:1px solid #394043;color:#c4cece}.button.compact{min-height:38px;border-radius:10px;font-size:12px}.pill{font-size:12px;border-radius:24px;border:1px solid #3b4445;background:#1b2023;color:#aeb8b8;padding:8px 12px}.pill.selected{background:#bfd6c3;color:#15251c;border-color:#bfd6c3}.segment{background:#1c2024;border:1px solid #30383a;border-radius:12px;padding:4px;gap:4px;margin:18px 0}.segment button{border-radius:9px;font-size:13px;font-weight:650;padding:11px 6px}.segment button.active{background:#353e3e;color:#e7f0ea}.tag{border-radius:6px;background:#2d3437;color:#c7cfcf}.tag.green{background:#293e33;color:#bddbc4}.tag.red{background:#4d3435;color:#f2b1aa}.divider{background:#30393b}.link{color:#bfd8c5;font-weight:640}.back{color:#aeb6b6;font-size:13px;margin-top:5px;margin-bottom:4px}.tile{border:1px solid #343c3f;background:#1a1e22;border-radius:14px;padding:11px;gap:12px}.tileInfo b{font-size:14px;letter-spacing:-.1px}.tileInfo p{font-size:12px;color:#a4afaf}.arrow{color:#8f9b9b}.thumb{background:#22292a;border-radius:9px;width:66px;height:70px}.thumb.big{background:#202729;height:225px;border-radius:12px}.groupBadge,.lineIcon{background:#2c3b35;color:#c5dbc6;border-radius:10px}.lineIcon{width:42px;height:42px}.empty{border:1px dashed #454b4b;border-radius:14px;background:#1b2022}.helpBox{background:#282722;border:1px solid #514b3c;color:#dfcba7;border-radius:11px}.dangerBox{border:1px solid #684146;background:#2d2023;border-radius:12px}.callout{background:#243329;color:#c2dec9}.guideList{color:#d5deda}.resultLine{border-color:#343b3d}.motionCanvas{background:#202729;border:1px solid #353e3e;border-radius:14px}.floatAction{background:#15191beF;border:1px solid #3a4442;border-radius:14px;backdrop-filter:blur(24px)}
input,select,textarea{background:#22272b;border:1px solid #41484b;border-radius:11px;color:#ecf0eb}input:focus,select:focus,textarea:focus{border-color:#bfd7c2}.formField label{color:#a6b0ae;font-weight:600}::placeholder{color:#7d898b}
.logoHero{font-weight:780;letter-spacing:-1.7px;font-size:31px}.logoHero span{color:#c1d8c4}.heroStat .big{font-weight:760}.statsChart .barCol span{background:linear-gradient(180deg,#b9d0bd,#729783)}
/* Library: monochrome editorial muscle cards with original custom anatomical illustrations. */
.libraryMeta{display:flex;align-items:center;gap:10px;color:#a3aeaf;font-size:12px;margin:-2px 0 16px}.metaDot{background:#71807b;border-radius:100%;width:3px;height:3px}.groupGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.catCard{position:relative;min-height:228px;padding:0;display:block;overflow:hidden;text-align:left;border-radius:15px;border:1px solid #343b3f;background:#1b2023;transition:background .2s,border-color .2s}.catCard:focus-visible{outline:2px solid #bbd6be;outline-offset:2px}.catCard:active{background:#242d2c}.catArtwork{height:136px;position:relative;display:flex;justify-content:center;align-items:center;overflow:hidden;background:linear-gradient(180deg,#252b2c,#212729);border-bottom:1px solid #373f41}.catArtwork::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:1px;background:#ffffff04}.catArtwork img{display:block;width:115px;height:172px;object-fit:contain;object-position:center;position:relative;top:23px;filter:contrast(1.03) saturate(.9)}.catIndex{position:absolute;top:12px;left:13px;color:#899692;font-size:9px;letter-spacing:1.2px;font-variant-numeric:tabular-nums;font-weight:650}.catFooter{padding:14px 14px 12px}.catName{font-size:22px;font-weight:760;letter-spacing:-.6px;line-height:1.1;margin-bottom:4px;color:#f2f3ee}.catInfo{font-size:11px;color:#899798;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.catBottom{border-top:1px solid #ffffff13;margin-top:12px;padding-top:10px;display:flex;align-items:center;justify-content:space-between;color:#adbabb;font-size:11px}.catBottom .uiIcon{width:15px;height:15px;color:#8ca69a}.featureCard{display:flex;width:100%;align-items:center;gap:14px;border-radius:15px;background:#1b2023;border:1px solid #3b4742;padding:18px;text-align:left;color:#eaf1e9}.featureMark{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#2a3b31;color:#c5dec9;flex:none}.featureInfo{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.featureInfo b{font-size:15px;font-weight:700}.featureInfo small{font-size:12px;color:#a0adab}.featureCard>.uiIcon{color:#94a8a0;width:18px;height:18px}
.tabbar{height:calc(69px + env(safe-area-inset-bottom));max-width:560px;background:#161a1cfa;border-top:1px solid #343d3f;padding:8px 9px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -6px 24px #0003}.tabbar button{color:#7f8a8b;font-size:10px;gap:5px;font-weight:650;transition:color .15s}.tabbar button.active{color:#cfdfd2}.tabbar .tabIcon{height:24px;display:flex;align-items:center}.tabbar .uiIcon{height:21px;width:21px;stroke-width:1.6}.tabbar button.active .uiIcon{stroke-width:2}
#toast{border-radius:10px;background:#d8ead9;color:#1b2b20;font-weight:650}.calendarDay{background:#272c2e;color:#a4afaf}.calendarDay.active{background:#435d4b;color:#eaf3eb}.calendarDay.today{outline:1px solid #c4d8c4}
@media(min-width:561px){.tabbar{left:50%;transform:translateX(-50%)}#app{box-shadow:0 0 80px #0007}.topbar{padding-top:14px}}
@media(max-width:370px){.groupGrid{gap:9px}.catArtwork{height:119px}.catCard{min-height:212px}.catName{font-size:20px}.catFooter{padding:13px 12px}.catArtwork img{width:104px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Small visual refinements */
.mark{display:flex;align-items:center;justify-content:center}.mark span{display:inline;letter-spacing:-.8px;margin-left:0px}.catArtwork img{position:relative;top:2px;width:100%;height:100%;max-width:164px;max-height:155px;object-fit:contain;filter:contrast(1.06) saturate(.89)}

/* Unified home quick actions */
.quickActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:6px 0 26px}.quickAction{display:flex;flex-direction:column;gap:12px;text-align:left;border:1px solid #343f3e;border-radius:15px;padding:15px;background:#1b2221;position:relative;color:#eef1eb;min-height:125px}.quickAction .quickIcon{display:grid;place-items:center;height:34px;width:34px;border-radius:9px;background:#34483c;color:#cbdfcf}.quickAction .quickIcon svg{width:18px;height:18px}.quickAction .quickActionText{display:flex;flex-direction:column;gap:3px}.quickAction .quickActionText b{font-size:14px;font-weight:700}.quickAction .quickActionText small{font-size:11px;color:#9eafaa;letter-spacing:0}.quickAction>.uiIcon{position:absolute;right:14px;top:23px;color:#829a8d;width:17px;height:17px}.quickAction:active{background:#26342e}
/* FitAtlas V3 — editorial light interface, quiet accents, accessible contrast. */
:root{color-scheme:light;--bg:#f8f8f4;--surface:#fff;--surface2:#f3f4ee;--surface3:#e9ede5;--line:#e3e6df;--ink:#242b2a;--muted:#65706b;--sub:#85908b;--accent:#496b5b;--accent-dark:#e5eee8;--blue:#738d9b;--red:#c87968;--yellow:#a38254;--shadow:0 7px 22px #25372b0a}
body{background:#f8f8f4;color:var(--ink)}#app{background:#f8f8f4;box-shadow:none}main{padding:14px 20px calc(113px + env(safe-area-inset-bottom))}.topbar{border-bottom:1px solid #e8ebe4;background:#f8f8f4}.mark{background:#e7eee8;border:1px solid #c4d4c9;color:#355143}.mark span{color:#6a9b78}.brandText b{color:#26312b}.brandText small{color:#88948c}.iconBtn{color:#586860;border-color:#dee3da;background:#fff}
h1{color:#1e2a24;font-weight:760;font-size:30px;line-height:1.3}h2,h3{color:#26332c}.sub{color:#637269}.tiny{color:#7d8b83}.eyebrow{color:#62816d;font-size:10px;letter-spacing:1.6px}.libraryMeta{color:#7f8d83}.metaDot{background:#a3b9a8}
.panel,.metric{background:#fff;border:1px solid #e3e6e0;box-shadow:0 4px 14px #233c2d08}.panel.soft{background:#f3f5f1}.panel.accent{background:#eef4ed;border-color:#d3e2d5}.panel.red{background:#fbefed;border-color:#edd5d0}.metric .value{color:#202e27}.meter{background:#e8ece5}.meter span{background:#648875}.meter.blue span{background:#97aebd}
.button{background:#365b49;color:#fff;border:1px solid #365b49}.button.dark{background:#f4f6f2;border:1px solid #d9e0da;color:#375243}.button.ghost{background:#fff;border-color:#dbe2dc;color:#50635b}.button.danger{background:#aa4b4b;color:#fff;border:1px solid #aa4b4b}.pill{color:#64736b;border:1px solid #e0e6df;background:#fff}.pill.selected{background:#e0ece2;color:#355344;border-color:#bfd2c3}.segment{background:#eef1ec;border:1px solid #e1e5df}.segment button{color:#6c776f}.segment button.active{background:#fff;color:#334f3e;box-shadow:0 2px 5px #0000000a}.tag{background:#f1f4ef;color:#526157}.tag.green{background:#e2eee5;color:#3f704f}.tag.red{background:#f9e7e4;color:#b15b4e}.tag.yellow{background:#f8f0dc;color:#8c6d39}.divider{background:#e7eae4}.link{color:#446a52}.back{color:#687c6b}
.tile{border:1px solid #e4e8df;background:#fff}.tileInfo b{color:#29382d}.tileInfo p{color:#738078}.arrow{color:#91a39a}.thumb{background:#f1f2ee}.thumb.big{background:#f0f2ee}.groupBadge,.lineIcon{background:#e8eee8;color:#486c58}.empty{background:#fbfcf9;border-color:#d9e3da;color:#5b7163}.helpBox{background:#fffaf0;color:#816a3a;border:1px solid #ede1c2}.dangerBox{background:#fff1ef;border-color:#edc9c3}.callout{background:#f0f5ef;color:#496452}.guideList{color:#435248}.resultLine{border-color:#e4e9e3}.motionCanvas{background:#f3f5f0;border:1px solid #e1e5df}.floatAction{background:#ffffffed;border:1px solid #dce3dc;box-shadow:0 5px 24px #213b2b17}
input,select,textarea{background:#fff;border:1px solid #dce3dc;color:#243128;box-shadow:none}input:focus,select:focus,textarea:focus{border-color:#709780;outline:2px solid #c8dfce44}.formField label{color:#4c5d50}::placeholder{color:#a2aaa3}input[type=checkbox]{accent-color:#426c53}.formHelp{color:#7c8880}
.catCard{min-height:231px;background:#fff;border-color:#e3e7e0;box-shadow:0 5px 15px #27412a07;transition:border-color .18s,transform .18s,box-shadow .18s}.catCard:active{background:#f9fbf8;transform:scale(.985)}.catCard:focus-visible{outline:2px solid #659573}.catArtwork{height:143px;background:#f3f5f1;border-bottom:1px solid #ecede8}.catArtwork::before{background:transparent}.catArtwork img{max-width:153px;max-height:150px;top:3px;filter:none;animation:iconArrival .75s ease-out both;will-change:transform}.catCard:nth-child(2) .catArtwork img{animation-delay:.06s}.catCard:nth-child(3) .catArtwork img{animation-delay:.12s}.catCard:nth-child(4) .catArtwork img{animation-delay:.18s}.catCard:nth-child(5) .catArtwork img{animation-delay:.24s}.catCard:nth-child(6) .catArtwork img{animation-delay:.3s}.catCard:nth-child(7) .catArtwork img{animation-delay:.36s}
@keyframes iconArrival{from{opacity:.2;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.catIndex{color:#aab2aa;letter-spacing:1px}.catFooter{padding:14px}.catName{color:#29382d}.catInfo{color:#79877e}.catBottom{border-top:1px solid #e8ece7;color:#7b8a82}.catBottom .uiIcon{color:#597f64}.featureCard{background:#f0f5ef;border-color:#dce8de;color:#304d3b}.featureMark{background:#e0ecdf;color:#4a7153}.featureInfo small{color:#75877b}.featureCard>.uiIcon{color:#65806a}
.tabbar{background:#fffffffc;border-top:1px solid #e1e8e0;box-shadow:0 -7px 22px #2a40320a}.tabbar button{color:#9aa59d}.tabbar button.active{color:#3b674e}.quickAction{background:#fff;border:1px solid #e4e9e2;color:#29382d}.quickAction:active{background:#f0f5ef}.quickAction .quickIcon{background:#e6eee5;color:#476b53}.quickAction .quickActionText small{color:#7f8d82}.quickAction>.uiIcon{color:#789080}
#toast{background:#304d3c;color:#fff}.statsChart{border-bottom-color:#e3e9e1}.statsChart .barCol span{background:linear-gradient(#7a9b80,#506e5b)}.calendarDay{background:#eef1ec;color:#607367}.calendarDay.active{background:#4c735a;color:white}.calendarDay.today{outline:1px solid #72977c}.workoutSet button{background:#eef2ee;border-color:#dbe5dc;color:#486a53}.workoutSet button.done{background:#dcecdf;border-color:#9dbcaa;color:#386c49}.foodPic{background:#f2f5f0;border-color:#cfdfd2}.mealItem{border-color:#e2e9e4}.logoHero span{color:#4e8061}
.profileStrip{width:100%;background:#edf3eb;border:1px solid #d9e6d7;border-radius:15px;margin:-5px 0 16px;padding:14px;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:8px;color:#344d3c}.profileStrip span:first-child{display:flex;flex-direction:column;gap:4px}.profileStrip b{font-size:14px}.profileStrip small{font-size:11px;color:#778a7b}.profileStripArrow{display:flex;align-items:center;gap:3px;font-size:11px;white-space:nowrap;color:#5d7f66}.profileStripArrow svg{width:14px;height:14px}
/* Welcome setup */
.isOnboarding .topbar,.isOnboarding .tabbar{display:none}.isOnboarding main{min-height:100dvh;padding:calc(30px + env(safe-area-inset-top)) 23px calc(30px + env(safe-area-inset-bottom))}.onboard{max-width:460px;margin:0 auto}.welcomeHead{display:flex;align-items:center;justify-content:space-between;padding:0 0 30px}.welcomeMark{display:grid;place-items:center;width:45px;height:45px;background:#385b48;color:#fff;font-size:24px;font-weight:850;letter-spacing:-2px;border-radius:14px}.welcomeMark span{color:#b8d8bf}.welcomeEdition{font-size:10px;font-weight:700;letter-spacing:1.8px;color:#8b998e}.welcomeProgress{display:flex;gap:7px;margin:0 0 27px}.welcomeProgress span{height:4px;background:#e3e9e1;flex:1;border-radius:8px}.welcomeProgress .on{background:#52735c}.welcomeIntro{margin:0 0 27px}.welcomeIntro h1{font-size:34px;line-height:1.23;letter-spacing:-1.5px;margin-bottom:12px}.welcomeIntro .sub{font-size:14px;line-height:1.75}.welcomeCard{background:#fff;border:1px solid #e5e9e0;border-radius:22px;padding:19px 16px 16px;box-shadow:0 8px 29px #253e2b08}.welcomeCard .formRow{margin:0 0 19px;gap:14px 10px}.welcomeCard .formField{gap:8px}.welcomeCard input,.welcomeCard select,.welcomeCard textarea{min-height:47px;background:#f9faf7;border-color:#e3e8df;border-radius:11px}.welcomeCard .formField label{font-size:12px;font-weight:700;color:#445648}.welcomeCard .goalPrompt{padding-top:4px}.goalPrompt textarea{font-size:14px;line-height:1.65;resize:vertical;min-height:120px}.required{color:#b96e5f}.optional{font-size:10px;font-weight:450;color:#96a59a;margin-left:4px}.unitInput{position:relative}.unitInput input{padding-right:36px}.unitInput em{position:absolute;right:13px;top:50%;transform:translateY(-50%);color:#9aa69d;font-size:11px;font-style:normal}.welcomeCard .button{margin-top:17px;min-height:52px}.welcomeSkip{display:block;border:0;background:none;margin:21px auto 13px;padding:8px;font-size:13px;color:#708674}.onboardFoot{text-align:center;font-size:11px;color:#abb5aa}.welcomeEnergy{background:#edf4ec;border:1px solid #dce8dc;border-radius:19px;padding:24px 20px 20px;margin-bottom:11px}.welcomeEnergy .eyebrow{margin-bottom:12px}.energyNum{font-size:48px;letter-spacing:-2px;line-height:1.2;color:#315340;font-weight:800}.energyNum span{font-size:14px;color:#708675;letter-spacing:0;font-weight:500}.energyCaption{margin-top:11px;font-size:12px;color:#6d846f}.macroGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:26px}.macroItem{background:#fff;border:1px solid #e0e7df;border-radius:14px;padding:14px 10px}.macroVal{font-size:24px;font-weight:770;color:#2e4536;margin-top:7px;letter-spacing:-.8px}.macroVal small{font-size:11px;font-weight:500;color:#82928a}.welcomeRoutine{margin:4px 0 18px}.welcomeRoutine .sectionRow{margin-bottom:10px}.routineList{border:1px solid #e3e8e1;background:#fff;border-radius:16px;overflow:hidden}.routineRow{display:flex;align-items:center;gap:14px;padding:15px 12px;border-bottom:1px solid #e8ebe7}.routineRow:last-child{border:0}.routineRow .routineNo{font-size:13px;color:#7d9a83;border:1px solid #dae5db;border-radius:9px;padding:9px}.routineRow b{color:#324938;font-size:13px}.routineRow .tiny{margin-top:5px;font-size:10px}.routineRow svg{flex:none;width:15px;color:#92a595}.planDisclaimer{font-size:11px;line-height:1.75;color:#718176;margin-bottom:20px}.onboard>.button{min-height:54px}
@media(max-width:370px){.onboard .welcomeIntro h1{font-size:31px}.welcomeCard{padding:15px 12px}.macroVal{font-size:22px}}
@media(prefers-reduced-motion:reduce){.catArtwork img{animation:none}}
.goalHomeList{display:flex;flex-direction:column;gap:8px}.goalHomeDay{display:flex;align-items:center;gap:12px;width:100%;padding:13px 12px;background:#fff;border:1px solid #e4e9e1;border-radius:13px;text-align:left;color:#38503e}.goalHomeDay .goalHomeNum{width:37px;height:37px;display:grid;place-items:center;background:#edf3ec;color:#57725e;border-radius:10px;font-size:13px}.goalHomeDay b{display:block;font-size:13px}.goalHomeDay small{display:block;font-size:11px;color:#86958a;margin-top:3px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.goalHomeDay svg{width:16px;height:16px;color:#7f9b82}

/* V4 - reasoning and advisor, consistent with light, quiet design */
.explainBlock{margin:18px 0 22px;padding:21px 17px 16px;border-radius:19px;background:#fff;border:1px solid #e1e8de;box-shadow:0 6px 22px #233d2c08}.explainEyebrow{letter-spacing:1.55px;font-size:10px;font-weight:750;color:#648471}.explainBlock h2{font-size:21px;letter-spacing:-.65px;margin:10px 0 9px;color:#284536}.explainLead{padding:10px 12px;background:#f4f7f2;border-radius:10px;color:#536b5b;font-size:12px;line-height:1.7;margin-bottom:10px}.explainGrid{display:flex;flex-direction:column}.explainLine{display:flex;gap:11px;border-bottom:1px solid #edf1eb;padding:14px 0}.explainLine:last-child{border:0}.explainNum{flex:none;font-size:11px;color:#82998a;margin-top:1px;font-weight:800;letter-spacing:.4px}.explainLine b{font-size:13px;color:#314c39}.explainLine p{font-size:12px;line-height:1.85;color:#69786c;margin:6px 0 0}.explainLine strong{color:#385f47;font-weight:750}.explainCaution{font-size:11px;line-height:1.75;margin:13px 0 0;color:#849489}.advisorIntro{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid #e0e8de;padding:16px;border-radius:17px;margin:0 0 12px}.advisorAvatar{height:48px;width:48px;border-radius:16px;background:#3d624e;color:white;display:grid;place-items:center;font-size:25px;letter-spacing:-3px;font-weight:850}.advisorAvatar span{color:#b8d8b9}.advisorIntro b{font-size:15px;color:#2c4534}.advisorIntro p{font-size:11px;color:#829487;margin:5px 0 0}.advisorExamples{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0 20px}.advisorExample{border:1px solid #dfe7dd;background:#f8faf6;text-align:left;border-radius:13px;min-height:64px;padding:10px 12px;font-size:12px;color:#47624f;font-weight:650;line-height:1.6;display:flex;align-items:center;gap:5px}.advisorExample svg{width:15px;height:15px;flex:none;margin-left:auto}.chatStream{min-height:160px;max-height:50vh;overflow-y:auto;background:#f5f7f3;border-radius:17px;padding:13px 10px;margin-bottom:12px;display:flex;flex-direction:column;gap:12px}.chatEmpty{text-align:center;color:#9aac9f;font-size:12px;margin:auto;padding:28px 5px}.chatRow{display:flex;max-width:100%}.chatRow.mine{justify-content:flex-end}.chatBubble{max-width:90%;border-radius:16px;padding:10px 13px;background:white;border:1px solid #e1e8df;box-shadow:0 1px 5px #334c3407;overflow-wrap:anywhere}.chatRow.mine .chatBubble{background:#e8f0e7;border-color:#d6e6d8}.chatWho{display:block;font-size:10px;font-weight:800;color:#5e8065;margin-bottom:5px}.chatBubble p{font-size:13px;line-height:1.85;color:#33483a;margin:0;white-space:normal}.coachPrivacy{background:#fff;border:1px solid #e3eae1;border-radius:13px;padding:12px 13px;margin-bottom:11px}.coachPrivacy label{font-weight:700;font-size:12px;display:flex;gap:8px;align-items:center;color:#3d5644}.coachPrivacy label input{width:16px;height:16px;flex:none}.coachPrivacy p{font-size:11px;line-height:1.65;color:#819185;margin:8px 0 0}.chatComposer{display:flex;align-items:stretch;gap:7px;margin-bottom:9px}.chatComposer textarea{flex:1;resize:vertical;min-height:58px;max-height:140px;background:#fff;border-radius:13px;font-size:13px;line-height:1.55}.chatComposer button{background:#3d624e;color:#fff;border:0;border-radius:13px;min-width:52px;display:grid;place-items:center}.chatComposer button svg{transform:rotate(-90deg)}.coachActions{display:flex;justify-content:space-between;gap:10px}.coachActions button{border:none;background:none;color:#678271;font-size:12px;padding:7px}.advisorFineprint{font-size:10px;color:#91a296;line-height:1.7;margin:18px 0}.advisorHomeShortcut{display:flex;align-items:center;gap:13px;background:#f1f6f0;border:1px solid #dee9dd;border-radius:16px;padding:13px 14px;width:100%;text-align:left;margin-top:11px;color:#375541}.advisorHomeMark{width:37px;height:37px;display:grid;place-items:center;background:#dce9da;border-radius:12px;font-size:20px}.advisorHomeShortcut b{font-size:13px;display:block}.advisorHomeShortcut small{font-size:11px;color:#819487;display:block;margin-top:4px}.advisorHomeShortcut>.uiIcon{color:#76947d;width:17px}
@media(max-width:375px){.advisorExamples{grid-template-columns:1fr}.chatBubble{max-width:94%}.explainBlock{padding:17px 13px}}
