.recipe-workspace{margin:16px 0;border:1px solid #efb9b2;scroll-margin-top:20px}.recipe-stock-line{display:grid;grid-template-columns:minmax(180px,3fr) minmax(90px,1fr) minmax(80px,1fr) minmax(90px,1fr) auto;gap:12px;align-items:end;padding:12px 0;border-bottom:1px solid #eee0d4}.recipe-stock-line label{display:grid;gap:6px;font-size:12px;font-weight:700}.recipe-stock-line output{padding-bottom:12px;font-size:13px}.recipe-workspace .form-grid{margin-top:18px}.recipe-workspace fieldset{border:1px solid #ead6c6;border-radius:12px;margin:16px 0;padding:14px}.recipe-branch{display:inline-flex;align-items:center;gap:8px;margin:6px 18px 6px 0;font-size:13px}.recipe-branch input{width:auto}.recipe-preview{background:#fff4ed;padding:16px;border-radius:12px;font-weight:700}@media(max-width:760px){.recipe-stock-line{grid-template-columns:1fr 1fr}.recipe-stock-line label:first-child{grid-column:1/-1}.recipe-stock-line output{padding:8px 0}}
.recipe-workspace select,.recipe-workspace input:not([type=checkbox]),.recipe-workspace textarea{font:inherit;font-size:13px;width:100%;min-height:40px;padding:9px 11px;border:1px solid #ead6c6;border-radius:9px;background:#fff;color:#2c211c;box-sizing:border-box}.recipe-workspace textarea{min-height:82px;resize:vertical}.recipe-workspace [data-line-cost]{font-variant-numeric:tabular-nums}.recipe-workspace button:disabled{opacity:.55;cursor:default}

/* Edit recipes in the top layer without moving the menu list behind them. */
html.recipe-modal-open,html.recipe-modal-open body{overflow:hidden}
dialog.recipe-workspace{position:fixed;inset:0;width:min(1040px,calc(100% - 32px));max-width:none;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;border-radius:18px;background:#fffaf5;color:#2c211c;box-shadow:0 24px 80px #26110d45;overflow:hidden}
dialog.recipe-workspace:not([open]),dialog.recipe-workspace[hidden]{display:none!important}
dialog.recipe-workspace[open]{display:flex;flex-direction:column}
dialog.recipe-workspace::backdrop{background:#241a16a6}
.recipe-workspace>.panel-title{flex:0 0 auto;align-items:flex-start;gap:16px;margin:0;padding:20px 24px;border-bottom:1px solid #ead6c6;background:#fffaf5}
.recipe-workspace>.panel-title>div{min-width:0}.recipe-workspace>.panel-title h3{margin:4px 0;font-size:19px;overflow-wrap:anywhere}.recipe-workspace>.panel-title small{display:block;color:#76655b;line-height:1.5}.recipe-workspace [data-close-recipe]{flex-shrink:0}
.recipe-dialog-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 24px;scrollbar-gutter:stable}
.recipe-dialog-body>.helper{margin-top:0}.recipe-dialog-body form{margin:0}.recipe-dialog-body .recipe-stock-line{grid-template-columns:minmax(180px,3fr) minmax(90px,1fr) minmax(80px,1fr) minmax(90px,1fr) auto}
.recipe-dialog-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 18px;flex:0 0 auto;padding:14px 24px;border-top:1px solid #ead6c6;background:#fff5ec}
.recipe-dialog-footer .recipe-preview{flex:1 1 260px;margin:0;padding:0;font-size:13px;line-height:1.6;background:none}.recipe-dialog-footer>button{flex-shrink:0}.recipe-dialog-footer [data-recipe-status]{flex-basis:100%;margin:0;font-size:12px;line-height:1.5;max-height:72px;overflow-y:auto}.recipe-dialog-footer [data-recipe-status]:empty{display:none}
.recipe-discard-confirm{flex-shrink:0;padding:12px 24px;background:#fff0d7;border-bottom:1px solid #e8c47c;font-size:13px}.recipe-discard-confirm[hidden]{display:none!important}.recipe-discard-confirm p{margin:0 0 10px}.recipe-discard-confirm>div{display:flex;gap:8px;flex-wrap:wrap}
.recipe-workspace :is(button,input,select,textarea):focus-visible{outline:3px solid #b51620;outline-offset:2px}
@media(max-width:760px){dialog.recipe-workspace{width:calc(100% - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);border-radius:13px}.recipe-workspace>.panel-title{padding:14px}.recipe-workspace>.panel-title h3{font-size:17px}.recipe-dialog-body{padding:12px 14px}.recipe-dialog-body .recipe-stock-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.recipe-dialog-body .form-grid{grid-template-columns:1fr}.recipe-dialog-footer{padding:12px 14px;gap:8px}.recipe-dialog-footer .recipe-preview{flex-basis:100%;font-size:12px}.recipe-dialog-footer>button{width:100%}.recipe-discard-confirm{padding:10px 14px}.recipe-discard-confirm button{font-size:11px;padding:9px}.recipe-workspace .recipe-branch{margin-right:0;font-size:12px}}
