/* Scoped food-entry UI; existing menu and diary remain independent. */
.food-entry{background:#fff;border:1px solid #dce1d4;border-radius:24px;padding:27px;min-width:0;color:#273321;font:inherit;align-self:start}.food-entry [hidden]{display:none!important}.food-entry h3{font-family:var(--display,inherit);font-weight:500;letter-spacing:-.045em;font-size:27px;line-height:1.25;margin:9px 0 12px}.food-entry .fe-intro{font-size:12px;line-height:1.7;color:#64715b;margin:0 0 21px}.fe-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid #dfe5d7;margin-bottom:21px;gap:4px}.fe-tabs button{font-family:inherit;font-weight:600;font-size:12px;line-height:1.3;background:transparent;border:0;border-bottom:3px solid transparent;padding:13px 3px;cursor:pointer;color:#64715b;min-height:46px}.fe-tabs button[aria-selected=true]{color:#3e5c35;border-bottom-color:#3e5c35;background:#f4f6ef;border-radius:8px 8px 0 0}.fe-label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;line-height:1.5;margin:0}.food-entry .fe-input{box-sizing:border-box;width:100%;max-width:100%;min-width:0;height:45px;padding:10px 12px;border:1px solid #d8dfd0;border-radius:10px;background:#fafbf8;color:#253221;font-family:inherit;font-weight:400;font-size:13px;line-height:1.4;outline:0}.food-entry input[type=checkbox]{width:17px;height:17px;accent-color:#3e5c35;flex:none;margin:2px 0}.food-entry .fe-input:focus-visible,.food-entry button:focus-visible,.food-entry a:focus-visible{outline:3px solid #8cab76;outline-offset:3px}.fe-help,.fe-status,.fe-attribution{font-size:11px;line-height:1.75;color:#64715b;margin:10px 0 14px}.fe-status:empty{display:none}.fe-status{padding:10px 12px;background:#f2f5ed;border-radius:10px}.fe-attribution{margin-bottom:0;font-size:10px}.fe-attribution a,.fe-consent a{text-decoration:underline;text-underline-offset:3px}.fe-filters{display:grid;grid-template-columns:1.1fr 1fr .8fr;gap:9px;margin-top:12px}.fe-results{display:grid;gap:8px;margin:12px 0}.fe-product{border:1px solid #dce3d3;background:#fff;padding:12px;border-radius:12px;text-align:left;min-width:0;display:flex;flex-direction:column;gap:5px;cursor:pointer;font:inherit;color:inherit;transition:background .15s,border-color .15s}.fe-product:hover{background:#f5f8f0;border-color:#9dad8d}.fe-product strong{font-size:12px;font-weight:600;line-height:1.5}.fe-product small{font-size:10px;line-height:1.6;color:#5d6b54}.fe-product .fe-product-nutrition{font-size:10px;line-height:1.65;color:#46573c}.fe-product .fe-product-arrow{align-self:flex-end;font-size:10px;font-weight:600;color:#3e5c35}.fe-empty{font-size:12px;line-height:1.7;color:#64715b;padding:18px 0}.fe-primary,.fe-secondary,.fe-manual{min-height:44px;border-radius:11px;padding:11px 16px;cursor:pointer;font-family:inherit;font-weight:600;font-size:12px;line-height:1.5;text-align:center;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}.fe-primary{background:#344b2d;color:#fff;border:1px solid #344b2d}.fe-primary:hover{background:#24391f}.fe-secondary{background:#fff;color:#344b2d;border:1px solid #cdd8c3}.fe-secondary:hover{background:#f0f5e9}.fe-primary:disabled,.fe-secondary:disabled{opacity:.55;cursor:default}.fe-more{width:100%;margin-top:6px}.fe-bottom-actions{border-top:1px solid #e5e9df;margin-top:19px;padding-top:14px;display:grid;gap:7px}.fe-manual{font-size:11px;font-weight:500;background:transparent;color:#3d5632;border:1px dashed #c6d2b9;width:100%}.fe-error{font-size:12px;line-height:1.6;background:#fff1ec;color:#923816;padding:12px;border:1px solid #e5b7a5;border-radius:10px;margin:14px 0}.fe-photo-intro{display:flex;gap:13px;align-items:flex-start;margin:0 0 17px}.fe-photo-intro>span{display:grid;place-items:center;background:#eef3e7;border-radius:12px;width:43px;height:43px;font-size:26px;flex:none;color:#4b673c}.fe-photo-intro strong{font-size:13px;font-weight:600}.fe-photo-intro p{font-size:12px;line-height:1.65;margin:7px 0 0;color:#64715b}.fe-photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.fe-photo-preview{position:relative;margin:17px 0;background:#f1f2ed;border:1px solid #dae1d2;border-radius:14px;overflow:hidden;text-align:center}.fe-photo-preview img{display:block;max-height:250px;max-width:100%;width:auto;height:auto;margin:auto;object-fit:contain}.fe-image-remove,.fe-close{width:38px;height:38px;border:1px solid #cad5bd;border-radius:50%;background:#fff;color:#34472c;display:grid;place-items:center;padding:0;line-height:1;font-family:inherit;font-weight:500;font-size:25px;line-height:1;cursor:pointer;flex:none}.fe-image-remove{position:absolute;right:8px;top:8px;box-shadow:0 2px 8px #0001}.fe-consent{display:flex;align-items:flex-start;gap:9px;color:#5a6751;font-size:11px;line-height:1.7;margin:16px 0}.fe-photo-actions+.fe-help{margin-bottom:10px}[data-fe-analyze]{width:100%}.fe-review{padding:25px;box-sizing:border-box;width:min(780px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);border:1px solid #d4dccb;border-radius:20px;color:#273321;background:#fff;overflow:auto;box-shadow:0 18px 80px #16220d30}.fe-review::backdrop{background:#17211080;backdrop-filter:blur(3px)}.fe-review-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.fe-review-head h3{font-size:26px;margin-bottom:4px}.fe-review-head .small-label{font-size:10px}.fe-record-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:19px 0}.fe-review-rows{display:grid;gap:14px}.fe-row{margin:0;padding:17px;background:#fafbf7;border:1px solid #dce4d3;border-radius:14px;min-width:0}.fe-row>legend{padding:0 6px;font-size:11px;color:#6c795e;max-width:100%}.fe-row-main{display:grid;grid-template-columns:minmax(0,1fr) 105px 75px auto;gap:10px;align-items:end}.fe-row-remove{border:1px solid #dcc8bd;border-radius:10px;color:#86432e;background:#fff;min-height:44px;padding:8px 10px;font-family:inherit;font-weight:500;font-size:11px;line-height:1.5;cursor:pointer}.fe-row-source{font-size:10px;line-height:1.65;margin:9px 0;color:#68765d;overflow-wrap:anywhere}.fe-row-source a{text-decoration:underline}.fe-nutrient-fields{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:12px 0 8px}.fe-nutrient-fields .fe-label{font-size:10px;gap:5px}.fe-nutrient-fields .fe-input{font-size:12px;padding:8px 9px;height:40px}.fe-fiber-unknown{display:flex;gap:8px;align-items:flex-start;font-size:10px;line-height:1.7;color:#64715b;margin:7px 0}.fe-row-total{font-size:11px;font-weight:500;line-height:1.7;color:#3e5c35;margin-top:10px}.fe-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:15px;align-items:end;margin-top:20px}.fe-add-row .fe-secondary{font-size:11px}.fe-totals{display:flex;gap:15px;flex-wrap:wrap;background:#eef3e6;border:1px solid #d9e3cd;border-radius:12px;padding:16px;margin-top:20px;align-items:baseline}.fe-totals strong{font-size:21px;font-weight:600;white-space:nowrap}.fe-totals span{font-size:11px;color:#455b35}.fe-review-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px;flex-wrap:wrap}.fe-review-notice{padding:12px 14px;font-size:12px;line-height:1.7;background:#fff7e6;border:1px solid #ead6a8;border-radius:11px;margin:12px 0}.fe-invalid{border-color:#b75c39!important}.fe-busy{opacity:.7;pointer-events:none}.fe-preview-source{font-size:10px;color:#73806b}.fe-row input:disabled{background:#eef0e9;color:#718066}.fe-review .fe-help{font-size:11px}.fe-unknown-total{font-weight:400}.food-entry .fe-review .fe-input{font-family:inherit}.fe-review :focus-visible{outline:3px solid #8cab76;outline-offset:3px}
@media(max-width:1000px){.fe-filters{grid-template-columns:1fr 1fr}.fe-filters>.fe-label:last-child{grid-column:1/-1}.food-entry{padding:22px}.fe-tabs button{font-size:11px}}@media(max-width:600px){.food-entry{padding:22px 19px;border-radius:19px}.food-entry h3{font-size:24px}.fe-intro{font-size:12px}.fe-tabs{gap:2px}.fe-tabs button{font-size:11px;padding-inline:2px}.fe-filters{gap:10px}.fe-results{gap:9px}.fe-product{padding:13px}.fe-product strong{font-size:12px}.fe-review{padding:19px 15px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:16px}.fe-review-head h3{font-size:23px}.fe-record-fields{gap:10px}.fe-row{padding:13px}.fe-row-main{grid-template-columns:minmax(0,1fr) 75px}.fe-row-main>.fe-label:first-child{grid-column:1/-1}.fe-row-main>.fe-label:nth-child(2){grid-column:1}.fe-row-main>.fe-label:nth-child(3){grid-column:2}.fe-row-remove{grid-column:1/-1;min-height:37px;justify-self:end}.fe-nutrient-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.fe-add-row{grid-template-columns:1fr;gap:10px}.fe-add-row .fe-secondary{justify-self:start}.fe-review-actions{display:grid;grid-template-columns:1fr}.fe-review-actions .fe-primary{grid-row:1}.fe-totals{gap:9px 13px;padding:14px}.fe-totals strong{width:100%}.fe-product small,.fe-product .fe-product-nutrition{font-size:11px}.fe-review .fe-label{font-size:11px}.fe-photo-actions .fe-secondary{padding-inline:10px}}
@media(prefers-reduced-motion:reduce){.food-entry *{transition:none!important;scroll-behavior:auto!important}}

/* One catalogue: generic tables, supermarket labels and supplements. */
.food-entry .fe-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.fe-filter-details{margin-top:13px;border:1px solid #e0e6d8;border-radius:11px;background:#fafbf8;padding:0 12px}.fe-filter-details>summary{display:flex;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;font-size:11px;font-weight:500;line-height:1.6;min-height:42px;align-items:center;color:#4d6040}.fe-filter-details>summary::-webkit-details-marker{display:none}.fe-filter-details>summary>span{font-size:18px;transition:transform .15s}.fe-filter-details[open]>summary>span{transform:rotate(180deg)}.fe-filter-details .fe-filters{padding-bottom:14px;margin-top:3px}.fe-result-card{border:1px solid #dce3d3;border-radius:12px;overflow:hidden;background:#fff;min-width:0}.fe-result-card:hover{border-color:#9dad8d}.fe-result-card>.fe-product{border:0;border-radius:0;width:100%;margin:0}.fe-result-source{margin:0;padding:0 12px 11px;font-size:10px;line-height:1.65;color:#6a765e;overflow-wrap:anywhere}.fe-result-source a{text-decoration:underline;text-underline-offset:3px}.food-entry [data-fe-product-results]{max-height:520px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:2px 4px 4px 2px}.fe-generic-fallback{padding-top:17px;margin-top:20px;border-top:1px solid #dce4d3}.fe-generic-fallback h4{font-family:inherit;letter-spacing:-.015em;font-size:13px;font-weight:600;line-height:1.5;margin:0}.fe-generic-fallback .fe-help{margin:8px 0 12px}.fe-generic-fallback .fe-results{max-height:370px;overflow-y:auto;overscroll-behavior:contain;padding:2px 4px 4px 2px}.fe-row-source{line-height:1.8}.fe-filter-details:focus-within{border-color:#a6b998}@media(max-width:600px){.food-entry [data-fe-product-results]{max-height:440px}.fe-result-source{font-size:10px}.fe-filter-details>summary{font-size:11px}.fe-generic-fallback .fe-results{max-height:340px}}

.fe-source-detail{display:block;margin-top:3px;color:#6a765e}.fe-edited-note{font-weight:600;color:#785422}

/* Unit counts always retain a visible, editable equivalent in g or ml. */
.fe-row-main{grid-template-columns:minmax(0,1fr) 100px 170px auto}.fe-portion-equivalence{margin:12px 0 3px;font-size:13px;line-height:1.6;font-weight:600;color:#344b2d}.fe-portion-source{margin:0 0 11px;font-size:10px;line-height:1.7;color:#64715b;overflow-wrap:anywhere}.fe-portion-source a{text-decoration:underline;text-underline-offset:2px}.fe-custom-portion{margin:10px 0;border:1px solid #dce4d3;border-radius:10px;padding:0 10px;background:#fff}.fe-custom-portion>summary{cursor:pointer;font-size:11px;line-height:1.6;font-weight:500;color:#526448;padding:9px 0}.fe-custom-portion>p{font-size:10px;line-height:1.7;color:#64715b;margin:0 0 10px}.fe-custom-portion>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;padding-bottom:12px}.fe-custom-portion .fe-label{font-size:10px}.fe-custom-portion .fe-secondary{font-size:11px;min-height:45px}.fe-custom-portion .fe-input::placeholder{font-size:11px}.fe-custom-portion summary:focus-visible{outline:3px solid #8cab76;outline-offset:2px;border-radius:4px}@media(max-width:600px){.fe-row-main{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr)}.fe-row-main>.fe-label:first-child{grid-column:1/-1}.fe-custom-portion>div{grid-template-columns:1fr}.fe-custom-portion .fe-secondary{justify-self:start}.fe-portion-equivalence{font-size:12px}}
