.recipe-entry { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; padding:20px 0; border-top:1px solid var(--kk-border-subtle); border-bottom:1px solid var(--kk-border-subtle); margin-block:20px; }
.recipe-entry h2 { font-size:20px; font-weight:500; margin:0 0 6px; }
.recipe-entry p { margin:0; color:var(--kk-text-secondary); }
.recipes-view { max-width:960px; margin-inline:auto; color:var(--kk-text-primary); }
.recipes-view > header { display:flex; gap:16px; align-items:center; margin:12px 0 24px; }
.recipes-view h1 { font-size:26px; font-weight:500; letter-spacing:-.02em; }
.recipes-view h2 { font-size:22px; font-weight:500; line-height:1.35; }
.recipes-view h3 { font-size:18px; font-weight:500; }
.recipes-view p,.recipes-view li,.recipes-view label { font-size:16px; line-height:1.55; }
.recipes-view input,.recipes-view select,.recipes-view textarea { width:100%; min-width:0; min-height:48px; padding:12px; font:inherit; color:inherit; background:var(--kk-bg-surface); border:1px solid var(--kk-border-subtle); border-radius:10px; }
.recipes-view textarea { margin-block:8px 16px; min-height:100px; resize:vertical; }
.recipe-form { background:var(--kk-bg-surface); padding:24px; border:1px solid var(--kk-border-subtle); border-radius:20px; }
.recipe-preferences { border:0; margin:18px 0; padding:0; display:flex; flex-wrap:wrap; gap:10px; }
.recipe-preferences legend { margin-bottom:10px; }
.recipe-preferences label { display:flex; gap:8px; align-items:center; padding:8px 12px; border-radius:12px; border:1px solid var(--kk-border-subtle); cursor:pointer; }
.recipe-preferences input { width:20px; min-height:20px; accent-color:#2E7D5A; }
.recipe-preferences label:has(input:checked) { background:#f2f7f3; border-color:#2E7D5A; }
.recipe-results { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,18em),1fr)); gap:20px; margin-block:24px; }
.recipe-idea { background:var(--kk-bg-surface); padding:22px; border:1px solid var(--kk-border-subtle); border-radius:18px; min-width:0; }
.recipe-meta,.recipe-note { color:var(--kk-text-secondary); }
.recipe-nutrition { font-variant-numeric:tabular-nums; font-weight:500; }
.recipe-fit { color:#355b48; }
.recipe-detail { background:var(--kk-bg-surface); padding:28px; border:1px solid var(--kk-border-subtle); border-radius:20px; margin-block:24px; }
.recipe-ingredients { display:grid; gap:16px; }
.recipe-ingredient { border-bottom:1px solid var(--kk-border-subtle); padding-bottom:16px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,12em); gap:12px; }
.recipe-ingredient-name { display:flex; flex-wrap:wrap; gap:8px; align-items:center; min-width:0; }
.recipe-ingredient-name strong { font-weight:500; }
.recipe-ingredient-name label { display:flex; gap:8px; align-items:center; }
.recipe-ingredient-name input { width:20px; min-height:20px; }
.recipe-ingredient-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(48px,.6fr); gap:8px; }
.recipe-ingredient > select,.recipe-ingredient > p { grid-column:1/-1; }
.recipe-steps { padding-left:24px; }
.recipe-steps li { margin-bottom:12px; }
.recipe-detail > .button { margin:8px 8px 0 0; }
.recipe-saved-row { padding:20px 0; border-top:1px solid var(--kk-border-subtle); }
.recipe-saved-row .button { margin:4px 8px 4px 0; }
.recipes-view :where(h1,h2,h3,p,strong,span,label,li) { overflow-wrap:anywhere; }
.recipes-view :where(input,select,textarea,button):focus-visible { outline:3px solid var(--kk-focus); outline-offset:3px; }
@media(max-width:600px) { .recipe-form,.recipe-detail,.recipe-idea { padding:18px 16px; } .recipe-ingredient { grid-template-columns:1fr; } .recipe-detail > .button { display:block; width:100%; margin-inline:0; } }
@media(hover:hover) and (pointer:fine) { .recipe-preferences label:hover { background:#f7faf7; } }

/* Canonical AI-blue provenance for proposals; calculated nutrition keeps product ink/green. */
.recipes-view .recipe-ai-provenance { display:flex; align-items:center; gap:8px; color:#3573b9; font-size:14px; font-weight:500; margin:0 0 8px; }
.recipe-ai-provenance img { width:20px; height:20px; flex:none; }
