/* Shared presentation dimensions are aliases of menu_objects.php; only states and palettes live here. */
.recipe-editor-shopping-blocked .recipe-shopping-edit,.recipe-editor-shopping-blocked .recipe-shopping-controls{visibility:hidden!important;pointer-events:none}
.recipe-editor-active .reading-header .photo{position:relative}
.recipe-editor-button{appearance:none;border:var(--ui-border-width) solid var(--line,#8b6b57);border-radius:var(--ui-secondary-radius-5);background:var(--paper,#fff);color:var(--ink,#302620);font:inherit;font-size:var(--ui-font-label);line-height:var(--ui-line-label);min-width:var(--ui-secondary-icon-large);min-height:var(--ui-secondary-icon-large);padding:var(--ui-secondary-space-small-plus) var(--ui-secondary-space-medium-tight);cursor:pointer}
.recipe-editor-button:hover,.recipe-editor-button:focus-visible{border-color:var(--rose,#9b3452);outline:var(--ui-border-width) solid var(--rose,#9b3452)}
.recipe-editor-button:disabled{opacity:.4;cursor:default}
.recipe-editor-save{display:flex;align-items:center;justify-content:center;min-width:var(--ui-editor-span-35)}
.recipe-editor-save svg{width:var(--ui-editor-span-23);height:var(--ui-editor-span-23)}
.recipe-editor-save.has-changes{border-width:var(--ui-secondary-border-2);color:var(--rose,#9b3452)}
.reading-header{position:relative}
.recipe-editor-status{position:absolute;z-index:4;left:var(--ui-space-medium);bottom:var(--ui-space-medium);max-width:min(var(--ui-editor-span-320),calc(100% - var(--ui-editor-span-16)));margin:0;padding:var(--ui-secondary-space-comfortable) var(--ui-space-medium);border:var(--ui-border-width) solid var(--line);border-radius:var(--ui-secondary-radius-5);background:var(--paper,#fff);box-shadow:0 var(--ui-secondary-space-fine) var(--ui-space-medium) #0002;font-size:var(--ui-font-label);color:var(--ink-soft,var(--ink))}
.recipe-editor-status[hidden]{display:none}
.recipe-editor-shade{position:fixed;z-index:12000;inset:0;background:#0005;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:var(--ui-editor-shade-padding)}
.recipe-editor-dialog{box-sizing:border-box;width:min(100%,var(--ui-editor-span-470));max-height:var(--ui-editor-dialog-max-height);overflow:auto;background:var(--paper,#fff);color:var(--ink,#302620);border:var(--ui-border-width) solid var(--line,#8b6b57);border-radius:var(--ui-secondary-radius-9);padding:var(--ui-secondary-space-double-medium);box-shadow:0 var(--ui-space-medium) var(--ui-secondary-space-ratio-35) #0004;font-family:inherit}
.recipe-editor-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--ui-secondary-space-medium-plus);margin-bottom:var(--ui-space-large)}
.recipe-editor-dialog-heading h2{font-size:var(--ui-font-body);line-height:var(--ui-line-label);margin:0}
.recipe-editor-dialog input,.recipe-editor-dialog textarea{box-sizing:border-box;display:block;width:100%;min-height:var(--ui-editor-span-40);padding:var(--ui-space-medium);margin:var(--ui-secondary-space-small-plus) 0 var(--ui-space-large);border:var(--ui-border-width) solid var(--line,#8b6b57);border-radius:var(--ui-secondary-radius-4);background:var(--paper,#fff);color:var(--ink,#302620);font:inherit;font-size:var(--ui-font-body)}
.recipe-editor-dialog textarea{resize:vertical;line-height:var(--ui-line-body)}
.recipe-editor-field{display:block;font-size:var(--ui-font-small)}
.recipe-editor-dialog-actions{display:flex;justify-content:flex-end;gap:var(--ui-space-medium);margin-top:var(--ui-space-large)}
.recipe-editor-dialog>.recipe-editor-button{display:block;width:100%;text-align:left;margin:var(--ui-secondary-space-comfortable) 0;min-height:var(--ui-editor-span-40)}
.recipe-editor-results{max-height:var(--ui-editor-results-max-height);overflow:auto;display:flex;flex-direction:column;gap:var(--ui-space-small)}
.recipe-editor-choice{display:flex;align-items:center;gap:var(--ui-secondary-space-medium-loose);text-align:left;min-height:var(--ui-editor-span-42)}
.recipe-editor-choice img{flex:none;object-fit:contain}
.recipe-editor-choice[aria-pressed=true]{border-width:var(--ui-secondary-border-2);font-weight:bold}
.recipe-editor-check{margin-left:auto}
html[data-display=paper] .recipe-editor-dialog{background:#fff;box-shadow:none;border-color:#333}
html[data-display=paper] .recipe-editor-button{background:#fff;color:#111;border-color:#555}
.recipe-editor-workbench{width:min(100%,var(--ui-editor-span-760))}
.recipe-editor-main-tools,.recipe-editor-units{display:flex;align-items:center;flex-wrap:wrap;gap:var(--ui-secondary-space-comfortable);margin-bottom:var(--ui-space-large)}
.recipe-editor-unit{display:grid;place-items:center;min-width:var(--ui-editor-span-40);min-height:var(--ui-editor-span-40)}
.recipe-editor-unit .measure-unit-icon{border:0;width:var(--ui-tag-height);height:var(--ui-tag-height)}
.recipe-editor-unit[aria-pressed=true]{background:var(--rose);color:var(--paper);border-color:var(--rose)}
.recipe-editor-unit[aria-pressed=true] svg{color:inherit}
.recipe-editor-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:var(--ui-font-small)}
.recipe-editor-table th{text-align:left;font-size:var(--ui-font-label);font-weight:600;padding:var(--ui-secondary-space-small-plus)}
.recipe-editor-table th:first-child{width:var(--ui-editor-span-100)}
.recipe-editor-table th:last-child{width:var(--ui-editor-span-110)}
.recipe-editor-table td{padding:var(--ui-secondary-space-small-plus);border-top:var(--ui-border-width) solid var(--line-soft);vertical-align:middle}
.recipe-editor-table td:last-child{white-space:nowrap}
.recipe-editor-table td:last-child button{min-width:var(--ui-editor-span-28);padding:var(--ui-secondary-space-small-plus);margin-right:var(--ui-secondary-space-compact)}
.recipe-editor-table td:last-child button:last-child{color:#a32936}
.recipe-editor-ingredient{display:flex;align-items:center;gap:var(--ui-secondary-space-comfortable);text-align:left;width:100%}
.recipe-editor-ingredient img{object-fit:contain;flex:none}
.recipe-editor-ingredient span{overflow-wrap:anywhere}
.recipe-editor-dropdown{margin-left:auto}
.recipe-editor-row-note{display:block;font-size:var(--ui-font-caption);margin:var(--ui-space-small) 0}
.recipe-editor-quantity{padding:var(--ui-secondary-space-compact);border:0}
.recipe-editor-steps{padding-left:var(--ui-secondary-space-section-wide);margin:var(--ui-space-medium) 0}
.recipe-editor-steps li{padding:var(--ui-secondary-space-small-plus) 0}
.recipe-editor-step-text{width:100%;text-align:left;font-size:var(--ui-font-small);margin-bottom:var(--ui-space-small);line-height:var(--ui-line-body)}
.recipe-editor-steps li>.recipe-editor-button:not(.recipe-editor-step-text){margin-right:var(--ui-space-small)}
.recipe-editor-setting-tools{display:flex;align-items:center;flex-wrap:wrap;gap:var(--ui-secondary-space-comfortable);margin:var(--ui-space-medium) 0}
.recipe-editor-setting{display:flex;align-items:center;gap:var(--ui-space-small);max-width:var(--ui-editor-span-145)}
.recipe-editor-setting input{width:var(--ui-editor-span-80);margin:0}
.recipe-editor-setting .measure-unit-icon{border:0}
.recipe-editor-photo-trigger{cursor:pointer}
.recipe-editor-photo-trigger:focus-visible{outline:var(--ui-secondary-border-2) solid var(--rose,#9b3452);outline-offset:var(--ui-secondary-space-compact)}
.recipe-editor-photo-trigger[aria-disabled=true]{cursor:wait}

/* Units and repeated steps inherit one editor-control family. */
.recipe-editor-unit{min-width:var(--ui-editor-unit-size);min-height:var(--ui-editor-unit-size)}
.recipe-editor-unit .measure-unit-icon{width:var(--ui-editor-unit-icon);height:var(--ui-editor-unit-icon)}
.recipe-editor-ingredient{flex-wrap:wrap;min-width:0;gap:var(--ui-space-small)}
.recipe-editor-ingredient img{width:var(--ui-ingredient-icon);height:var(--ui-ingredient-icon-height)}
.recipe-editor-dialog-actions{flex-wrap:wrap}
.recipe-editor-setting{max-width:var(--ui-editor-setting-width);min-width:0}
.recipe-editor-setting input{width:var(--ui-editor-setting-input)}
.recipe-editor-step-text{font-size:var(--ui-font-small);line-height:var(--ui-line-body)}
