/* Cooking and authoring ergonomics within the approved game world. */
.navigation-panel{display:contents}.mobile-menu{display:none}
#ingredients-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.ingredient-name{overflow-wrap:break-word;word-break:normal}
.dish-heading .cooking-actions{margin:14px 0 0}
.shelf-cue{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);z-index:2;display:flex;gap:12px;align-items:center;background:var(--gold);color:var(--ink);border:2px solid var(--ink);border-radius:var(--control-radius);box-shadow:inset 0 0 0 2px var(--warm-line);padding:10px 16px;min-height:44px;font-size:12px;text-decoration:none}
.shelf-cue svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}.shelf-cue:hover{background:var(--gold-hover)}
.editor-section{margin:28px 0}.editor-section h3{margin:0 0 12px}.entry-row{border:0;border-bottom:1px solid var(--warm-line);padding:20px 0;margin:0;min-width:0}
.entry-row legend{padding-top:20px;font-size:12px}.entry-fields-main{display:grid;grid-template-columns:minmax(0,2fr) minmax(80px,1fr) minmax(80px,1fr);gap:12px}
.entry-row label{display:flex;flex-direction:column;gap:8px;min-width:0}.entry-row textarea{width:100%;resize:vertical}.entry-row .explanation{margin-top:12px}.row-actions{display:flex;justify-content:flex-end;margin-top:12px}
.entry-error{color:var(--gold);font-size:11px;margin:8px 0}.entry-error:empty{display:none}.draft-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0}.draft-tools p{margin:0;flex:1;min-width:180px}
.paste-tools{margin:24px 0}.paste-tools summary{cursor:pointer;min-height:44px}.paste-tools label{display:block;margin:16px 0}.paste-tools textarea{width:100%}
#import-review{background:var(--cream);color:var(--ink);border:2px solid var(--ink);border-radius:12px;padding:24px;width:min(640px,calc(100% - 32px));max-height:85dvh;overflow:auto}
#import-review::backdrop{background:rgba(18,20,19,.86)}#import-review h2{margin:0 0 16px;font-size:20px}#import-review p,#import-review label,#import-review li{font-size:12px}#import-conflicts{max-height:180px;overflow:auto}#import-review .dialog-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
#import-review input{width:20px;height:20px}#import-review label{display:flex;align-items:start;gap:12px;padding:12px 0}
#cooking-ingredients label{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:10px;padding:8px 0;font-size:12px}#cooking-ingredients .cooking-amount{white-space:nowrap;font-variant-numeric:tabular-nums}
#cooking-dialog .step-controls{position:sticky;bottom:-28px;background:var(--cream);border-top:1px solid var(--paper-line);padding:12px 0;margin-top:16px;z-index:2}
#cooking-dialog:has(details[open]) #focused-step .sprite{width:96px;height:96px}
@media(max-width:600px){
 .integrated-page .topbar{flex-wrap:wrap;gap:8px;align-items:center;padding:10px 12px}.topbar .brand{font-size:12px;line-height:1.8;min-width:0;margin:0;gap:8px}.topbar .brand img{width:28px;height:36px}.topbar .mobile-menu{display:block;font-size:11px;padding:8px;min-width:64px;flex-shrink:0}
 .navigation-panel{display:flex;flex-direction:column;gap:10px;width:100%;padding-top:8px}.navigation-panel[hidden]{display:none}.topbar .navigation-panel nav{order:0;margin:0}.topbar .header-tools{order:0}
 .integrated-page .collection,.integrated-page #recipe,.integrated-page #journal,.integrated-page #editor{scroll-margin-top:88px}
 .shelf-cue{display:none}.entry-fields-main{grid-template-columns:1fr 1fr}.entry-fields-main label:first-child{grid-column:1/-1}.entry-row textarea,.entry-row input{font-size:16px}.entry-row .entry-error{font-size:11px}.editor-section{margin:24px 0}
 #cooking-dialog .step-controls{bottom:-20px}#cooking-dialog #focused-step .sprite{width:112px;height:112px}#cooking-ingredients label{grid-template-columns:20px minmax(0,1fr);font-size:11px}#cooking-ingredients .cooking-amount{grid-column:2;white-space:normal}#import-review{padding:18px}
}

#confirm-action { max-width: 560px; width: calc(100% - 32px); border: 3px solid var(--gold); border-radius: 12px; background: var(--cream); color: var(--ink); padding: 24px; }
#confirm-action::backdrop { background: rgba(18,20,19,.86); }
#confirm-action h2 { font-size: 12px; line-height: 2; margin: 0 0 24px; }

#confirm-action .dialog-actions { display:flex; gap:12px; flex-wrap:wrap; }