:root{--ink:#162724;--muted:#77817b;--line:#e6eae5;--bg:#f5f7f2;--paper:#fff;--black:#101c1b;--green:#c8f45a;--lime:#a7e538;--teal:#337e6b;--shadow:0 12px 34px rgba(19,46,38,.045);--rad:22px;--rad2:16px;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,system-ui,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:14px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}a{color:inherit;text-decoration:none}strong{font-weight:740}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.04em}h1{font-size:clamp(30px,4vw,47px);line-height:1.1}h2{font-size:23px;line-height:1.22}h3{font-size:17px}p{line-height:1.55}.muted{color:var(--muted)}.micro{font-size:11px;color:var(--muted)}.overline{font-size:10px;font-weight:800;letter-spacing:.14em;color:#8a988b;text-transform:uppercase}.app-shell{min-height:100vh;display:flex}.sidebar{width:246px;background:var(--black);color:#fff;position:sticky;top:0;height:100vh;flex-shrink:0;padding:31px 17px 22px;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;padding:0 12px 43px}.brand-mark{background:var(--green);color:#13251a;width:44px;height:44px;border-radius:15px;display:grid;place-items:center;font-weight:950;font-size:27px;letter-spacing:-.11em;flex-shrink:0}.brand-mark span{color:#618b21}.brand strong{font-size:18px;display:block;letter-spacing:-.045em}.brand small{display:block;font-size:9px;letter-spacing:.17em;color:#7c9b8b;margin-top:3px;font-weight:800}.nav-caption{font-size:10px;letter-spacing:.16em;color:#72847f;font-weight:800;padding:0 20px 14px}.nav-link{border:0;width:100%;background:transparent;border-radius:13px;text-align:left;display:flex;align-items:center;gap:13px;color:#a6b3ae;font-size:13px;font-weight:650;padding:13px 16px;margin:3px 0;transition:.2s}.nav-ico{font-size:18px;width:23px;display:inline-grid;place-items:center}.nav-link:hover{background:#26332f;color:white}.nav-link.active{background:var(--green);color:#183023}.sidebar-bottom{margin-top:auto}.side-feature{background:#23362f;border:1px solid #34463d;border-radius:19px;padding:19px;margin-bottom:15px}.side-feature span{font-size:9px;font-weight:900;letter-spacing:.14em;color:var(--green)}.side-feature strong{font-size:20px;line-height:1.15;display:block;margin:17px 0 12px;letter-spacing:-.045em}.side-feature small{color:#9bb2a5}.logout{color:#9eaca4;border:0;background:transparent;padding:10px 12px}.logout:hover{color:white}.workspace{min-width:0;flex:1}.topbar{height:82px;background:#fff;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 clamp(20px,4.5vw,62px)}.top-left{display:flex;align-items:center;gap:9px;font-weight:630;color:#506259;font-size:13px}.top-sun{font-size:20px;color:#94b53e}.top-actions{display:flex;gap:20px;align-items:center}.sync-state{font-size:11px;color:#6d8073;display:flex;align-items:center;gap:7px}.sync-state i{display:block;border-radius:50%;width:7px;height:7px;background:#a2dc66}.sync-state.error i{background:#ed8b70}.avatar{border:0;width:36px;height:36px;border-radius:50%;font-weight:850;color:#fff;background:#385a4d}.page{padding:34px clamp(20px,4.5vw,62px) 88px;max-width:1450px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:27px}.page-heading h1{margin:7px 0 7px;font-weight:810}.page-heading p{color:var(--muted);margin:0}.btn{border:0;border-radius:13px;padding:12px 16px;font-weight:750;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.16s;white-space:nowrap}.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--black);color:white}.btn-primary:hover{background:#28433b}.btn-lime{background:var(--green);color:#203922}.btn-outline{background:#fff;border:1px solid var(--line);color:#354a42}.btn-ghost{background:#f0f4ef;color:#39554a}.btn-danger{background:#fef0ee;color:#c44d45}.btn-small{padding:8px 11px;font-size:11px;border-radius:10px}.wide{width:100%}.hero{background:#172923;color:#fff;border-radius:26px;min-height:203px;display:grid;grid-template-columns:1fr 290px;gap:25px;padding:30px 35px;position:relative;overflow:hidden;margin-bottom:22px}.hero:after{content:"";position:absolute;width:230px;height:230px;border:1px solid rgba(196,243,99,.16);border-radius:50%;top:-70px;right:190px;box-shadow:0 0 0 45px rgba(196,243,99,.035),0 0 0 100px rgba(196,243,99,.024)}.hero .overline{color:var(--green)}.hero h2{font-size:clamp(25px,3vw,37px);max-width:460px;margin:11px 0 10px;line-height:1.12}.hero p{max-width:370px;color:#b4c4b9;margin:0}.hero-stat{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.hero-stat span{font-size:11px;color:#a8bdad}.hero-stat strong{font-size:48px;letter-spacing:-.055em;color:var(--green);line-height:1.05}.hero-stat small{color:#b7c7bb;font-size:11px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px}.stat-card,.panel{background:var(--paper);border:1px solid #e8ede7;border-radius:var(--rad);box-shadow:var(--shadow)}.stat-card{padding:21px 22px;min-height:150px;display:flex;flex-direction:column;justify-content:space-between}.stat-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.stat-label{font-size:12px;color:var(--muted);font-weight:650}.stat-emoji{background:#edf5de;color:#397750;width:30px;height:30px;border-radius:10px;display:grid;place-items:center;font-size:17px}.stat-value{font-size:31px;font-weight:820;letter-spacing:-.05em;margin-top:7px}.stat-value small{font-size:14px;font-weight:650;color:#80918a;letter-spacing:0}.mini-track{height:6px;background:#edf1eb;border-radius:10px;overflow:hidden;margin:10px 0 5px}.mini-fill{height:100%;background:var(--lime);border-radius:10px}.stat-hint{color:#8a958d;font-size:10px}.cols{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(285px,.9fr);gap:22px;margin-bottom:22px}.panel{padding:24px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:10px}.panel-head h2{font-size:19px;margin:0}.panel-head small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.section-note{font-size:11px;color:var(--muted)}.food-group{margin:16px 0}.food-group-label{font-size:10px;font-weight:850;letter-spacing:.1em;color:#819089;text-transform:uppercase;margin:14px 0 6px}.food-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #eef1eb}.food-symbol{width:39px;height:39px;background:#f1f4ec;border-radius:12px;display:grid;place-items:center;font-size:17px;flex-shrink:0}.food-body{min-width:0;flex:1}.food-body strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.food-body small{color:var(--muted);display:block;margin-top:4px;font-size:10px}.food-values{text-align:right;font-size:12px;font-weight:780}.food-values small{display:block;margin-top:4px;color:#8a998f;font-weight:500;font-size:10px}.icon-btn{border:none;background:#f2f5ee;color:#718078;width:27px;height:27px;border-radius:9px;font-size:14px}.empty{border:1px dashed #dce5da;border-radius:15px;padding:24px;text-align:center;color:#8c9c8e}.date-nav{display:flex;gap:6px;align-items:center}.date-nav button{border:1px solid #e7ece5;background:#fff;border-radius:10px;padding:8px 11px;color:#516057}.date-nav strong{font-size:12px;white-space:nowrap;min-width:105px;text-align:center}.thin-divider{height:1px;background:#edf0ec;margin:18px 0}.summary-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:8px 0;font-size:12px;color:#617269}.summary-row strong{font-size:13px;color:var(--ink)}.kcal-target{margin:18px 0 11px}.kcal-target strong{font-size:13px}.donut{width:184px;height:184px;border-radius:50%;display:grid;place-items:center;margin:0 auto 18px;background:conic-gradient(var(--lime) 0 var(--value),#edf0e9 var(--value) 100%);transition:.3s}.donut-center{background:white;width:146px;height:146px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}.donut-center strong{font-size:34px;letter-spacing:-.05em}.donut-center small{font-size:11px;color:var(--muted)}.insight{border-radius:15px;background:#f2f7e8;padding:17px;margin-top:16px}.insight strong{font-size:12px}.insight p{font-size:12px;color:#65745e;margin:7px 0 0}.tag{padding:5px 9px;background:#f0f4ed;color:#6a8270;border-radius:9px;font-size:10px;font-weight:750}.tag.lime{background:#eafacb;color:#3c652a}.layout-widgets{display:grid;grid-template-columns:1fr 1fr;gap:22px}.milestone-row{display:grid;grid-template-columns:110px 1fr 48px;gap:12px;align-items:center;padding:10px 0}.milestone-row span{font-size:11px;color:#657b70}.milestone-row b{text-align:right;font-size:12px}.milestone-row .mini-track{margin:0}.current-day{display:flex;justify-content:space-between;gap:20px;margin:10px 0 24px;align-items:center}.pills{display:flex;gap:8px;flex-wrap:wrap}.pill{border:1px solid #e2e8e0;padding:9px 13px;background:white;border-radius:14px;color:#597267;font-size:11px;font-weight:700}.pill.active{background:#182c25;color:white;border-color:#182c25}.record-list{display:grid;gap:10px}.record-card{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px 18px}.record-card .food-symbol{background:#f1f5e8}.record-card-body{flex:1;min-width:0}.record-card-body strong{font-size:13px}.record-card-body small{display:block;color:#8a978c;font-size:11px;margin-top:5px}.record-card .record-number{text-align:right;font-weight:800;font-size:14px}.record-card .record-number small{display:block;font-size:11px;font-weight:500;color:#9aa49a;margin-top:4px}.chart-wrap{min-width:0}.chart-svg{display:block;width:100%;height:auto;max-height:245px}.chart-legend{display:flex;gap:16px;color:#87958c;font-size:11px;margin-top:8px}.chart-legend b{color:#385849}.progress-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:22px}.progress-kpis .stat-card{min-height:125px}.routine-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;margin:17px 0 23px}.day-tile{border:1px solid var(--line);background:white;border-radius:16px;text-align:center;padding:16px 5px;cursor:pointer}.day-tile.active{background:#172c23;color:#fff;border-color:#172c23}.day-tile small{font-size:10px;color:#8ca094;display:block}.day-tile b{font-size:19px;display:block;margin:8px 0}.day-tile em{font-size:9px;font-style:normal}.routine-box{display:grid;grid-template-columns:1fr 230px;gap:25px}.routine-step{display:flex;gap:14px;align-items:flex-start;padding:17px 0;border-bottom:1px solid #eef1ea}.routine-num{width:34px;height:34px;border-radius:11px;background:#e8f8c7;color:#426c21;display:grid;place-items:center;font-weight:850;flex-shrink:0}.routine-step strong{font-size:13px}.routine-step p{font-size:11px;color:#7f8d83;margin:5px 0 0}.routine-side{background:#f3f8e8;border-radius:18px;padding:22px;display:flex;flex-direction:column;justify-content:center;gap:7px}.routine-side b{font-size:24px}.routine-side p{color:#6b8068;margin:0;font-size:12px}.ideas-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.idea-card{background:#fff;border:1px solid #e8ece5;border-radius:20px;padding:21px;display:flex;flex-direction:column;min-height:194px}.idea-card .idea-icon{font-size:24px}.idea-card h3{margin:14px 0 6px}.idea-card p{color:var(--muted);font-size:12px;margin-bottom:14px}.idea-card .idea-foot{display:flex;justify-content:space-between;font-size:11px;margin-top:auto}.idea-card .idea-foot span{background:#edf5db;color:#4f7442;padding:7px 9px;border-radius:8px}.idea-card .idea-foot em{color:#8c998d;font-style:normal;align-self:center}.modal-wrap{position:fixed;inset:0;background:rgba(9,25,20,.54);z-index:100;display:grid;place-items:center;padding:16px;backdrop-filter:blur(5px)}.modal{background:#fff;border-radius:24px;box-shadow:0 20px 80px rgba(0,0,0,.18);padding:27px;width:100%;max-width:570px;max-height:94vh;overflow-y:auto}.modal-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:23px}.modal-head h2{margin:0}.modal-close{border:0;background:#f1f4ef;width:33px;height:33px;border-radius:11px;font-size:20px;color:#7e8c81}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#667b70;font-weight:750}.field input,.field select,.field textarea{border:1px solid #dfe6dd;outline:none;border-radius:12px;padding:12px 13px;color:#1d3028;font-size:13px;background:#fbfcfa;min-width:0}.field input:focus,.field textarea:focus,.field select:focus{border-color:#99bc5c;box-shadow:0 0 0 3px #ddedbe7a}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.field.full{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:23px}.check-line{display:flex;align-items:center;gap:8px;font-size:12px;color:#68796d;margin-top:4px}.check-line input{accent-color:#7ca93c}.modal-hint{font-size:11px;color:#889589;margin-top:15px}.notice{border-radius:12px;padding:12px 14px;font-size:12px;margin:14px 0}.notice.good{background:#e9f6e3;color:#3d734e}.notice.danger{background:#fff1ef;color:#a84643}.notice.info{background:#edf4ef;color:#496a5a}.toast{position:fixed;bottom:100px;right:28px;padding:13px 18px;border-radius:13px;background:#182e26;color:white;font-size:12px;font-weight:700;z-index:200;box-shadow:0 12px 30px #1b362b44}.toast.error{background:#9e4e49}.initial-loading{display:grid;place-items:center;gap:11px;min-height:330px;color:#8b9b8e}.spinner{width:29px;height:29px;border-radius:50%;border:3px solid #d5e4ca;border-top-color:#82ab34;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-page{background:white;border-radius:22px;padding:35px;max-width:560px;margin:25px auto}.error-page h2{margin:8px 0}.error-page p{color:#809187}.bottom-nav{display:none}
.auth-page{min-height:100vh;display:grid;place-items:center;background:#172821;padding:20px}.auth-card{background:white;width:100%;max-width:420px;padding:37px;border-radius:28px;box-shadow:0 35px 100px #060f0d33}.auth-card .brand-mark{margin-bottom:30px;width:54px;height:54px;font-size:33px}.auth-card h1{font-size:37px;margin:9px 0 13px}.auth-card p{font-size:13px;color:#829086;line-height:1.6;margin-bottom:26px}.form-stack{display:grid;gap:15px}.form-stack label{display:grid;gap:8px;font-size:11px;font-weight:750;color:#5b6f60}.form-stack input{width:100%;padding:15px 13px;background:#f7faf6;border:1px solid #e0e8dd;border-radius:12px;outline:none}.form-stack input:focus{border-color:#a1ca67}.auth-foot{margin-top:30px;font-size:9px;letter-spacing:.13em;color:#96a89b;text-align:center;font-weight:850}.auth-foot span{padding:0 6px}.small-note{font-size:11px!important;margin:20px 0 0!important}
@media(max-width:1100px){.sidebar{width:205px}.stat-grid{grid-template-columns:repeat(2,1fr)}.cols{grid-template-columns:1fr}.hero{grid-template-columns:1fr 200px}.page{padding-left:28px;padding-right:28px}.topbar{padding:0 28px}}
@media(max-width:760px){.sidebar{display:none}.topbar{height:62px;padding:0 18px}.page{padding:22px 16px 105px}.top-left{font-size:11px}.top-actions{gap:11px}.sync-state{font-size:10px}.bottom-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #e6ebe3;padding:8px 7px calc(8px + env(safe-area-inset-bottom));z-index:30;box-shadow:0 -10px 40px #17282112}.bottom-link{display:grid;gap:3px;place-items:center;border:0;background:none;color:#9ca99b;padding:4px 0}.bottom-link span{font-size:19px}.bottom-link small{font-size:9px;font-weight:750}.bottom-link.active{color:#42793e}.page-heading{align-items:flex-start;margin-bottom:20px}.page-heading h1{font-size:30px}.page-heading p{font-size:12px}.page-heading .btn{padding:10px 11px;font-size:10px}.hero{padding:24px 22px;grid-template-columns:1fr;min-height:180px}.hero h2{font-size:26px;max-width:340px}.hero-stat{display:none}.stat-grid{grid-template-columns:repeat(2,1fr);gap:10px}.stat-card{padding:15px;min-height:135px;border-radius:18px}.stat-value{font-size:25px}.stat-label{font-size:10px}.stat-emoji{width:27px;height:27px}.panel{padding:20px;border-radius:20px}.cols{gap:15px}.layout-widgets{grid-template-columns:1fr;gap:15px}.routine-box{grid-template-columns:1fr}.routine-side{order:-1}.ideas-grid{grid-template-columns:1fr}.routine-week{gap:4px}.day-tile{padding:11px 2px;border-radius:12px}.day-tile b{font-size:16px}.day-tile em{font-size:8px}.progress-kpis{gap:8px}.progress-kpis .stat-card{padding:13px;min-height:105px}.progress-kpis .stat-value{font-size:21px}.record-card{padding:12px}.date-nav strong{min-width:85px}.modal{padding:20px}.modal-wrap{place-items:end center;padding:0}.modal{border-radius:24px 24px 0 0;max-height:92vh;padding-bottom:calc(20px + env(safe-area-inset-bottom))}.toast{bottom:100px;right:15px;left:15px;text-align:center}.current-day{align-items:flex-start;flex-direction:column;gap:12px}}
@media(max-width:370px){.stat-card{padding:12px}.stat-value{font-size:23px}.form-grid{gap:10px}}
.week-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;align-items:end;margin:24px 0 10px}.week-column{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0}.week-rail{height:116px;background:#f3f5f0;width:100%;border-radius:10px;display:flex;align-items:end;overflow:hidden;position:relative}.week-level{width:100%;background:#c6ef70;min-height:2px;border-radius:10px 10px 0 0}.week-level.missing{background:#e5eae1;height:2px!important}.week-column small{color:#8d9b8d;font-size:10px;font-weight:700}.week-column b{font-size:10px;color:#5c6c61;white-space:nowrap}.week-summary{display:flex;gap:25px;flex-wrap:wrap;margin-top:14px}.week-summary strong{font-size:22px;letter-spacing:-.04em}.week-summary span{display:block;font-size:10px;color:#87978b;margin-top:4px}
