.food-auto-summary{margin:24px 0;padding:20px;border:1px solid var(--line);border-radius:22px;background:var(--bg);display:flex;align-items:center;justify-content:space-between;gap:18px}.food-auto-summary>div{display:flex;align-items:flex-start;gap:12px;min-width:0}.food-auto-summary svg{color:var(--green);margin-top:3px}.food-auto-summary strong{font-size:.92rem}.food-auto-summary p{font-size:.8rem;color:var(--muted);margin-top:5px}.food-auto-summary .button{flex-shrink:0}.food-plan-button{margin:8px 0 20px}.food-review-count{padding:12px 15px;border-radius:16px;background:var(--mint);color:var(--green);font-weight:700;margin:16px 0}.food-match-list{display:grid;gap:18px;margin:18px 0}.food-match-row{padding:20px;border:1px solid var(--line);border-radius:22px;background:var(--paper);min-width:0}.food-match-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px;overflow-wrap:anywhere}.food-match-heading strong{font-size:.93rem;line-height:1.6}.food-match-heading small{color:var(--muted);white-space:nowrap}.food-match-row .field{margin-top:14px}.food-match-row .field small{line-height:1.65}.food-source{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:.72rem;color:var(--muted);margin:12px 0}.food-source a{color:var(--green);text-underline-offset:3px}.food-nutrient-values{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;font-size:.66rem;line-height:1.5;color:var(--muted)}.food-nutrient-values span{min-width:0;overflow-wrap:anywhere}.food-nutrient-values strong{display:block;color:var(--ink);font-size:.86rem;margin-top:3px}.food-nutrient-values small{font-weight:500;font-size:.66rem}.food-calculation{padding:12px 14px;border-radius:16px;background:var(--bg);margin:14px 0}.food-calculation>.small{display:block;margin-bottom:6px}.food-search-area{border-top:1px solid var(--line);margin-top:8px;padding-top:8px}.food-search-area .button{margin-top:12px}.food-search-area [role=alert]{margin-top:10px}.food-attribution{margin:18px 0 0;font-size:.7rem;color:var(--muted)}#food-review .dialog-actions{position:sticky;bottom:-30px;padding:16px 0;background:var(--paper);z-index:2}#food-review .dialog-actions .button{flex:1}#food-review .food-match-row .dropdown-trigger{min-width:0}.food-match-row .dropdown-option{white-space:normal;line-height:1.6}
@media(max-width:760px){.food-auto-summary{align-items:stretch;flex-direction:column;padding:16px}.food-auto-summary .button{align-self:flex-start}.food-match-row{padding:15px}.food-nutrient-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}.food-nutrient-values strong{font-size:.95rem}#food-review .dialog-actions{bottom:-22px}.food-plan-button{max-width:100%;white-space:normal}.food-match-row .field{min-width:0}}

.food-custom-toggle{display:block;margin-top:12px}.food-custom-area{border-top:1px solid var(--line);margin-top:16px;padding-top:16px}.food-custom-area h4{margin:0 0 8px;font-size:.95rem}.food-custom-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.food-custom-values .field{min-width:0}.food-custom-values input{width:100%;min-width:0}.food-custom-actions{scroll-margin-bottom:110px;display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:14px}.food-custom-area .small{line-height:1.65}.food-custom-actions .button,.food-custom-actions .text-button,.food-custom-toggle{min-height:44px}.food-custom-area+.food-custom-toggle{margin-top:0}

.food-scan-actions,.food-label-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:12px 0}.food-scan-actions .button,.food-scan-actions .text-button,.food-label-actions .button,.food-label-actions .text-button{min-height:44px;max-width:100%;white-space:normal}.food-scanner{padding:12px;border:1px solid var(--line);border-radius:18px;margin:12px 0}.food-scanner video{display:block;width:100%;max-height:280px;border-radius:12px;background:#080d12;object-fit:cover}.food-scanner p{margin:12px 0;line-height:1.65}.food-label-area{padding:12px 0;border-bottom:1px solid var(--line)}.food-label-preview{display:block;max-width:100%;max-height:240px;object-fit:contain;border-radius:12px;margin:12px auto}.food-label-notice{padding:12px;border-radius:12px;background:var(--mint);color:var(--green);margin-top:12px}

.food-web-area{margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--bg)}
.food-web-area .button{min-height:44px}
.food-web-area p:last-child{margin-bottom:0}
.food-web-success{color:var(--green);font-weight:600}
