:root{--bg:#f7f8f5;--surface:#fff;--ink:#242d2c;--muted:#858d8a;--line:#edf0eb;--accent:#d4fc90;--lightgreen:#eef8db;--radius:20px;--shadow:0 13px 40px rgba(28,42,33,.03)}
*{box-sizing:border-box}html{font-size:15px}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a5d96c;outline-offset:2px}.hidden{display:none!important}.app-shell{display:flex;min-height:100vh}.sidebar{width:260px;min-height:100vh;background:#fff;border-right:1px solid #eaece6;position:sticky;top:0;height:100vh;padding:30px 18px 20px;display:flex;flex-direction:column;flex-shrink:0}.logo{display:flex;align-items:center;gap:13px;border:0;background:none;text-align:left;margin-bottom:53px;padding:2px 12px}.logo-mark{width:48px;height:48px;border-radius:15px;background:#26302f;color:var(--accent);font-size:40px;font-weight:800;line-height:47px;text-align:center;letter-spacing:-4px;padding-right:5px}.logo-dot{font-size:18px;letter-spacing:0}.logo-word{font-weight:830;font-size:22px;letter-spacing:-1.2px;line-height:1.15}.logo-word>span{color:#8db946}.logo-word small{display:block;color:#9ca39f;letter-spacing:.1px;font-size:10px;font-weight:500;margin-top:6px}.nav-caption{font-size:10px;font-weight:800;letter-spacing:2px;color:#a4ada5;padding:0 16px;margin-bottom:15px}.side-nav{display:grid;gap:5px}.nav-btn{display:flex;align-items:center;gap:15px;border:0;border-radius:13px;background:transparent;color:#737b77;font-size:13px;font-weight:650;text-align:left;padding:16px 15px;transition:.2s}.nav-btn:hover{background:#f8f9f5}.nav-btn.active{background:#edf7e4;color:#2d4430}.nav-icon{font-size:23px;font-weight:400;line-height:1;min-width:23px;text-align:center}.sidebar-bottom{margin-top:auto}.side-hint{padding:20px 18px;border-radius:17px;background:#f5f8ed}.side-hint .hint-star{font-size:26px;color:#92b46a;display:block;margin-bottom:11px}.side-hint strong{font-size:13px}.side-hint p{color:#8b938d;line-height:1.65;font-size:12px;margin:7px 0 0}.version{color:#b0b8ae;font-size:9px;letter-spacing:.9px;font-weight:700;margin:22px 7px 0}.content-wrap{flex:1;min-width:0;max-width:1600px}.topbar{height:82px;padding:0 56px;border-bottom:1px solid #eef0ec;display:flex;align-items:center;justify-content:space-between}.top-breadcrumb{font-size:10px;letter-spacing:1.5px;color:#99a19a;font-weight:800}.top-breadcrumb strong{color:#55615a}.top-breadcrumb span{padding:0 10px;color:#d2d8ce}.top-right{display:flex;align-items:center;gap:18px}.demo-pill{font-size:11px;color:#6b9256;background:#e9f5e4;border-radius:30px;padding:9px 14px;font-weight:700}.top-settings{border:0;background:#fff;border-radius:12px;width:37px;height:37px;font-size:20px;color:#53605a}.top-settings:hover{background:#edf5e5}main{max-width:1480px;margin:auto;padding:50px 56px 110px}.heading-row{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:49px}.eyebrow{color:#91a085;font-size:10px;font-weight:850;letter-spacing:2.4px;text-transform:uppercase}h1{font-size:clamp(40px,4.3vw,61px);line-height:1.06;letter-spacing:-3px;margin:13px 0 14px;font-weight:820}h1 em{color:#7caa6b;font-style:normal}.page-lead{color:#909992;max-width:570px;margin:0;font-size:14px;line-height:1.6}.primary-action{border:0;background:#293632;color:var(--accent);border-radius:13px;padding:15px 23px;font-weight:750;font-size:13px;white-space:nowrap;box-shadow:0 8px 16px rgba(38,56,43,.1)}.primary-action span{font-size:20px;vertical-align:-2px;margin-right:4px}.primary-action:hover{background:#1d2925}.week-nav{display:flex;align-items:center;justify-content:space-between;margin:0 0 21px;gap:10px}.section-title{font-size:19px;font-weight:780;letter-spacing:-.5px}.week-controls{display:flex;align-items:center;gap:12px}.week-controls>span{font-size:12px;font-weight:740;min-width:160px;text-align:center}.icon-button{border:1px solid #edf0e8;background:#fff;border-radius:11px;width:35px;height:35px;font-weight:700;font-size:17px}.icon-button:hover{background:#eaf3df}.today-button{color:#7b9679;background:transparent;border:0;font-size:12px;font-weight:700}.summary-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:19px}.budget-card{border-radius:23px;background:#283431;padding:29px 32px 24px;color:white;min-height:324px;display:flex;flex-direction:column}.card-top{display:flex;justify-content:space-between;align-items:center}.status-tag{background:#3b5143;border-radius:20px;padding:9px 13px;color:#d5f5a5;font-size:10px;font-weight:800;letter-spacing:1.3px}.light-text-button{color:#b9c8ba;font-size:12px;border:0;background:transparent}.light-text-button:hover{color:white}.budget-copy{padding:32px 0 18px}.big-number{font-size:clamp(53px,5.2vw,76px);line-height:1;letter-spacing:-4px;font-weight:830;font-variant-numeric:tabular-nums}.big-sub{color:#c2cec5;font-size:13px;margin:9px 0 0}.progress-track{height:9px;border-radius:20px;background:#46554b;overflow:hidden}.progress-fill{height:100%;border-radius:20px;background:#d6ff9c;transition:width .2s;width:0%}.budget-bottom{border-top:1px solid #42544a;display:flex;justify-content:space-between;gap:8px;margin-top:auto;padding-top:19px}.budget-bottom>div{display:grid;gap:7px}.budget-bottom small{font-size:9px;letter-spacing:1px;color:#96ab9e;font-weight:780}.budget-bottom strong{font-size:16px;letter-spacing:-.2px}.insight-card{border-radius:23px;padding:29px 32px;background:#eff5e6;position:relative;min-height:324px;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start}.mini-label{color:#769266;font-size:10px;font-weight:800;letter-spacing:1.8px}.insight-symbol{position:absolute;right:26px;top:58px;font-size:102px;color:#dcebc8;font-weight:300;line-height:1}.insight-card h2{font-size:34px;letter-spacing:-1.9px;line-height:1.12;margin:40px 0 13px;position:relative}.insight-card p{color:#73826e;line-height:1.55;font-size:13px;max-width:270px;margin:0;position:relative}.insight-bottom{border-top:1px solid #d9e7cf;margin-top:auto;padding-top:19px;width:100%;font-size:9px;letter-spacing:1.1px;font-weight:850;color:#6c955c}.section-block{background:#fff;border:1px solid #eef0eb;border-radius:22px;padding:27px 30px;margin-top:20px;box-shadow:var(--shadow)}.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:23px}.section-head h2{font-size:19px;letter-spacing:-.55px;margin:0 0 6px}.section-head p{font-size:12px;color:#9ba29c;margin:0;line-height:1.55}.chart-legend{color:#9ba49d;font-size:11px;white-space:nowrap;display:flex;align-items:center;gap:7px}.chart-legend span{width:9px;height:9px;border-radius:50%;background:#b6d58b}.days-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.day-column{background:#fafbf8;border:1px solid #f1f3ed;border-radius:16px;padding:15px 4px 12px;display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0}.day-column:hover{border-color:#c7e0b2}.day-column.active{background:#f1f8e6;border-color:#c4dfad}.day-abbrev{font-size:11px;font-weight:800;color:#929c91}.day-date{font-size:18px;font-weight:800;line-height:1}.bar-area{height:86px;width:100%;max-width:45px;display:flex;align-items:flex-end;justify-content:center}.day-bar{background:#bedc9d;border-radius:9px 9px 4px 4px;width:60%;min-height:5px;transition:height .2s}.day-column.active .day-bar{background:#6f9f69}.day-kcal{font-size:11px;color:#718174;font-weight:700;white-space:nowrap}.lower-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:19px}.lower-grid>.section-block{min-width:0}.text-button{font-size:12px;font-weight:800;color:#537f50;border:0;background:none;white-space:nowrap}.day-total{display:flex;align-items:baseline;gap:9px;border-radius:14px;background:#f5f8f0;padding:15px 17px;margin-bottom:19px}.day-total strong{font-size:28px;letter-spacing:-1px}.day-total span{font-size:12px;color:#82917c}.meal-section{padding-bottom:16px;margin-bottom:15px;border-bottom:1px solid #f1f2ee}.meal-section:last-child{border:0;padding:0;margin:0}.meal-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;font-size:12px;font-weight:750;color:#6b796d}.meal-title small{color:#9da99d;font-size:11px}.meal-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0}.meal-entry+.meal-entry{border-top:1px dashed #f1f3ed}.meal-entry-title{font-size:12px;font-weight:700}.meal-entry-sub{font-size:11px;color:#a0a9a0;margin-top:4px}.meal-entry-value{font-size:12px;font-weight:780;white-space:nowrap}.remove-entry{border:0;background:#f7f8f5;color:#a5ada2;border-radius:6px;font-size:14px;margin-left:7px;width:24px;height:24px}.remove-entry:hover{background:#fee9e7;color:#b35b4c}.empty-meal{font-size:11px;color:#b0b9ae;padding:2px 0}.macro-row{margin-bottom:27px}.macro-row-header{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:9px}.macro-row-title{font-size:13px;font-weight:750}.macro-row-value{font-size:15px;font-weight:850}.macro-row-value small{font-size:11px;color:#9da69d;font-weight:600}.macro-track{height:9px;border-radius:15px;background:#f1f2ee;overflow:hidden}.macro-fill{height:100%;border-radius:15px;width:0%}.macro-fill.p{background:#adc98a}.macro-fill.f{background:#e7cd91}.macro-fill.c{background:#b6b8e4}.macro-note{border-top:1px solid #f0f1eb;padding-top:20px;margin-top:36px;font-size:11px;line-height:1.6;color:#9ca59c}.privacy-note{font-size:11px;line-height:1.7;color:#95a096;margin:23px 4px}.privacy-note button{border:0;background:transparent;color:#5d8c56;text-decoration:underline;padding:0;font-size:11px}.catalog-block{margin-top:0}.search-box{display:flex;gap:12px;align-items:center;background:#f7f9f4;border:1px solid #edf1e9;border-radius:13px;padding:0 17px;height:52px}.search-box span{font-size:24px;color:#8ba383}.search-box input{background:transparent;border:0;outline:0;flex:1;min-width:0;color:var(--ink);font-size:13px}.catalog-list{margin-top:17px}.catalog-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 3px;border-bottom:1px solid #f0f2ed}.catalog-item:last-child{border:0}.catalog-icon{width:40px;height:40px;border-radius:12px;background:#edf5e5;display:grid;place-items:center;font-size:20px;flex-shrink:0}.catalog-name{font-size:13px;font-weight:750}.catalog-details{font-size:11px;color:#9aa59a;margin-top:5px}.catalog-item-main{display:flex;align-items:center;gap:13px;min-width:0}.catalog-item-right{display:flex;align-items:center;gap:18px}.catalog-kcal{text-align:right;font-size:13px;font-weight:800;white-space:nowrap}.catalog-kcal small{display:block;color:#a2ada1;font-size:10px;font-weight:500;margin-top:4px}.small-add{border:0;background:#eaf5de;color:#5b8a50;border-radius:10px;width:35px;height:35px;font-size:20px}.small-add:hover{background:#d6efc2}.recipe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.recipe-card{border:1px solid #edf1e8;border-radius:16px;padding:19px;background:#fcfdfa;min-width:0}.recipe-icon{width:44px;height:44px;background:#edf4e3;border-radius:12px;display:grid;place-items:center;font-size:24px}.recipe-name{font-size:17px;font-weight:800;letter-spacing:-.5px;margin:14px 0 7px}.recipe-meta{font-size:11px;color:#8b9a8a;line-height:1.7}.recipe-kcal{font-size:26px;font-weight:850;letter-spacing:-.7px;margin:15px 0}.recipe-kcal small{font-size:11px;color:#93a091;letter-spacing:0;font-weight:600}.recipe-actions{display:flex;gap:7px}.recipe-actions button{background:#2e4035;border:0;border-radius:9px;padding:11px 13px;color:white;font-size:11px;font-weight:750}.recipe-actions button.secondary{background:#ecf2e8;color:#62845b}.telegram-card{display:flex;align-items:center;gap:18px;border-radius:19px;border:1px solid #dce8d4;background:#eef6e8;margin-top:20px;padding:22px}.telegram-illustration{width:56px;height:56px;display:grid;place-items:center;border-radius:16px;background:#dcefd3;font-size:29px;color:#6a8e58;flex-shrink:0}.telegram-card h3{margin:0 0 6px;font-size:15px}.telegram-card p{font-size:12px;color:#829381;margin:0;line-height:1.6}.coming-tag{margin-left:auto;font-size:10px;font-weight:800;color:#69905d;border:1px solid #bdd1b5;padding:9px;border-radius:20px;white-space:nowrap}.history-item{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0e8;padding:20px 2px;gap:15px}.history-item:last-child{border:0}.history-item strong{font-size:14px}.history-item small{display:block;font-size:11px;color:#9ba59b;margin-top:6px}.history-fig{text-align:right;font-size:15px;font-weight:850}.history-fig small{font-weight:500}.history-link{border:0;background:#edf4e5;border-radius:11px;color:#547c49;padding:10px 13px;font-size:12px;font-weight:800}.empty-state{text-align:center;padding:36px 15px;color:#a5aea5;font-size:12px;line-height:1.7}.empty-state .empty-glyph{font-size:37px;color:#c8dac0;margin-bottom:7px}.empty-state strong{display:block;color:#5d6a5e;font-size:15px;margin:5px}.empty-state button{margin-top:15px;border:0;background:#e9f4e3;color:#567d50;border-radius:10px;font-weight:750;font-size:12px;padding:12px 15px}.modal-root{position:fixed;inset:0;z-index:30;display:flex;justify-content:center;align-items:center;padding:20px}.modal-backdrop{position:absolute;inset:0;background:rgba(16,29,21,.44);backdrop-filter:blur(3px)}.modal-dialog{position:relative;z-index:2;width:min(560px,100%);max-height:90vh;background:#fff;border-radius:22px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 30px 90px rgba(13,22,17,.2)}.modal-header{display:flex;align-items:start;justify-content:space-between;padding:26px 28px 18px;border-bottom:1px solid #edf0e8}.modal-header h2{margin:9px 0 0;font-size:25px;letter-spacing:-.8px}.modal-close{border:0;background:#f4f6f1;border-radius:10px;width:36px;height:36px;font-size:26px;color:#7c8b7a}.modal-body-scroll{overflow:auto;padding:23px 28px 27px}.tabs{display:flex;gap:5px;background:#f6f8f2;padding:5px;border-radius:12px;margin-bottom:18px}.tab-btn{flex:1;border:0;background:transparent;border-radius:9px;font-size:12px;font-weight:750;color:#9aa699;padding:10px}.tab-btn.active{background:white;color:#354f35;box-shadow:0 2px 8px rgba(20,40,15,.04)}.modal-search{margin-bottom:12px}.picker-list{border:1px solid #eef0eb;border-radius:13px;max-height:220px;overflow:auto}.pick-row{padding:12px 13px;border-bottom:1px solid #eef1ea;display:flex;justify-content:space-between;gap:9px;width:100%;border-left:0;border-right:0;border-top:0;background:#fff;text-align:left}.pick-row:last-child{border:0}.pick-row.active{background:#f0f9e8}.pick-name{font-weight:750;font-size:12px}.pick-info{font-size:10px;color:#9da89b;margin-top:4px}.pick-cal{font-size:12px;font-weight:750;color:#638258;white-space:nowrap}.modal-divider{height:1px;background:#eef0ea;margin:20px 0}.field{display:grid;gap:7px;margin-bottom:15px}.field label{font-size:12px;font-weight:750;color:#69776a}.field input,.field select{height:44px;padding:0 13px;border:1px solid #e3e9df;border-radius:10px;background:white;width:100%;font-size:13px;color:#26352b;outline-color:#9cc981}.field-hint{color:#a5ada2;font-size:10px;margin:-7px 0 18px;line-height:1.5}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}.preview-total{border-radius:13px;background:#eef8e8;padding:14px 17px;display:flex;align-items:baseline;justify-content:space-between;margin-bottom:18px;gap:10px}.preview-total strong{font-size:22px;letter-spacing:-.5px}.preview-total span{color:#7e9479;font-size:11px}.submit-btn{border:0;background:#2c3b31;color:#d8ffaa;border-radius:11px;width:100%;height:47px;font-weight:800;font-size:13px}.submit-btn:hover{background:#1c2e22}.submit-btn:disabled{opacity:.4;cursor:not-allowed}.minor-link{display:block;margin:15px auto 0;color:#5c8858;font-size:12px;font-weight:800;background:transparent;border:0}.form-error{color:#bd5a49;font-size:11px;margin-bottom:12px}.modal-info{color:#9aa698;font-size:11px;line-height:1.6;margin:0 0 15px}.toast{position:fixed;z-index:100;bottom:28px;left:50%;transform:translate(-50%,30px);border-radius:13px;background:#25392b;color:white;font-size:12px;font-weight:700;padding:15px 20px;opacity:0;pointer-events:none;transition:.25s;text-align:center;box-shadow:0 10px 25px #1e2f2145}.toast.show{opacity:1;transform:translate(-50%,0)}.mobile-nav{display:none}
@media(max-width:1220px){.sidebar{width:218px}.topbar{padding:0 32px}main{padding:42px 32px 100px}.summary-grid{grid-template-columns:1.22fr 1fr}.insight-card,.budget-card{padding:25px}.insight-card h2{font-size:30px}.section-block{padding:24px}.lower-grid{grid-template-columns:1.12fr 1fr}}
@media(max-width:980px){.sidebar{width:76px;padding:25px 10px}.logo{padding:0;justify-content:center;margin-bottom:60px}.logo-word,.nav-caption,.nav-btn:not(.active),.nav-btn{font-size:0}.nav-btn{justify-content:center;padding:13px 8px}.nav-icon{font-size:23px}.side-hint,.version{display:none}.topbar{height:70px}.summary-grid{grid-template-columns:1fr 1fr}.lower-grid{grid-template-columns:1fr}.insight-card h2{font-size:29px}}
@media(max-width:680px){.sidebar{display:none}.topbar{height:64px;padding:0 20px}.top-breadcrumb{font-size:9px;letter-spacing:.8px}.top-breadcrumb span{padding:0 4px}.demo-pill{font-size:9px;padding:7px 10px}.top-right{gap:8px}main{padding:33px 16px 105px}.heading-row{margin-bottom:35px;display:block}.heading-row .primary-action{margin-top:20px}.desktop-add{display:none!important}h1{font-size:43px;letter-spacing:-2px}.page-lead{font-size:12px;line-height:1.7}.week-nav{align-items:flex-start;gap:11px;flex-wrap:wrap}.section-title{font-size:17px}.week-controls{margin-left:auto;gap:6px}.week-controls>span{font-size:11px;min-width:126px}.icon-button{width:31px;height:31px}.today-button{display:none}.summary-grid{grid-template-columns:1fr;gap:12px}.budget-card{min-height:300px;padding:23px}.big-number{font-size:68px}.budget-copy{padding:34px 0 20px}.budget-bottom strong{font-size:14px}.insight-card{min-height:209px;padding:23px}.insight-card h2{font-size:27px;margin:22px 0 10px}.insight-card p{max-width:300px;font-size:11px}.insight-symbol{font-size:88px;right:12px;top:30px}.insight-bottom{margin-top:18px;padding-top:15px}.section-block{padding:21px 16px;border-radius:18px;margin-top:13px}.section-head h2{font-size:17px}.section-head p{font-size:11px}.days-chart{gap:4px}.day-column{padding:10px 2px;border-radius:11px;gap:8px}.day-abbrev{font-size:10px}.day-date{font-size:15px}.day-kcal{font-size:9px}.bar-area{height:72px}.lower-grid{gap:0}.macro-row{margin-bottom:22px}.macro-note{margin-top:24px}.privacy-note{margin:19px 5px}.catalog-block{margin-top:0}.recipe-grid{grid-template-columns:1fr}.telegram-card{padding:15px;gap:11px}.telegram-illustration{width:40px;height:40px}.coming-tag{display:none}.mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);align-items:center;position:fixed;z-index:15;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #e7ede5;padding:8px 4px calc(9px + env(safe-area-inset-bottom));box-shadow:0 -6px 20px rgba(28,40,31,.05)}.mobile-tab{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:3px;color:#96a196;font-size:10px;font-weight:700;padding:5px 1px}.mobile-tab span{font-size:22px;line-height:1.15}.mobile-tab.active{color:#437743}.mobile-tab.add-tab{display:flex;align-items:center;justify-content:center;background:#304337;border-radius:15px;width:46px;height:46px;justify-self:center;margin-top:-21px;color:#d5ffa1;box-shadow:0 5px 15px #243c2730}.mobile-tab.add-tab span{font-size:31px}.modal-root{align-items:end;padding:0}.modal-dialog{width:100%;max-height:91vh;border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom)}.modal-header{padding:21px 20px 16px}.modal-body-scroll{padding:19px 20px 25px}.modal-header h2{font-size:22px}.toast{bottom:95px;white-space:nowrap;max-width:95vw}.field-grid-3{gap:7px}}
@media(max-width:360px){.week-controls>span{min-width:110px;font-size:10px}.week-nav{gap:7px}.big-number{font-size:61px}.day-date{font-size:13px}.day-abbrev{font-size:9px}.budget-bottom small{font-size:8px}}

/* v0.2: progress, onboarding and weekly report */
.progress-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:19px}.progress-stat{border:1px solid #e9f0e5;border-radius:18px;padding:21px;background:#fff;display:grid;gap:10px}.progress-stat small{font-size:11px;font-weight:750;color:#849383}.progress-stat strong{font-size:25px;letter-spacing:-.7px;font-weight:820}.progress-stat span{font-size:11px;color:#9da79b;line-height:1.5}.weight-chart{min-height:180px}.trend{width:100%;height:auto;max-height:330px}.chart-note{color:#9ba49d;font-size:11px;margin:0 0 5px}.measurement-table-wrap{overflow-x:auto}.measurement-table{border-collapse:collapse;width:100%;min-width:470px;font-size:13px}.measurement-table td,.measurement-table th{padding:14px 10px;border-bottom:1px solid #edf0e8;text-align:left;white-space:nowrap}.measurement-table th{font-size:11px;font-weight:750;color:#8b9989}.measurement-table td:last-child{text-align:right}.report-card{background:#eef5e7;border-radius:18px;padding:25px 28px;margin-bottom:22px}.report-card h3{font-size:23px;margin:12px 0 8px;letter-spacing:-.7px}.report-card p{color:#798a77;font-size:12px;line-height:1.65;max-width:660px}.report-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;border-top:1px solid #d7e5cd;padding-top:18px;margin-top:17px}.report-stats>div{display:grid;gap:5px}.report-stats strong{font-size:25px}.report-stats small{font-size:10px;color:#879785}.empty-state button{cursor:pointer}
@media(max-width:980px){.progress-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.progress-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.progress-stat{padding:17px 14px;gap:8px}.progress-stat strong{font-size:21px}.report-card{padding:21px}.report-stats{grid-template-columns:repeat(2,1fr)}.mobile-tab{min-width:0}.mobile-nav{gap:0}.mobile-tab span{font-size:20px}}

@media(max-width:680px){.mobile-nav{grid-template-columns:repeat(6,minmax(0,1fr))}.mobile-tab{font-size:9px;min-width:0}.mobile-tab span{font-size:18px}.mobile-tab.add-tab{width:44px;height:44px}}

/* v0.3: целостная продуктовая система и обязательная стартовая настройка */
:root{--bg:#f6f7f3;--surface:#fff;--ink:#202b27;--muted:#7e8a83;--line:#e8ece5;--accent:#d8ff99;--accent-strong:#78a866;--lightgreen:#edf6df;--radius:20px;--shadow:0 14px 42px rgba(32,51,39,.055)}
body{background:linear-gradient(180deg,#f8f9f6 0,#f5f7f2 100%);min-width:0;overflow-x:hidden}
button{transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .18s ease}
button:active{transform:translateY(1px)}
.topbar{position:sticky;top:0;z-index:12;background:rgba(248,249,246,.88);backdrop-filter:blur(14px);border-color:rgba(226,232,224,.9)}
.mobile-brand{display:none;border:0;background:transparent;padding:0;align-items:center;gap:8px;color:var(--ink)}
.mobile-brand>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#26342e;color:var(--accent);font-size:20px;font-weight:850;letter-spacing:-2px;padding-right:2px}
.mobile-brand strong{font-size:16px;letter-spacing:-.7px}
.logo-mark{font-size:34px;letter-spacing:0;padding-right:0}
.mobile-brand>span{font-size:18px;letter-spacing:0;padding-right:0}
.nav-icon svg,.mobile-tab svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;display:block}
.nav-icon{width:21px;height:21px;min-width:21px}
.nav-btn{min-height:51px}
.nav-btn.active{box-shadow:inset 0 0 0 1px rgba(125,171,104,.08)}
.primary-action{min-height:49px;box-shadow:0 10px 25px rgba(38,56,43,.13)}
.budget-card{background:linear-gradient(145deg,#263832 0%,#21302b 100%);box-shadow:0 18px 44px rgba(27,45,35,.13);border:1px solid rgba(255,255,255,.045)}
.progress-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 1px 9px;color:#9eb0a4;font-size:10px;font-weight:700;letter-spacing:.15px}
.progress-meta span:last-child{text-align:right}
.progress-track{height:10px;background:#40524a;border:1px solid rgba(255,255,255,.025)}
.section-block{box-shadow:var(--shadow)}
.day-column{position:relative;min-height:148px}
.day-column.active:after{content:"";position:absolute;left:50%;bottom:5px;width:4px;height:4px;border-radius:50%;background:#6c9e62;transform:translateX(-50%)}
.catalog-switch{display:inline-flex;gap:4px;padding:5px;margin:-26px 0 20px;background:#eaf0e5;border:1px solid #e1e9dc;border-radius:13px}
.catalog-switch button{border:0;background:transparent;color:#7c8b7b;border-radius:9px;padding:10px 18px;font-size:12px;font-weight:780}
.catalog-switch button.active{background:#fff;color:#315136;box-shadow:0 4px 12px rgba(43,71,49,.07)}
.data-badge{display:inline-flex;vertical-align:2px;margin-left:6px;padding:4px 7px;border-radius:99px;background:#f2eee1;color:#927f50;font-size:8px;font-weight:850;letter-spacing:.55px;white-space:nowrap}
.data-badge.personal{background:#e9f3e4;color:#5f8456}
.recipe-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.recipe-card-top .data-badge{margin:0}
.recipe-live-preview{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#dfe9d9;border:1px solid #dfe9d9;border-radius:13px;overflow:hidden;margin:2px 0 17px;color:#405646}
.recipe-live-preview>span{grid-column:1/-1;background:#f4f8f0;padding:14px;color:#91a08e;font-size:11px;line-height:1.5;text-align:center}
.recipe-live-preview>div{display:grid;gap:5px;background:#f1f7eb;padding:13px 15px}
.recipe-live-preview small{font-size:8px;letter-spacing:1px;font-weight:850;color:#849780}
.recipe-live-preview strong{font-size:16px}
.modal-dialog{border:1px solid rgba(255,255,255,.7);box-shadow:0 34px 100px rgba(18,34,24,.25)}
.modal-close[hidden]{display:none}
.modal-required .modal-backdrop{cursor:default}
.onboarding-intro{font-size:12px;color:#7e8d80;margin-bottom:19px}
.goal-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;border:0;padding:0;margin:0 0 18px}
.goal-options legend{grid-column:1/-1;padding:0;margin-bottom:2px;color:#69776a;font-size:12px;font-weight:750}
.goal-option{display:block;cursor:pointer;min-width:0}
.goal-option input{position:absolute;opacity:0;pointer-events:none}
.goal-option span{min-height:75px;display:flex;flex-direction:column;justify-content:center;gap:5px;border:1px solid #e3e9df;border-radius:12px;padding:12px 13px;background:#fff;transition:.18s}
.goal-option strong{font-size:12px;color:#435047}
.goal-option small{font-size:9px;line-height:1.4;color:#9aa49a}
.goal-option input:checked+span{border-color:#8fbd77;background:#eff8e8;box-shadow:0 0 0 2px rgba(143,189,119,.14)}
.goal-option input:focus-visible+span{outline:3px solid #a5d96c;outline-offset:2px}
.budget-field{margin-bottom:14px}
.input-with-unit{position:relative}
.input-with-unit input{padding-right:58px}
.input-with-unit span{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#8e9a8f;font-size:11px;font-weight:700;pointer-events:none}
.optional-settings{border:1px solid #e6ebe2;border-radius:12px;background:#fafbf8;margin:0 0 18px;overflow:hidden}
.optional-settings summary{cursor:pointer;list-style:none;padding:13px 15px;font-size:11px;font-weight:780;color:#5f6e61}
.optional-settings summary::-webkit-details-marker{display:none}
.optional-settings summary:after{content:"＋";float:right;color:#799374}
.optional-settings[open] summary:after{content:"−"}
.optional-settings summary span{font-size:9px;color:#9da69d;font-weight:600;margin-left:5px}
.optional-settings .field-grid{padding:2px 14px 0}
.storage-caption{text-align:center;margin:12px 8px 0;color:#a0aaa0;font-size:9px;line-height:1.5}
.backup-panel{margin-top:16px;padding:15px;border:1px solid #e4eae0;border-radius:13px;background:#f8faf6}
.backup-panel>strong{font-size:12px;color:#526154}
.backup-panel>p{margin:5px 0 12px;color:#8d998e;font-size:10px;line-height:1.5}
.backup-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.backup-actions .secondary-btn{min-width:0;padding:0 10px}
.modal-info+.field{margin-top:3px}
.confirm-copy{padding:3px 0 21px;color:#748075;font-size:13px;line-height:1.65}
.confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.secondary-btn,.danger-btn{min-height:46px;border-radius:11px;font-size:12px;font-weight:800}
.secondary-btn{border:1px solid #e1e7dd;background:#f7f9f5;color:#657266}
.secondary-btn:hover{background:#eef3ea}
.danger-btn{border:1px solid #f1d4cc;background:#fff1ed;color:#a55242}
.danger-btn:hover{background:#fbe3dc}

@media(max-width:980px){
  .logo-word,.nav-caption{display:none}
  .logo{width:100%}
  .logo-mark{flex:0 0 48px}
  .nav-icon{width:22px;height:22px;min-width:22px}
  .catalog-switch{margin-top:-22px}
}

@media(max-width:680px){
  .topbar{height:60px;padding:0 16px;background:rgba(250,251,248,.94)}
  .top-breadcrumb{display:none}
  .mobile-brand{display:flex}
  .top-right .demo-pill{display:none}
  .top-settings{width:36px;height:36px;background:#f0f4ed}
  main{padding:29px 14px 104px}
  .heading-row{margin-bottom:30px}
  h1{font-size:39px;line-height:1.04;letter-spacing:-2.2px;margin-top:11px}
  .page-lead{font-size:12px;max-width:340px}
  .week-nav{margin-bottom:16px}
  .week-controls>span{min-width:120px}
  .budget-card{min-height:286px;padding:21px;border-radius:20px}
  .budget-copy{padding:29px 0 15px}
  .big-number{font-size:64px}
  .big-sub{font-size:11px}
  .progress-meta{font-size:9px;margin-top:1px}
  .budget-bottom{padding-top:17px}
  .budget-bottom strong{font-size:13px}
  .budget-bottom small{font-size:7.5px;letter-spacing:.75px}
  .insight-card{min-height:198px}
  .day-column{min-height:128px}
  .catalog-switch{display:flex;margin:-14px 0 14px;width:100%}
  .catalog-switch button{flex:1;padding:10px 12px}
  .catalog-item{align-items:flex-start;padding:15px 0}
  .catalog-item-main{align-items:flex-start}
  .catalog-name{line-height:1.5}
  .data-badge{display:table;margin:4px 0 0}
  .catalog-item-right{gap:7px;align-items:center}
  .catalog-kcal{font-size:12px}
  .catalog-kcal small{font-size:8px}
  .mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr));padding:7px 8px calc(8px + env(safe-area-inset-bottom))}
  .mobile-tab{font-size:9px;gap:4px;padding:5px 2px}
  .mobile-tab>span{width:20px;height:20px;font-size:0}
  .mobile-tab.add-tab{width:48px;height:48px;margin-top:-22px;border-radius:15px}
  .mobile-tab.add-tab>span{width:25px;height:25px}
  .goal-options{gap:7px}
  .goal-option span{min-height:70px;padding:10px}
  .goal-option small{font-size:8.5px}
  .optional-settings .field-grid{grid-template-columns:1fr}
  .backup-actions{grid-template-columns:1fr}
  .modal-dialog{max-height:94vh}
}

@media(max-width:370px){
  h1{font-size:35px}
  .big-number{font-size:57px}
  .budget-bottom{gap:5px}
  .budget-bottom strong{font-size:12px}
  .goal-options{grid-template-columns:1fr}
  .goal-option span{min-height:58px}
}
