.ingredients-page .product-grid{gap:22px 18px;padding:4px 6px 10px 0}
.ingredients-page .library-product.has-alternatives{box-shadow:4px 4px 0 -1px var(--surface),4px 4px 0 0 var(--line),8px 8px 0 -1px var(--paper),8px 8px 0 0 var(--line)}
.ingredients-page .family-open{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:0;min-height:76px;color:var(--ink);text-align:left;width:100%;border-radius:8px}
.ingredients-page .family-open:hover{color:var(--accent)}
.ingredients-page .family-open .product-name{padding:0;min-width:0;min-height:0}
.ingredients-page .family-title{display:flex;align-items:center;gap:12px;font-size:16px;line-height:1.4}
.ingredients-page .family-title .food-miniature{flex-shrink:0}
.ingredients-page .family-choice-mark{font-size:23px;color:var(--muted);line-height:1.3}
.ingredients-page .default-product .family-choice-mark{color:#946006}
html[data-theme=dark] .ingredients-page .default-product .family-choice-mark{color:var(--mango)}
.ingredients-page .family-options{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-top:8px;flex-wrap:wrap}
.ingredients-page .family-options button{min-height:44px;padding:8px 0;font-size:12px;text-align:left}
.ingredients-page .variants-link{color:var(--muted);font-weight:500}
.ingredients-page .add-alternative{color:var(--accent)}
.ingredients-page .product-actions{padding-top:10px}
#family-dialog{width:min(650px,95vw)}
#family-description{font-size:13px;line-height:1.7}
.variant-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 12px;border:1px solid var(--line);border-radius:12px;margin-top:10px}
.variant-row.variant-selected{border-color:var(--accent);background:var(--soft)}
.variant-copy{min-width:0;flex:1}.variant-copy h3{font-size:15px;margin:0;overflow-wrap:anywhere}.variant-copy p{font-size:12px;margin:8px 0;color:var(--muted)}
.variant-status{font-size:12px;color:var(--accent)}
.variant-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.variant-actions button{width:44px;height:44px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--accent)}
.variant-actions svg{width:18px;height:18px}
.variant-actions .danger{color:#b84632}.variant-actions .variant-star{font-size:25px;color:var(--muted)}
.variant-actions .variant-star[aria-pressed=true]{color:#946006}
html[data-theme=dark] .variant-actions .variant-star[aria-pressed=true]{color:var(--mango)}
html[data-theme=dark] .variant-actions .danger{color:#ffaba3}
#new-department{display:block;width:100%;margin-top:8px;min-height:44px;padding:10px;border:1px solid var(--control-line);border-radius:8px;background:var(--surface);color:var(--ink)}
@media(max-width:600px){.ingredients-page .product-grid{gap:22px}.variant-row{gap:10px;flex-wrap:wrap}.variant-actions{margin-left:auto}.variant-copy{min-width:150px}.ingredients-page .family-title{font-size:16px}}

#product-eat-form .product-meal-choice{min-width:0;border:0;padding:0;margin:20px 0}
.product-meal-choice legend{padding:0;margin-bottom:10px;font-weight:600}
.product-meal-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#product-eat-form .product-meal-options label{display:flex;align-items:center;gap:8px;min-height:44px;margin:0;padding:10px;border:1px solid var(--control-line);border-radius:10px;cursor:pointer;background:var(--surface);font-size:14px;line-height:1.4}
#product-eat-form .product-meal-options input{width:18px;height:18px;min-width:18px;margin:0;padding:0;accent-color:var(--accent)}
.product-meal-options label:has(input:checked){border-color:var(--accent);background:var(--soft)}
.product-meal-options label:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.product-meal-options label:hover{border-color:var(--accent)}
@media(max-width:600px){.product-meal-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
