.bake-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin:0 0 32px;border-radius:22px;overflow:hidden;background:var(--cream);border:1px solid var(--hair)}
.stage-pictures{position:relative;min-height:280px}
.stage-photo{position:absolute;inset:0;margin:0}
.stage-photo .bakery-photo{width:100%;height:100%;object-fit:cover}
.stage-details{align-self:center;padding:clamp(20px,3vw,40px);min-width:0}
.stage-controls{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:18px}
.stage-controls button{font:inherit;font-size:.875rem;padding:8px 14px;border-radius:100px;border:1px solid var(--hair);background:transparent;color:var(--ink);cursor:pointer}
.stage-controls button[aria-pressed=true]{background:var(--ink);color:white}
.stage-panel h3{font-size:1.35rem;color:var(--ink)}
.stage-panel dl{margin:12px 0 0}
.stage-panel dl div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--hair)}
.stage-panel dd{margin:0;font-weight:650;text-align:right}
.bake-stage [hidden]{display:none}
@media(prefers-reduced-motion:no-preference){.stage-panel:not([hidden]) dl div{animation:bake-entry .32s ease-out backwards}.stage-panel dl div:nth-child(2){animation-delay:.08s}.stage-panel dl div:nth-child(3){animation-delay:.16s}.stage-photo:not([hidden]){animation:bake-entry .3s ease-out}@keyframes bake-entry{from{opacity:.25;transform:translateY(4px)}to{opacity:1;transform:none}}}
@media(max-width:680px){.bake-stage{grid-template-columns:1fr}.stage-pictures{min-height:0;height:clamp(165px,48vw,250px)}}


.recipe-review { margin:0; padding:24px; background:var(--tint); border-radius:24px; display:grid; justify-items:center; gap:15px; }
.capture-device { position:relative; width:min(100%,393px); aspect-ratio:393/852; border:6px solid #20352e; border-radius:48px; overflow:hidden; background:#f9f6ed; box-shadow:0 10px 24px #23382e22; }
.viewfinder,.review-screen { position:absolute; inset:0; }
.viewfinder { display:grid; place-items:center; background:linear-gradient(145deg,#635340,#947759 55%,#735d47); }
.capture-photo { position:absolute; width:100%; height:100%; object-fit:cover; }
.viewfinder::before { content:""; position:absolute; z-index:1; inset:25% 4% 20%; border:1px solid #fff9; border-radius:8px; }
.scan-track { position:absolute; inset:26% 4% 20%; pointer-events:none; }
.shutter { position:absolute; bottom:4%; width:42px; height:42px; border:3px solid #fff; border-radius:50%; background:#fff; box-shadow:inset 0 0 0 3px #49443e; }

.recipe-review:not([data-phase=result]) .review-screen,.recipe-review[data-phase=result] .viewfinder { visibility:hidden; }
.recipe-review figcaption { text-align:center; color:var(--ink); }
.scan-status { display:block; font-weight:650; }
.scan-replay { margin-top:6px; color:var(--ink); background:none; border:0; padding:5px; text-decoration:underline; cursor:pointer; font:inherit; }
@media(prefers-reduced-motion:no-preference) {
  [data-phase=capture] .shutter { animation:press-shutter .35s .95s both; }
  [data-phase=capture] .viewfinder::after { content:""; position:absolute; inset:0; background:white; opacity:0; animation:camera-exposure .3s 1.1s; }
  [data-phase=scan] .shutter { visibility:hidden; }
  [data-phase=scan] .scan-track::after { content:""; position:absolute; inset:8% 0 auto; height:3px; background:#667c36; box-shadow:0 -8px 14px #8baf4380; animation:read-recipe 1.45s ease-in-out forwards; }
  @keyframes press-shutter { 50% {transform:scale(.82)} }
  @keyframes camera-exposure { 30% {opacity:.8} }
  @keyframes read-recipe { to {top:94%} }
}

@media(prefers-reduced-motion:no-preference){[data-phase=capture] .capture-photo{animation:settle-focus 1s ease-out both}@keyframes settle-focus{from{filter:blur(2px);transform:scale(1.025)}to{filter:blur(0);transform:scale(1)}}}

.recipe-review { padding:12px 0; background:transparent; width:100%; min-width:0; }
.capture-device::after { content:""; position:absolute; top:12px; left:50%; transform:translateX(-50%); width:25%; height:21px; border-radius:18px; background:#17201b; pointer-events:none; }
.capture-photo { object-fit:contain; background:#1e211c; }
.viewfinder { background:#1e211c; }
.review-screen { padding:56px clamp(16px,4vw,26px) 20px; overflow:auto; color:var(--ink); text-align:left; }
.app-review-brand { display:flex; align-items:center; gap:8px; font-size:17px; font-weight:650; }
.review-screen h3 { font-size:36px; line-height:1.1; margin:24px 0 8px; }
.review-intro { font-size:16px; margin:0 0 20px; }
.ingredient-review { padding:18px; border:1px solid #cebc8b; border-radius:16px; background:#fffdf8; }
.ingredient-review small,.read-items dt { font-size:14px; color:#615a47; }
.ingredient-review p { display:flex; justify-content:space-between; margin:5px 0 12px; font-size:20px; }
.ingredient-review .card-writing { font:28px Caveat,cursive; }
.ingredient-review hr { border:0; border-top:1px solid var(--hair); margin:14px 0; }
.confirm-match { width:100%; border:0; padding:12px; border-radius:10px; background:var(--ink); color:white; font-weight:600; font-family:inherit; font-size:16px; cursor:pointer; }
.read-items dd { display:flex; justify-content:space-between; margin:0; padding:9px 0; border-bottom:1px solid var(--hair); }
@media(max-width:480px){#recipes .wrap{padding-inline:8px}#recipes .txt{padding-inline:12px}}
.cookie-items { margin:18px 0; padding:0 16px; list-style:none; background:#fffdf8; border:1px solid var(--hair); border-radius:16px; }
.cookie-items li { display:flex; justify-content:space-between; gap:8px; padding:11px 0; line-height:1.4; }
.cookie-items li + li { border-top:1px solid var(--hair); }
