.recipe-page-state{padding:var(--space-5);margin:0;color:var(--muted)}
.recipe-toolbar{display:grid;grid-template-columns:minmax(0,11rem) minmax(0,14rem);align-items:end;gap:var(--space-3);padding:var(--space-4)}
.recipe-table{min-width:740px}
.recipe-table-name,.recipe-list-actions,.recipe-linked,.recipe-linked>span{display:flex;align-items:center;gap:var(--space-2)}
.recipe-table-name{min-width:10rem}
.recipe-table-name a{overflow-wrap:anywhere}
.recipe-list-actions{flex-wrap:wrap}
.recipe-photo{position:relative;display:grid;place-items:center;overflow:hidden;background:var(--surface-secondary);color:var(--muted);border-radius:var(--radius-sm);flex:none}
.recipe-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.recipe-thumb{width:48px;aspect-ratio:4/3}
.recipe-editor-actions{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);padding-block:var(--space-3);background:var(--paper);margin-bottom:var(--space-3)}
.recipe-editor-actions>div,.recipe-description-actions,.recipe-row-actions{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap}
.recipe-workspace{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);align-items:start;gap:var(--space-5)}
#recipe-fields{display:grid;gap:var(--space-4);border:0;margin:0;padding:0;min-width:0}
.recipe-section{display:grid;min-width:0;gap:var(--space-4);padding:var(--space-5)}
.recipe-section h2{font-size:var(--text-h2);margin:0}
.recipe-field,.recipe-description,.recipe-rows,.recipe-row{display:grid;gap:var(--space-2);min-width:0}
.recipe-field input,.recipe-field select,.recipe-field textarea{width:100%}
.recipe-field textarea{resize:vertical}
.recipe-field label small,.recipe-section-foot small,.recipe-upload small{color:var(--muted);font-size:var(--text-caption)}
.recipe-field label small{margin-inline-start:var(--space-1)}
.recipe-field-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3)}
.recipe-upload{position:relative;display:flex;align-items:center;gap:var(--space-3);padding:var(--space-4);border:1px dashed var(--border);border-radius:var(--radius-sm);background:var(--surface-secondary)}
.recipe-upload.has-image{border-style:solid}
.recipe-upload small{display:block;margin-top:var(--space-2)}
.recipe-upload-photo{width:76px;aspect-ratio:4/3;background:var(--surface)}
.recipe-upload-status:empty,.recipe-upload [role=status]:empty{display:none}
.recipe-description-actions{justify-content:space-between}
.recipe-description-actions>span{color:var(--muted);font-size:var(--text-caption)}
.recipe-suggestion{padding:var(--space-3);border-radius:var(--radius-sm);background:var(--selected-background)}
.recipe-suggestion p{margin:var(--space-2) 0}
.recipe-error{margin:0;color:var(--error);font-size:var(--text-small)}
#recipe-save-error:not([hidden]){margin-bottom:var(--space-3);padding:var(--space-3);background:var(--error-background);border-radius:var(--radius-sm)}
.recipe-field :is(input,select,textarea)[aria-invalid=true]{border-color:var(--error)}
.recipe-row{gap:var(--space-3);padding:var(--space-3);border:1px solid transparent;border-radius:var(--radius-sm);background:var(--surface-secondary)}
.recipe-row:not(:last-child){margin-bottom:var(--space-1)}
.recipe-row-head{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;min-width:0}
.recipe-row-actions{margin-inline-start:auto}
.recipe-drag{display:grid;place-items:center;width:24px;height:34px;cursor:grab;color:var(--muted);font-size:20px}
.recipe-drop-target{border-color:var(--primary);background:var(--selected-background)}
.recipe-linked{flex-wrap:wrap}
.recipe-linked>span{overflow-wrap:anywhere}
.recipe-section-foot{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap}
.recipe-legacy{color:var(--muted)}
.recipe-legacy .recipe-field{margin-top:var(--space-2)}
.recipe-preview-panel{position:sticky;top:75px;min-width:0}
.recipe-preview-panel .in-identity-preview{position:static}
.recipe-ingredient-image-status{color:var(--muted)}
.recipe-ingredient-image-status:empty{display:none}
.recipe-preview-dialog.overlay{width:min(710px,calc(100vw - 32px))}
.recipe-preview-dialog .in-identity-preview{position:static}
.recipe-preview-dialog .in-preview-viewport{height:clamp(290px,calc(90dvh - 280px),630px)}
@media(max-width:1100px){
  .recipe-workspace{gap:var(--space-3)}
  .recipe-section{padding:var(--space-4)}
}
@media(max-width:890px){
  .recipe-workspace{grid-template-columns:minmax(0,1fr)}
  .recipe-preview-panel{position:static}
  .recipe-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:530px){
  .recipe-editor-actions{align-items:flex-start;flex-direction:column;gap:var(--space-1)}
  .recipe-row-actions .btn{min-width:34px}
}
