.recipe-filters{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin:4px 0 24px}.recipe-filters label{display:grid;gap:8px}.recipe-filters label:first-child{width:min(100%,480px)}.recipe-filters label:nth-child(2){min-width:210px}.recipe-filters input,.recipe-filters select{width:100%}.recipe-filters button{min-height:46px}.recipe-filters [aria-pressed=true]{background:var(--primary,#174c4f);color:white}.recipe-count{margin:0 0 14px}.resource-recipe-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:20px;max-width:1600px}.resource-recipe-card{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--white);min-width:0}.recipe-cover{display:block;width:100%;height:160px;padding:0;border:0;border-radius:0;background:#e9f2ee}.recipe-cover img{height:100%;width:100%;object-fit:cover}.recipe-cover-placeholder{display:grid;place-items:center;height:100%;color:#668b83}.recipe-cover-placeholder svg{width:48px;height:48px}.recipe-card-copy{padding:18px}.recipe-card-title{display:flex;align-items:start;gap:10px;justify-content:space-between}.recipe-name{padding:0;border:0;background:none;text-align:left;font-size:18px;font-weight:700;color:inherit;overflow-wrap:anywhere}.recipe-star{flex-shrink:0;color:#ad7625}.recipe-card-copy p{margin:8px 0;color:var(--muted,#748481);font-size:14px}.recipe-card-copy small{display:block;line-height:1.6;color:var(--muted,#748481)}#editor.resource-recipe-dialog{width:min(900px,calc(100vw - 24px));max-width:900px}.recipe-detail{display:grid;grid-template-columns:1fr 1fr;gap:24px}.recipe-detail>*{min-width:0}.recipe-detail h3{margin:0 0 14px}.recipe-detail-photo{width:100%;max-height:280px;object-fit:contain;border-radius:14px;background:#f1f5f2}.recipe-detail-intro{display:flex;flex-direction:column;gap:14px}.recipe-yield{display:flex;align-items:end;gap:12px}.recipe-yield label{max-width:160px}.recipe-yield strong{padding-bottom:14px}.recipe-ingredients{list-style:none;padding:0;margin:0}.recipe-ingredients li{display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.recipe-ingredients strong{white-space:nowrap}.recipe-steps{padding-left:22px;margin:0}.recipe-steps li{padding:0 0 14px 6px;white-space:pre-wrap;overflow-wrap:anywhere}.recipe-detail-actions{display:flex;gap:12px;margin-top:24px}.recipe-editor-section{margin:0 0 24px;padding:0 0 24px;border-bottom:1px solid var(--line)}.recipe-editor-section h3{margin:0 0 16px}.recipe-ingredient-row{display:grid;grid-template-columns:minmax(150px,2fr) minmax(85px,1fr) minmax(90px,1fr) 36px;align-items:end;gap:12px;margin:0 0 14px}.recipe-ingredient-row label{min-width:0;display:grid;gap:7px}.recipe-ingredient-row input{width:100%;min-width:0}.recipe-ingredient-row button{margin-bottom:5px}.recipe-edit-photo{display:block;max-width:160px;max-height:130px;object-fit:contain;margin:14px 0}.recipe-allergens{display:grid;grid-template-columns:1fr 1fr;gap:12px}.recipe-allergens label{margin:0}.cake-recipe-actions{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 20px}.cake-recipe-link{display:block;margin:0 0 12px}.location-address{white-space:pre-line}.location-address-origin{display:block;margin-top:5px}.catalog-heading-actions{display:flex;align-items:center;gap:12px}.catalog-heading-actions button{height:44px;white-space:nowrap}.catalog-actions-empty{display:none!important}
@media(max-width:650px){.recipe-filters{gap:12px}.recipe-filters label:first-child{width:100%}.recipe-filters label:nth-child(2){flex:1;min-width:0}.recipe-detail{grid-template-columns:1fr}.recipe-ingredient-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px;gap:8px}.recipe-ingredient-row label:first-child{grid-column:1/3}.recipe-ingredient-row button{grid-column:3;grid-row:1/3;align-self:center}.recipe-allergens{grid-template-columns:1fr}.recipe-ingredient-row label:nth-child(2){grid-column:1}.recipe-ingredient-row label:nth-child(3){grid-column:2}.recipe-detail-photo{max-height:230px}}
.cake-recipe-link svg{width:18px;height:18px;vertical-align:middle;margin-right:7px}.recipe-editor-section label{min-width:0}.resource-recipe-dialog input,.resource-recipe-dialog textarea{max-width:100%}

.recipe-editor-section>label{display:grid;gap:8px;margin-bottom:16px}.recipe-editor-section>.form-grid{margin-bottom:16px}[data-theme=dark] .recipe-cover,[data-theme=dark] .recipe-detail-photo{background:#253b38}[data-theme=dark] .resource-recipe-card{background:#1b2b2c}

.recipe-type-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}.recipe-type-tabs button{padding:11px 20px;border-radius:10px;background:white;border:1px solid #d4dfdb;color:#174c4f}.recipe-type-tabs button[aria-selected=true]{background:#174c4f;color:white;border-color:#174c4f}@media(max-width:480px){.recipe-type-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.recipe-type-tabs button{width:100%;padding:11px 10px}}

/* Native file controls and fieldsets must shrink with the recipe dialog. */
#editor.resource-recipe-dialog form,
#editor.resource-recipe-dialog .dialog-body,
#editor.resource-recipe-dialog .recipe-editor-section,
#editor.resource-recipe-dialog .recipe-editor-section>label,
#editor.resource-recipe-dialog .recipe-allergens{min-width:0;max-width:100%}
#editor.resource-recipe-dialog fieldset{min-inline-size:0;margin-inline:0}
#editor.resource-recipe-dialog input,
#editor.resource-recipe-dialog select,
#editor.resource-recipe-dialog textarea{min-width:0;max-width:100%;box-sizing:border-box}
#editor.resource-recipe-dialog input[type=file]{display:block;width:100%}
#editor.resource-recipe-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#editor.resource-recipe-dialog .form-grid>label{min-width:0}
@media(max-width:650px){#editor.resource-recipe-dialog .form-grid{grid-template-columns:minmax(0,1fr)}}

/* Bind the heading closely to its text while retaining separation between sections. */
#editor .recipe-detail>section>h3{margin:0 0 6px;line-height:1.35;}
#editor .recipe-detail>section>p{margin:0;}
#editor .recipe-detail>section>small{display:block;margin-top:10px;}

/* Compact allergen rows; the complete label remains a touch target. */
body.ge-app #editor.resource-recipe-dialog .recipe-allergens{align-content:start;grid-auto-rows:auto;gap:0 16px;padding:12px 16px;}
body.ge-app #editor.resource-recipe-dialog .recipe-allergens>.check-row{display:flex!important;align-items:center;justify-content:flex-start;gap:12px;min-height:44px;height:auto;margin:0!important;padding:6px 0!important;line-height:1.35;}
body.ge-app #editor.resource-recipe-dialog .recipe-allergens input[type=checkbox]{width:22px;height:22px;min-height:22px;margin:0;flex:0 0 22px;}

/* Detail reading flow: calculator above ingredients, preparation alongside. */
#editor.resource-recipe-dialog .recipe-detail-intro{grid-column:1/-1;flex-direction:row;align-items:center;flex-wrap:wrap;gap:12px 20px}
#editor.resource-recipe-dialog .recipe-detail-photo{grid-column:1/-1;max-height:220px}
#editor.resource-recipe-dialog .recipe-detail-intro small{flex-basis:100%}
#editor.resource-recipe-dialog .recipe-yield{align-items:center}
#editor.resource-recipe-dialog .recipe-yield strong{padding:0}
#editor.resource-recipe-dialog .recipe-yield label{margin:0}
@media(max-width:650px){#editor.resource-recipe-dialog .recipe-detail{grid-template-columns:minmax(0,1fr)}}
