.ingredient-picker-dialog{flex-direction:column;max-height:min(650px,100dvh - 36px);display:flex;overflow:hidden}.ingredient-picker-dialog>.section-label-row{flex-shrink:0;margin-bottom:3px}.ingredient-picker-hint{color:var(--muted);margin:2px 0 13px;font-size:12px;line-height:1.45}.ingredient-picker-dialog .search-form{flex-shrink:0;margin-bottom:10px}.ingredient-picker-states{flex-shrink:0;margin-bottom:8px}.ingredient-picker-states>button{min-height:36px;font-size:12px}.ingredient-picker-results{overscroll-behavior:contain;min-height:120px;overflow-y:auto}.ingredient-picker-result{text-align:left;border-bottom:1px solid var(--border);align-items:center;gap:10px;width:100%;min-height:78px;padding:12px 0;display:flex}.ingredient-picker-result>span:not(.ingredient-picker-leaf){flex:1;min-width:0}.ingredient-picker-result strong{overflow-wrap:anywhere;font-size:13px;line-height:1.35;display:block}.ingredient-picker-result small{color:var(--muted);overflow-wrap:anywhere;margin-top:3px;font-size:11px;line-height:1.4;display:block}.ingredient-picker-result>svg{color:var(--mint);flex-shrink:0}.ingredient-picker-leaf{color:var(--mint);background:#dff0e5;border-radius:11px;flex-shrink:0;place-items:center;width:35px;height:35px;display:grid}.ingredient-picker-empty{color:var(--muted);padding:20px 2px;font-size:13px;line-height:1.5}.ingredient-picker-pagination{flex-shrink:0;justify-content:center;margin-top:8px}.ingredient-product-choice{background:#fff;border-radius:11px;justify-content:space-between;align-items:center;gap:9px;margin-top:10px;padding:10px 11px;display:flex}.ingredient-product-choice>span{min-width:0}.ingredient-product-choice strong{overflow-wrap:anywhere;font-size:13px;display:block}.ingredient-product-choice small{color:var(--muted);margin-top:3px;font-size:11px;display:block}.ingredient-product-choice>.text-button{flex-shrink:0;font-size:12px}.ingredient-find-product{width:100%;min-height:43px;margin-top:10px}.ingredient-manual-disclosure{border:0;padding:10px 0 0}.ingredient-manual-disclosure summary{font-size:12px}.ingredient-manual-disclosure .nutrient-hint{margin:9px 0 4px;font-size:11px}.ingredient-weight-confirmation{color:var(--muted);margin-top:9px;font-size:11px;line-height:1.45}.ingredient-edit-panel>.ingredient-basic-grid{margin-top:8px}.ingredient-picker-error{flex-shrink:0;margin-bottom:8px}.ingredient-picker-error>.field-error{margin-bottom:3px}.ingredient-picker-error>.text-button{min-height:36px;font-size:12px}.ingredient-picker-empty>.secondary-button{width:100%;min-height:44px;margin-top:12px;font-size:13px}.ingredient-picker-overlay{padding-top:calc(18px + max(env(safe-area-inset-top),var(--safe-top,0px)));padding-bottom:calc(18px + max(env(safe-area-inset-bottom),var(--safe-bottom,0px)))}.ingredient-picker-dialog{min-width:0;max-height:100%}.ingredient-picker-dialog>.section-label-row>h2{font-size:19px}.ingredient-picker-results{flex:auto;min-height:0}.ingredient-picker-dialog .search-assist-credit{flex-shrink:0}@media (max-width:360px){.ingredient-picker-dialog{padding:17px}.ingredient-picker-dialog>.section-label-row>h2{font-size:18px}.ingredient-picker-result{gap:7px}.ingredient-picker-leaf{display:none}}.compact-dish-editor .ingredient-heading{gap:10px;min-height:39px;margin-top:0;margin-bottom:0}.compact-dish-editor .ingredient-heading h3{font-size:16px}.compact-dish-editor .ingredient-heading h3>span{color:var(--muted);white-space:nowrap;margin-left:6px;font-size:12px;font-weight:400}.compact-dish-editor .ingredient-heading>.text-button,.compact-dish-editor .dish-details-pane>.section-label-row>.text-button{flex-shrink:0;align-items:center;gap:2px;display:flex}.compact-dish-editor .ingredient-row{min-height:54px}.compact-dish-editor .ingredient-edit-panel{background:0 0;border-radius:0;margin:0;padding:0}.compact-dish-editor .ingredient-edit-panel>.section-label-row{margin:0}.compact-dish-editor .ingredient-product-choice{border-bottom:1px solid var(--border);background:0 0;border-radius:0;margin-top:4px;padding:10px 0}.compact-dish-editor .ingredient-product-choice>.text-button{align-items:center;gap:4px;min-height:40px;display:flex}.compact-dish-editor .ingredient-find-product{overflow-wrap:anywhere;min-height:46px;margin-top:4px;font-size:14px}.compact-dish-editor .ingredient-portion-field{margin-top:12px}.compact-dish-editor .ingredient-portion-field>.text-input{min-height:47px;padding:8px 12px;font-size:21px}.compact-dish-editor .ingredient-portion-summary{color:var(--muted);flex-wrap:wrap;align-items:center;gap:3px 5px;margin:7px 0 2px;font-size:12px;line-height:1.5;display:flex}.compact-dish-editor .ingredient-portion-summary>strong{color:var(--text);font-weight:600}.compact-dish-editor .ingredient-portion-summary>span{font-variant-numeric:tabular-nums;margin-left:auto}.compact-dish-editor .ingredient-identity,.compact-dish-editor .ingredient-manual-disclosure{border:0;border-bottom:1px solid var(--border);padding:10px 0}.compact-dish-editor .ingredient-identity>.field-label{margin-top:9px}.compact-dish-editor .ingredient-identity summary,.compact-dish-editor .ingredient-manual-disclosure summary{font-size:12px}.compact-dish-editor .ingredient-apply{min-height:47px;margin-top:13px;font-size:15px}.compact-dish-editor .dish-details-pane>.field-label{margin-top:11px}.compact-dish-editor .dish-details-pane>.section-label-row{min-height:37px;margin:0}.compact-dish-editor .dish-details-pane h3{font-size:17px}.compact-dish-editor .ingredient-edit-panel>.field-error{margin-top:9px;font-size:12px}.compact-dish-editor .ingredient-weight-hint{color:var(--muted);margin:5px 0 0;font-size:11px;line-height:1.4}.compact-dish-editor .ingredient-row.needs-product .ingredient-open small{color:#8a632e}.compact-dish-editor .ingredient-footer{min-height:40px}.compact-dish-editor .ingredient-product-choice{gap:8px}.compact-dish-editor .ingredient-product-choice>span{min-width:0}.compact-dish-editor .ingredient-product-choice>.text-button{flex-shrink:0;font-size:12px}.saved-shelf-filters{align-items:center;gap:8px;margin-bottom:8px;display:flex}.saved-shelf-search{min-height:45px}.saved-shelf-search input{height:44px;font-size:15px}.saved-favorites-filter{color:#6c8174;background:#e7f0e9;border-radius:13px;place-items:center;min-width:44px;height:44px;display:grid}.saved-favorites-filter[aria-pressed=true]{color:var(--mint);background:#e4f1e7;box-shadow:inset 0 0 0 1px #b5d8c3}.saved-shelf-list{border-top:1px solid var(--border)}.saved-shelf-row{border-bottom:1px solid var(--border);align-items:center;gap:0;min-height:77px;display:flex}.saved-shelf-choose{text-align:left;flex:1;align-items:center;gap:10px;min-width:0;min-height:74px;padding:10px 2px 10px 0;display:flex}.saved-shelf-image{width:37px;height:37px;color:var(--mint);background:#e1f0e6;border-radius:12px;flex-shrink:0;place-items:center;display:grid}.saved-shelf-choose>span:last-child{min-width:0}.saved-shelf-choose strong{-webkit-line-clamp:2;overflow-wrap:anywhere;-webkit-box-orient:vertical;font-size:14px;line-height:1.35;display:-webkit-box;overflow:hidden}.saved-shelf-choose small{color:var(--muted);margin-top:4px;font-size:11px;line-height:1.3;display:block}.saved-shelf-row>.icon-button{color:#6d8a78;width:40px;min-width:40px;height:44px}.saved-shelf-row>.saved-shelf-star[aria-pressed=true]{color:#c68d31}.saved-shelf-row>.saved-shelf-edit{color:var(--mint)}.saved-dishes-shelf>.inline-warning>.text-button{min-height:35px;padding-bottom:0;display:block}.saved-shelf-empty{text-align:center;color:#72937e;flex-direction:column;align-items:center;padding:27px 10px 20px;display:flex}.saved-shelf-empty>h2{color:var(--text);margin-top:12px;font-size:18px}.saved-shelf-empty>p{max-width:285px;color:var(--muted);margin-top:8px;font-size:13px;line-height:1.5}.focused-food-screen .food-library-segments{margin-bottom:12px}.focused-food-screen .food-library-segments>button{font-size:12px}.food-library-note{color:var(--muted);margin:0;font-size:12px;line-height:1.45}.food-library-status{color:var(--mint);justify-content:center;align-items:center;gap:5px;min-height:25px;font-size:12px;display:flex}.food-library-save{width:100%;min-height:44px;color:var(--mint);justify-content:center;align-items:center;gap:6px;padding:8px 4px;font-size:13px;display:flex}.food-library-cancel{min-height:39px;margin:0 auto;padding:8px 4px;display:block}.food-library-delete{justify-content:center;width:100%;min-height:42px;margin-top:0}.food-library-default-portion{color:var(--muted);margin:8px 0 0;font-size:12px}.focused-food-screen .food-recipe-scope{color:var(--muted);border-bottom:1px solid var(--border);margin:0;padding:8px 0;font-size:12px}.saved-shelf-filters,.saved-shelf-list,.saved-shelf-row{min-width:0}.saved-shelf-choose small{overflow-wrap:anywhere}.saved-shelf-row>.icon-button{flex-shrink:0;width:44px;min-width:44px}.saved-favorites-filter{flex-shrink:0}.food-library-status,.food-library-save{overflow-wrap:anywhere}@media (hover:none) and (pointer:coarse){.saved-shelf-search input{font-size:16px}}.catalog-records{border-top:1px solid var(--border);overflow-wrap:anywhere;margin:13px 0 5px;padding:10px 0}.catalog-records>summary{cursor:pointer;min-height:24px;font-size:13px;font-weight:600}.catalog-records-hint{color:var(--muted);margin:6px 0;font-size:12px;line-height:1.5}.catalog-record{border-bottom:1px solid var(--border);padding:12px 0}.catalog-record h3{margin:0 0 4px;font-size:13px;line-height:1.45}.catalog-record p,.catalog-record small,.catalog-record details{margin:4px 0;font-size:12px;line-height:1.5}.catalog-record small{color:var(--muted);display:block}.catalog-record .catalog-record-reason{color:#80613a}.catalog-record .catalog-record-basis{font-weight:600}.catalog-record details>summary{cursor:pointer;color:var(--muted)}.search-assist-credit{color:var(--muted);text-align:center;margin:9px 0 3px;font-size:11px;line-height:1.4}.search-assist-credit a{color:inherit;text-underline-offset:2px}.focused-food-screen .food-screen-heading{justify-content:space-between;align-items:center;gap:10px;min-height:44px;margin-bottom:12px;display:flex}.focused-food-screen .food-screen-heading .screen-title{margin:0}.focused-food-screen .food-screen-heading .result-back{flex-shrink:0;min-height:44px;padding:5px 0 5px 6px;font-size:13px}.focused-food-screen .search-form{margin-bottom:10px}.focused-food-screen .quick-food-tools{grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:6px;margin-bottom:14px}.focused-food-screen .quick-food-tools .secondary-button{gap:5px;min-height:44px;padding:8px 4px;font-size:13px}.focused-food-screen .compact-search-results .section-label-row{margin-bottom:8px}.focused-food-screen .compact-search-results h2{margin-bottom:0}.focused-food-screen .compact-search-results .product-result{min-height:64px;padding:9px 10px}.focused-food-screen .entry-pagination{margin-top:8px}.focused-food-screen .compact-product-form{gap:12px}.focused-food-screen .product-intro>.food-image{width:60px;height:60px}.focused-food-screen .food-portion-panel{gap:12px;display:grid}.focused-food-screen .food-portion-select{width:100%;min-height:44px;margin-top:0}.focused-food-screen .food-portion-summary{border-radius:14px;grid-template-columns:minmax(0,.9fr) minmax(0,3fr);align-items:center;gap:12px;padding:12px;display:grid}.focused-food-screen .food-portion-summary .portion-calories{overflow-wrap:anywhere;margin:0;font-size:28px}.focused-food-screen .food-portion-summary .portion-calories>span{color:#536c5c;letter-spacing:0;margin-top:3px;font-size:12px;font-weight:400;display:block}.focused-food-screen .food-portion-summary .portion-macros{border:0;gap:8px;padding:0}.focused-food-screen .food-portion-summary .portion-macro{border:0;min-width:0;padding:0}.focused-food-screen .food-portion-summary .macro-value{white-space:normal;overflow-wrap:anywhere}.focused-food-screen .food-portion-summary .macro-value strong{font-size:20px}.focused-food-screen .food-meal-picker{border:0;min-width:0;margin:0;padding:0}.focused-food-screen .food-meal-picker legend{color:#344b40;margin-bottom:6px;font-size:14px}.focused-food-screen .food-meal-picker .meal-segments{margin-top:0}.focused-food-screen .food-save-action{margin-top:0;padding-top:10px;position:sticky;bottom:0}.focused-food-screen .food-save-action .primary-button{min-height:50px}.focused-food-screen .focused-manual-form{gap:12px;display:grid}.focused-food-screen .focused-manual-form .nutrient-hint{margin:0}.focused-food-screen .focused-manual-form .primary-button{margin-top:0}.focused-food-screen .food-edit-actions{gap:12px;margin-top:14px;display:flex}.focused-food-screen .food-edit-actions .secondary-button{flex:1}.focused-food-screen .food-details>.product-source{text-align:left;margin:14px 0 4px}.focused-food-screen .food-details .nutrient-detail-list .stat-row{min-height:39px}@media (max-width:370px){.focused-food-screen .food-screen-heading{flex-wrap:wrap;gap:2px 10px}.focused-food-screen .food-screen-heading .screen-title{font-size:24px}}.focused-food-screen .food-screen-heading .result-back{white-space:normal;text-align:left;max-width:100%}.focused-food-screen .portion-quantity-row{gap:12px}.focused-food-screen .portion-quantity-row>.field-label{flex:1;min-width:0}.focused-food-screen .portion-quantity-row .quantity-field{flex:0 60%;min-width:0}.focused-food-screen .food-portion-summary .macro-label{white-space:normal;overflow-wrap:anywhere}.focused-food-screen .food-details .stat-row{flex-wrap:wrap}.focused-food-screen .food-details .stat-row>strong{white-space:normal;overflow-wrap:anywhere;text-align:right;max-width:100%;margin-left:auto}.focused-food-screen .food-edit-actions{flex-wrap:wrap}@media (max-height:500px){.focused-food-screen .detail-action{position:static}}.focused-food-screen .food-screen-heading{align-items:flex-start;margin-bottom:17px}.focused-food-screen .food-screen-heading>div{flex:1;min-width:0}.focused-food-screen .food-screen-heading .screen-title{overflow-wrap:anywhere;font-size:26px}.food-meal-context{color:var(--muted);margin-top:6px;font-size:13px}.focused-food-screen .food-screen-heading .result-back{gap:4px;max-width:42%;padding-top:0;font-size:12px}.focused-food-screen .quick-food-tools{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:20px}.focused-food-screen .quick-food-tools .secondary-button{gap:5px;min-width:0;padding-inline:6px;font-size:12px}.focused-food-screen .food-save-action{bottom:max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px));background:var(--bg);padding-bottom:8px}@media (max-width:370px){.focused-food-screen .food-screen-heading{flex-wrap:nowrap}.focused-food-screen .food-screen-heading .screen-title{font-size:23px}.focused-food-screen .food-screen-heading .result-back{max-width:40%;font-size:11px}.focused-food-screen .food-meal-context{font-size:12px}.focused-food-screen .quick-food-tools .secondary-button{font-size:11px}}.media-overlay.meal-photo-overlay{z-index:110;padding:var(--media-top) max(8px,var(--safe-right,0px),env(safe-area-inset-right,0px)) max(8px,var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)) max(8px,var(--safe-left,0px),env(safe-area-inset-left,0px));background:#142f2566;place-items:end center}.meal-photo-overlay>.meal-photo-dialog{background:var(--bg,#f5f8f6);overscroll-behavior:contain;border-radius:24px;width:100%;max-width:440px;padding:22px 20px 12px;overflow:auto;box-shadow:0 18px 70px #14352d38}.meal-photo-heading{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:20px;display:flex}.meal-photo-heading>div{min-width:0}.meal-photo-heading h2{font-size:23px}.meal-photo-heading .icon-button{flex-shrink:0;margin:-8px -8px 0 0}.meal-photo-privacy{text-align:center;color:#657c70;min-height:44px;padding:14px 0 8px;font-size:12px;display:block}.meal-photo-sources{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.meal-photo-source{min-height:104px;color:var(--mint);background:#e1f0e8;border:1px solid #cce2d5;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:11px;padding:16px 8px;display:flex}.meal-photo-source:hover{background:#d6eadd}.meal-photo-source strong{text-align:center;font-size:15px;line-height:1.3}.meal-photo-alternatives{gap:0;margin-top:19px;display:grid}.meal-entry-section-label{color:var(--muted);padding-bottom:5px;font-size:12px}.meal-photo-alternatives button{text-align:left;min-height:58px;color:var(--mint);border-bottom:1px solid var(--border);align-items:center;gap:13px;padding:10px 0;display:flex}.meal-photo-alternatives button:last-child{border-bottom:0}.meal-photo-alternatives button>span{min-width:0;color:var(--text);flex:1;font-size:15px;font-weight:600;line-height:1.3}.meal-photo-alternatives small{color:var(--muted);margin-top:3px;font-size:12px;font-weight:400;display:block}.meal-photo-alternatives button>svg:last-child{color:#8ca396}.meal-photo-dialog>.inline-warning{margin-top:14px}@media (min-width:620px){.media-overlay.meal-photo-overlay{align-items:center}}@media (max-width:360px){.meal-photo-overlay>.meal-photo-dialog{padding:20px 16px 10px}.meal-photo-source strong,.meal-photo-alternatives button>span{font-size:14px}.meal-photo-alternatives small{font-size:11px}}.meal-photo-overlay>.meal-photo-dialog{max-width:520px;box-shadow:none;border-radius:22px 22px 0 0;padding:22px 24px 10px}.media-overlay.meal-photo-overlay{padding-inline:0;background:#19312a66;padding-bottom:0}.meal-photo-heading{margin-bottom:22px}.meal-photo-heading h2{margin-top:6px;font-size:24px}.meal-photo-heading p{color:var(--muted);margin:0;font-size:11px}.meal-photo-source{background:var(--mint-soft);min-height:105px;color:var(--mint);border:0;border-radius:12px}.meal-photo-source strong{font-size:13px}.meal-photo-alternatives{margin-top:24px}.meal-photo-alternatives button{gap:12px;min-height:58px}.meal-photo-alternatives button>span{font-size:14px}.meal-photo-alternatives small{font-size:11px}.meal-photo-privacy{color:var(--muted);font-size:10px}@media (min-width:620px){.meal-photo-overlay>.meal-photo-dialog{border-radius:22px}.media-overlay.meal-photo-overlay{padding:20px}}.meal-photo-sources>button.photo-action-button{flex-direction:column;gap:10px;min-height:100px}.meal-photo-sources>button.photo-action-button strong{font-size:14px;line-height:1.35}button.photo-action-button{appearance:none;width:100%;min-width:0;min-height:54px;font:inherit;text-align:center;border:1px solid #0000;border-radius:14px;justify-content:center;align-items:center;gap:9px;padding:14px 12px;font-size:14px;font-weight:650;line-height:1.35;transition:background-color .16s,border-color .16s,transform .12s;display:inline-flex}button.photo-action-button.photo-action-primary{color:#fff;background:#197b61;border-color:#197b61}button.photo-action-button.photo-action-secondary{color:#18573f;background:#e5f1e8;border-color:#b9d4c3}button.photo-action-button.photo-action-primary:hover:not(:disabled){background:#12654f;border-color:#12654f}button.photo-action-button.photo-action-secondary:hover:not(:disabled){background:#d8eadf;border-color:#91bca4}button.photo-action-button:active:not(:disabled){transform:scale(.98)}button.photo-action-button:focus-visible{outline-offset:3px;outline:3px solid #76b99a}button.photo-action-button:disabled{opacity:.5;cursor:not-allowed;transform:none}button.photo-action-button>svg{flex-shrink:0}.photo-action-hint{color:var(--muted,#65746a);text-align:center;margin:10px 0 0;font-size:12px;line-height:1.45}.media-dialog>.photo-action-button{margin-top:10px}@media (prefers-reduced-motion:reduce){button.photo-action-button{transition:none}}.diary-screen{max-width:600px;margin:0 auto}.diary-screen .date-selector{max-width:270px;min-height:46px;margin:0 auto 22px}.diary-screen .date-heading h1{font-size:22px}.diary-screen .date-pick{color:var(--muted);min-height:24px;font-size:12px}.app-shell .diary-screen .energy-card{border-bottom:1px solid var(--border);background:0 0;border-radius:0;gap:15px;min-height:120px;padding:0 0 24px}.diary-screen .energy-caption{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:7px;font-size:11px}.diary-screen .energy-number{letter-spacing:-.055em;font-size:46px;line-height:1.1}.diary-screen .energy-goal{letter-spacing:0;color:var(--muted);margin:7px 0 0;font-size:12px;font-weight:400;display:block}.diary-screen .energy-remaining{color:var(--mint);margin-top:10px;font-size:12px;font-weight:600}.diary-screen .energy-ring{width:96px;height:96px}.diary-screen .energy-ring strong{color:var(--mint);font-size:20px}.diary-screen .energy-ring-large strong{padding:8px;font-size:12px}.diary-screen .energy-number-large{font-size:33px}.diary-screen .energy-number-huge{font-size:24px}.app-shell .diary-screen .macro-grid{border-bottom:1px solid var(--border);gap:19px;margin:0 0 8px;padding:19px 0 22px}.app-shell .diary-screen .macro-card{box-shadow:none;background:0 0;border-radius:0;min-width:0;padding:0}.diary-screen .macro-label{color:var(--muted);font-size:11px;font-weight:400}.diary-screen .macro-value{margin-top:5px;font-size:13px}.diary-screen .macro-value strong{letter-spacing:-.04em;font-size:23px;font-weight:650}.diary-screen .macro-value span{color:var(--muted);white-space:nowrap;font-size:11px}.diary-screen .progress-track{border-radius:3px;height:3px;margin-top:10px}.diary-meals{gap:0;margin-top:4px;display:grid}.app-shell .diary-meal-card{border:0;border-bottom:1px solid var(--border);background:0 0;border-radius:0;min-width:0;padding:0;overflow:visible}.diary-meal-card .diary-meal-heading{justify-content:space-between;align-items:center;gap:12px;min-height:91px;margin:0;display:flex}.diary-meal-title{align-items:center;gap:12px;min-width:0;display:flex}.diary-meal-title>span:last-child{min-width:0}.diary-meal-icon{color:var(--mint);flex-shrink:0;place-items:center;width:28px;display:grid}.diary-meal-title h2{margin:0;font-size:19px;font-weight:650;line-height:1.3}.diary-meal-title small{color:var(--muted);margin-top:5px;font-size:11px;display:block}.diary-meal-card .diary-add-button{min-width:0;min-height:42px;color:var(--mint);background:0 0;border:1px solid #cfded1;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;gap:5px;padding:9px 11px;font-size:12px;font-weight:650;display:flex}.diary-meal-card .diary-add-button:hover:not(:disabled){background:var(--mint-soft)}.diary-entry-list{padding:0 0 14px 40px}.diary-entry-list .diary-entry{border:0;gap:5px;min-height:58px;padding:4px 0}.diary-entry-list .entry-edit{min-height:50px}.diary-entry-list .entry-edit strong{font-size:13px;font-weight:550;line-height:1.4}.diary-entry-list .entry-edit span{margin-top:3px;font-size:11px;display:block}.diary-entry-list .entry-icon{color:#91a097;width:34px;min-width:34px;height:40px}.diary-meal-card .entry-pagination{padding:0 0 14px 40px;font-size:11px}.diary-screen .entry-page-button{background:0 0;padding-inline:0;font-size:11px}.diary-screen .empty-demo-link{min-height:44px;color:var(--muted);margin:16px auto;font-size:12px;display:block}@media (max-width:350px){.diary-screen .energy-number{font-size:41px}.diary-screen .energy-ring{width:83px;height:83px}.app-shell .diary-screen .macro-grid{gap:10px}.diary-screen .macro-value strong{font-size:21px}.diary-meal-title h2{font-size:17px}.diary-meal-title{gap:8px}.diary-meal-card .diary-add-button{padding-inline:8px;font-size:11px}.diary-entry-list,.diary-meal-card .entry-pagination{padding-left:0}}.app-shell .tabbar.mint-tabbar{--nav-edge:max(12px, var(--safe-left,0px), var(--safe-right,0px), env(safe-area-inset-left,0px), env(safe-area-inset-right,0px));width:calc(100% - var(--nav-edge) * 2);max-width:736px;bottom:calc(8px + max(var(--safe-bottom,0px), env(safe-area-inset-bottom,0px)));background:#e7f3ec;border:1px solid #a5c8b66b;border-radius:25px;gap:4px;padding:7px;box-shadow:0 8px 28px #183f2f1a,inset 0 1px #ffffffb3}@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){.app-shell .tabbar.mint-tabbar{-webkit-backdrop-filter:blur(16px)saturate(125%);backdrop-filter:blur(16px)saturate(125%);background:#e0f1e8d9}}.mint-tabbar .tab-button{color:#536e61;border-radius:18px;gap:3px;min-width:0;min-height:56px;padding:6px 2px;font-size:11px;font-weight:600;line-height:1.25;transition:background-color .18s,color .18s,transform .16s}.mint-tabbar .tab-button .tab-icon{width:32px;height:26px;color:inherit;background:0 0;border-radius:0;transition:transform .18s}.mint-tabbar .tab-button.active{background:var(--mint);color:#fff;box-shadow:0 3px 8px #12644e24,inset 0 1px #ffffff1a}.mint-tabbar .tab-button.active .tab-icon{color:inherit;background:0 0;transform:translateY(-1px)}@media (hover:hover){.mint-tabbar .tab-button:not(.active):hover{color:#176e56;background:#ffffff80}}.mint-tabbar .tab-button:active:not(:disabled){transform:scale(.96)}.mint-tabbar .tab-button:focus-visible{outline-offset:1px}.app-shell .analysis-actions{bottom:calc(92px + max(var(--safe-bottom,0px), env(safe-area-inset-bottom,0px)))}@media (prefers-reduced-motion:reduce){.mint-tabbar .tab-button,.mint-tabbar .tab-button .tab-icon{transition:none}}.app-shell.in-telegram{max-width:560px;min-height:100dvh;box-shadow:none;border:0;border-radius:0;margin:0 auto}.app-shell.statistics-mode{height:100dvh;min-height:0}.app-shell.statistics-mode>.app-header{min-height:54px;padding-top:calc(8px + max(var(--safe-top,0px), env(safe-area-inset-top,0px)));flex-shrink:0;padding-bottom:8px}.app-shell.statistics-mode>.demo-banner,.app-shell.statistics-mode>.loading-state,.app-shell.statistics-mode>.inline-warning{flex-shrink:0}.app-shell.statistics-mode>.loading-state{padding:4px 0}.app-shell.statistics-mode>.app-main{flex:1;min-height:0;padding-bottom:6px;display:flex}.statistics-mode .page-view{flex-direction:column;flex:1;min-height:0;display:flex;container:statistics-area/size}@container statistics-area (height<=385px) and (width<=479px){.statistics-mode .compact-statistics{grid-template-rows:48px 44px 48px minmax(0,1fr);grid-template-columns:108px minmax(0,1fr);gap:3px 4px;display:grid}.app-shell.statistics-mode .stats-heading .screen-title{clip-path:inset(50%);width:1px;height:1px;margin:-1px;position:absolute;overflow:hidden}.app-shell.statistics-mode .stats-period-types>button{padding-inline:6px;font-size:11px}.app-shell.statistics-mode .stats-period-label strong{font-size:11px}.app-shell.statistics-mode .stats-period-label small{font-size:9px}.app-shell.statistics-mode .stats-view-tabs,.app-shell.statistics-mode .stats-metric-options,.app-shell.statistics-mode .stats-view-panel{grid-column:1/-1}.app-shell.statistics-mode .stats-view-panel{gap:3px}.app-shell.statistics-mode .stats-overview-cards{min-height:70px}.app-shell.statistics-mode .stats-overview-cards>div{padding-block:6px}.app-shell.statistics-mode .stats-overview-cards strong{font-size:24px}}.app-shell.statistics-mode>.tabbar.mint-tabbar{margin:0 auto calc(8px + max(var(--safe-bottom,0px), env(safe-area-inset-bottom,0px)));flex-shrink:0;padding:7px;position:relative;bottom:auto;left:auto;transform:none}@media (max-height:500px) and (min-width:480px){.app-shell.statistics-mode>.app-header{display:none}.app-shell.statistics-mode>.demo-banner{padding-top:3px;padding-bottom:3px}.statistics-mode .compact-statistics{grid-template-rows:48px 48px minmax(0,1fr);grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3px 12px;display:grid}.app-shell.statistics-mode .stats-heading .screen-title{font-size:20px}.app-shell.statistics-mode .stats-period-types>button{padding-inline:6px;font-size:11px}.app-shell.statistics-mode .stats-view-panel{grid-column:1/-1}.app-shell.statistics-mode .stats-panel-overview{grid-template-rows:25px minmax(0,1fr) 44px;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:2px 12px;display:grid}.app-shell.statistics-mode .stats-overview-cards{grid-row:1/-1;min-height:0;max-height:none}.app-shell.statistics-mode .stats-overview-total,.app-shell.statistics-mode .stats-overview-note,.app-shell.statistics-mode .stats-overview-link{grid-column:2}.app-shell.statistics-mode .stats-panel-chart{grid-template-rows:20px minmax(64px,1fr) 15px;grid-template-columns:minmax(0,1fr) 160px;gap:2px 12px;display:grid}.app-shell.statistics-mode .stats-chart-body{height:100%;max-height:none}.app-shell.statistics-mode .stats-chart-dates{grid-column:1}.app-shell.statistics-mode .stats-chart-selection{flex-wrap:wrap;grid-area:1/2/-1;align-content:center}.app-shell.statistics-mode .stats-chart-selection>span{flex-basis:100%}.app-shell.statistics-mode .stats-panel-days{grid-template-rows:44px minmax(15px,1fr) 44px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2px 12px;display:grid}.app-shell.statistics-mode .stats-day-nutrients{grid-area:1/2/-1;min-height:0;max-height:none}.app-shell.statistics-mode .stats-open-diary{grid-column:1}.app-shell.statistics-mode>.app-main{padding-bottom:3px}.app-shell.statistics-mode>.tabbar.mint-tabbar{margin-bottom:calc(4px + max(var(--safe-bottom,0px), env(safe-area-inset-bottom,0px)));padding:4px}.statistics-mode .mint-tabbar .tab-button{min-height:44px;padding:2px}}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f5f8f6;--text:#10221e;--muted:#60716b;--mint:#147d68;--mint-soft:#e0f3ea;--border:#e1e9e6;--protein:#68c4a0;--fat:#f6bc55;--carbs:#a49ad8}*{box-sizing:border-box}html{background:#eaf0ed;margin:0}body{color:var(--text);-webkit-font-smoothing:antialiased;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;font-size:16px;line-height:1.45}button,input{font:inherit}button{cursor:pointer;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent;background:0 0;border:0}button:disabled{cursor:default;opacity:.5}button,a,input{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #47a98d}button{transition:background-color .16s,transform .16s}button:active:not(:disabled){transform:translateY(1px)}a{color:var(--mint);text-underline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{letter-spacing:-.025em;line-height:1.2}h2{font-size:21px;font-weight:700}input{min-width:0;color:var(--text)}svg{flex-shrink:0}strong{font-weight:700}.app-shell{background:var(--bg);border:1px solid #cedbd4;border-radius:23px;flex-direction:column;width:100%;max-width:440px;min-height:calc(100dvh - 48px);margin:24px auto;display:flex;position:relative;overflow:clip;box-shadow:0 9px 28px #102c2411}.app-shell.in-vk{max-width:560px;min-height:100dvh;box-shadow:none;border:0;border-radius:0;margin:0 auto}.app-header{min-height:72px;padding:calc(17px + max(env(safe-area-inset-top,0px),var(--safe-top,0px))) max(21px,var(--safe-right,0px),env(safe-area-inset-right,0px)) 13px max(21px,var(--safe-left,0px),env(safe-area-inset-left,0px));z-index:20;justify-content:space-between;align-items:center;display:flex;position:relative}.in-vk .app-header{min-height:64px;padding-right:108px}.wordmark{letter-spacing:-.05em;padding:0;font-size:23px;font-weight:800;line-height:1.2}.host-controls{border:1px solid var(--border);background:#ebf0ef;border-radius:15px;align-items:center;gap:0;height:38px;display:flex}.host-controls button{place-items:center;width:45px;height:36px;display:grid}.host-controls span{background:#d6e1dc;width:1px;height:20px}.icon-button{border-radius:12px;justify-content:center;align-items:center;min-width:44px;height:44px;padding:0;display:inline-flex}.icon-button:hover{background:#e6eeea}.back-button{margin-left:-6px}.menu-scrim{cursor:default;z-index:25;background:#0001;position:fixed;inset:0}.header-menu{z-index:26;border:1px solid var(--border);background:#fff;border-radius:17px;width:270px;padding:16px;animation:.16s page-in;position:absolute;top:64px;right:18px;box-shadow:0 10px 40px #16352724}.header-menu strong{font-size:15px}.header-menu button{text-align:left;width:100%;color:var(--muted);padding:12px 0;font-size:14px;display:block}.app-main{padding:0 max(16px,var(--safe-right,0px),env(safe-area-inset-right,0px)) calc(100px + max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px))) max(16px,var(--safe-left,0px),env(safe-area-inset-left,0px));flex:1}.page-view{animation:.22s cubic-bezier(.2,.75,.25,1) both page-in}.page-view.page-back{animation-name:page-back}.date-selector{grid-template-columns:44px 1fr 44px;align-items:center;max-width:292px;margin:4px auto 20px;display:grid}.date-heading{text-align:center}.date-heading h1{letter-spacing:-.035em;font-size:28px}.date-pick{color:#51655d;min-height:27px;padding:2px 5px;font-size:16px;position:relative}.date-pick input{opacity:0;cursor:pointer;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.energy-card{background:#dff2e8;border-radius:20px;justify-content:space-between;align-items:center;gap:10px;min-height:158px;padding:22px 23px;display:flex}.energy-number{letter-spacing:-.05em;font-variant-numeric:tabular-nums;font-size:54px;font-weight:800;line-height:1.05}.energy-goal{margin-top:6px;font-size:18px;font-weight:600}.energy-remaining{color:#274d3f;margin-top:7px;font-size:14px}.energy-ring{flex-shrink:0;width:116px;height:116px;position:relative}.energy-ring svg{width:100%;height:100%;transform:rotate(-90deg)}.energy-ring circle{fill:none;stroke-width:10px}.ring-track{stroke:#bee5d4}.ring-fill{stroke:var(--mint);stroke-linecap:round;transition:stroke-dasharray .32s}.energy-ring strong{letter-spacing:-.03em;font-variant-numeric:tabular-nums;place-items:center;font-size:24px;display:grid;position:absolute;inset:0}.macro-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0 28px;display:grid}.macro-card{background:#fff;border-radius:17px;padding:15px 13px 14px;box-shadow:0 3px 12px #253e331f}.macro-label{white-space:nowrap;letter-spacing:-.015em;font-size:13px;font-weight:600;display:block}.macro-value{letter-spacing:-.035em;white-space:nowrap;font-variant-numeric:tabular-nums;margin-top:5px;font-size:17px}.macro-value strong{font-size:20px}.macro-value span{letter-spacing:-.045em;font-size:15px;font-weight:400}.progress-track{background:#e8eeee;border-radius:5px;height:12px;margin-top:11px;overflow:hidden}.progress-track span{transform-origin:0;border-radius:5px;width:100%;height:100%;transition:transform .3s;display:block}.protein span{background:var(--protein)}.fat span{background:var(--fat)}.carbs span{background:var(--carbs)}.diary-section h2{margin:0 0 14px;font-size:23px}.meals-list{gap:9px;display:grid}.meal-card{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 3px 10px #20362a0b}.meal-top{align-items:center;min-height:76px;padding:10px 14px 10px 15px;display:flex}.meal-summary{text-align:left;flex:1;align-items:center;gap:15px;min-height:54px;padding:0;display:flex}.meal-summary strong{letter-spacing:-.025em;font-size:18px;display:block}.meal-icon{color:var(--mint);background:#e2f4eb;border-radius:50%;flex-shrink:0;place-items:center;width:48px;height:48px;display:grid}.meal-calories{color:#5f7068;margin-top:1px;font-size:15px;display:block}.meal-add{color:#657b70;background:#edf2f0;border-radius:50%;flex-shrink:0;place-items:center;width:40px;height:40px;display:grid}.meal-add:hover{color:var(--mint);background:#d7eee2}.meal-entries{border-top:1px solid var(--border);margin:0 14px;padding:5px 0 10px;animation:.18s page-in}.diary-entry{align-items:center;gap:2px;padding:5px 0;display:flex}.entry-edit{text-align:left;flex:1;min-width:0;padding:5px 0}.entry-edit strong{overflow-wrap:anywhere;font-size:14px;font-weight:600;display:block}.entry-edit span{color:var(--muted);font-size:12px}.entry-icon{min-width:34px;height:38px;color:var(--muted)}.primary-button{background:var(--mint);color:#fff;border-radius:15px;justify-content:center;align-items:center;gap:10px;width:100%;min-height:54px;padding:14px 16px;font-size:17px;font-weight:650;line-height:1.3;display:flex;box-shadow:inset 0 0 0 1px #106c5a}.primary-button:hover:not(:disabled){background:#116e5b}.primary-button:disabled{box-shadow:none;background:#6eac9d}.add-main{min-height:56px;margin-top:15px}.tabbar{width:438px;max-width:100%;padding:8px 10px calc(10px + max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)));z-index:15;background:#fcfdfc;border-top:1px solid #e1e9e6;border-radius:0 0 22px 22px;grid-template-columns:repeat(3,1fr);display:grid;position:fixed;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 -5px 14px #12352905}.in-vk .tabbar{border-radius:0;width:560px;bottom:0}.tab-button{color:#687e73;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:50px;padding:2px;font-size:12px;display:flex}.tab-button.active{color:var(--mint);font-weight:600}.tab-icon{border-radius:7px;place-items:center;width:30px;height:28px;transition:background-color .18s,transform .18s;display:grid}.tab-button.active .tab-icon{background:var(--mint);color:#fff;transform:translateY(-1px)}.tab-button:not(.active):hover{background:#edf5ef}.screen-title{letter-spacing:-.035em;margin:7px 0 18px;font-size:28px}.screen-subtitle{color:var(--muted);margin-top:-9px;margin-bottom:20px;font-size:14px}.search-form{gap:8px;margin-bottom:17px;display:flex}.search-field{border:1px solid var(--border);background:#fff;border-radius:15px;flex:1;align-items:center;gap:12px;min-width:0;min-height:52px;padding:0 14px;display:flex;box-shadow:0 2px 8px #21433007}.search-field>svg{color:#798b82}.search-field input{background:0 0;border:0;outline:none;width:100%;height:50px;font-size:17px}.search-field:focus-within{border-color:var(--mint);box-shadow:0 0 0 2px #147d6814}.search-clear{color:#7a8e82;background:#edf2ef;border-radius:50%;place-items:center;min-width:26px;height:28px;padding:0;display:grid}.search-submit{background:var(--mint);color:#fff;border-radius:14px;align-items:center;gap:6px;padding:0 12px;font-size:14px;display:flex}.surface{background:#fff;border-radius:19px;padding:16px;box-shadow:0 3px 12px #20362a09}.product-form{gap:13px;display:grid}.product-card{padding:16px 15px}.product-intro{align-items:center;gap:17px;margin-bottom:14px;display:flex}.food-image{object-fit:cover;background:#f0f3ee;border-radius:13px;flex-shrink:0;width:112px;height:112px;display:block}.food-placeholder{color:#7aa88e;background:#eaf4e9;place-items:center;display:grid}.product-intro h2{letter-spacing:-.02em;overflow-wrap:anywhere;font-size:21px}.product-intro p{color:var(--muted);margin-top:7px;font-size:14px}.product-brand{color:var(--muted);margin-top:4px;font-size:12px;display:block}.field-label{color:#344b40;font-size:14px;display:block}.quantity-label{margin-bottom:8px;font-size:15px}.quantity-field{background:#fbfcfb;border:1px solid #dce6e0;border-radius:12px;height:48px;display:flex;overflow:hidden}.quantity-field input{font-variant-numeric:tabular-nums;background:0 0;border:0;outline:none;width:100%;padding:9px 15px;font-size:23px}.quantity-field span{color:#586f61;background:#edf2ef;place-items:center;min-width:46px;display:grid}.quantity-field:focus-within{border-color:var(--mint)}.quantity-field.invalid{border-color:#d4765d}.quantity-chips{grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px;display:grid}.quantity-chips button,.meal-segments button{white-space:nowrap;background:#eef3f0;border-radius:12px;min-height:41px;padding:8px 3px;font-size:14px}.quantity-chips button.selected,.meal-segments button.selected{background:var(--mint);color:#fff;font-weight:600}.portion-card>span,.meal-select-card>span{color:#314d3c;font-size:15px}.portion-calories{letter-spacing:-.04em;font-variant-numeric:tabular-nums;margin-top:7px;margin-bottom:15px;font-size:32px;font-weight:750;line-height:1.1}.portion-calories span{font-size:27px}.portion-macros{border-top:1px solid #eaf0ec;grid-template-columns:repeat(3,1fr);gap:0;padding-top:11px;display:grid}.portion-macro{border-left:1px solid #e5ede8;padding:0 14px}.portion-macro:first-child{border-left:0;padding-left:0}.portion-macro:last-child{padding-right:0}.portion-macro .macro-label{color:#617266;font-size:13px;font-weight:400}.portion-macro .macro-value{margin-top:3px;font-size:16px}.portion-macro .macro-value strong{font-size:21px}.meal-select-card{padding:13px 14px}.meal-segments{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:8px;display:grid}.meal-segments button{font-size:13px}.product-source{text-align:center;color:#75877a;font-size:11px;line-height:1.4}.product-source a{color:#6b8276;text-decoration:none}.detail-action{background:var(--bg);padding:8px 0 calc(4px + max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)));z-index:8;position:sticky;bottom:0}.search-results section{margin:19px 0}.search-results h2{margin-bottom:12px;font-size:19px}.result-list{gap:8px;display:grid}.product-result{text-align:left;background:#fff;border:1px solid #e6ede7;border-radius:16px;align-items:center;gap:12px;width:100%;padding:11px 12px;display:flex}.product-result:hover{background:#eaf5ed}.product-result .food-image{border-radius:10px;width:47px;height:47px}.product-result .food-placeholder svg{width:21px}.product-result>span{flex:1;min-width:0}.product-result strong{overflow-wrap:anywhere;font-size:14px;line-height:1.3;display:block}.product-result>span>span{color:var(--muted);margin-top:3px;font-size:12px;display:block}.product-result>svg{color:#708779}.section-label-row{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.section-label-row h2{margin:0}.result-count{color:var(--muted);font-size:12px}.source-credit{color:var(--muted);margin-top:10px;font-size:11px;line-height:1.5;display:block}.secondary-button{color:#23533e;background:#eef5f0;border:1px solid #dbe7df;border-radius:12px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:10px 13px;font-size:14px;font-weight:500;display:flex}.secondary-button:hover{background:#dceee2}.manual-trigger{width:100%;margin-top:18px}.manual-trigger>svg{display:none}.manual-form .field-label,.settings-card .field-label{margin-bottom:4px}.text-input{background:#f9fcf9;border:1px solid #dbe5df;border-radius:11px;width:100%;min-height:46px;margin-top:7px;padding:10px 12px;font-size:16px;display:block}.form-grid{grid-template-columns:repeat(2,1fr);gap:14px 12px;margin:14px 0;display:grid}.muted-text{color:var(--muted);font-size:13px;line-height:1.55}.inline-warning{color:#76512b;background:#fff6e6;border:1px solid #e8d5b5;border-radius:12px;margin:8px 0 12px;padding:11px 13px;font-size:13px}.app-shell>.inline-warning{margin:0 16px 12px}.field-error{color:#a74d33;margin-top:7px;font-size:12px}.lookup-message{color:var(--muted);background:#e9f2ea;border-radius:12px;margin:8px 0 14px;padding:12px;font-size:13px}.loading-state{color:var(--muted);justify-content:center;align-items:center;gap:10px;padding:28px 0;font-size:14px;display:flex}.spin{animation:1s linear infinite spin}.demo-banner{color:#6b8174;justify-content:space-between;align-items:center;gap:5px;padding:0 19px 9px;font-size:10px;display:flex}.demo-banner button{color:var(--mint);align-items:center;gap:1px;padding:2px;font-size:10px;display:flex}.empty-demo-link{color:var(--muted);text-align:center;max-width:85%;margin:13px auto 0;font-size:11px;display:block}.toast{z-index:40;color:#fff;background:#143d30;border-radius:15px;align-items:center;gap:9px;width:calc(100% - 40px);max-width:400px;padding:13px 14px;font-size:13px;animation:.18s toast-in;display:flex;position:fixed;bottom:111px;left:50%;transform:translate(-50%);box-shadow:0 5px 24px #143d302b}.toast>span{flex:1}.toast button{color:#baedcf;padding:5px 0;font-size:12px;font-weight:600}.toast .toast-close{color:#fff;place-items:center;padding-left:2px;display:grid}.text-button{color:var(--mint);padding:9px 0;font-size:13px;font-weight:600}.profile-form{gap:14px;display:grid}.profile-intro{align-items:center;gap:14px;display:flex}.profile-avatar{width:52px;height:52px;color:var(--mint);background:#dff2e7;border-radius:50%;place-items:center;font-size:23px;font-weight:700;display:grid}.profile-intro strong{font-size:18px;display:block}.profile-intro div>span{color:var(--muted);margin-top:2px;font-size:12px;display:block}.settings-card h2{margin-bottom:11px;font-size:18px}.settings-card .form-grid{margin-bottom:0}.storage-card,.about-card{margin-top:15px}.data-actions{gap:8px;margin-top:14px;display:grid}.danger-link{color:#a5543d;align-items:center;gap:8px;margin:15px 0 0;padding:5px 0;font-size:12px;display:flex}.about-brand{color:var(--mint);align-items:center;gap:8px;margin-bottom:10px;display:flex}.about-brand strong{font-size:20px}.about-brand>span{color:var(--muted);margin-left:auto;font-size:11px}.about-card>a{margin-top:12px;font-size:13px;display:block}.license-note{color:var(--muted);margin-top:9px;font-size:11px;line-height:1.65}.about-card .text-button{margin-top:12px}.confirm-dialog{width:calc(100% - 32px);max-width:390px;color:var(--text);background:#fff;border:0;border-radius:22px;padding:25px;animation:.2s page-in;box-shadow:0 12px 60px #15392440}.confirm-dialog::backdrop{background:#12251d66}.confirm-dialog h2{font-size:22px}.confirm-dialog p{color:var(--muted);margin:13px 0 22px;font-size:14px;line-height:1.6}.dialog-actions{grid-template-columns:1fr 1fr;gap:10px;display:grid}.dialog-actions .primary-button{min-height:44px;font-size:14px}.stats-summary{margin-bottom:14px}.stats-summary .stat-number{letter-spacing:-.04em;font-size:38px;font-weight:750}.stats-summary .stat-label{color:var(--muted);font-size:13px}.stats-grid{grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 18px;display:grid}.stats-grid .stat-number{letter-spacing:-.04em;margin:4px 0;font-size:24px;font-weight:700}.stat-label{color:var(--muted);font-size:12px}.week-selector{justify-content:space-between;align-items:center;gap:3px;margin:15px 0;display:flex}.week-selector .icon-button{width:28px;min-width:28px}.week-day{color:#6c8072;border-radius:11px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:3px;min-width:32px;min-height:52px;padding:6px 1px;font-size:11px;display:flex}.week-day>strong,.week-day>span:last-child{color:var(--text);font-size:14px}.week-day.selected{background:var(--mint);color:#d0eee0}.week-day.selected>strong,.week-day.selected>span:last-child{color:#fff}.chart-wrap{margin:12px 0 18px;overflow:hidden}.chart-wrap svg{width:100%;height:auto;display:block}.chart-legend{color:var(--muted);align-items:center;gap:16px;margin-top:6px;font-size:11px;display:flex}.chart-legend span{align-items:center;gap:6px;display:flex}.chart-legend i{background:var(--mint);border-radius:3px;width:9px;height:9px;display:inline-block}.stats-macros{margin-top:15px}.stats-macros h2{margin-bottom:15px;font-size:18px}.stat-row{border-bottom:1px solid #e9efeb;justify-content:space-between;align-items:center;padding:10px 0;font-size:14px;display:flex}.stat-row:last-child{border:0}.stat-row strong{font-variant-numeric:tabular-nums}.empty-stat{color:var(--muted);margin:15px 0;font-size:13px;line-height:1.5}.page-skeleton{gap:14px;padding-top:15px;display:grid}.page-skeleton div{background:#e4eee6;border-radius:19px;height:150px;animation:1.4s infinite alternate skeleton}.page-skeleton div:nth-child(2){height:100px}.page-skeleton div:nth-child(3){height:230px}.visually-hidden{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;position:absolute!important}@keyframes page-in{0%{opacity:0;transform:translate(12px)}to{opacity:1;transform:none}}@keyframes page-back{0%{opacity:0;transform:translate(-12px)}to{opacity:1;transform:none}}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,6px)}to{opacity:1;transform:translate(-50%)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes skeleton{to{opacity:.45}}@media (max-width:600px){html{background:var(--bg)}.app-shell{max-width:100%;min-height:100dvh;box-shadow:none;border:0;border-radius:0;margin:0}.tabbar{border-radius:0;width:100%;bottom:0}.toast{bottom:calc(87px + max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)))}.app-header{min-height:65px;padding-top:calc(15px + max(env(safe-area-inset-top,0px),var(--safe-top,0px)))}.energy-card{padding:21px 19px}.date-selector{margin-top:4px}.app-main{padding-bottom:calc(95px + max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)))}}@media (max-width:370px){.energy-number{font-size:44px}.energy-goal{font-size:15px}.energy-remaining{font-size:12px}.energy-ring{width:98px;height:98px}.energy-ring strong{font-size:21px}.macro-card{padding:13px 10px}.macro-value strong{font-size:18px}.macro-value span{font-size:13px}.macro-label{font-size:12px}.meal-summary{gap:12px}.screen-title{font-size:26px}.product-intro{gap:13px}.food-image{width:96px;height:96px}.product-intro h2{font-size:19px}.meal-segments button{font-size:12px}.portion-macro{padding:0 10px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.tabbar{padding-left:max(10px,var(--safe-left,0px),env(safe-area-inset-left,0px));padding-right:max(10px,var(--safe-right,0px),env(safe-area-inset-right,0px))}.stats-summary{margin-top:18px}.stats-summary small{font-size:20px;font-weight:500}.stats-grid small{font-size:16px;font-weight:400}.stats-macros>.muted-text{margin-top:-7px;margin-bottom:6px}.date-pick{cursor:pointer;border-radius:5px;display:inline-block}.date-pick input{pointer-events:auto}.date-pick:focus-within{outline-offset:3px;outline:3px solid #47a98d}.energy-card>div:first-child{min-width:0}.energy-number-large{overflow-wrap:anywhere;font-size:clamp(26px,8vw,38px)}.energy-ring-large strong{text-align:center;overflow-wrap:anywhere;padding:14px;font-size:16px;line-height:1.1}.energy-goal,.energy-remaining,.macro-value strong,.product-brand,.profile-intro strong{overflow-wrap:anywhere}.macro-value{white-space:normal}.profile-avatar{flex-shrink:0}.profile-intro div,.product-intro>div{min-width:0}.week-selector>.icon-button{width:44px;min-width:44px}.recovery-button{margin-top:18px}.entry-pagination{color:var(--muted);justify-content:space-between;align-items:center;gap:8px;padding:4px 0;display:flex}.entry-pagination>span{text-align:center;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0;font-size:12px}.entry-page-button{min-width:60px;min-height:44px;color:var(--mint);background:#eef5f0;border-radius:10px;flex-shrink:0;padding:8px;font-size:12px;font-weight:600}.macro-value-large strong{font-size:clamp(12px,3.5vw,18px)}.energy-number-huge{font-size:clamp(18px,5.5vw,30px)}[hidden]{display:none!important}.screen-segments>button[aria-pressed=true]{color:var(--mint);background:#fff;box-shadow:0 2px 7px #204d3010}.analysis-actions{bottom:calc(78px + max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)));z-index:8;background:var(--bg);padding:9px 0 6px;position:sticky}.analysis-delete{margin-top:8px;font-size:11px}.history-retry{width:100%;margin-bottom:14px}html{background:var(--bg)}.app-shell,.app-shell.in-vk{max-width:760px;min-height:100dvh;box-shadow:none;border:0;border-radius:0;margin:0 auto;overflow:clip}.tabbar,.in-vk .tabbar{border-radius:0;grid-template-columns:repeat(4,minmax(0,1fr));width:760px;bottom:0}.app-main{padding-bottom:calc(96px + max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)))}.app-main.detail-main{padding-bottom:calc(12px + max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)))}.screen-title{margin-bottom:14px;font-size:27px}.screen-subtitle{margin-bottom:15px;font-size:13px}.surface{box-shadow:none}.screen-segments{background:#e7f0eb;border-radius:14px;align-items:center;gap:4px;margin-bottom:17px;padding:4px;display:flex}.screen-segments>button{color:#556c60;border-radius:10px;flex:1;min-width:0;min-height:39px;padding:7px 5px;font-size:13px;font-weight:600}.screen-segments>button.selected{color:var(--mint);background:#fff;box-shadow:0 2px 7px #204d3010}.compact-disclosure{border-top:1px solid var(--border);color:var(--muted);padding:12px 0;font-size:13px}.compact-disclosure summary{cursor:pointer;color:#345b49;min-height:24px;font-weight:600}.compact-disclosure p{margin-top:9px;line-height:1.55}.compact-disclosure[open]>div{margin-top:10px}.saved-label{color:#698273;white-space:nowrap;font-size:11px}.success-note{color:var(--mint);background:#dff2e7;border-radius:12px;align-items:center;gap:8px;margin-bottom:12px;padding:10px 12px;font-size:13px;display:flex}.result-back{align-items:center;gap:5px;display:flex}.text-input:is(select,textarea){color:var(--text);font-family:inherit}textarea.text-input{resize:vertical;min-height:72px;max-height:140px;line-height:1.4}select.text-input{padding-right:8px}.text-input:focus{border-color:var(--mint)}.food-entry-tools,.photo-choices{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px;display:grid}.food-entry-tools>button:only-child{grid-column:1/-1}.search-field{gap:8px;padding:0 11px}.search-field input{font-size:15px}.search-submit{justify-content:center;min-width:46px;padding:0 12px}.compact-search-results .result-list{gap:6px}.compact-search-results .product-result{border:0;border-radius:13px;min-height:65px;padding:10px}.compact-search-results>.section-label-row h2{font-size:17px}.compact-search-results .manual-trigger{margin-top:8px}.entry-page-button{justify-content:center;align-items:center;gap:3px;display:flex}.compact-product-form{gap:12px}.compact-product-form>.section-label-row{margin-bottom:0}.compact-product-form .product-intro{gap:13px;margin-bottom:0}.compact-product-form .product-intro>.food-image{width:68px;height:68px}.compact-product-form .product-intro h2{font-size:20px}.compact-product-form .product-intro p{margin-top:5px;font-size:13px}.product-segments{margin:3px 0 0}.portion-quantity-row{justify-content:space-between;align-items:center;gap:18px;display:flex}.portion-quantity-row .quantity-field{width:60%;max-width:220px}.compact-product-form .quantity-chips{margin-top:0}.compact-portion{background:#e2f3e9;border-radius:16px;padding:16px}.compact-portion .portion-calories{margin-top:0;margin-bottom:12px;font-size:31px}.compact-portion .portion-calories>span{font-size:19px}.compact-portion .portion-macros{border-color:#cce6d6}.product-bottom{gap:9px;margin-top:4px;display:grid}.product-bottom .meal-segments{margin-top:0}.product-bottom .product-source:empty{display:none}.product-bottom .detail-action{padding-top:0}.compact-product-form .detail-action .primary-button{min-height:50px}.portion-presets{gap:6px;display:grid}.simple-product-editor>.secondary-button{width:100%;margin-top:12px}.simple-product-editor>.muted-text{margin:6px 0 10px}.food-details .stat-row{gap:10px}.food-details .stat-row>span{overflow-wrap:anywhere;min-width:0;font-size:13px}.food-details .stat-row>strong{white-space:nowrap;font-size:13px}.nutrient-hint{margin-top:14px}.manual-form{margin-top:0}.manual-form .primary-button{margin-top:12px}.manual-form>.section-label-row h2{font-size:20px}.dish-heading-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:10px;display:grid}.dish-editor .field-label{font-size:12px}.dish-editor .text-input{min-height:42px;margin-top:5px;padding:8px 10px;font-size:14px}.method-field{margin-top:10px}.ingredient-heading{margin-top:18px;margin-bottom:5px}.ingredient-heading h3{font-size:17px}.ingredient-list{border-top:1px solid var(--border)}.ingredient-row{border-bottom:1px solid var(--border);align-items:center;gap:3px;min-height:55px;display:flex}.ingredient-open{text-align:left;flex:1;justify-content:space-between;align-items:center;gap:10px;min-width:0;padding:10px 0;display:flex}.ingredient-open>span{min-width:0}.ingredient-open strong{overflow-wrap:anywhere;font-size:13px;display:block}.ingredient-open small{color:var(--muted);margin-top:2px;font-size:11px;display:block}.ingredient-open>svg{color:var(--mint)}.ingredient-delete{color:#82968a;min-width:36px}.ingredient-footer{justify-content:space-between;align-items:center;display:flex}.ingredient-footer>.text-button{align-items:center;gap:3px;display:flex}.compact-pagination{color:var(--muted);align-items:center;font-size:12px;display:flex}.compact-pagination .icon-button{min-width:36px}.ingredient-edit-panel{background:#e8f3ec;border-radius:14px;margin-top:10px;padding:11px}.ingredient-edit-panel>.section-label-row{margin-bottom:6px}.ingredient-edit-panel>.section-label-row strong{font-size:14px}.ingredient-basic-grid{grid-template-columns:minmax(0,1fr) 85px;gap:9px;display:grid}.ingredient-basic-grid+.field-label{margin-top:9px}.ingredient-nutrients-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:7px;display:grid}.ingredient-nutrients-grid .field-label{font-size:10px}.ingredient-nutrients-grid .text-input{padding:8px 6px}.ingredient-apply{width:100%;margin-top:12px}.assistant-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.assistant-symbol{width:45px;height:45px;color:var(--mint);background:#dff2e7;border-radius:14px;place-items:center;margin-top:7px;display:grid}.photo-picker{text-align:center;background:linear-gradient(155deg,#e3f3e8,#f0f7f1);border:1px dashed #a9cdba;border-radius:20px;flex-direction:column;justify-content:center;align-items:center;min-height:228px;padding:25px 15px;display:flex;position:relative;overflow:hidden}.photo-picker>img{object-fit:contain;background:#e0ebe3;width:100%;height:100%;position:absolute}.photo-picker h2{margin-top:16px;font-size:20px}.photo-picker p{color:var(--muted);max-width:220px;margin-top:9px;font-size:13px}.photo-picker-icon{width:70px;height:70px;color:var(--mint);background:#d0eadc;border-radius:23px;place-items:center;display:grid}.photo-remove{background:#fff;position:absolute;top:10px;right:10px;box-shadow:0 2px 12px #173d281a}.photo-choices{margin-top:12px;margin-bottom:12px}.photo-description{margin:13px 0}.photo-analyze{min-height:52px;margin-top:14px}.photo-privacy{text-align:center;color:#778c80;margin-top:11px;font-size:11px}.demo-ai-note{text-align:center;margin:13px 0}.result-header{align-items:center;gap:12px;margin:4px 0 15px;display:flex}.result-header>img,.result-placeholder{object-fit:cover;background:#e0efe4;border-radius:15px;flex-shrink:0;width:64px;height:64px}.result-placeholder{color:var(--mint);place-items:center;display:grid}.result-header>div{min-width:0}.result-header h2{overflow-wrap:anywhere;font-size:20px}.result-header p{color:var(--muted);margin-top:5px;font-size:12px;line-height:1.45}.result-segments{margin-bottom:14px}.analysis-calories{align-items:baseline;gap:9px;margin-top:8px;display:flex}.analysis-calories>strong{letter-spacing:-.05em;font-size:40px;line-height:1.1}.analysis-calories>span{color:var(--muted);font-size:14px}.analysis-macros{background:#e3f3e9;border-radius:15px;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0;padding:13px;display:grid}.analysis-macros span{color:#536c5c;font-size:12px;display:block}.analysis-macros strong{letter-spacing:-.03em;margin-top:3px;font-size:21px;display:block}.analysis-macros small{font-size:12px;font-weight:400}.analysis-ingredients-preview>p{border-bottom:1px solid var(--border);justify-content:space-between;gap:12px;padding:9px 0;font-size:13px;display:flex}.analysis-ingredients-preview>p>span{overflow-wrap:anywhere;min-width:0}.analysis-ingredients-preview>p>strong{white-space:nowrap;color:#556e5d;font-size:12px;font-weight:600}.analysis-question{background:#eaf2ec;border-left:3px solid #b5cfbd;border-radius:0 10px 10px 0;margin:13px 0;padding:8px 11px}.analysis-question strong{font-size:13px}.analysis-question p{color:var(--muted);margin-top:5px;font-size:12px;line-height:1.5}.analysis-question .text-button{padding-bottom:1px}.portion-estimate{color:var(--muted);margin:10px 0;font-size:11px;line-height:1.5}.analysis-actions{gap:9px;margin-top:13px;display:grid}.analysis-actions .meal-segments{margin-top:0}.analysis-actions .primary-button{min-height:50px}.history-list{gap:7px;display:grid}.history-item{text-align:left;background:#fff;border-radius:14px;align-items:center;gap:11px;min-height:70px;padding:10px;display:flex}.history-item>img,.history-thumb{object-fit:cover;border-radius:12px;flex-shrink:0;width:52px;height:52px}.history-thumb{color:var(--mint);background:#e4f1e8;place-items:center;display:grid}.history-item>span:not(.history-thumb){flex:1;min-width:0}.history-item strong{overflow-wrap:anywhere;font-size:14px;line-height:1.35;display:block}.history-item small{color:var(--muted);margin-top:4px;font-size:11px;display:block}.history-item>svg{color:#6a8976}.assistant-empty{text-align:center;color:var(--mint);flex-direction:column;align-items:center;padding:40px 15px;display:flex}.assistant-empty h2{color:var(--text);margin-top:18px;font-size:19px}.assistant-empty p{color:var(--muted);max-width:280px;margin-top:10px;font-size:13px}.assistant-empty .secondary-button{margin-top:18px}.balance-heading{justify-content:space-between;align-items:center;gap:10px;margin:20px 0 14px;display:flex}.balance-heading h2{font-size:19px}.balance-heading>span{color:var(--muted);font-size:12px}.balance-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.balance-item{color:#285642;background:#e2f2e8;border-radius:15px;padding:14px}.balance-item.over{color:#8c5a27;background:#fff0de}.balance-item>span{font-size:12px}.balance-item>strong{letter-spacing:-.03em;margin:4px 0;font-size:24px;line-height:1.3;display:block}.balance-item>strong>small{font-size:12px;font-weight:400}.balance-item>small{font-size:11px}.advice-question{margin:16px 0}.daily-advice{border-top:1px solid var(--border);margin-top:19px;padding:16px 0}.daily-advice h3{font-size:17px}.daily-advice>p{margin-top:12px;font-size:14px;line-height:1.6}.daily-advice ul{padding-left:18px;font-size:13px;line-height:1.6}.daily-advice li{margin-bottom:7px}.advice-stale{color:#926935;background:#fff0df;border-radius:9px;margin-bottom:14px;padding:8px 10px;margin-top:0!important;font-size:11px!important}.media-overlay{z-index:50;padding:18px max(16px,env(safe-area-inset-right,0px)) max(18px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#10251ecc;place-items:center;display:grid;position:fixed;inset:0}.media-dialog{background:var(--bg);border-radius:22px;width:100%;max-width:440px;max-height:calc(100dvh - 36px);padding:16px;overflow:auto;box-shadow:0 14px 60px #0a211e35}.media-dialog .section-label-row h2{font-size:19px}.camera-preview{aspect-ratio:1;background:#17392b;border-radius:16px;place-items:center;width:100%;max-height:45dvh;display:grid;position:relative;overflow:hidden}.camera-preview>video{object-fit:cover;width:100%;height:100%}.camera-preview>.spin{color:#fff;position:absolute}.media-dialog>.muted-text{margin:12px 0}.media-dialog>.primary-button{min-height:50px}.media-dialog>.text-button{text-align:center;width:100%}.barcode-preview{aspect-ratio:4/3}.barcode-target{color:#e4f7e9;pointer-events:none;border:2px solid #e4f7e9;border-radius:12px;place-items:center;display:grid;position:absolute;inset:25% 12%}.barcode-manual{align-items:center;gap:8px;margin-top:14px;display:flex}.barcode-manual>.text-input{margin:0}.barcode-manual>.secondary-button{min-height:46px}.profile-content{margin-top:4px}.profile-content .surface{background:0 0;border-radius:0;padding:0}.profile-content .settings-card{padding-top:3px}.profile-content .settings-card+.settings-card{margin-top:20px}.profile-content .storage-card{margin-top:0}.profile-content .about-card{background:0 0;margin-top:20px;padding:0}.profile-content .compact-disclosure{margin-top:15px}.profile-form>.screen-segments{margin-top:0}.profile-form .profile-intro{margin-bottom:3px}.profile-form .settings-card h2{font-size:17px}.profile-form .license-note{font-size:11px}.profile-content .data-actions{grid-template-columns:1fr 1fr}.profile-content .data-actions .primary-button{min-height:48px;font-size:14px}.profile-content .danger-link{margin-top:13px}.toast{bottom:calc(87px + max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)))}@media (min-width:620px){.app-header,.app-main{padding-left:24px;padding-right:24px}.energy-card{min-height:164px}.energy-ring{width:125px;height:125px}.macro-grid{gap:13px}.photo-picker{min-height:270px}.assistant-screen,.add-food-screen,.profile-form{max-width:600px;margin:0 auto}.assistant-heading .screen-title{margin-top:10px}.photo-picker>img{object-fit:contain}.compact-product-form .product-intro h2{font-size:22px}.compact-product-form .product-intro>.food-image{width:76px;height:76px}.tab-button{font-size:12px}.history-list{gap:9px}}@media (max-width:370px){.screen-title{font-size:24px}.screen-segments>button{font-size:12px}.dish-heading-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}.photo-picker{min-height:200px}.photo-picker h2,.result-header h2{font-size:18px}.analysis-macros strong{font-size:19px}.ingredient-nutrients-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.media-dialog{padding:13px}.profile-content .data-actions{grid-template-columns:1fr}.compact-product-form .product-intro h2{font-size:18px}.food-entry-tools .secondary-button,.photo-choices .secondary-button{font-size:13px}.tab-button{font-size:11px}}button,input,select,textarea{font-family:inherit}select,textarea{min-width:0;max-width:100%}button,a,input,select,textarea{outline-offset:3px}select:focus-visible,textarea:focus-visible{outline:3px solid #47a98d}.app-main,.page-view,.field-label,.form-grid>*{min-width:0}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.text-input{max-width:100%}.text-input[type=date]{min-inline-size:0;width:100%}.text-input[type=date]::-webkit-datetime-edit{min-width:0;padding:0}.primary-button,.secondary-button,.screen-segments>button{overflow-wrap:anywhere;min-width:0}.quantity-chips button,.meal-segments button{white-space:normal;overflow-wrap:anywhere}.section-label-row{gap:8px}.section-label-row>h2,.section-label-row>h3{overflow-wrap:anywhere;min-width:0}.section-label-row>.icon-button{flex-shrink:0}.inline-warning,.field-error,.lookup-message{overflow-wrap:anywhere}input,select,textarea{scroll-margin-block:20px 120px}.header-menu{overscroll-behavior:contain;max-width:calc(100% - 32px);max-height:calc(100dvh - 100px);top:100%;overflow:auto}.media-overlay{--media-top:max(12px,var(--safe-top,0px),env(safe-area-inset-top,0px));--media-bottom:max(12px,var(--safe-bottom,0px),env(safe-area-inset-bottom,0px));padding:var(--media-top) max(12px,var(--safe-right,0px),env(safe-area-inset-right,0px)) var(--media-bottom) max(12px,var(--safe-left,0px),env(safe-area-inset-left,0px));overflow:auto}.media-overlay>.media-dialog{min-width:0;max-height:calc(100dvh - var(--media-top,18px) - var(--media-bottom,18px));overscroll-behavior:contain;scroll-padding-block:12px}.confirm-dialog{max-height:calc(100dvh - 24px - max(var(--safe-top,0px),env(safe-area-inset-top,0px)) - max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)));overscroll-behavior:contain;overflow:auto}.dialog-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.barcode-manual>.text-input{flex:1;min-width:0}.barcode-manual>.secondary-button{flex-shrink:0}.quantity-field{height:auto;min-height:48px}.search-field input{height:auto;min-height:44px;padding-block:10px}.confirm-dialog{inset-block:max(12px,var(--safe-top,0px),env(safe-area-inset-top,0px)) max(12px,var(--safe-bottom,0px),env(safe-area-inset-bottom,0px));margin:auto}@media (min-width:620px){.app-main,.app-header{padding-left:max(24px,var(--safe-left,0px),env(safe-area-inset-left,0px));padding-right:max(24px,var(--safe-right,0px),env(safe-area-inset-right,0px))}}@media (hover:none) and (pointer:coarse){.search-field input,.dish-editor .text-input{font-size:16px}}@media (max-height:500px){.ingredient-picker-dialog{overflow-y:auto}.ingredient-picker-dialog .ingredient-picker-results{flex:1 0 auto;min-height:0;overflow:visible}}@media (any-pointer:coarse){html,body,#root{touch-action:pan-x pan-y}}:root{--bg:#fafbf8;--text:#19312a;--muted:#718079;--mint:#20775e;--mint-soft:#e7f0e9;--border:#e4e9e2}.app-shell,.app-shell.in-vk{max-width:720px}.app-shell .app-header{padding-top:calc(20px + max(var(--safe-top,0px),env(safe-area-inset-top,0px)));padding-bottom:20px}.app-shell .wordmark{letter-spacing:-.055em;font-size:25px}.app-shell.in-vk .app-header{padding-right:max(108px,var(--safe-right,0px),env(safe-area-inset-right,0px))}.app-shell .app-main{padding-inline:max(22px,var(--safe-left,0px),env(safe-area-inset-left,0px)) max(22px,var(--safe-right,0px),env(safe-area-inset-right,0px));padding-bottom:calc(95px + max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)))}.app-shell .primary-button{min-height:50px;box-shadow:none;border-radius:12px;font-size:15px}.app-shell .secondary-button{box-shadow:none;border-radius:11px}.app-shell .text-input{box-shadow:none;background:#fff;border-radius:10px}.app-shell .screen-segments{border-bottom:1px solid var(--border);background:0 0;border-radius:0;gap:19px;margin-bottom:19px;padding:0}.app-shell .screen-segments>button{min-height:44px;box-shadow:none;color:var(--muted);background:0 0;border-bottom:2px solid #0000;border-radius:0;flex:0 auto;margin-bottom:-1px;padding:9px 1px 12px;font-size:13px}.app-shell .screen-segments>button[aria-pressed=true],.app-shell .screen-segments>button.selected{color:var(--mint);border-bottom-color:var(--mint);box-shadow:none;background:0 0}.app-shell .tabbar.mint-tabbar{border:0;border-top:1px solid var(--border);width:100%;max-width:720px;box-shadow:none;background:var(--bg);-webkit-backdrop-filter:none;padding:7px max(12px,var(--safe-right,0px),env(safe-area-inset-right,0px)) calc(7px + max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px))) max(12px,var(--safe-left,0px),env(safe-area-inset-left,0px));border-radius:0;gap:0;bottom:0}.app-shell .mint-tabbar .tab-button{border-radius:0;min-height:52px;padding:3px 2px;font-size:10px;font-weight:500}.app-shell .mint-tabbar .tab-button.active{box-shadow:none;color:var(--mint);background:0 0;font-weight:700}.app-shell .mint-tabbar .tab-button .tab-icon,.app-shell .mint-tabbar .tab-button.active .tab-icon{color:inherit;background:0 0;transform:none}.app-shell .mint-tabbar .tab-button.active .tab-icon{position:relative}.app-shell .mint-tabbar .tab-button.active .tab-icon:after{content:"";inset-inline:12px;background:var(--mint);border-radius:3px;height:3px;position:absolute;bottom:-17px}.app-shell .analysis-actions{position:static;bottom:auto}.app-shell .surface,.app-shell .settings-card{box-shadow:none}.app-shell .compact-statistics .stats-period-summary>div{border-block:1px solid var(--border);background:0 0;border-radius:0;padding:12px 0}.app-shell .compact-statistics .stats-period-summary .stats-days-card{border-left:1px solid var(--border);background:0 0;padding-left:14px}.app-shell .profile-refresh .profile-identity{min-height:90px;box-shadow:none;background:0 0;border:0;border-radius:0;margin:0 0 5px;padding:8px 0 20px}.app-shell .profile-refresh .profile-avatar{width:46px;height:46px;box-shadow:none;background:#e8f0e8;border:0;border-radius:50%;font-size:23px}.app-shell .profile-refresh .profile-avatar-leaf{display:none}.app-shell .focused-food-screen .food-portion-summary{border-block:1px solid var(--border);background:0 0;border-radius:0;padding:16px 0}@media (min-width:620px){.app-shell .app-main{padding-left:max(36px,var(--safe-left,0px),env(safe-area-inset-left,0px));padding-right:max(36px,var(--safe-right,0px),env(safe-area-inset-right,0px))}.app-shell .app-header{padding-left:36px;padding-right:36px}}@media (max-width:350px){.app-shell .app-main{padding-left:max(17px,var(--safe-left,0px),env(safe-area-inset-left,0px));padding-right:max(17px,var(--safe-right,0px),env(safe-area-inset-right,0px))}.app-shell .screen-segments{gap:14px}.app-shell .screen-segments>button{font-size:12px}}:root{--bg:#fcfcf8;--text:#1d352e;--muted:#65746a;--mint:#197b61;--mint-soft:#e9f2e9;--border:#e5e9e1;--surface:#fff;--protein:#71b89a;--fat:#dfb86f;--carbs:#9e9bc6}html,body{background:var(--bg)}.app-shell .app-header{min-height:78px;padding-top:calc(19px + max(var(--safe-top,0px),env(safe-area-inset-top,0px)));padding-bottom:17px}.app-shell .wordmark{letter-spacing:-.055em;color:var(--mint);align-items:center;gap:7px;font-size:26px;display:flex}.app-shell .wordmark>svg{transform:rotate(-12deg)}.app-shell .primary-button{min-height:52px;box-shadow:none;border-radius:14px;font-size:15px;font-weight:650}.app-shell .secondary-button{box-shadow:none;border-radius:12px;min-height:46px}.app-shell .text-input{box-shadow:none;background:#fff;border-color:#dce4d9;border-radius:11px}.app-shell .screen-title{letter-spacing:-.045em;font-size:29px;font-weight:700}.app-shell .screen-segments{gap:21px;margin-bottom:21px}.app-shell .screen-segments>button{padding-block:10px 13px}.app-shell .tabbar.mint-tabbar{padding-block:8px calc(8px + max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)))}.app-shell .mint-tabbar .tab-button{border-radius:14px;gap:4px;min-height:53px;padding:4px 2px}.app-shell .mint-tabbar .tab-button .tab-icon,.app-shell .mint-tabbar .tab-button.active .tab-icon{border-radius:11px;width:43px;height:27px;transform:none}.app-shell .mint-tabbar .tab-button.active .tab-icon{background:var(--mint-soft)}.app-shell .mint-tabbar .tab-button.active .tab-icon:after{display:none}.app-shell .toast{bottom:calc(87px + max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)))}.diary-eyebrow{justify-content:space-between;align-items:center;gap:10px;min-height:27px;margin:0 0 2px;display:flex}.diary-eyebrow>span{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;font-size:10px;font-weight:600}.diary-eyebrow>.text-button{align-items:center;gap:3px;padding:3px 0;font-size:11px;display:flex}.app-shell .diary-screen .date-selector{grid-template-columns:38px 1fr 38px;max-width:none;min-height:44px;margin:0 0 17px}.app-shell .diary-screen .date-selector>.icon-button{background:#f1f4ed;border-radius:50%;width:38px;min-width:38px;height:42px}.app-shell .diary-screen .date-heading h1{letter-spacing:-.045em;font-size:26px;font-weight:700}.app-shell .diary-screen .date-pick{min-height:20px;padding-top:3px;font-size:11px}.diary-week{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:0 0 26px;display:grid}.diary-week>button{min-width:0;min-height:70px;color:var(--muted);border-radius:15px;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:9px 2px 7px;display:flex}.diary-week>button>span{text-transform:uppercase;font-size:10px;line-height:1.1}.diary-week>button>strong{letter-spacing:-.03em;font-variant-numeric:tabular-nums;font-size:17px;font-weight:600;line-height:1.15}.diary-week>button>i{background:0 0;border-radius:50%;width:4px;height:4px}.diary-week>button>i.has-entries{background:#91b8a1}.diary-week>button[aria-current=date]{color:var(--mint)}.diary-week>button[aria-pressed=true]{background:var(--mint);color:#fff}.diary-week>button[aria-pressed=true]>i.has-entries{background:#d9eddc}.app-shell .diary-screen .energy-card{border:0;gap:15px;min-height:135px;padding:0 2px 21px}.app-shell .diary-screen .energy-caption{text-transform:none;letter-spacing:0;color:var(--muted);margin-bottom:8px;font-size:11px}.app-shell .diary-screen .energy-number{letter-spacing:-.055em;font-size:49px;font-weight:750;line-height:1.05}.app-shell .diary-screen .energy-goal{color:var(--muted);margin-top:9px;font-size:12px;font-weight:400}.app-shell .diary-screen .energy-remaining{color:var(--mint);margin-top:9px;font-size:12px;font-weight:550}.app-shell .diary-screen .energy-remaining.over{color:#96714c}.app-shell .diary-screen .energy-ring{width:115px;height:115px}.app-shell .diary-screen .energy-ring circle{stroke-width:8px}.app-shell .diary-screen .ring-track{stroke:#e6eee1}.app-shell .diary-screen .energy-ring>strong{letter-spacing:-.045em;flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:23px;font-weight:650;display:flex}.app-shell .diary-screen .energy-ring>strong>small{color:var(--muted);letter-spacing:0;font-size:8px;font-weight:400}.app-shell .diary-screen .energy-ring-large>strong{font-size:14px}.app-shell .diary-screen .energy-number-large{font-size:34px}.app-shell .diary-screen .energy-number-huge{font-size:24px}.app-shell .diary-screen .macro-grid{border-top:1px solid var(--border);border-bottom:0;gap:19px;margin:0;padding:16px 0 20px}.app-shell .diary-screen .macro-card{box-shadow:none;background:0 0;border-radius:0;padding:0}.app-shell .diary-screen .macro-label{color:var(--muted);font-size:11px;font-weight:400}.app-shell .diary-screen .macro-value strong{font-size:22px;font-weight:650}.app-shell .diary-screen .macro-value span{color:var(--muted);font-size:10px}.app-shell .diary-screen .progress-track{height:4px;margin-top:11px}.diary-add-actions{margin:3px 0 24px}.app-shell .diary-photo-action{text-align:left;justify-content:flex-start;gap:13px;min-height:70px;padding:14px 17px}.diary-photo-action>span{flex:1;min-width:0;font-size:15px;line-height:1.35}.diary-photo-action>span>small{color:#c5e7d6;margin-top:3px;font-size:11px;font-weight:400;line-height:1.45;display:block}.diary-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:7px;display:grid}.diary-shortcuts>button{color:#567366;justify-content:center;align-items:center;gap:7px;min-height:44px;padding:7px 2px;font-size:12px;display:flex}.diary-shortcuts>button:hover{color:var(--mint)}.diary-meals-label{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:10px;padding-bottom:7px;display:flex}.diary-meals-label>h2{font-size:18px;font-weight:650}.diary-meals-label>span{color:var(--muted);font-size:10px}.app-shell .diary-meal-card .diary-meal-heading{gap:12px;min-height:79px}.app-shell .diary-meal-title{gap:12px}.app-shell .diary-meal-icon{color:#668a75;width:35px;height:39px}.app-shell .diary-meal-title h2{font-size:16px;font-weight:600}.app-shell .diary-meal-title small{margin-top:4px;font-size:11px}.app-shell .diary-meal-card .diary-add-button{width:40px;height:40px;min-height:40px;color:var(--mint);background:#edf3e9;border:0;border-radius:50%;padding:8px}.app-shell .diary-entry-list{padding:0 0 12px 47px}.app-shell .diary-entry-list .diary-entry{gap:1px;min-height:58px}.app-shell .diary-entry-list .entry-edit strong{font-size:13px;line-height:1.45}.app-shell .diary-entry-list .entry-edit span{margin-top:4px;font-size:11px}.app-shell .diary-entry-list .entry-icon{width:31px;min-width:31px;min-height:44px}.app-shell .profile-refresh .profile-identity{min-height:92px;margin:0;padding:7px 0 22px}.app-shell .profile-refresh .profile-avatar{background:#e9f0e6;width:49px;height:49px;font-size:23px}.app-shell .profile-identity-copy>.profile-display-name{font-size:24px}.profile-billing-link{text-align:left;border-block:1px solid var(--border);align-items:center;gap:12px;width:100%;min-height:78px;margin-bottom:19px;padding:13px 0;display:flex}.profile-billing-symbol{background:var(--mint-soft);width:42px;height:42px;color:var(--mint);border-radius:13px;flex-shrink:0;place-items:center;display:grid}.profile-billing-link>span:nth-child(2){flex:1;min-width:0}.profile-billing-link strong{font-size:14px;font-weight:600;display:block}.profile-billing-link small{color:var(--muted);margin-top:4px;font-size:11px;display:block}.profile-billing-link>svg{color:var(--mint)}.app-shell .profile-refresh .profile-overview{gap:24px}.app-shell .profile-refresh .profile-week-summary{margin:18px 0 15px}.app-shell .profile-refresh .profile-week-days li>strong{border-radius:50%;width:35px;height:35px}.app-shell .profile-refresh .profile-goals-overview{padding-top:18px}.app-shell .profile-refresh .profile-goal-summary{padding-top:17px}.app-shell .profile-refresh .profile-form .text-input{background:#fff}.app-shell .compact-assistant .assistant-heading{align-items:center;margin-bottom:11px}.app-shell .compact-assistant .assistant-symbol{color:var(--mint);background:var(--mint-soft);border-radius:50%;width:35px;height:35px;margin-top:0}.app-shell .compact-assistant .result-header{align-items:center;gap:16px;margin-bottom:25px}.app-shell .compact-assistant .result-header>img,.app-shell .compact-assistant .result-placeholder{border-radius:20px;width:88px;height:88px}.app-shell .compact-assistant .result-header h2{letter-spacing:-.04em;font-size:23px;line-height:1.3}.app-shell .compact-assistant .result-header .eyebrow{margin-bottom:7px;font-size:9px}.app-shell .compact-assistant .result-nutrition{padding-bottom:24px}.app-shell .compact-assistant .analysis-calories>strong{font-size:55px;font-weight:750}.app-shell .compact-assistant .analysis-macros{gap:18px;margin-top:22px}.app-shell .compact-assistant .analysis-macros strong{font-size:24px}.app-shell .compact-assistant .result-edit-row{padding-block:14px 13px}.app-shell .compact-assistant .result-edit-row>.text-button{gap:5px;min-height:44px;font-size:12px}.result-composition-heading{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;margin:20px 0 4px;padding-top:16px;display:flex}.result-composition-heading>h3{font-size:15px;font-weight:600}.result-composition-heading>span{color:var(--muted);font-size:10px}.app-shell .result-ingredient-summary>li{min-height:44px;padding:12px 0;font-size:13px}.app-shell .result-ingredient-summary>li>strong{font-size:11px}.app-shell .compact-assistant .result-meal-row{padding:0 0 5px}.app-shell .compact-assistant .result-meal-row select{background:#eff3e9;border:0;border-radius:10px;padding-inline:13px}.app-shell .compact-assistant .analysis-actions>.primary-button{min-height:53px}.app-shell .compact-assistant .analysis-save-dish{min-height:44px}.app-shell .compact-assistant .photo-picker{border:0;min-height:210px;padding:25px 0 30px}.app-shell .compact-assistant .photo-picker-icon{background:#e9f2e6;width:82px;height:82px}.app-shell .compact-assistant .photo-picker>h2{margin-top:20px;font-size:23px}.app-shell .compact-assistant .photo-picker>p{max-width:240px;margin-top:10px;font-size:12px}.app-shell .compact-assistant .photo-choices{gap:9px}.app-shell .compact-assistant .photo-choices>button{min-height:51px;padding-inline:9px;font-size:12px}.app-shell .compact-assistant .photo-limit{flex-wrap:wrap;justify-content:center;align-items:center;gap:3px 10px;margin:10px 0 12px;font-size:10px;line-height:1.4;display:flex}.photo-limit>.text-button{align-items:center;min-height:35px;padding:3px 0;font-size:10px;display:flex}.app-shell .compact-assistant .photo-details{margin-top:11px;padding-block:10px}.app-shell .compact-assistant .photo-details>summary{min-height:32px;padding-top:5px;font-size:12px;font-weight:500}.app-shell .compact-assistant .photo-progress{min-height:64px;padding:17px 2px}.app-shell .compact-assistant .photo-progress strong{font-size:13px}.app-shell .compact-assistant .history-item{gap:13px;padding-block:14px}.app-shell .compact-assistant .history-item>img,.app-shell .compact-assistant .history-thumb{border-radius:14px;width:59px;height:59px}.app-shell .compact-assistant .history-item strong{font-size:14px;line-height:1.4}.app-shell .compact-assistant .history-item small{margin-top:6px;font-size:11px}.describe-food-trigger{justify-content:center;align-items:center;gap:7px;width:100%;min-height:44px;margin-top:13px;font-size:12px;display:flex}.text-food-entry{padding:0 0 20px}.text-food-back{align-items:center;gap:6px;min-height:44px;padding-top:0;font-size:12px;display:flex}.text-food-symbol{background:var(--mint-soft);width:62px;height:62px;color:var(--mint);border-radius:50%;place-items:center;margin:14px 0 20px;display:grid}.text-food-entry>h2{letter-spacing:-.04em;font-size:26px}.text-food-entry>p:not(.photo-privacy){color:var(--muted);max-width:320px;margin:12px 0 24px;font-size:13px;line-height:1.65}.text-food-entry .field-label{font-size:12px;font-weight:550}.text-food-entry textarea.text-input{min-height:140px;max-height:220px;margin-top:9px;padding:13px 14px;font-size:16px;font-weight:400;line-height:1.6}.text-food-hint{color:var(--muted);margin:9px 0 20px;font-size:11px;line-height:1.6}.text-food-progress{color:var(--mint);align-items:center;gap:8px;padding:3px 0 16px;font-size:13px;display:flex}.text-food-example{width:100%;margin-top:10px}.meal-photo-overlay>.meal-photo-dialog{padding-top:31px;padding-bottom:max(10px,var(--safe-bottom,0px),env(safe-area-inset-bottom,0px));background:var(--bg);position:relative}.meal-photo-overlay>.meal-photo-dialog:before{content:"";background:#d6ded1;border-radius:5px;width:36px;height:4px;position:absolute;top:11px;left:calc(50% - 18px)}.meal-photo-dialog .meal-photo-heading{margin-bottom:23px}.meal-photo-dialog .meal-photo-heading h2{letter-spacing:-.04em;font-size:25px}.meal-photo-dialog .meal-photo-sources{gap:12px}.meal-photo-dialog .meal-photo-source{background:#e8f1e3;border-radius:14px;gap:12px;min-height:108px}.meal-photo-dialog .meal-photo-source strong{font-size:13px}.meal-photo-dialog .meal-photo-alternatives{margin-top:24px}.meal-photo-dialog .meal-entry-section-label{text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px;font-size:10px}.meal-photo-dialog .meal-photo-alternatives button{min-height:61px}.meal-photo-dialog .meal-photo-alternatives button>span{font-size:13px}.meal-photo-dialog .meal-photo-alternatives small{margin-top:4px;font-size:11px}@media (min-width:620px){.app-shell .diary-screen .energy-number{font-size:58px}.app-shell .diary-screen .energy-ring{width:132px;height:132px}.diary-week>button{min-height:77px}.app-shell .diary-screen .macro-grid{padding-block:20px 25px}.diary-add-actions{margin-bottom:30px}.meal-photo-overlay>.meal-photo-dialog{padding-bottom:15px}}@media (max-width:370px){.app-shell .screen-segments{gap:16px}.app-shell .diary-screen .energy-number{font-size:43px}.app-shell .diary-screen .energy-ring{width:104px;height:104px}.app-shell .diary-screen .macro-grid{gap:13px}.app-shell .diary-screen .macro-value strong{font-size:20px}.app-shell .diary-screen .macro-value span{font-size:9px}.app-shell .diary-entry-list{padding-left:0}.app-shell .compact-assistant .result-header>img,.app-shell .compact-assistant .result-placeholder{border-radius:16px;width:73px;height:73px}.app-shell .compact-assistant .result-header h2{font-size:21px}.app-shell .compact-assistant .analysis-calories>strong{font-size:49px}.app-shell .compact-assistant .analysis-macros strong{font-size:22px}}@media (max-height:600px){.diary-week{margin-bottom:18px}.app-shell .compact-assistant .photo-picker{min-height:150px;padding-block:15px 22px}.app-shell .compact-assistant .photo-picker-icon{width:62px;height:62px}.meal-photo-dialog .meal-photo-source{min-height:88px}.meal-photo-dialog .meal-photo-alternatives{margin-top:15px}.meal-photo-dialog .meal-photo-alternatives button{min-height:54px}}
