.recipe-book { color:var(--ink, #123d35); }
.recipe-book-heading, .recipe-book-actions, .recipe-book-row, .recipe-book-search { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.recipe-book-heading { justify-content:space-between; margin-bottom:20px; align-items:flex-start; }
.recipe-book-heading h2 { margin:0 0 8px; font-size:1.8rem; }
.recipe-book-heading p, .recipe-book-editor p { color:var(--muted, #647974); line-height:1.5; }
.recipe-book-search { align-items:end; margin:20px 0; }
.recipe-book label { display:flex; flex-direction:column; gap:7px; font-weight:600; min-width:0; }
.recipe-book label input, .recipe-book label select, .recipe-book label textarea { box-sizing:border-box; width:100%; margin:0; min-height:48px; font-size:16px; }
.recipe-book label textarea { min-height:110px; resize:vertical; }
.recipe-book-search label:first-child { flex:1 1 260px; }
.recipe-book-search label:nth-child(2) { flex:0 1 220px; }
.recipe-book-list { display:grid; gap:14px; }
.recipe-book-card, .recipe-book-editor { border:1px solid #d6e2da; border-radius:14px; background:#fff; padding:20px; min-width:0; }
.recipe-book-card h3 { margin:0 0 8px; overflow-wrap:anywhere; }
.recipe-book-card p { line-height:1.5; overflow-wrap:anywhere; }
.recipe-book details { margin:14px 0; }
.recipe-book summary { cursor:pointer; padding:10px 0; font-weight:600; min-height:32px; }
.recipe-book-method { white-space:pre-wrap; }
.recipe-book-actions { margin:12px 0 0; }
.recipe-book .button { min-height:48px; white-space:normal; }
.recipe-book-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.recipe-book-full { grid-column:1 / -1; }
.recipe-book-editor form > label { margin:18px 0; }
.recipe-book-ingredient { border:1px solid #d6e2da; border-radius:12px; margin:16px 0; padding:14px; min-width:0; }
.recipe-book-ingredient legend { padding:0 6px; font-weight:700; }
.recipe-book-row { align-items:end; }
.recipe-book-row > label:first-child { flex:2 1 220px; }
.recipe-book-row > label:not(:first-child) { flex:1 1 100px; }
.recipe-book-allergens > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.recipe-book-allergens label { flex-direction:row; align-items:center; padding:6px; font-weight:400; }
.recipe-book-allergens label input { width:24px; min-height:24px; flex:0 0 24px; }
.recipe-book-empty { padding:25px 0; }
.recipe-book-error { background:#fff0e7; color:#963f12; border-radius:8px; padding:12px; margin:14px 0; }
.recipe-book-error[hidden] { display:none; }
.recipe-book-dialog { width:min(1000px,94vw); max-width:1000px; max-height:92dvh; overflow:auto; border:0; border-radius:16px; padding:24px; box-sizing:border-box; }
.recipe-book-dialog::backdrop { background:rgba(12,39,32,.55); }
@media (max-width:600px) {
 .recipe-book-grid { grid-template-columns:minmax(0,1fr); }
 .recipe-book-allergens > div { grid-template-columns:minmax(0,1fr); }
 .recipe-book-heading > .recipe-book-actions, .recipe-book-search > *, .recipe-book-actions > .button { width:100%; }
 .recipe-book-search > label { flex-basis:100% !important; }
 .recipe-book-dialog { width:100%; height:100dvh; max-height:100dvh; max-width:100%; border-radius:0; padding:16px; margin:0; }
 .recipe-book-card, .recipe-book-editor { padding:16px; }
}
