
    :root{--paper:#f7f7ef;--white:#fffefa;--ink:#283b30;--muted:#56634f;--line:#e4e6db;--olive:#667b43;--lime:#edf2cf;--blue:#e2eef6;--peach:#f6e4d7;--rose:#edc2bb;--yellow:#e8c574;--nav-height:80px;--serif:'Lora',Georgia,serif;--sans:'Golos Text',Arial,sans-serif;color-scheme:light}
    *{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:25px}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.5 var(--sans);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-underline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9eb37a;outline-offset:4px}button{border:0}button svg{flex-shrink:0}svg{display:block}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:500}button,input,select{min-width:0}[hidden]{display:none!important}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.eyebrow{font-size:12px;letter-spacing:1.6px;text-transform:uppercase;font-weight:500}.muted{color:var(--muted)}.serif{font-family:var(--serif)}.skip-link{position:fixed;top:8px;left:8px;background:var(--ink);color:white;padding:12px;z-index:200;transform:translateY(-150%)}.skip-link:focus{transform:none}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:12px 21px;background:var(--ink);color:var(--white);border-radius:99px;font-size:12px;font-weight:500;transition:background .2s,transform .2s}.button:hover{background:#456047}.button.light{background:var(--white);color:var(--ink);border:1px solid var(--line)}.button.small{min-height:36px;padding:8px 16px;font-size:12px}.button svg{width:17px;height:17px}.icon-button{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:transparent}.icon-button:hover{background:#e9ecdf}.text-button{background:transparent;font-size:12px;padding:8px 0;color:var(--olive);text-decoration:underline;text-underline-offset:4px}.pill{display:inline-flex;align-items:center;gap:7px;border-radius:30px;padding:6px 10px;background:var(--lime);font-size:12px}.pill:before{content:'';width:5px;height:5px;background:var(--olive);border-radius:50%}.food-art{width:80px;height:80px;overflow:visible}.art-face{fill:#30482b}.nav-brand{font:500 31px/1 var(--serif);letter-spacing:-1.7px;display:flex;align-items:center;gap:8px;text-decoration:none}.nav-brand svg{width:27px;height:32px}.layout{max-width:1480px;margin:auto;display:grid;grid-template-columns:208px minmax(0,1fr);min-height:100vh}.sidebar{padding:36px 26px;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100dvh}.sidebar .nav-brand{padding-left:7px}.sidebar-tag{font-size:12px;color:var(--muted);letter-spacing:1.5px;margin:11px 0 57px 10px}.desktop-nav{display:flex;flex-direction:column;gap:10px}.nav-item{display:flex;align-items:center;gap:14px;padding:13px 18px;background:transparent;border-radius:10px;text-align:left;font-size:12px;position:relative}.nav-item.active{background:#e9eddd;color:#344c2d}.nav-item.active:after{content:'';width:5px;height:5px;background:var(--olive);border-radius:50%;margin-left:auto}.sidebar-bottom{margin-top:auto;position:relative;padding:25px 10px 0}.sidebar-bottom .food-art{width:106px;height:106px;transform:rotate(-8deg);margin:0 auto 22px}.sidebar-bottom p{font-family:var(--serif);font-size:19px;line-height:1.4;letter-spacing:-.5px}.sidebar-bottom small{display:block;color:var(--muted);font-size:12px;line-height:1.8;margin-top:14px}.main{padding:0 45px 32px;min-width:0}.topbar{height:96px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.mobile-brand{display:none}.topbar-label{font-size:12px;color:var(--muted)}.topbar-right{display:flex;align-items:center;gap:15px}.account-button{display:flex;align-items:center;gap:10px;border:0;background:transparent;font-size:12px}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e5eacb;color:#546b3d;font-family:var(--serif);font-size:17px}.avatar svg{height:21px;width:21px}.page{padding-top:35px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:25px}.page-heading h1{font:500 clamp(30px,3.1vw,43px)/1.18 var(--serif);letter-spacing:-1.6px;margin-top:8px}.page-heading p{font-size:12px;color:var(--muted);margin-top:11px}.date-control{display:flex;align-items:center;gap:7px;flex-shrink:0}.date-control .icon-button{border:1px solid var(--line);width:32px;height:32px}.date-label{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;min-width:145px;border:1px solid var(--line);padding:8px 13px;border-radius:30px}.date-label .icon{width:15px;height:15px}.date-label input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(230px,1fr);gap:22px;align-items:start}.daily-summary{background:var(--lime);border-radius:20px;overflow:hidden;position:relative;padding:24px 27px 22px;min-height:266px}.summary-top{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px}.summary-top button{font-size:12px;background:transparent;border-bottom:1px solid #798a5d;padding:2px 0;color:#586a3f}.summary-main{display:flex;align-items:center;gap:24px;padding:20px 0 10px}.calorie-ring{height:145px;width:145px;position:relative;flex-shrink:0}.calorie-ring svg{height:100%;width:100%;transform:rotate(-90deg)}.calorie-ring circle{fill:none;stroke-width:8;stroke:#dce5b9}.calorie-ring .ring-fill{stroke:#73864b;stroke-linecap:round;transition:stroke-dashoffset .5s}.ring-center{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column}.ring-center strong{font-size:34px;font-weight:500;letter-spacing:-1.5px;line-height:1.2}.ring-center span{font-size:12px;line-height:1.3;letter-spacing:0;white-space:nowrap;color:#687351;margin-top:4px}.summary-message{min-width:0}.summary-message .eyebrow{font-size:12px;letter-spacing:1.1px;color:#6d7955}.summary-message h2{font:400 25px/1.25 var(--serif);letter-spacing:-.6px;margin:7px 0 10px;max-width:180px}.summary-message p{font-size:12px;color:#677452;line-height:1.6}.summary-bottom{border-top:1px solid #d6dfb7;padding-top:12px;display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#6a7757}.summary-bottom strong{color:var(--ink);font-weight:500}.welcome-card{background:var(--blue);border-radius:20px;padding:23px 23px 20px;min-height:266px;overflow:hidden;position:relative}.welcome-card .eyebrow{font-size:12px;letter-spacing:1.2px;color:#56634f}.welcome-card h2{font:400 27px/1.2 var(--serif);letter-spacing:-.7px;max-width:210px;margin-top:10px;position:relative;z-index:1}.welcome-card p{font-size:12px;color:#56634f;max-width:145px;margin-top:11px;position:relative;z-index:1}.welcome-card .food-art{position:absolute;width:143px;height:161px;right:8px;bottom:-3px;transform:rotate(9deg)}.welcome-card .tiny-star{position:absolute;right:25px;top:28px;color:#56634f;font-size:22px}.macro-strip{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px;padding:0 3px 1px}.macro-heading{display:flex;justify-content:space-between;align-items:center;font-size:12px}.macro-heading strong{font-weight:500}.macro-heading span{font-size:12px;color:var(--muted)}.macro-heading b{font-weight:500;color:var(--ink)}.macro-track{height:5px;border-radius:9px;background:#e9e9df;overflow:hidden;margin-top:11px}.macro-track>span{height:100%;display:block;background:var(--rose);border-radius:9px;transition:width .4s}.macro.fat .macro-track>span{background:var(--yellow)}.macro.carb .macro-track>span{background:#a5c1cc}.macro-note{font-size:12px;color:var(--muted);margin-top:6px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:29px 0 15px}.section-head h2{font:500 25px/1.2 var(--serif);letter-spacing:-.6px}.section-head>span{font-size:12px;color:var(--muted)}.quick-search{display:flex;align-items:center;gap:10px;background:var(--white);border:1px solid var(--line);border-radius:50px;min-height:50px;padding:7px 9px 7px 17px}.quick-search>.icon{width:18px;height:18px;color:#56634f}.quick-search input{border:0;outline:0!important;background:transparent;flex:1;font-size:12px;width:100%;min-width:0;color:var(--ink)}.quick-search input::placeholder{color:#56634f}.quick-search button{width:34px;height:34px;border-radius:50%;background:var(--ink);color:var(--white);display:grid;place-items:center}.quick-search button svg{height:16px;width:16px}.diary-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(230px,1fr);gap:22px}.meal-list{margin-top:16px}.meal-card{background:var(--white);border:1px solid var(--line);border-radius:15px;margin-bottom:11px;overflow:hidden}.meal-header{padding:16px 18px;display:flex;align-items:center;gap:11px}.meal-icon{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#f8ecd9;color:#56634f;flex-shrink:0}.meal-icon.lunch{background:#e9eedc;color:#56634f}.meal-icon.dinner{background:#e7edf3;color:#56634f}.meal-icon.snack{background:#f3e6e0;color:#56634f}.meal-icon .icon{width:18px;height:18px}.meal-title{flex:1;min-width:0}.meal-title h3{font-size:12px;font-weight:500}.meal-title p{font-size:12px;color:var(--muted);margin-top:2px}.add-round{width:30px;height:30px;display:grid;place-items:center;background:#f2f3e9;border-radius:50%}.add-round .icon{width:16px;height:16px}.meal-empty{margin:-1px 18px 15px 64px;font-size:12px;color:#56634f}.food-entry{margin:0 18px;border-top:1px solid #edefe6;padding:11px 0;display:flex;align-items:center;gap:10px}.entry-thumb{width:36px;height:36px;background:#f3f5e8;border-radius:9px;display:grid;place-items:center;flex-shrink:0}.entry-thumb .food-art{width:32px;height:32px}.entry-details{flex:1;min-width:0}.entry-details strong{display:block;font-size:12px;font-weight:500;overflow-wrap:anywhere}.entry-details span{display:block;font-size:12px;color:var(--muted);margin-top:1px}.entry-energy{font-size:12px;text-align:right;white-space:nowrap}.entry-delete{background:transparent;color:#56634f;width:25px;height:32px;display:grid;place-items:center}.entry-delete .icon{width:13px;height:13px}.entry-delete:hover{color:#8f483d}.diary-aside{padding-top:16px}.gentle-note{padding:22px 21px;border:1px solid #e1e4d7;border-radius:15px;position:relative;overflow:hidden}.gentle-note .food-art{width:72px;height:72px;margin-bottom:13px;transform:rotate(-8deg)}.gentle-note h3{font:400 22px/1.25 var(--serif);letter-spacing:-.5px}.gentle-note p{font-size:12px;line-height:1.8;color:var(--muted);margin-top:10px}.demo-note{margin-top:15px;border-top:1px solid var(--line);padding:15px 3px}.demo-note h3{font-size:12px;font-weight:500}.demo-note p{font-size:12px;line-height:1.8;color:var(--muted);margin:6px 0}.storage-note{font-size:12px;color:#56634f;display:flex;align-items:center;gap:6px;line-height:1.6}.storage-note .icon{width:12px;height:12px;flex-shrink:0}.main-footer{border-top:1px solid var(--line);margin-top:27px;padding-top:16px;display:flex;justify-content:space-between;gap:15px;color:#56634f;font-size:12px}.main-footer strong{font-family:var(--serif);font-weight:400;color:var(--olive)}
    .foods-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;background:var(--peach);border-radius:20px;padding:23px 27px;margin-bottom:24px;overflow:hidden}.foods-intro h2{font:400 28px/1.18 var(--serif);letter-spacing:-.8px}.foods-intro p{font-size:12px;color:#56634f;max-width:340px;line-height:1.7;margin-top:8px}.foods-intro .food-art{width:90px;height:90px;flex-shrink:0;transform:rotate(11deg)}.search-tools{display:flex;gap:10px}.search-tools .quick-search{flex:1}.barcode-button{display:flex;align-items:center;justify-content:center;gap:9px;padding:12px 17px;border:1px solid var(--line);border-radius:50px;background:transparent;font-size:12px}.barcode-button .icon{height:20px;width:20px}.category-list{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0 22px}.category{padding:8px 13px;border-radius:50px;border:1px solid var(--line);background:transparent;font-size:12px;white-space:nowrap}.category.active{color:var(--white);background:var(--ink);border-color:var(--ink)}.results-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.results-heading h2{font-size:12px;font-weight:500}.results-heading span{font-size:12px;color:var(--muted)}.food-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.food-result{display:flex;align-items:center;gap:13px;background:var(--white);border:1px solid var(--line);border-radius:13px;padding:14px;text-align:left;min-width:0;transition:border-color .2s,background .2s}.food-result:hover{border-color:#b8c699;background:#fcfdf6}.food-result .food-thumb{height:56px;width:56px;display:grid;place-items:center;border-radius:12px;background:#f1f3e3;flex-shrink:0}.food-result:nth-child(3n+2) .food-thumb{background:#e9f0f5}.food-result:nth-child(3n+3) .food-thumb{background:#f7ebe0}.food-thumb .food-art{height:49px;width:49px}.food-result-copy{flex:1;min-width:0}.food-result-copy strong{font-weight:500;font-size:12px;display:block;overflow-wrap:anywhere}.food-result-copy small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.food-result-copy span{font-size:12px;color:#56634f;display:block;margin-top:5px}.food-result>.icon{width:16px;height:16px;color:#56634f}.empty-state{grid-column:1/-1;padding:35px;text-align:center;border:1px dashed #d7dccb;border-radius:15px}.empty-state .food-art{margin:0 auto 14px;width:80px;height:80px}.empty-state h3{font:400 24px var(--serif)}.empty-state p{font-size:12px;color:var(--muted);margin:10px 0 18px}.catalog-note{font-size:12px;line-height:1.8;color:var(--muted);margin-top:20px;max-width:680px}.catalog-note button{background:transparent;padding:0;color:var(--olive);text-decoration:underline;font-size:inherit}.profile-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(240px,1fr);gap:24px;align-items:start}.profile-form{border:1px solid var(--line);background:var(--white);border-radius:18px;padding:26px}.form-section-title{font-family:var(--serif);font-size:23px;letter-spacing:-.5px;margin-bottom:20px}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;margin-bottom:17px;font-weight:500}.field input,.field select{border:1px solid #dce0d2;background:#fcfcf7;border-radius:8px;min-height:44px;padding:10px 12px;color:var(--ink);font-size:14px;width:100%;font-weight:400}.field small{font-size:12px;font-weight:400;line-height:1.6;color:var(--muted)}.profile-form .button{width:100%;margin-top:9px}.form-help{font-size:12px;color:var(--muted);line-height:1.8;margin:0 0 14px}.profile-preview{border-radius:18px;background:var(--lime);padding:25px;position:sticky;top:25px}.preview-title{display:flex;justify-content:space-between;align-items:center}.preview-title .food-art{height:65px;width:65px}.preview-total{font-family:var(--serif);font-size:49px;letter-spacing:-1.5px;line-height:1.15;margin-top:14px}.preview-total small{font:400 12px var(--sans);letter-spacing:0}.preview-caption{font-size:12px;color:#6c7953;margin-top:5px}.preview-macros{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #d3ddb3;border-bottom:1px solid #d3ddb3;padding:16px 0;margin:22px 0 17px;gap:8px}.preview-macros strong{display:block;font-size:19px;font-weight:500}.preview-macros span{font-size:12px;color:#56634f}.calculation-detail{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin:9px 0;color:#6d7959}.calculation-detail strong{font-weight:500;color:#455739}.formula-explainer{border-top:1px solid #d3ddb3;margin-top:17px;padding-top:17px;font-size:12px;line-height:1.8;color:#6a7855}.formula-explainer summary{font-weight:500;color:var(--ink);cursor:pointer}.formula-explainer p{margin-top:9px}.formula-explainer code{font-size:12px;white-space:normal;overflow-wrap:anywhere;display:block;margin:8px 0}.formula-explainer a{font-size:12px}.profile-scope{font-size:12px;color:var(--muted);line-height:1.8;margin-top:19px;max-width:700px}.form-error{font-size:12px;background:#faebe6;border-left:2px solid #b26a56;padding:10px 12px;margin-top:12px;color:#8c4d3f}.form-success{font-size:12px;color:#4c6838;margin-top:12px}.bottom-nav{display:none}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--ink);color:var(--white);font-size:12px;padding:12px 20px;border-radius:12px;z-index:150;max-width:calc(100% - 32px);text-align:center;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
    dialog{color:var(--ink);background:var(--paper);border:1px solid #e5e9dc;border-radius:24px;padding:0;width:min(470px,calc(100% - 28px));max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 25px 100px #142c2733}dialog::backdrop{background:#20372c55;backdrop-filter:blur(4px)}body.modal-open{overflow:hidden}body.modal-open .bottom-nav{visibility:hidden}.dialog-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px 10px;gap:15px}.dialog-header h2{font:500 24px/1.2 var(--serif);letter-spacing:-.6px}.dialog-body{padding:8px 24px 24px}.product-hero{display:flex;align-items:center;gap:17px;margin:3px 0 18px}.product-hero .food-art{width:88px;height:88px;flex-shrink:0}.product-hero h3{font:400 26px/1.2 var(--serif);letter-spacing:-.5px}.product-hero p{font-size:12px;color:var(--muted);margin-top:6px}.portion-macros{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;background:#ebefdd;border-radius:12px;padding:15px 10px;margin:12px 0 20px;text-align:center}.portion-macros strong{display:block;font-size:19px;font-weight:500}.portion-macros span{font-size:12px;color:#56634f}.portion-amount{display:flex;align-items:center;gap:10px}.portion-amount .icon-button{background:#e7ebdc;width:42px;height:42px;flex-shrink:0}.portion-amount input{text-align:center;flex:1}.portion-suggestions{display:flex;gap:6px;margin-top:-7px;margin-bottom:18px}.portion-suggestions button{background:transparent;border:1px solid #dce1cf;padding:5px 12px;border-radius:20px;font-size:12px}.dialog-note{font-size:12px;color:var(--muted);line-height:1.8;margin:14px 0}.dialog-submit{width:100%;margin-top:8px}.scan-frame{height:175px;border:1px dashed #bac5a5;border-radius:15px;margin:10px 0 18px;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#eaf0dd;gap:12px;overflow:hidden}.scan-frame>.icon{height:65px;width:65px;color:#56634f}.scan-frame p{font-size:12px;color:#56634f}.scan-frame video{width:100%;height:100%;object-fit:cover}.scan-actions{display:flex;gap:9px;margin-bottom:18px}.scan-actions .button{flex:1;font-size:12px}.barcode-example{font-size:12px;color:var(--muted);line-height:1.8}.barcode-example button{font-size:12px;background:transparent;color:var(--olive);padding:0;text-decoration:underline}.confirm-copy{font-size:13px;line-height:1.8;color:var(--muted);margin:5px 0 20px}.confirm-actions{display:flex;gap:10px}.confirm-actions button{flex:1}.custom-macros{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.copyright-note{font-size:12px;color:#56634f;line-height:1.7}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
    @media(min-width:1400px){.main{padding-inline:60px}.page{padding-top:42px}.daily-summary,.welcome-card{min-height:280px}.summary-main{gap:37px}.summary-message h2{font-size:29px}.calorie-ring{width:156px;height:156px}}
    @media(max-width:1120px){.layout{grid-template-columns:170px minmax(0,1fr)}.sidebar{padding-inline:17px}.sidebar .nav-brand{font-size:27px;gap:5px}.main{padding-inline:28px}.dashboard-grid,.diary-grid{grid-template-columns:minmax(0,1.4fr) minmax(215px,1fr);gap:16px}.daily-summary{padding:20px}.summary-main{gap:14px}.calorie-ring{width:125px;height:125px}.summary-message h2{font-size:22px}.daily-summary,.welcome-card{min-height:247px}.welcome-card{padding:20px}.welcome-card h2{font-size:24px}.welcome-card .food-art{width:122px;height:140px;right:-2px}.profile-grid{grid-template-columns:minmax(0,1.1fr) minmax(220px,1fr);gap:17px}.profile-form,.profile-preview{padding:21px}.food-results{gap:8px}.food-result{gap:10px;padding:12px}.food-result .food-thumb{width:45px;height:45px}.food-result-copy strong{font-size:12px}}
    @media(max-width:880px){.layout{grid-template-columns:1fr;max-width:700px}.sidebar{display:none}.main{padding:0 28px calc(var(--nav-height) + 35px + env(safe-area-inset-bottom,0px))}.topbar{height:85px}.mobile-brand{display:flex;font-size:29px}.mobile-brand svg{width:24px}.topbar-label{display:none}.topbar-right{gap:12px}.account-button>span:last-child{display:none}.topbar .pill{font-size:12px}.page{padding-top:27px}.page-heading h1{font-size:37px}.page-heading{align-items:flex-start;flex-wrap:wrap;gap:17px;margin-bottom:21px}.page-heading .eyebrow{font-size:12px}.page-heading p{font-size:12px}.page-heading .date-control{margin-top:3px}.bottom-nav{display:flex;justify-content:space-around;position:fixed;bottom:0;left:0;right:0;height:calc(var(--nav-height) + env(safe-area-inset-bottom,0px));padding:9px max(12px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));background:#f7f7eff5;border-top:1px solid var(--line);backdrop-filter:blur(18px);z-index:50}.bottom-nav button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-width:76px;padding:7px 17px;border-radius:13px;background:transparent;font-size:12px;color:#56634f}.bottom-nav button .icon{width:23px;height:23px}.bottom-nav button.active{background:#e9edda;color:#4f663c}.main-footer{font-size:12px}.toast{bottom:calc(var(--nav-height) + env(safe-area-inset-bottom,0px) + 12px)}.profile-preview{position:static}.profile-grid{grid-template-columns:1fr 1fr}.food-result-copy strong{font-size:12px}}
    @media(max-width:560px){.main{padding-inline:20px}.topbar{height:77px}.mobile-brand{font-size:28px}.mobile-brand svg{height:29px;width:23px}.topbar-right{gap:11px}.avatar{height:33px;width:33px}.page{padding-top:24px}.page-heading{display:block}.page-heading h1{font-size:34px;letter-spacing:-1.2px}.page-heading p{margin-top:8px}.page-heading .date-control{margin-top:20px;justify-content:space-between}.date-label{flex:1;max-width:205px}.dashboard-grid{display:block}.daily-summary{min-height:236px;padding:20px 22px 18px;border-radius:18px}.summary-main{gap:23px;justify-content:center;padding:17px 0 12px}.calorie-ring{height:130px;width:130px}.ring-center strong{font-size:32px}.summary-message h2{font-size:24px;max-width:160px}.summary-message .eyebrow{font-size:12px}.summary-message p{font-size:12px}.summary-bottom{font-size:12px}.summary-top{font-size:12px}.summary-top button{font-size:12px}.macro-strip{display:grid;gap:16px;padding:19px 2px 0}.macro-heading{display:block;font-size:12px}.macro-heading span{display:block;font-size:12px;margin-top:4px}.macro-track{height:4px;margin-top:9px}.macro-note{font-size:12px}.welcome-card{min-height:134px;margin-top:21px;padding:19px 20px;border-radius:17px}.welcome-card h2{font-size:23px;max-width:230px;margin-top:7px}.welcome-card p{font-size:12px;max-width:200px;margin-top:7px}.welcome-card .eyebrow{font-size:12px}.welcome-card .food-art{height:126px;width:117px;right:6px;bottom:-9px}.welcome-card .tiny-star{right:23px;top:16px;font-size:17px}.diary-grid{display:block}.diary-aside{padding-top:5px}.gentle-note{display:none}.demo-note{padding-top:14px;margin-top:10px}.demo-note p{font-size:12px}.demo-actions{display:flex;gap:18px}.section-head{margin-top:27px;margin-bottom:13px}.section-head h2{font-size:24px}.section-head>span{font-size:12px}.quick-search{min-height:48px;padding-left:14px}.quick-search input{font-size:12px}.meal-header{padding:15px}.meal-card{border-radius:14px}.meal-title h3{font-size:12px}.meal-empty{margin-left:61px;font-size:12px}.food-entry{margin-inline:15px}.entry-details strong{font-size:12px}.main-footer{display:block}.main-footer span{display:block;margin-top:6px}.foods-intro{padding:20px;margin-bottom:20px}.foods-intro h2{font-size:27px;max-width:210px}.foods-intro p{max-width:195px;font-size:12px}.foods-intro .food-art{width:75px;height:90px;align-self:flex-end;margin-right:-6px}.search-tools{gap:8px}.barcode-button{width:47px;height:48px;padding:0;flex-shrink:0}.barcode-button span{display:none}.category-list{flex-wrap:nowrap;overflow:auto;scrollbar-width:none;padding-bottom:3px;margin-block:13px 18px;margin-right:-20px;padding-right:20px}.category-list::-webkit-scrollbar{display:none}.food-results{grid-template-columns:1fr;gap:8px}.food-result{padding:12px 13px;border-radius:12px;gap:13px}.food-result .food-thumb{height:49px;width:49px}.food-result-copy small{font-size:12px}.food-result-copy span{font-size:12px}.food-result-copy strong{font-size:12px}.food-results .food-thumb .food-art{width:44px;height:44px}.food-result>.icon{width:18px;height:18px}.results-heading h2{font-size:12px}.results-heading span{font-size:12px}.profile-grid{display:flex;flex-direction:column;gap:20px}.profile-form{width:100%;padding:21px 20px}.profile-preview{width:100%;padding:23px;order:-1}.profile-preview .preview-title .food-art{height:55px;width:55px}.preview-total{font-size:44px;margin-top:-4px}.preview-macros{margin:15px 0}.preview-caption{font-size:12px}.preview-title .eyebrow{font-size:12px}.calculation-detail{font-size:12px}.formula-explainer{font-size:12px}.form-section-title{font-size:22px}.field{font-size:12px}.field input,.field select{font-size:16px;min-height:46px}.field small{font-size:12px}.form-row{gap:12px}.profile-form .button{font-size:12px}.profile-scope{font-size:12px}.empty-state{padding:28px 18px}.empty-state h3{font-size:23px}.empty-state p{font-size:12px}.toast{font-size:12px;width:max-content;max-width:calc(100% - 32px)}dialog{width:calc(100% - 16px);margin:auto auto 8px;border-radius:22px;max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px));padding-bottom:env(safe-area-inset-bottom,0px)}.dialog-header{padding:17px 20px 8px}.dialog-header h2{font-size:23px}.dialog-body{padding:8px 20px 22px}.product-hero{gap:11px}.product-hero .food-art{width:76px;height:76px}.product-hero h3{font-size:24px}.dialog-submit{font-size:12px;min-height:48px}.dialog-note{font-size:12px}.portion-macros strong{font-size:19px}.portion-macros span{font-size:12px}}
    @media(max-width:360px){.main{padding-inline:16px}.page-heading h1{font-size:30px}.topbar .pill{font-size:12px;padding:5px 7px}.topbar-right{gap:8px}.mobile-brand{font-size:25px}.summary-main{gap:14px}.calorie-ring{width:116px;height:116px}.summary-message h2{font-size:22px}.daily-summary{padding:18px}.summary-message p{max-width:125px}.macro-strip{gap:12px}.welcome-card h2{max-width:170px;font-size:21px}.welcome-card p{max-width:160px}.welcome-card .food-art{width:100px;height:112px;right:0}.category-list{margin-right:-16px;padding-right:16px}.foods-intro{padding:19px 16px}.foods-intro h2{font-size:25px}.foods-intro p{max-width:180px}.foods-intro .food-art{width:60px}.portion-macros{padding-inline:7px}.portion-macros strong{font-size:17px}}
    #quick-search-form{margin-bottom:20px}
    .day-actions{margin-top:17px;border-top:1px solid var(--line);padding:9px 0 0}
    .activity-hint{background:#edf1df;border-radius:10px;padding:13px 14px;margin:-4px 0 14px;font-size:12px;line-height:1.75;color:#5c6f48}
    .activity-hint strong{display:block;font-weight:500;color:var(--ink);margin-bottom:3px}
    .activity-guide{border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin-bottom:22px;font-size:12px;line-height:1.8;color:var(--muted)}
    .activity-guide summary{font-size:12px;font-weight:500;color:var(--ink);cursor:pointer}
    .activity-guide>p{margin-top:11px}
    .activity-choice{display:block;width:100%;text-align:left;border:1px solid var(--line);background:transparent;border-radius:8px;padding:11px 12px;margin-top:9px;font-size:12px;line-height:1.7}
    .activity-choice strong{display:block;font-size:12px;font-weight:500;margin-bottom:3px;color:var(--ink)}
    .activity-choice span{color:var(--muted)}
    .activity-choice[aria-pressed="true"]{background:#eef2df;border-color:#acbb8c}
    .calculation-detail strong{text-align:right}

    .category{flex-shrink:0}
    .nav-item,.bottom-nav button{transition:background-color .2s ease,color .2s ease}
    body{padding-top:var(--telegram-top,0px)}
    @media(max-width:880px){.bottom-nav{bottom:var(--telegram-bottom,0px)}.main{padding-bottom:calc(var(--nav-height) + 35px + env(safe-area-inset-bottom,0px) + var(--telegram-bottom,0px))}}
    @media(max-width:560px){.dashboard-grid{display:flex;flex-direction:column;gap:0}.daily-summary{width:100%}.macro-strip{order:2;width:100%}.welcome-card{order:3;width:100%}}
    @media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
    .product-emoji{font-size:38px;display:inline-grid;place-items:center;width:64px;height:64px;flex-shrink:0}.food-card{min-width:0}.food-card>.food-result{width:100%;height:100%}.food-card:has(.food-manage)>.food-result{height:auto}.food-manage{display:flex;gap:16px;padding:10px}.food-manage button{background:transparent;color:var(--olive);text-decoration:underline;min-height:32px}.backup-tools{margin:28px 0;padding:20px;border:1px solid var(--line);border-radius:16px}.backup-tools h2{font-size:20px}.backup-tools p{margin:10px 0 16px}.ring-center span{font-size:12px;white-space:normal;max-width:90px;text-align:center;line-height:1.25}.summary-main{flex-wrap:wrap}.entry-thumb .product-emoji{font-size:24px;width:32px;height:32px}.entry-delete{flex-shrink:0}
  
.svg-definitions{position:absolute;width:0;height:0;overflow:hidden}

/* Сохраняем прокрутку, но отключаем масштабирование жестами. */
html,body{touch-action:pan-x pan-y;-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media(max-width:880px){
  /* iOS увеличивает страницу при фокусе на слишком мелком поле. */
  input,select,textarea,.quick-search input{font-size:16px}
}

button.date-label{background:transparent}.calendar-month{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.calendar-month strong{text-transform:capitalize}.calendar-week,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.calendar-week{font-size:12px;text-align:center;color:var(--muted);margin-bottom:8px}.calendar-day{position:relative;min-height:40px;border-radius:10px;background:transparent;font-size:14px;padding:8px 0 12px}.calendar-day:hover{background:var(--lime)}.calendar-day[aria-current="date"]{box-shadow:inset 0 0 0 1px var(--olive)}.calendar-day[aria-pressed="true"]{background:var(--ink);color:var(--white)}.calendar-day.has-food::after{content:'';position:absolute;bottom:5px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:currentColor}.calendar-exact{margin-top:20px}
