@font-face { font-family: "PZ Inter"; src: url("/assets/fonts/inter-var.woff2") format("woff2"); font-display: swap; font-weight: 100 900; }
@font-face { font-family: "PZ Fraunces"; src: url("/assets/fonts/fraunces-var.woff2") format("woff2"); font-display: swap; font-weight: 100 900; }

/* ---------------------------------------------------------------- tokens
   Contrast measured against the surface each token is used on:
   ink #241b1c   on paper #f4ead7 = 14.09:1 · on card #fffaf0 = 16.17:1
   muted #5c4a42 on paper        =  7.00:1 · on card        =  8.03:1 · on crust #eadcc5 = 6.18:1
   deep  #a4331d on paper        =  5.73:1 · on card        =  6.58:1
   card  #fffaf0 on deep #a4331d =  6.58:1   (primary button)
   ink   #241b1c on gold #f3c95e = 10.67:1
   green #2f6b46 on paper        =  5.31:1
   paper #f4ead7 on oven #241b1c = 14.09:1
   tomato #d94b32 is decorative fill only, never small text on light.        */
:root {
  --pz-ink: #241b1c;
  --pz-muted: #5c4a42;
  --pz-paper: #f4ead7;
  --pz-card: #fffaf0;
  --pz-crust: #eadcc5;
  --pz-line: #ddcbab;
  --pz-tomato: #d94b32;
  --pz-deep: #a4331d;
  --pz-gold: #f3c95e;
  --pz-green: #2f6b46;
  --pz-oven: #241b1c;
  --pz-oven-2: #150f0f;
  --pz-radius: 1.1rem;
  --pz-shadow: 0 2.4rem 5rem rgba(36, 27, 28, .28);
  --pz-display: "PZ Fraunces", Georgia, "Times New Roman", serif;
  --pz-sans: "PZ Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-width: 20rem; min-height: 100svh; margin: 0;
  background: #2b201d; color: var(--pz-ink);
  font-family: var(--pz-sans); font-size: 100%; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

.pz-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pz-i { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pz-i--sm { width: .85rem; height: .85rem; }
.pz-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.pz-skip { position: fixed; z-index: 60; top: .6rem; left: .6rem; min-height: 2.75rem; padding: .8rem 1.1rem; transform: translateY(-160%); border-radius: .7rem; background: var(--pz-ink); color: var(--pz-paper); font-size: .9rem; font-weight: 600; text-decoration: none; }
.pz-skip:focus-visible { transform: none; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--pz-tomato); outline-offset: 2px; border-radius: .5rem;
}
.pz-device :where(a, button, input, select, textarea, [tabindex]):focus-visible { outline-color: var(--pz-deep); }

/* ---------------------------------------------------------------- stage */
.pz-stage { min-height: 100svh; display: grid; grid-template-columns: minmax(21rem, .8fr) minmax(30rem, 1.2fr); }

.pz-pitch {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: clamp(1.5rem, 3.4vw, 3.4rem);
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(217, 75, 50, .34), transparent 62%),
    linear-gradient(170deg, #33241f, #1b1312 72%);
  color: var(--pz-paper);
}
.pz-back { display: inline-flex; gap: .5rem; align-items: center; align-self: flex-start; min-height: 2.75rem; padding: .55rem .9rem .55rem .7rem; border: 1px solid rgba(244, 234, 215, .3); border-radius: 999px; color: var(--pz-paper); font-size: .82rem; font-weight: 600; letter-spacing: .01em; text-decoration: none; }
.pz-back:hover { background: rgba(244, 234, 215, .12); }
.pz-kicker { margin: 0; color: var(--pz-gold); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pz-pitch__copy h1 { max-width: 13ch; margin: 1rem 0 1.1rem; font-family: var(--pz-display); font-size: clamp(2.6rem, 4.6vw, 4.6rem); font-weight: 500; letter-spacing: -.045em; line-height: .95; }
.pz-pitch__copy > p { max-width: 46ch; margin: 0; color: rgba(244, 234, 215, .84); font-size: clamp(.95rem, 1vw, 1.05rem); }
.pz-pitch__copy ul { margin: 1.6rem 0 0; padding: 0; display: grid; gap: .6rem; list-style: none; }
.pz-pitch__copy li { display: flex; gap: .6rem; align-items: center; color: rgba(244, 234, 215, .92); font-size: .92rem; }
.pz-pitch__copy li .pz-i { color: var(--pz-gold); }
.pz-pitch__actions { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.pz-pitch__actions a { display: inline-flex; flex-direction: row-reverse; gap: .5rem; align-items: center; min-height: 2.75rem; padding: .6rem 1.2rem; border-radius: 999px; background: var(--pz-gold); color: #241b1c; font-size: .9rem; font-weight: 700; text-decoration: none; }
.pz-pitch__actions a:hover { background: #f8d878; }
.pz-pitch__actions p { margin: 0; color: rgba(244, 234, 215, .72); font-size: .8rem; }

.pz-device-wrap { min-width: 0; display: grid; place-items: center; padding: clamp(1rem, 2.4vw, 2.5rem); background: radial-gradient(circle at 50% 24%, #f7efe0, #cdbb9c 82%); }

/* ---------------------------------------------------------------- device */
.pz-device {
  position: relative; display: flex; flex-direction: column;
  width: min(100%, 26.5rem); height: min(53rem, calc(100svh - 5rem)); min-height: 40rem;
  overflow: hidden; border: .48rem solid #17100f; border-radius: 3rem;
  background: var(--pz-paper); box-shadow: var(--pz-shadow);
}
.pz-notch { position: absolute; z-index: 5; top: .42rem; left: 50%; width: 5.6rem; height: 1.15rem; transform: translateX(-50%); border-radius: 999px; background: #17100f; }
.pz-clockbar { display: flex; flex: none; gap: .5rem; align-items: flex-end; justify-content: space-between; padding: .55rem 1.15rem .3rem; background: var(--pz-paper); }
.pz-clockbar__time { font-family: var(--pz-display); font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pz-clockbar__tag { color: var(--pz-muted); font-size: .6rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

.pz-appbar { display: flex; flex: none; gap: .45rem; align-items: center; padding: .35rem 1rem .55rem; background: var(--pz-paper); }
.pz-wordmark { display: inline-flex; gap: .38rem; align-items: center; margin-right: auto; color: var(--pz-deep); }
.pz-wordmark__mark { width: 1.35rem; height: 1.35rem; flex: none; }
.pz-wordmark b { font-family: var(--pz-display); font-size: 1.08rem; font-weight: 600; letter-spacing: -.03em; color: var(--pz-ink); }

.pz-stampchip, .pz-storechip { display: inline-flex; gap: .4rem; align-items: center; min-height: 2.75rem; padding: .3rem .6rem; border: 1px solid var(--pz-line); border-radius: 999px; background: var(--pz-card); cursor: pointer; }
.pz-stampchip:hover, .pz-storechip:hover { border-color: var(--pz-deep); }
.pz-stampchip__pie { display: block; width: 1.5rem; height: 1.5rem; flex: none; }
.pz-stampchip__pie svg { display: block; width: 100%; height: 100%; }
.pz-stampchip__text { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.pz-stampchip__text b { font-size: .78rem; font-variant-numeric: tabular-nums; }
.pz-stampchip__text small { color: var(--pz-muted); font-size: .55rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pz-storechip { font-size: .8rem; font-weight: 600; }
.pz-storechip .pz-i { color: var(--pz-deep); }

.pz-demoflag { display: flex; flex: none; gap: .45rem; align-items: center; justify-content: center; margin: 0; padding: .38rem .8rem; background: var(--pz-ink); color: var(--pz-paper); font-size: .66rem; font-weight: 600; letter-spacing: .04em; text-align: center; }
.pz-demoflag::before { content: ""; width: .4rem; height: .4rem; flex: none; border-radius: 999px; background: var(--pz-gold); }

.pz-screen:focus { outline: none; }
.pz-screen { flex: 1; min-height: 0; padding: .95rem .95rem 1.4rem; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.pz-screen::-webkit-scrollbar { display: none; }
.pz-screen > * + * { margin-top: .8rem; }

/* --------------------------------------------------------- bottom chrome */
.pz-orderbar { flex: none; padding: 0 .7rem .35rem; background: var(--pz-paper); }
.pz-orderbar[hidden] { display: none; }
.pz-orderbar__main { display: flex; gap: .65rem; align-items: center; width: 100%; min-height: 3.1rem; padding: .5rem .75rem; border: 0; border-radius: 999px; background: var(--pz-deep); color: var(--pz-card); cursor: pointer; text-align: left; }
.pz-orderbar__main:hover { background: #8d2b17; }
.pz-orderbar__count { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; flex: none; border-radius: 999px; background: var(--pz-gold); color: var(--pz-ink); font-size: .82rem; font-weight: 700; }
.pz-orderbar__copy { display: flex; flex: 1; min-width: 0; flex-direction: column; line-height: 1.2; }
.pz-orderbar__copy b { font-size: .88rem; }
.pz-orderbar__copy small { overflow: hidden; color: rgba(255, 250, 240, .84); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.pz-orderbar__main strong { font-family: var(--pz-display); font-size: 1.05rem; font-variant-numeric: tabular-nums; }

.pz-tabs { display: grid; flex: none; grid-template-columns: repeat(4, 1fr); gap: .2rem; padding: .3rem .4rem .5rem; border-top: 1px solid var(--pz-line); background: var(--pz-card); }
.pz-tabs button { position: relative; display: flex; flex-direction: column; gap: .16rem; align-items: center; justify-content: center; min-height: 3rem; padding: .3rem .2rem; border: 0; border-radius: .8rem; background: none; color: var(--pz-muted); cursor: pointer; font-size: .66rem; font-weight: 600; }
.pz-tabs button .pz-i { width: 1.35rem; height: 1.35rem; }
.pz-tabs button:hover { background: var(--pz-crust); }
.pz-tabs button.is-active { background: var(--pz-ink); color: var(--pz-paper); }
.pz-tabs__dot { position: absolute; top: .28rem; right: 50%; width: .48rem; height: .48rem; margin-right: -1.15rem; border-radius: 999px; background: var(--pz-tomato); }
.pz-tabs__dot[hidden] { display: none; }

/* ---------------------------------------------------------------- blocks */
.pz-head { margin: 0; }
.pz-head small { display: block; color: var(--pz-muted); font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.pz-head h2 { margin: .3rem 0 0; font-family: var(--pz-display); font-size: 1.72rem; font-weight: 500; letter-spacing: -.04em; line-height: 1.02; }
.pz-head p { margin: .45rem 0 0; color: var(--pz-muted); font-size: .84rem; }

.pz-rule { display: flex; gap: .7rem; align-items: baseline; justify-content: space-between; margin-top: 1.3rem !important; padding-bottom: .1rem; border-bottom: 1px solid var(--pz-line); }
.pz-rule h3 { margin: 0; font-family: var(--pz-display); font-size: 1.12rem; font-weight: 600; letter-spacing: -.03em; }
.pz-rule small { color: var(--pz-muted); font-size: .7rem; font-weight: 600; }
.pz-rule button { min-height: 2.75rem; padding: .3rem .6rem; border: 0; border-radius: .55rem; background: none; color: var(--pz-deep); cursor: pointer; font-size: .76rem; font-weight: 700; }
.pz-rule button:hover { background: var(--pz-crust); }

.pz-card { padding: .85rem; border: 1px solid var(--pz-line); border-radius: var(--pz-radius); background: var(--pz-card); }

/* pie drawings */
.pz-pie { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------ oven strip */
.pz-deckstrip { display: block; width: 100%; padding: .8rem; border: 0; border-radius: var(--pz-radius); background: linear-gradient(165deg, #33241f, var(--pz-oven-2)); color: var(--pz-paper); cursor: pointer; text-align: left; }
.pz-deckstrip:hover { background: linear-gradient(165deg, #3d2a24, #1c1413); }
.pz-deckstrip__top { display: flex; gap: .6rem; align-items: flex-start; justify-content: space-between; }
.pz-deckstrip__top small { display: block; color: var(--pz-gold); font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pz-deckstrip__top strong { display: block; margin-top: .2rem; color: var(--pz-gold); font-family: var(--pz-display); font-size: 1.55rem; font-weight: 600; letter-spacing: -.03em; }
.pz-deckstrip__top span { color: rgba(244, 234, 215, .82); font-size: .76rem; }
.pz-deckstrip__load { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; flex: none; border: 2px solid rgba(243, 201, 94, .45); border-radius: 999px; font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pz-bays { display: grid; grid-template-columns: repeat(6, 1fr); gap: .3rem; margin-top: .8rem; }
.pz-bay { position: relative; height: 2.5rem; overflow: hidden; border: 1px solid rgba(243, 201, 94, .28); border-radius: .5rem; background: #100b0b; }
.pz-bay__fill { position: absolute; bottom: 0; left: 0; height: .26rem; background: linear-gradient(90deg, #7c2415, var(--pz-tomato), var(--pz-gold)); }
.pz-bay__pie { position: absolute; inset: .22rem .22rem .5rem; display: grid; place-items: center; }
.pz-bay__pie svg { width: 100%; height: 100%; }
.pz-bay.is-mine { border-color: var(--pz-gold); box-shadow: inset 0 0 0 1px var(--pz-gold); }
.pz-deckstrip__foot { display: flex; gap: .5rem; align-items: center; justify-content: space-between; margin-top: .7rem; color: rgba(244, 234, 215, .8); font-size: .72rem; }
.pz-deckstrip__foot b { color: var(--pz-gold); font-weight: 700; }

/* ----------------------------------------------------------- order track */
.pz-track { padding: .85rem; border: 1px solid var(--pz-line); border-radius: var(--pz-radius); background: var(--pz-card); }
.pz-track__top { display: flex; gap: .7rem; align-items: flex-start; justify-content: space-between; }
.pz-track__top small { display: block; color: var(--pz-muted); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pz-track__top h3 { margin: .2rem 0 0; font-family: var(--pz-display); font-size: 1.3rem; font-weight: 500; letter-spacing: -.03em; }
.pz-track__eta { flex: none; padding: .35rem .6rem; border-radius: .6rem; background: var(--pz-gold); color: var(--pz-ink); font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.pz-stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: .28rem; margin: .85rem 0 .2rem; }
.pz-stage-step { display: flex; flex-direction: column; gap: .3rem; }
.pz-stage-step i { display: block; height: .38rem; border-radius: 999px; background: var(--pz-crust); }
.pz-stage-step span { color: var(--pz-muted); font-size: .58rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2; }
.pz-stage-step.is-done i { background: var(--pz-deep); }
.pz-stage-step.is-done span { color: var(--pz-ink); }
.pz-stage-step.is-now i { background: var(--pz-tomato); }
.pz-stage-step.is-now span { color: var(--pz-deep); font-weight: 800; }
.pz-track__row { display: flex; gap: .5rem; margin-top: .7rem; }
.pz-track__row .pz-btn { flex: 1; }

/* ---------------------------------------------------------------- button */
.pz-btn { display: inline-flex; gap: .45rem; align-items: center; justify-content: center; min-height: 2.75rem; padding: .6rem 1rem; border: 1px solid transparent; border-radius: .8rem; cursor: pointer; font-size: .85rem; font-weight: 700; text-decoration: none; }
.pz-btn--primary { background: var(--pz-deep); color: var(--pz-card); }
.pz-btn--primary:hover { background: #8d2b17; }
.pz-btn--ghost { border-color: var(--pz-line); background: var(--pz-card); color: var(--pz-ink); }
.pz-btn--ghost:hover { border-color: var(--pz-deep); background: var(--pz-crust); }
.pz-btn--gold { background: var(--pz-gold); color: var(--pz-ink); }
.pz-btn--gold:hover { background: #f8d878; }
.pz-btn[disabled] { border-color: var(--pz-line); background: var(--pz-crust); color: var(--pz-muted); cursor: not-allowed; }  /* muted on crust = 6.18:1 */
.pz-btn--full { width: 100%; }
.pz-iconbtn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none; border: 1px solid var(--pz-line); border-radius: .7rem; background: var(--pz-card); cursor: pointer; }
.pz-iconbtn:hover { border-color: var(--pz-deep); background: var(--pz-crust); }

/* ----------------------------------------------------------- quick tiles */
.pz-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.pz-quick button { display: flex; flex-direction: column; gap: .3rem; align-items: center; justify-content: center; min-height: 4.1rem; padding: .5rem .25rem; border: 1px solid var(--pz-line); border-radius: .85rem; background: var(--pz-card); color: var(--pz-ink); cursor: pointer; font-size: .64rem; font-weight: 600; line-height: 1.15; text-align: center; }
.pz-quick button:hover { border-color: var(--pz-deep); background: var(--pz-crust); }
.pz-quick .pz-i { width: 1.3rem; height: 1.3rem; color: var(--pz-deep); }

/* --------------------------------------------------------------- listing */
.pz-list { display: grid; gap: .5rem; }
.pz-item { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: .7rem; align-items: center; width: 100%; padding: .6rem; border: 1px solid var(--pz-line); border-radius: var(--pz-radius); background: var(--pz-card); color: inherit; text-align: left; }
.pz-item__pie { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: .7rem; background: var(--pz-crust); }
.pz-item__body strong { display: block; font-size: .92rem; font-weight: 700; letter-spacing: -.01em; }
.pz-item__body p { margin: .18rem 0 0; color: var(--pz-muted); font-size: .74rem; line-height: 1.32; }
.pz-item__tags { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .35rem; }
.pz-tag { padding: .12rem .42rem; border-radius: 999px; background: var(--pz-crust); color: var(--pz-muted); font-size: .6rem; font-weight: 700; letter-spacing: .04em; }
.pz-tag--hot { background: var(--pz-deep); color: var(--pz-card); }
.pz-tag--gold { background: var(--pz-gold); color: var(--pz-ink); }
.pz-tag--green { background: #dceadf; color: #235536; }
.pz-item__add { display: grid; gap: .3rem; justify-items: end; }
.pz-item__add b { font-family: var(--pz-display); font-size: .95rem; font-variant-numeric: tabular-nums; }
.pz-add { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: .7rem; background: var(--pz-ink); color: var(--pz-paper); cursor: pointer; }
.pz-add:hover { background: var(--pz-deep); }

.pz-filters { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: none; }
.pz-filters::-webkit-scrollbar { display: none; }
.pz-chip { flex: none; min-height: 2.75rem; padding: .4rem .85rem; border: 1px solid var(--pz-line); border-radius: 999px; background: var(--pz-card); color: var(--pz-ink); cursor: pointer; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.pz-chip:hover { border-color: var(--pz-deep); }
.pz-chip[aria-pressed="true"], .pz-chip.is-on { border-color: var(--pz-ink); background: var(--pz-ink); color: var(--pz-paper); }

/* ---------------------------------------------------------------- builder */
.pz-builder__stage { position: sticky; z-index: 3; top: -.95rem; margin: -.95rem -.95rem 0; padding: .9rem .95rem .75rem; background: linear-gradient(180deg, var(--pz-paper) 78%, rgba(244, 234, 215, 0)); }
.pz-builder__pie { display: grid; grid-template-columns: 8.6rem minmax(0, 1fr); gap: .85rem; align-items: center; }
.pz-builder__readout { display: grid; gap: .3rem; }
.pz-builder__readout h2 { margin: 0; font-family: var(--pz-display); font-size: 1.35rem; font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.pz-builder__readout p { margin: 0; color: var(--pz-muted); font-size: .74rem; line-height: 1.35; }
.pz-metrics { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
.pz-metric { padding: .28rem .5rem; border: 1px solid var(--pz-line); border-radius: .5rem; background: var(--pz-card); font-size: .68rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pz-metric b { font-weight: 800; }
.pz-metric--gold { border-color: #d8b153; background: var(--pz-gold); }

.pz-half { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; padding: .28rem; border: 1px solid var(--pz-line); border-radius: .85rem; background: var(--pz-card); }
.pz-half button { min-height: 2.75rem; padding: .5rem .3rem; border: 0; border-radius: .6rem; background: none; color: var(--pz-muted); cursor: pointer; font-size: .76rem; font-weight: 700; }
.pz-half button:hover { background: var(--pz-crust); }
.pz-half button[aria-pressed="true"] { background: var(--pz-ink); color: var(--pz-paper); }

.pz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.pz-opt { display: grid; gap: .12rem; min-height: 3.4rem; padding: .5rem .6rem; border: 1px solid var(--pz-line); border-radius: .8rem; background: var(--pz-card); color: inherit; cursor: pointer; text-align: left; }
.pz-opt:hover { border-color: var(--pz-deep); }
.pz-opt strong { display: flex; gap: .4rem; align-items: baseline; justify-content: space-between; font-size: .82rem; }
.pz-opt strong em { color: var(--pz-deep); font-size: .7rem; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.pz-opt span { color: var(--pz-muted); font-size: .66rem; line-height: 1.25; }
.pz-opt[aria-pressed="true"] { border-color: var(--pz-ink); background: var(--pz-ink); color: var(--pz-paper); box-shadow: inset 0 0 0 1px var(--pz-ink); }
.pz-opt[aria-pressed="true"] span { color: rgba(244, 234, 215, .82); }
.pz-opt[aria-pressed="true"] strong em { color: var(--pz-gold); }

.pz-tops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.pz-top { display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); gap: .5rem; align-items: center; min-height: 3.2rem; padding: .45rem .55rem; border: 1px solid var(--pz-line); border-radius: .8rem; background: var(--pz-card); color: inherit; cursor: pointer; text-align: left; }
.pz-top:hover { border-color: var(--pz-deep); }
.pz-top__glyph { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 999px; background: var(--pz-crust); }
.pz-top__glyph svg { width: 100%; height: 100%; }
.pz-top__body { min-width: 0; }
.pz-top__body b { display: block; overflow: hidden; font-size: .72rem; font-weight: 700; line-height: 1.15; text-overflow: ellipsis; }
.pz-top__body span { display: block; color: var(--pz-muted); font-size: .62rem; font-variant-numeric: tabular-nums; }
.pz-top.is-on { border-color: var(--pz-ink); background: var(--pz-crust); }
.pz-top.is-on .pz-top__body span { color: var(--pz-deep); font-weight: 700; }

.pz-allergen { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }

/* ---------------------------------------------------------------- oven page */
.pz-ovenpanel { padding: .9rem; border-radius: var(--pz-radius); background: linear-gradient(168deg, #35241f, var(--pz-oven-2)); color: var(--pz-paper); }
.pz-ovenpanel h3 { margin: 0; font-family: var(--pz-display); font-size: 1.15rem; font-weight: 500; }
.pz-ovenpanel small { color: var(--pz-gold); font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pz-ovenpanel p { margin: .4rem 0 0; color: rgba(244, 234, 215, .82); font-size: .76rem; }
.pz-decks { display: grid; gap: .5rem; margin-top: .8rem; }
.pz-deck { padding: .55rem; border: 1px solid rgba(243, 201, 94, .26); border-radius: .8rem; background: rgba(0, 0, 0, .28); }
.pz-deck > small { display: block; margin-bottom: .4rem; color: rgba(244, 234, 215, .72); font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pz-deck__bays { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.pz-bigbay { position: relative; display: grid; gap: .25rem; padding: .45rem; overflow: hidden; border: 1px solid rgba(243, 201, 94, .22); border-radius: .6rem; background: #120c0c; }
.pz-bigbay__pie { display: grid; place-items: center; height: 3rem; }
.pz-bigbay__pie svg { width: 3rem; height: 3rem; }
.pz-bigbay b { color: var(--pz-paper); font-size: .62rem; font-weight: 700; line-height: 1.15; }
.pz-bigbay span { color: rgba(244, 234, 215, .74); font-size: .58rem; font-variant-numeric: tabular-nums; }
.pz-bigbay.is-empty { border-style: dashed; }
.pz-bigbay.is-empty .pz-bigbay__pie { color: #a99f92; font-size: .6rem; }  /* 7.02:1 on #120c0c */
.pz-bigbay.is-mine { border-color: var(--pz-gold); background: #2a1512; box-shadow: 0 0 0 1px var(--pz-gold) inset; }
.pz-bigbay__flame { position: absolute; inset: auto 0 0 0; height: .22rem; background: linear-gradient(90deg, var(--pz-tomato), var(--pz-gold)); }

.pz-queue { display: grid; gap: .35rem; }
.pz-queue__row { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr) auto; gap: .55rem; align-items: center; padding: .5rem .6rem; border: 1px solid var(--pz-line); border-radius: .75rem; background: var(--pz-card); }
.pz-queue__row.is-mine { border-color: var(--pz-deep); background: #fdf0e4; box-shadow: inset 0 0 0 1px var(--pz-deep); }
.pz-queue__row span.pz-queue__pos { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 999px; background: var(--pz-crust); font-size: .74rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pz-queue__row.is-mine .pz-queue__pos { background: var(--pz-deep); color: var(--pz-card); }
.pz-queue__row b { display: block; font-size: .8rem; }
.pz-queue__row span { display: block; color: var(--pz-muted); font-size: .68rem; }
.pz-queue__row em { color: var(--pz-muted); font-size: .7rem; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.pz-window { display: grid; gap: .55rem; padding: .9rem; border: 2px solid var(--pz-deep); border-radius: var(--pz-radius); background: var(--pz-card); }
.pz-window__big { display: flex; gap: .8rem; align-items: baseline; justify-content: space-between; }
.pz-window__big strong { font-family: var(--pz-display); font-size: 2.2rem; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.pz-window__big span { color: var(--pz-deep); font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.pz-window ol { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.pz-window li { display: flex; gap: .6rem; justify-content: space-between; padding: .3rem 0; border-bottom: 1px dashed var(--pz-line); color: var(--pz-muted); font-size: .74rem; }
.pz-window li:last-child { border-bottom: 0; }
.pz-window li b { color: var(--pz-ink); font-variant-numeric: tabular-nums; }

.pz-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.pz-mode { display: grid; gap: .25rem; justify-items: center; min-height: 4.3rem; padding: .55rem .3rem; border: 1px solid var(--pz-line); border-radius: .85rem; background: var(--pz-card); color: inherit; cursor: pointer; font-size: .7rem; font-weight: 700; text-align: center; }
.pz-mode small { display: block; color: var(--pz-muted); font-size: .6rem; font-weight: 600; line-height: 1.15; }
.pz-mode:hover { border-color: var(--pz-deep); }
.pz-mode[aria-pressed="true"] { border-color: var(--pz-ink); background: var(--pz-ink); color: var(--pz-paper); }
.pz-mode[aria-pressed="true"] small { color: rgba(244, 234, 215, .8); }
.pz-mode[disabled] { border-style: dashed; background: var(--pz-crust); color: var(--pz-muted); cursor: not-allowed; }
.pz-mode[disabled] small { color: var(--pz-muted); }

/* --------------------------------------------------------------- notices */
.pz-notice { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: .65rem; align-items: center; width: 100%; padding: .7rem; border: 1px solid var(--pz-line); border-radius: var(--pz-radius); background: var(--pz-card); color: inherit; cursor: pointer; text-align: left; }
.pz-notice:hover { border-color: var(--pz-deep); background: var(--pz-crust); }
.pz-notice span.pz-notice__icon, .pz-notice__icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .7rem; background: var(--pz-crust); color: var(--pz-deep); }
.pz-notice strong { display: block; font-size: .84rem; }
.pz-notice span { display: block; color: var(--pz-muted); font-size: .72rem; line-height: 1.3; }
.pz-notice--flat { cursor: default; }
.pz-notice--flat:hover { border-color: var(--pz-line); background: var(--pz-card); }
.pz-notice--warn { border-color: #d8a13c; background: #fdf3dd; }
.pz-notice--warn .pz-notice__icon { background: var(--pz-gold); color: var(--pz-ink); }

.pz-empty { display: grid; gap: .6rem; justify-items: center; padding: 1.3rem 1rem; border: 1px dashed var(--pz-line); border-radius: var(--pz-radius); background: var(--pz-card); text-align: center; }
.pz-empty__pie { width: 5.5rem; }
.pz-empty h3 { margin: 0; font-family: var(--pz-display); font-size: 1.15rem; font-weight: 500; }
.pz-empty p { max-width: 34ch; margin: 0; color: var(--pz-muted); font-size: .78rem; }

/* ---------------------------------------------------------------- order */
.pz-line { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: .65rem; padding: .65rem; border: 1px solid var(--pz-line); border-radius: var(--pz-radius); background: var(--pz-card); }
.pz-line__pie { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: .6rem; background: var(--pz-crust); }
.pz-line__body strong { display: block; font-size: .86rem; }
.pz-line__body p { margin: .15rem 0 0; color: var(--pz-muted); font-size: .7rem; line-height: 1.3; }
.pz-line__foot { display: flex; gap: .5rem; align-items: center; justify-content: space-between; margin-top: .5rem; }
.pz-step { display: flex; gap: .15rem; align-items: center; padding: .1rem; border: 1px solid var(--pz-line); border-radius: 999px; }
.pz-step button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 999px; background: var(--pz-crust); color: var(--pz-ink); cursor: pointer; }
.pz-step button:hover { background: var(--pz-deep); color: var(--pz-card); }
.pz-step b { min-width: 1.4rem; font-size: .82rem; font-variant-numeric: tabular-nums; text-align: center; }
.pz-line__foot > b { font-family: var(--pz-display); font-size: 1rem; font-variant-numeric: tabular-nums; }

.pz-totals { display: grid; gap: .35rem; padding: .85rem; border: 1px solid var(--pz-line); border-radius: var(--pz-radius); background: var(--pz-card); }
.pz-totals div { display: flex; gap: .8rem; justify-content: space-between; color: var(--pz-muted); font-size: .8rem; }
.pz-totals div b { color: var(--pz-ink); font-variant-numeric: tabular-nums; }
.pz-totals div.is-credit b { color: var(--pz-green); }
.pz-totals .pz-totals__grand { margin-top: .35rem; padding-top: .5rem; border-top: 1px solid var(--pz-line); color: var(--pz-ink); font-size: 1rem; font-weight: 700; }
.pz-totals .pz-totals__grand b { font-family: var(--pz-display); font-size: 1.35rem; font-weight: 500; }

/* --------------------------------------------------------------- loyalty */
.pz-loyalty { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .9rem; align-items: center; padding: .9rem; border: 1px solid var(--pz-line); border-radius: var(--pz-radius); background: linear-gradient(150deg, #fffaf0, #f7e9cd); }
.pz-loyalty h3 { margin: 0; font-family: var(--pz-display); font-size: 1.3rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.pz-loyalty p { margin: .3rem 0 .6rem; color: var(--pz-muted); font-size: .76rem; line-height: 1.35; }

.pz-settings { display: grid; gap: .35rem; }
.pz-settings button, .pz-settings label { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: .6rem; align-items: center; width: 100%; min-height: 3.1rem; padding: .55rem .7rem; border: 1px solid var(--pz-line); border-radius: .85rem; background: var(--pz-card); color: inherit; cursor: pointer; font-size: .82rem; font-weight: 600; text-align: left; }
.pz-settings button:hover, .pz-settings label:hover { border-color: var(--pz-deep); background: var(--pz-crust); }
.pz-settings .pz-i { color: var(--pz-deep); }
.pz-settings label span.pz-sub { display: block; color: var(--pz-muted); font-size: .68rem; font-weight: 500; }
.pz-switch { position: relative; width: 2.9rem; height: 1.65rem; flex: none; }
.pz-switch input { position: absolute; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pz-switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--pz-line); transition: background 160ms; }
.pz-switch i::after { content: ""; position: absolute; top: .18rem; left: .18rem; width: 1.29rem; height: 1.29rem; border-radius: 999px; background: var(--pz-card); transition: transform 160ms; }
.pz-switch input:checked + i { background: var(--pz-green); }
.pz-switch input:checked + i::after { transform: translateX(1.25rem); }
.pz-switch input:focus-visible + i { outline: 3px solid var(--pz-deep); outline-offset: 2px; }

.pz-receipt { display: flex; gap: .7rem; align-items: center; justify-content: space-between; padding: .6rem .7rem; border: 1px solid var(--pz-line); border-radius: .8rem; background: var(--pz-card); }
.pz-receipt b { display: block; font-size: .82rem; }
.pz-receipt span { display: block; color: var(--pz-muted); font-size: .7rem; }
.pz-receipt strong { font-family: var(--pz-display); font-size: 1rem; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- dialogs */
.pz-dialog { width: min(calc(100vw - 1.6rem), 25rem); max-width: 25rem; max-height: min(84svh, 44rem); padding: 0; overflow: auto; border: 1px solid var(--pz-line); border-radius: 1.4rem; background: var(--pz-paper); color: var(--pz-ink); box-shadow: var(--pz-shadow); overscroll-behavior: contain; }
.pz-dialog::backdrop { background: rgba(28, 18, 16, .58); backdrop-filter: blur(2px); }
.pz-dialog__head { position: sticky; z-index: 2; top: 0; display: flex; gap: .8rem; align-items: flex-start; justify-content: space-between; padding: 1rem 1rem .7rem; background: var(--pz-paper); }
.pz-dialog__head .pz-kicker { color: var(--pz-deep); }
.pz-dialog__head h2 { margin: .25rem 0 0; font-family: var(--pz-display); font-size: 1.4rem; font-weight: 500; letter-spacing: -.035em; }
.pz-dialog__body { display: grid; gap: .5rem; padding: 0 1rem 1rem; }
.pz-dialog__foot { position: sticky; bottom: 0; padding: .5rem 1rem 1rem; background: var(--pz-paper); }
.pz-dialog__foot .pz-btn { width: 100%; }
.pz-note__copy { margin: 0; color: var(--pz-muted); font-size: .86rem; line-height: 1.5; }

.pz-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; padding: 0 1rem 1rem; }
.pz-form__note { grid-column: 1 / -1; margin: 0 0 .2rem; padding: .6rem .7rem; border-radius: .7rem; background: var(--pz-crust); color: var(--pz-muted); font-size: .74rem; line-height: 1.4; }
.pz-field { display: grid; gap: .28rem; }
.pz-field--wide { grid-column: 1 / -1; }
.pz-field > span { font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.pz-field input, .pz-field select, .pz-field textarea { width: 100%; min-height: 2.75rem; padding: .55rem .7rem; border: 1px solid var(--pz-line); border-radius: .7rem; background: var(--pz-card); font-size: .85rem; }
.pz-field textarea { min-height: 3.6rem; resize: vertical; }
.pz-field--check { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .7rem; border: 1px solid var(--pz-line); border-radius: .7rem; background: var(--pz-card); }
.pz-field--check input { width: 1.35rem; min-height: 1.35rem; height: 1.35rem; margin: .1rem 0 0; flex: none; accent-color: var(--pz-deep); }
.pz-field--check span { font-size: .78rem; font-weight: 500; }

.pz-storeopt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem .7rem; align-items: center; width: 100%; padding: .8rem; border: 1px solid var(--pz-line); border-radius: var(--pz-radius); background: var(--pz-card); color: inherit; cursor: pointer; text-align: left; }
.pz-storeopt:hover { border-color: var(--pz-deep); }
.pz-storeopt[aria-pressed="true"] { border-color: var(--pz-deep); box-shadow: inset 0 0 0 1px var(--pz-deep); }
.pz-storeopt strong { display: block; font-family: var(--pz-display); font-size: 1.1rem; font-weight: 600; }
.pz-storeopt span { display: block; color: var(--pz-muted); font-size: .74rem; line-height: 1.35; }
.pz-storeopt span.pz-storeopt__pills { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .25rem; }
.pz-storeopt span.pz-storeopt__now { display: block; flex: none; padding: .3rem .5rem; border-radius: .5rem; background: var(--pz-crust); font-size: .7rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }

.pz-slotopt { display: flex; gap: .7rem; align-items: center; justify-content: space-between; width: 100%; min-height: 3rem; padding: .6rem .8rem; border: 1px solid var(--pz-line); border-radius: .8rem; background: var(--pz-card); color: inherit; cursor: pointer; text-align: left; }
.pz-slotopt:hover { border-color: var(--pz-deep); }
.pz-slotopt[aria-pressed="true"] { border-color: var(--pz-deep); background: #fdf0e4; box-shadow: inset 0 0 0 1px var(--pz-deep); }
.pz-slotopt b { font-family: var(--pz-display); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.pz-slotopt span { color: var(--pz-muted); font-size: .72rem; }
.pz-slotopt[disabled] { border-style: dashed; background: var(--pz-crust); color: var(--pz-muted); cursor: not-allowed; }
.pz-slotopt[disabled] b { color: var(--pz-muted); }

.pz-toast { position: absolute; z-index: 30; right: .8rem; bottom: 4.6rem; left: .8rem; max-width: none; padding: .65rem 1rem; border-radius: .9rem; background: var(--pz-ink); color: var(--pz-paper); font-size: .82rem; font-weight: 600; box-shadow: var(--pz-shadow); text-align: center; }
.pz-toast[hidden] { display: none; }
.pz-device.has-orderbar .pz-toast { bottom: 8.1rem; }

.pz-fineprint { margin: 1.2rem 0 0; color: var(--pz-muted); font-size: .68rem; line-height: 1.45; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 62rem) {
  .pz-stage { grid-template-columns: 1fr; }
  .pz-pitch { flex-direction: row; gap: 1rem; align-items: center; padding: .9rem 1.1rem; }
  .pz-pitch__copy { display: contents; }
  .pz-pitch__copy .pz-kicker, .pz-pitch__copy > p, .pz-pitch__copy ul { display: none; }
  .pz-pitch__copy h1 { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pz-pitch__actions { margin-left: auto; flex-direction: row; align-items: center; }
  .pz-pitch__actions p { display: none; }
  .pz-device-wrap { padding: 1rem; }
  .pz-device { height: min(53rem, calc(100svh - 7rem)); min-height: 0; }
}
@media (max-width: 34rem) {
  body { background: var(--pz-paper); }
  .pz-pitch { display: none; }
  .pz-device-wrap { min-height: 100svh; padding: 0; background: var(--pz-paper); }
  .pz-device { width: 100%; height: 100svh; min-height: 100svh; border: 0; border-radius: 0; box-shadow: none; }
  .pz-notch { display: none; }
  .pz-clockbar { padding-top: max(.55rem, env(safe-area-inset-top)); }
  .pz-tabs { padding-bottom: max(.5rem, env(safe-area-inset-bottom)); }
  .pz-dialog { width: min(calc(100vw - 1rem), 25rem); max-height: min(88svh, 46rem); }
}
@media (max-width: 22.5rem) {
  .pz-opts, .pz-tops { grid-template-columns: 1fr; }
  .pz-builder__pie { grid-template-columns: 1fr; }
  .pz-quick { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) {
  :root { --pz-muted: #3d2f2a; --pz-line: #9c8768; }
}
