.pz-body [data-pb-open][hidden], .pb [hidden] { display: none !important; }
body.pb-open { overflow: hidden; }
.pb { --pb-orange: #ed512c; --pb-ink: #2b2621; --pb-muted: #827a71; width: min(1080px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 28px; background: #fffdf9; color: var(--pb-ink); box-shadow: 0 40px 140px #20170f66; font-family: inherit; }
.pb::backdrop { background: #201b1780; backdrop-filter: blur(8px); }
.pb *, .pb *::before, .pb *::after { box-sizing: border-box; }
.pb button, .pb select { font: inherit; }
.pb button { cursor: pointer; }
.pb button:disabled { cursor: not-allowed; opacity: .5; }
.pb button:focus-visible, .pb select:focus-visible { outline: 3px solid #ed512c; outline-offset: 4px; }
.pb-shell { position: relative; }
.pb-header { padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ece7e0; }
.pb-brand { display: flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: 2.2px; font-weight: 800; }
.pb-brand > span { color: var(--pb-orange); font-size: 23px; }
.pb-close { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid #e9e2d9; border-radius: 50%; background: #fff; color: var(--pb-ink); font-size: 26px !important; line-height: 1; }
.pb-layout { display: grid; grid-template-columns: 1.08fr 1fr; }
.pb-preview { padding: 44px 34px 30px; background: radial-gradient(ellipse at 50% 48%, #f9ead2, #f8f4ed 70%); text-align: center; min-width: 0; }
.pb-eyebrow { color: #ad6947; font-size: 9px; font-weight: 800; letter-spacing: 2px; }
.pb h2 { margin: 11px 0 10px; font-family: Georgia, serif; font-size: clamp(32px, 3.8vw, 48px); font-weight: 500; line-height: 1.07; letter-spacing: -1.5px; color: var(--pb-ink); }
.pb-intro { max-width: 300px; margin: 0 auto; color: var(--pb-muted); font-size: 12px; line-height: 1.7; }
.pb-board { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; max-width: 430px; margin: 12px auto 0; border-radius: 50%; transition: background .2s; }
.pb-orbit { position: absolute; width: 92%; aspect-ratio: 1; border: 1px solid #d8c9b380; border-radius: 50%; }
.pb-orbit--two { width: 100%; border-style: dashed; opacity: .6; }
.pb-pizza { position: relative; width: 88%; aspect-ratio: 1; transform: scale(var(--pizza-scale,1)); transition: transform .4s ease, filter .6s; filter: drop-shadow(0 20px 16px #8b5a2433); }
.pb-base { width: 100%; height: 100%; display: block; }
.pb-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.pb-toppings, .pb-topping-layer { position: absolute; inset: 0; pointer-events: none; }
.pb-piece { position: absolute; width: 11%; aspect-ratio: 1; transform: translate(-50%,-50%) rotate(var(--turn)); animation: pb-sprinkle .3s ease both; filter: drop-shadow(1px 3px 2px #45311d33); }
.pb-piece svg { width: 100%; height: 100%; }
.pb-piece img, .pb-ingredient-art img, .pb-drag-ghost img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.pb-ingredient-initial { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 12px; background: #f0eae1; color: #706458; font-size: 20px; font-weight: 600; }
.pb-size-badge { position: absolute; right: 5%; bottom: 8%; min-width: 56px; padding: 9px 12px; border: 1px solid #e7dfd2; border-radius: 99px; background: #fffdf8; color: #72583c; font-size: 11px; font-weight: 800; }
.pb-size-badge:empty { display: none; }
.pb-caption { margin: 12px 0; color: #9c9081; font-size: 10px; }
.pb-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pb-chip { padding: 6px 10px; border: 1px solid #e3d8c8; border-radius: 99px; background: #fff8ec; color: #79563c; font-size: 10px !important; }
.pb-controls { min-width: 0; padding: 26px 32px 30px; background: #fffdf9; }
.pb-step-heading { display: flex; align-items: center; gap: 10px; margin: 0 0 11px; }
.pb-step-heading > span { font-size: 10px; font-weight: 800; color: var(--pb-orange); letter-spacing: 1px; }
.pb-step-heading h3 { margin: 0; font-size: 14px; font-weight: 800; color: var(--pb-ink); }
.pb-select { width: 100%; min-height: 45px; padding: 10px 14px; border: 1px solid #e6dfd5; border-radius: 12px; background: #fff; color: var(--pb-ink); font-size: 13px !important; }
.pb-description { margin: 8px 0 18px; color: var(--pb-muted); font-size: 11px; line-height: 1.65; }
.pb-description:empty { margin-bottom: 20px; }
.pb-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pb-size { flex: 1; min-width: 80px; min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 9px 12px; border: 1px solid #e6dfd5; border-radius: 13px; background: #fff; color: var(--pb-ink); }
.pb-size strong { font-size: 12px; }
.pb-size small { color: var(--pb-muted); font-size: 10px; }
.pb-size[aria-pressed="true"] { border-color: var(--pb-orange); background: #fff0e8; box-shadow: 0 0 0 1px var(--pb-orange); }
.pb-size[aria-pressed="true"] strong, .pb-size[aria-pressed="true"] small { color: #c34727; }
.pb-reset { margin-inline-start: auto; border: 0; padding: 4px 0; background: transparent; color: var(--pb-muted); font-size: 10px !important; text-decoration: underline; }
.pb-hint { margin: -3px 0 14px; color: var(--pb-muted); font-size: 11px; line-height: 1.6; }
.pb-ingredients { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px 7px; }
.pb-ingredient { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0 1px; border: 0; background: transparent; color: var(--pb-ink); touch-action: none; user-select: none; -webkit-user-select: none; }
.pb-ingredient-art { position: relative; width: 57px; height: 57px; display: grid; place-items: center; border: 1px solid #e9dfd1; border-radius: 50%; background: #f4ecdf; transition: background .2s, box-shadow .2s, transform .2s; }
.pb-ingredient-art svg { width: 36px; height: 36px; filter: drop-shadow(1px 2px 1px #60432522); }
.pb-ingredient[aria-pressed="true"] .pb-ingredient-art { background: #ffead8; box-shadow: 0 0 0 2px var(--pb-orange); }
.pb-ingredient[aria-pressed="true"] .pb-ingredient-art::after { content: '✓'; position: absolute; right: -3px; top: -3px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--pb-orange); color: #fff; font-size: 10px; }
.pb-ingredient strong { max-width: 100%; overflow-wrap: anywhere; font-size: 10px; line-height: 1.35; font-weight: 700; }
.pb-ingredient small { color: var(--pb-muted); font-size: 9px; }
.pb-ingredient:hover .pb-ingredient-art { transform: translateY(-2px); }
.pb-status { margin: 15px 0 0; color: var(--pb-muted); font-size: 12px; line-height: 1.6; }
.pb-status:empty { margin: 0; }
.pb-status.is-error { color: #b93025; }
.pb-retry { border: 1px solid var(--pb-orange); background: #fff; padding: 8px 15px; border-radius: 10px; color: #c34727; margin-top: 10px; }
.pb-order { margin-top: 23px; padding-top: 18px; border-top: 1px solid #ece5db; }
.pb-order-line { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 13px; color: var(--pb-muted); font-size: 12px; }
.pb-order-line strong { color: var(--pb-ink); font-size: 25px; letter-spacing: -.8px; }
.pb-submit { width: 100%; min-height: 53px; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 0; border-radius: 14px; background: var(--pb-orange); color: #fff; font-size: 13px !important; font-weight: 800 !important; box-shadow: 0 8px 20px #e95b2833; }
.pb-submit:hover { background: #d64825; }
.pb-order > small { display: block; margin-top: 10px; text-align: center; font-size: 9px; color: #a2998f; }
.pb-drag-ghost { position: fixed; z-index: 9; width: 52px; height: 52px; transform: translate(-50%,-50%); pointer-events: none; filter: drop-shadow(0 8px 6px #201b1740); }
.pb-board.is-drop-target { background: #ed512c15; }
.pb-heat { display: none; position: absolute; bottom: 8%; color: #ff6b2e; font-size: 62px; text-shadow: 0 0 35px #f28d36; }
.pb.is-baking .pb-heat { display: block; animation: pb-heat .6s ease infinite alternate; }
.pb.is-baking .pb-pizza { filter: drop-shadow(0 0 25px #ef822c70) saturate(1.3); }
[dir="rtl"] .pb h2 { font-family: inherit; letter-spacing: 0; }
@keyframes pb-sprinkle { from { opacity: 0; transform: translate(-50%,-100%) scale(1.5) rotate(var(--turn)); } to { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(var(--turn)); } }
@keyframes pb-heat { to { opacity: .35; transform: scale(.85) translateY(-12px); } }
@media (max-width: 760px) {
    .pb { width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
    .pb-shell { height: 100%; display: flex; flex-direction: column; }
    .pb-header { padding: 12px 18px; }
    .pb-layout { display: flex; flex-direction: column; flex: 1; min-height: 0; }
    .pb-preview { flex-shrink: 0; padding: 12px 20px 8px; }
    .pb h2 { margin: 7px 0; font-size: 28px; }
    .pb-intro { display: none; }
    .pb-board { width: min(200px,25dvh); margin-top: 4px; }
    .pb-controls { overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; padding: 18px 20px max(22px,env(safe-area-inset-bottom)); }
    .pb-chips { max-height: 34px; overflow-y: auto; }
    .pb-size-badge { font-size: 10px; padding: 7px 10px; }
    .pb-caption { margin: 8px 0; font-size: 9px; }
    .pb-ingredients { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px 7px; }
    .pb-order { position: sticky; bottom: 0; padding: 14px 0 4px; background: #fffdf9f5; backdrop-filter: blur(8px); z-index: 2; }
}
@media (prefers-reduced-motion: reduce) {
    .pb *, .pb *::before, .pb *::after { animation: none !important; transition: none !important; }
}
