.studio-mode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0 0 12px}.studio-mode .cta{justify-content:flex-start;text-align:left;min-height:62px;padding:7px 10px}.studio-mode strong,.studio-mode small{display:block}.studio-mode strong{font-size:13px}.studio-mode small{font-size:10px;color:var(--muted);margin-top:2px}.studio-mode .cta[aria-pressed=true]{box-shadow:inset 0 -2px var(--accent)}.studio-editor{border:1px solid var(--line);border-radius:14px;padding:clamp(8px,1.9vw,14px);margin:9px 0 11px;background:color-mix(in srgb,var(--accent) 5%,var(--panel))}.studio-heading,.studio-group-head{display:flex;gap:5px;align-items:baseline;justify-content:space-between}.studio-heading h3{font:clamp(20px,2.6vw,34px)/1.05 Georgia,serif;letter-spacing:-.045em;margin-top:3px}.studio-heading .edit-button{white-space:nowrap;padding-left:5px}.studio-instruction{font-size:11px;color:var(--accent);line-height:1.3;margin-top:7px}.studio-group{padding-top:7px;margin-top:9px;border-top:1px solid var(--line);scroll-margin-top:8px}.studio-group-head{margin-bottom:4px}.studio-group h4{margin:0;font-size:13px}.studio-group-head small{color:var(--muted);font-size:10px;text-align:right}.studio-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.studio-option{min-width:0;display:grid;grid-template-columns:29px minmax(0,1fr) auto;align-items:center;gap:4px;padding:3px 6px 3px 4px;min-height:45px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font-size:12px;font-weight:680;line-height:1.15;text-align:left;overflow-wrap:anywhere;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.studio-option img{pointer-events:none;user-select:none;-webkit-user-select:none}.studio-option:hover,.studio-option[aria-pressed=true]{border-color:var(--accent)}.studio-option[aria-pressed=true]{background:color-mix(in srgb,var(--accent) 9%,var(--panel))}.studio-option b{font-size:14px;color:var(--accent)}.studio-thumb{display:grid;place-items:center;width:100%;aspect-ratio:1;border-radius:9px;overflow:hidden;background:radial-gradient(ellipse at 34% 33%,var(--food-lite,#ead0a0),var(--food-dark,#6c5536));box-shadow:inset 0 0 0 1px #fff4;color:#23190f;text-shadow:0 1px 3px #fff6}.studio-thumb:has(img){background:none;box-shadow:none}.studio-thumb img,.studio-burger .studio-thumb img{width:100%;height:100%;object-fit:contain;pointer-events:none}.studio-thumb i{font-size:9px;font-weight:880;font-style:normal;line-height:1}.studio-bread{--food-lite:#f7d28f;--food-dark:#a15a31}.studio-sauce{--food-lite:#ef9a56;--food-dark:#963527}.studio-red{--food-lite:#f89a77;--food-dark:#af3026}.studio-purple{--food-lite:#edb5de;--food-dark:#9a4989}.studio-leaf{--food-lite:#d0e383;--food-dark:#55773a}.studio-cheese{--food-lite:#ffeb9d;--food-dark:#d18c38}.studio-grain{--food-lite:#fff1bf;--food-dark:#b88e4f}.studio-protein{--food-lite:#eeb27a;--food-dark:#954b2e}
.studio-stage{min-height:clamp(210px,37vw,435px);position:relative;display:grid;place-items:center;padding:34px 7px 10px;overflow:hidden;background:radial-gradient(ellipse at 48% 45%,color-mix(in srgb,var(--accent) 40%,var(--panel)),var(--panel) 76%)}.studio-stage.is-dropping{outline:3px solid var(--accent);outline-offset:-4px}.studio-stage-pill{z-index:2;position:absolute;left:9px;top:9px;color:#fff5df;background:#14120de0;border:1px solid #fff5;border-radius:14px;padding:4px 7px;font-size:9px;font-weight:800;letter-spacing:.095em;text-transform:uppercase}.studio-empty{display:grid;place-items:center;text-align:center;max-width:14ch;color:#f8f0dc;font:clamp(17px,2.5vw,30px)/1.04 Georgia,serif;text-shadow:0 2px 8px #1e160eb3;padding:8px;position:relative;z-index:1}.studio-plate{width:min(81%,390px);aspect-ratio:1;border-radius:50%;position:relative;display:grid;place-items:center;background:radial-gradient(circle,#786450 0 56%,#94795c 58% 63%,#684f3a 65% 70%,#b79878 71% 74%,#f2d8ac 75%);box-shadow:0 14px 25px #100b0780,inset 0 0 11px #3b211b77}.studio-stage-pizza .studio-plate{background:radial-gradient(circle,#e4b479 0 58%,#b77945 61%,#7a4930 63%,#e3a15f 65%,#eab779 69%,#b97243 72%);box-shadow:0 11px 24px #120d0877,inset 0 0 0 3px #94532991}.studio-stage-bowl .studio-plate{background:radial-gradient(circle,#4c302b 0 53%,#603b32 58%,#865142 60%,#2f201a 65%,#31241c 72%)}.studio-base-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.studio-piece{position:absolute;left:var(--x);top:var(--y);width:clamp(54px,23%,109px);display:grid;justify-items:center;z-index:1;transform:translate(-50%,-50%) rotate(var(--rot));filter:drop-shadow(0 3px 2px #2c1d126a);pointer-events:none}.studio-piece .studio-thumb{width:73%;border-radius:50%}.studio-piece .studio-piece-name{max-width:100%;padding:1px 4px;border-radius:5px;background:#24190fdb;color:#fff5df;font-size:9px;text-align:center;line-height:1.16;overflow-wrap:anywhere;margin-top:-1px;transform:rotate(calc(-1 * var(--rot)))}.studio-stage-pizza .studio-piece .studio-thumb:has(img){width:76%;filter:drop-shadow(0 2px 1px #3c160b66)}.studio-tray{min-width:0;width:min(93%,420px);padding:7px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;border-radius:19px;background:#977d56;border:2px solid #c5ab7f;box-shadow:0 12px 22px #301b0b77,inset 0 0 0 2px #4f3e29b8}.studio-tray[data-layout="3"] .studio-bin:first-child{grid-row:span 2}.studio-tray[data-layout="2"] .studio-bin{min-height:clamp(120px,18vw,210px)}.studio-bin{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:clamp(69px,13vw,125px);background:#5c4934;border:1px solid #e0c599a0;border-radius:11px;color:#fff3db;font-size:10px;font-weight:740;padding:4px;min-width:0}.studio-bin b{line-height:1;font-size:24px;color:#f7d9a1}.studio-bin.is-filled{background:#463927}.studio-bin .studio-foodrow{max-width:100%;flex-direction:column;gap:2px}.studio-bin .studio-foodrow .studio-thumb{width:clamp(34px,7vw,66px)}.studio-bin .studio-foodrow>span:last-child{font-size:10px}.studio-stage-burger{background:radial-gradient(ellipse at center,color-mix(in srgb,var(--accent) 43%,var(--panel)),var(--panel) 76%)}.studio-burger{display:grid;justify-items:center;align-content:end;gap:1px;min-height:100px;width:min(84%,360px);padding:9px 8px 2px;border-bottom:3px solid #d09a6990}.studio-burger .studio-foodrow{display:grid;position:relative;isolation:isolate;align-items:center;justify-items:center;min-height:26px;width:min(100%,240px);border-radius:30% 34% 24% 26%;color:#fff6df}.studio-burger .studio-thumb{width:100%;height:clamp(28px,5.8vw,67px);aspect-ratio:auto;border-radius:30% 34% 24% 26%;filter:drop-shadow(0 4px 3px #1c0f096a)}.studio-burger .studio-thumb img{object-fit:contain}.studio-burger .studio-foodrow span:last-child:not(.studio-thumb){position:absolute;right:-8%;bottom:1px;padding:2px 5px;border-radius:10px;background:#24190fdf;font-size:9px;line-height:1.1;max-width:40%;text-align:center}.studio-burger .studio-thumb i{font-size:11px}.studio-board{width:min(90%,425px);display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:7px;padding:12px 9px;min-height:120px;background:repeating-linear-gradient(170deg,#674a32 0 2px,#785239 4px 13px,#835941 15px 19px);box-shadow:0 11px 23px #220e06a6,inset 0 0 0 2px #f0bd9c7d;border-radius:19px}.studio-course{display:grid;gap:2px;justify-items:center;padding:4px 5px 6px;background:#1e150f72;color:#fff6df;border:1px solid #fff3;border-radius:8px;flex:1;min-width:70px;text-align:center}.studio-course small{font-size:9px;color:#ffe2b4}.studio-foodrow{display:flex;justify-content:center;align-items:center;gap:4px}.studio-foodrow .studio-thumb{width:clamp(24px,4.4vw,55px);flex:none}.studio-foodrow>span:last-child{font-size:11px;line-height:1.14;overflow-wrap:anywhere}
.studio-ghost{pointer-events:none;position:fixed;z-index:15;transform:translate(-50%,-130%);display:flex;align-items:center;gap:4px;max-width:160px;padding:4px 7px;border-radius:10px;background:var(--accent);color:var(--strong);font-size:11px;font-weight:800;box-shadow:0 7px 14px #130d07a8}.studio-ghost .studio-thumb{width:27px;flex:none}
@media (pointer:fine){.studio-option{cursor:grab}.studio-option:active{cursor:grabbing}}
@media(max-width:680px){.studio-stage{min-height:220px;padding-top:33px}.studio-plate{width:min(68%,188px)}.studio-stage-tray{min-height:192px}.studio-instruction{font-size:10px}.studio-mode .cta{min-height:51px;padding:6px 7px}.studio-mode strong{font-size:12px}.studio-options{gap:4px}.studio-option{grid-template-columns:22px minmax(0,1fr) auto;padding:3px 4px;font-size:11px}.studio-piece .studio-piece-name{font-size:8px}.studio-stage-burger .studio-burger{width:min(87%,235px)}.studio-burger .studio-foodrow span:last-child:not(.studio-thumb){right:-5%}.studio-group h4{font-size:12px}}
.studio-order{display:grid;gap:3px}.studio-order-row{display:flex;gap:4px;align-items:center;justify-content:space-between;font-size:11px;padding-inline:5px;background:var(--panel);border:1px solid var(--line);border-radius:7px}.studio-order-row .cta{min-width:42px}
.studio-tools{display:flex;flex-wrap:wrap;justify-content:end;column-gap:7px}.studio-bun{width:min(100%,240px);height:clamp(24px,4.9vw,62px)}.studio-bun img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 3px #261208a0)}.studio-sides{display:flex;flex-wrap:wrap;gap:6px;color:#fcf0da;background:#161009ab;border-radius:10px;padding:4px 7px;max-width:94%;margin:4px auto 0}.studio-sides .studio-thumb{width:30px}.studio-heading .studio-tools button{line-height:1.08}
/* Compact stack that stays visible while the guest adjusts the order. */
.studio-burger .studio-thumb{height:clamp(24px,3.3vw,43px)}
.studio-burger .studio-foodrow{min-height:24px;margin-block:-1px}
.studio-burger .studio-bun img{max-height:68px}
@media(max-width:600px){
 .studio-burger .studio-thumb{height:clamp(21px,7vw,29px)}
 .studio-burger .studio-bun img{max-height:48px}
}

/* Oven artwork is shared by the editor, miniature and dialog. */
.perche-pie[data-pizza-preview]{overflow:hidden;isolation:isolate}
.perche-layer[data-visual-ingredient] i{width:var(--piece,12%)}
.perche-layer.cream[data-visual-ingredient] i,.perche-layer.fior[data-visual-ingredient] i{width:var(--piece,10%)}
.oven-stuffed-rim{position:absolute;z-index:3;inset:8%;border-radius:50%;pointer-events:none;box-shadow:inset 0 0 2px 2px #ffe5b2a0,inset 0 0 8px 3px #8b420950}
.oven-stuffed-rim[data-rim=cheddar]{box-shadow:inset 0 0 3px 2px #fcb246b5,inset 0 0 8px 3px #8b420950}
.oven-stuffed-rim[data-rim=mixed]{box-shadow:inset 0 0 3px 3px #f7ca84ae}
.oven-stuffed-rim[data-rim=cocoa]{box-shadow:inset 0 0 3px 2px #6d352caa}

.oven-food-sprite{display:block;aspect-ratio:1;background-image:url(assets/ingredientes-casa.webp);background-repeat:no-repeat;background-size:400% 400%;background-position:var(--cell-x) var(--cell-y);pointer-events:none}
.studio-thumb>.oven-food-sprite{width:100%;height:100%}
.perche-layer .oven-food-sprite{width:100%;height:100%;filter:drop-shadow(0 1px 1px #3c150b65)}

/* Non-visual choices and unavailable pictures should never become letters on food. */
.studio-option:not(:has(.studio-thumb)){grid-template-columns:minmax(0,1fr) auto;padding-inline-start:9px}
.studio-thumb:empty{display:none}
