/* Open Kitchen. Tokens are rewritten per kitchen by app.js. */
@font-face { font-family: 'Bagel Fat One'; src: url(../fonts/bagel-fat-one.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Familjen Grotesk'; src: url(../fonts/familjen-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Familjen Grotesk'; src: url(../fonts/familjen-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Big Shoulders Display'; src: url(../fonts/big-shoulders-900.woff2) format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url(../fonts/schibsted-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url(../fonts/schibsted-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Caprasimo'; src: url(../fonts/caprasimo.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Figtree'; src: url(../fonts/figtree-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url(../fonts/figtree-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Bungee'; src: url(../fonts/bungee.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Onest'; src: url(../fonts/onest-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Onest'; src: url(../fonts/onest-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Martian Mono'; src: url(../fonts/martian-mono-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Martian Mono'; src: url(../fonts/martian-mono-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #F2E8D8; --surface: #E8DAC3; --ink: #231815; --ink2: #5E4A3E; --line: #CDB9A0;
  --accent: #C8321C; --on-accent: #FFF6EC; --board: #1C1613; --board-ink: #F7D774;
  --f-display: 'Bagel Fat One', 'Arial Black', sans-serif; --f-body: 'Familjen Grotesk', system-ui, sans-serif;
  --f-mono: 'Martian Mono', ui-monospace, monospace;
  --d-case: none; --d-lh: 0.9; --d-track: -0.01em; --d-weight: 400; --d-scale: 1;
  --paper: #FBF8F1; --paper-ink: #1F1B17;
  --cream: #FFF8F0;
  --gutter: clamp(16px, 4vw, 64px);
  --dock-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f-body); overflow-x: hidden; overflow-x: clip; padding-bottom: calc(var(--dock-h) + 24px); }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; z-index: 200; background: var(--ink); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; }

.display { font-family: var(--f-display); font-weight: var(--d-weight); text-transform: var(--d-case); line-height: var(--d-lh); letter-spacing: var(--d-track); }
.kicker { font: 700 14px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.linkish { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 700; font-size: 14px; }

[data-photo="warm"] img, [data-photo="warm"] video { filter: sepia(.28) saturate(1.25) contrast(1.04); }
[data-photo="mono"] img, [data-photo="mono"] video { filter: grayscale(1) contrast(1.12); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; border: 2px solid currentColor; background: none; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-fire { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-fire:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-ghost { color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: #1a1512; border-color: var(--cream); }
.btn-line { color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.x { width: 44px; height: 44px; border: 2px solid currentColor; background: none; font-size: 24px; line-height: 1; cursor: pointer; flex: none; }

/* ============ Opening ============ */
.open { position: relative; min-height: max(620px, 100svh); color: var(--cream); display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: #120e0c; }
.open-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.open-veil { position: absolute; inset: 0; background: rgba(14, 10, 8, 0.46); }
.open-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; padding: 18px var(--gutter); flex-wrap: wrap; }
.status { font: 700 14px/1.3 var(--f-mono); display: flex; align-items: center; gap: 10px; }
.status-dot { width: 10px; height: 10px; background: #7CE38B; flex: none; }
.status-dot.closed { background: #F1A7A0; }
.concept { font-size: 14px; opacity: .92; margin-left: auto; }
.concept a { color: inherit; }
.swap-btn { border: 2px solid var(--cream); background: rgba(14, 10, 8, .5); color: var(--cream); font: 700 14px/1 var(--f-mono); padding: 12px 14px; cursor: pointer; min-height: 44px; }
.swap-btn:hover { background: var(--cream); color: #1a1512; }
.open-body { position: relative; z-index: 2; align-self: end; padding: 0 var(--gutter) clamp(96px, 12vh, 140px); max-width: 1100px; }
.open-kicker { font: 700 14px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.open-name { font-size: calc(clamp(64px, 12.5vw, 210px) * var(--d-scale)); margin-bottom: 18px; overflow-wrap: anywhere; }
.open-tag { font-size: clamp(19px, 2vw, 26px); max-width: 30ch; margin-bottom: 28px; line-height: 1.35; }
.open-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.open-eta { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(96px, 12vh, 140px); display: flex; align-items: end; gap: 12px; text-align: left; }
.eta-num { font: 700 clamp(56px, 7vw, 96px)/.8 var(--f-mono); letter-spacing: -.04em; }
.eta-lbl { font: 700 14px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; }

/* ============ Right now board ============ */
.now { background: var(--board); color: var(--board-ink); padding: clamp(40px, 7vw, 88px) var(--gutter); }
.now-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 2px solid currentColor; padding-bottom: 14px; margin-bottom: 18px; }
.now-title { font: 700 clamp(22px, 3vw, 34px)/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.now-clock { font: 700 clamp(22px, 3vw, 34px)/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.flap { display: grid; gap: 10px; }
.flap-row { display: grid; grid-template-columns: 9ch 1fr 7ch 12ch; gap: 18px; align-items: center; font: 700 clamp(14px, 1.45vw, 20px)/1 var(--f-mono); }
.flap-row .cells { display: flex; flex-wrap: wrap; gap: 2px; }
.cell { display: inline-block; min-width: 1.05em; padding: .32em .08em; text-align: center; background: rgba(255, 255, 255, .07); border-top: 1px solid rgba(255, 255, 255, .06); }
.cell.sp { background: transparent; border-color: transparent; }
.cell.flip { animation: flip .38s ease-in both; }
@keyframes flip { 0% { transform: rotateX(90deg); opacity: .2; } 60% { transform: rotateX(-12deg); opacity: 1; } 100% { transform: rotateX(0); } }
.flap-status { font: 700 14px/1.2 var(--f-mono); text-transform: uppercase; padding: 8px 10px; border: 2px solid currentColor; text-align: center; }
.flap-row.is-on .flap-status { background: var(--board-ink); color: var(--board); border-color: var(--board-ink); }
.flap-row.is-off { opacity: .55; }
.flap-row.is-out .cells { text-decoration: line-through; }
.now-note { margin-top: 20px; font-size: 15px; opacity: .85; }

/* ============ Menu board ============ */
.menu { position: relative; }
.menu-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr; background: var(--bg); }
.menu-bar { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 32px; padding: 20px var(--gutter) 0; }
.menu-title { font: 700 14px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.menu-rail { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.menu-rail button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 0; cursor: pointer; font-weight: 700; font-size: 16px; color: var(--ink2); min-height: 44px; }
.menu-rail button[aria-current="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.menu-progress { grid-column: 1 / -1; height: 3px; background: var(--line); }
.menu-progress span { display: block; height: 100%; width: 0; background: var(--ink); }
.menu-track { display: flex; height: 100%; will-change: transform; }
.panel { flex: 0 0 100vw; height: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); padding: clamp(20px, 3vh, 40px) var(--gutter) calc(var(--dock-h) + 40px); align-items: stretch; }
.panel-lead { display: grid; grid-template-rows: auto 1fr; gap: 16px; min-height: 0; }
.panel-name { font-size: calc(clamp(48px, 6.4vw, 108px) * var(--d-scale)); }
.panel-blurb { font-size: 16px; color: var(--ink2); margin-top: 10px; max-width: 34ch; }
.panel-photo { min-height: 0; overflow: hidden; background: var(--surface); }
.panel-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.panel.is-in .panel-photo img { transform: scale(1.06); }
.items { display: grid; align-content: center; gap: 0; border-top: 2px solid var(--ink); overflow-y: auto; }
.item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item-thumb { width: 96px; height: 96px; overflow: hidden; background: var(--surface); border: 0; padding: 0; cursor: pointer; }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.item-thumb:hover img { transform: scale(1.08); }
.item h3 { font-size: 19px; font-weight: 700; line-height: 1.25; }
.item h3 .tag { font: 700 14px/1 var(--f-mono); color: var(--on-accent); background: var(--accent); padding: 3px 6px; margin-left: 8px; white-space: nowrap; vertical-align: 2px; }
.item p { font-size: 15px; color: var(--ink2); line-height: 1.45; }
.item-buy { display: flex; align-items: center; gap: 14px; }
.price { font: 700 17px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.plus { width: 48px; height: 48px; border: 2px solid var(--ink); background: none; font-size: 24px; line-height: 1; cursor: pointer; }
.plus:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* List mode: the menu stops sliding and stacks */
[data-menu="list"] .menu-stage { position: static; height: auto; overflow: visible; }
[data-menu="list"] .menu-track { display: block; transform: none !important; height: auto; }
[data-menu="list"] .panel { height: auto; padding-bottom: 48px; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
[data-menu="list"] .panel-photo { aspect-ratio: 4 / 3; }
[data-menu="list"] .menu-bar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding-bottom: 0; }
[data-menu="list"] .menu-progress { display: none; }
[data-menu="list"] .items { overflow: visible; }

/* ============ In the kitchen ============ */
.kitchen { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); padding: clamp(64px, 10vw, 140px) var(--gutter); align-items: center; background: var(--surface); }
.reel { aspect-ratio: 9 / 16; max-height: 82svh; overflow: hidden; background: #120e0c; justify-self: start; width: 100%; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.kitchen-text { display: grid; gap: 22px; }
.kitchen-quote { font-size: calc(clamp(32px, 4.2vw, 64px) * var(--d-scale)); line-height: 1.02; text-wrap: balance; }
.kitchen-by { font: 700 14px/1.2 var(--f-mono); text-transform: uppercase; color: var(--ink2); }
.kitchen-story { font-size: 18px; max-width: 52ch; color: var(--ink2); }
.kitchen-room { width: min(420px, 100%); aspect-ratio: 3 / 2; overflow: hidden; }
.kitchen-room img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Reserve ============ */
.reserve { padding: clamp(64px, 10vw, 140px) var(--gutter); }
.reserve-head { display: grid; gap: 14px; max-width: 900px; margin-bottom: 40px; }
.reserve-title { font-size: calc(clamp(40px, 5.6vw, 88px) * var(--d-scale)); }
.reserve-lede { font-size: 18px; color: var(--ink2); max-width: 54ch; }
.reserve-grid { display: grid; grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.reserve-controls { display: grid; gap: 26px; }
.ctl-lbl { font: 700 14px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); margin-bottom: 10px; }
.stepper { display: inline-grid; grid-template-columns: 52px 72px 52px; border: 2px solid var(--ink); }
.stepper button { height: 52px; background: none; border: 0; font-size: 24px; cursor: pointer; }
.stepper button:hover { background: var(--ink); color: var(--bg); }
.stepper output { display: grid; place-items: center; font: 700 22px/1 var(--f-mono); border-inline: 2px solid var(--ink); }
.stepper.small { grid-template-columns: 44px 52px 44px; }
.stepper.small button { height: 48px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 8px 12px; border: 2px solid var(--line); background: none; cursor: pointer; font: 700 14px/1.15 var(--f-mono); text-align: center; }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips button:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.chips button small { display: block; font-weight: 400; font-size: 14px; }
.pick-card { border: 2px solid var(--ink); padding: 18px; display: grid; gap: 12px; }
.pick-card h3 { font-size: 20px; }
.pick-card p { font-size: 15px; color: var(--ink2); }
.pick-card .form { display: grid; gap: 10px; }
.fld { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fld > span, .fld legend { font: 700 14px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink2); padding: 0; margin-bottom: 6px; }
.fld input[type="text"], .fld input[type="tel"], .note input { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--ink); background: var(--bg); font-size: 16px; }
.err { font-size: 14px; font-weight: 700; color: var(--ink); }
.err::before { content: "! "; color: var(--accent); }
.plan-wrap { border: 2px solid var(--ink); background: var(--surface); padding: 12px; }
.plan { width: 100%; height: auto; }
.plan .wall { fill: none; stroke: var(--ink); stroke-width: 4; }
.plan .zone { font: 700 14px var(--f-mono); fill: var(--ink2); text-transform: uppercase; letter-spacing: .06em; }
.plan .fixture { fill: var(--line); }
.plan .fixture-lbl { font: 700 14px var(--f-mono); fill: var(--ink); }
.plan .tbl { cursor: pointer; }
.plan .tbl .shape { fill: var(--bg); stroke: var(--ink); stroke-width: 2.5; transition: fill .15s; }
.plan .tbl text { font: 700 14px var(--f-mono); fill: var(--ink); pointer-events: none; }
.plan .tbl.free:hover .shape, .plan .tbl.free:focus .shape { fill: var(--line); }
.plan .tbl.sel .shape { fill: var(--accent); stroke: var(--accent); }
.plan .tbl.sel text { fill: var(--on-accent); }
.plan .tbl.taken { cursor: not-allowed; }
.plan .tbl.taken .shape { fill: url(#hatch); }
.plan .tbl.size { cursor: not-allowed; opacity: .32; }
.plan .tbl:focus { outline: none; }
.plan .tbl:focus-visible .shape { stroke: var(--accent); stroke-width: 5; }
.plan-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 700 14px/1 var(--f-mono); padding-top: 12px; color: var(--ink2); }
.k { width: 16px; height: 16px; border: 2px solid var(--ink); display: inline-block; vertical-align: -3px; margin-right: 4px; }
.k-free { background: var(--bg); }
.k-sel { background: var(--accent); border-color: var(--accent); }
.k-taken { background: var(--ink2); }
.k-size { opacity: .35; }

/* ============ Receipt footer ============ */
.receipt-foot { padding: clamp(64px, 9vw, 120px) var(--gutter) 40px; background: var(--ink); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.paper { width: min(440px, 100%); min-width: 0; color: var(--paper-ink); }
.tear { width: 100%; height: 12px; fill: var(--paper); }
.paper-body { background: var(--paper); padding: 20px 26px 26px; font: 400 14px/1.6 var(--f-mono); }
.paper-name { font: 700 22px/1.2 var(--f-mono); text-align: center; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.paper-center { text-align: center; }
.paper-center a, .paper-line a, .paper-small a { color: inherit; }
.paper-rule { overflow: hidden; white-space: nowrap; margin: 10px 0; }
.paper-hours { width: 100%; border-collapse: collapse; }
.paper-hours caption { text-align: left; font-weight: 700; text-transform: uppercase; }
.paper-hours td { padding: 1px 0; }
.paper-hours td:last-child { text-align: right; }
.paper-hours tr.today td { font-weight: 700; }
.paper-hours tr.today td:first-child::before { content: "> "; }
.paper-line, .paper-total { display: flex; justify-content: space-between; gap: 12px; }
.paper-total { font-weight: 700; font-size: 17px; }
.barcode { width: 220px; height: 44px; margin: 16px auto; fill: var(--paper-ink); }
.paper-small { font-size: 14px; line-height: 1.5; }

/* ============ Dock ============ */
.dock { position: fixed; z-index: 50; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: stretch; background: var(--ink); color: var(--bg); border: 2px solid var(--ink); height: var(--dock-h); max-width: calc(100vw - 24px); }
.dock a, .dock button { display: flex; align-items: center; padding: 0 18px; text-decoration: none; font-weight: 700; font-size: 15px; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.dock-brand { font-family: var(--f-display) !important; font-weight: var(--d-weight) !important; text-transform: var(--d-case); font-size: calc(20px * var(--d-scale)) !important; border-right: 1px solid rgba(255, 255, 255, .18) !important; }
[data-dark="0"] .dock-brand { border-right-color: rgba(0, 0, 0, .18) !important; }
.dock-link:hover { background: rgba(127, 127, 127, .22); }
.dock-order { background: var(--accent) !important; color: var(--on-accent); gap: 10px; }
.dock-count { font: 700 15px/1 var(--f-mono); min-width: 28px; height: 28px; display: grid; place-items: center; background: var(--on-accent); color: var(--accent); }
.dock-total { font: 700 15px/1 var(--f-mono); }
.dock.bump .dock-count { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.35); } }
[data-dock="top"] .dock { top: 12px; bottom: auto; }
[data-dock="top"] .open-top { padding-top: calc(var(--dock-h) + 28px); }
[data-dock="top"] body, body[data-dock="top"] { padding-bottom: 24px; }

/* ============ Sheet ============ */
dialog { padding: 0; border: 0; color: var(--ink); background: var(--bg); }
dialog::backdrop { background: rgba(12, 9, 7, .7); }
.sheet { width: min(920px, 96vw); max-height: 92svh; }
.sheet-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: 1fr auto; max-height: 92svh; }
.sheet-photo { grid-row: 1 / 3; overflow: hidden; background: var(--surface); }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet-body { position: relative; padding: 28px; overflow-y: auto; display: grid; gap: 18px; align-content: start; }
.sheet-body .x { position: absolute; right: 16px; top: 16px; }
.sheet-name { font-size: calc(clamp(32px, 4vw, 52px) * var(--d-scale)); padding-right: 56px; }
.sheet-desc { color: var(--ink2); }
.optgroup { border: 0; padding: 0; margin: 0; }
.optgroup legend { font: 700 14px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; padding: 0; }
.opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 2px solid var(--line); margin-bottom: 6px; cursor: pointer; min-height: 48px; }
.opt:has(input:checked) { border-color: var(--ink); background: var(--surface); }
.opt input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin: 0; }
.opt span { flex: 1; font-size: 16px; }
.opt b { font: 700 14px/1 var(--f-mono); }
.note { display: grid; gap: 6px; font: 700 14px/1.2 var(--f-mono); color: var(--ink2); }
.sheet-foot { display: flex; gap: 12px; padding: 16px 28px; border-top: 2px solid var(--ink); align-items: center; }
.sheet-add { flex: 1; }

/* ============ Cart ticket ============ */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(12, 9, 7, .6); }
.cart { position: fixed; z-index: 70; top: 0; right: clamp(0px, 3vw, 40px); width: min(440px, 100vw); max-height: 100svh; display: flex; flex-direction: column; }
.cart-paper { background: var(--paper); color: var(--paper-ink); font: 400 14px/1.55 var(--f-mono); display: flex; flex-direction: column; max-height: calc(100svh - 24px); border: 2px solid var(--paper-ink); border-top: 0; animation: print .55s steps(14) both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 2px dashed var(--paper-ink); }
.cart-head h2 { font: 700 18px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.cart-body { overflow-y: auto; padding: 16px 20px 22px; display: grid; gap: 14px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding-bottom: 12px; border-bottom: 1px dashed rgba(31, 27, 23, .35); }
.cart-line b { font-size: 15px; }
.cart-line small { grid-column: 1 / -1; color: #534A42; font-size: 14px; }
.cart-line .ctl-row { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.cart-line .ctl-row button { min-width: 36px; height: 36px; border: 2px solid var(--paper-ink); background: none; cursor: pointer; font: 700 14px var(--f-mono); padding: 0 8px; }
.sum { display: grid; gap: 4px; }
.sum p { display: flex; justify-content: space-between; }
.sum .grand { font-weight: 700; font-size: 17px; border-top: 2px solid var(--paper-ink); padding-top: 8px; margin-top: 4px; }
.when { display: grid; gap: 8px; }
.when .chips button { border-color: rgba(31, 27, 23, .3); color: var(--paper-ink); }
.when .chips button[aria-pressed="true"] { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.cart .fld > span { color: #534A42; }
.cart .fld input { background: #FFFDF8; border-color: var(--paper-ink); color: var(--paper-ink); }
.cart .btn-fire:hover { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.empty { padding: 18px 0; }
.track { display: grid; gap: 14px; }
.track-num { font: 700 44px/1 var(--f-mono); letter-spacing: -.02em; }
.stages { display: grid; gap: 8px; }
.stage { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; opacity: .45; }
.stage i { width: 18px; height: 18px; border: 2px solid var(--paper-ink); }
.stage.done, .stage.now { opacity: 1; }
.stage.done i { background: var(--paper-ink); }
.stage.now i { background: var(--accent); border-color: var(--accent); }
.bar { height: 10px; border: 2px solid var(--paper-ink); }
.bar span { display: block; height: 100%; width: 0; background: var(--paper-ink); transition: width .8s linear; }
.demo-note { font-size: 14px; border-left: 4px solid var(--accent); padding-left: 10px; }

/* ============ Studio ============ */
.studio { position: fixed; z-index: 80; left: 0; right: 0; top: 0; max-height: 92svh; overflow-y: auto; background: var(--bg); color: var(--ink); border-bottom: 3px solid var(--ink); padding: 22px var(--gutter) 24px; display: grid; gap: 22px; animation: drop .35s ease both; }
@keyframes drop { from { transform: translateY(-24px); opacity: 0; } }
.studio-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.studio-h { font: 700 clamp(24px, 3vw, 36px)/1.1 var(--f-body); margin-top: 6px; }
.studio-kitchens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kcard { display: grid; gap: 0; border: 3px solid var(--line); background: none; padding: 0; cursor: pointer; text-align: left; overflow: hidden; }
.kcard[aria-pressed="true"] { border-color: var(--accent); }
.kcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.kcard span { padding: 10px 12px 12px; display: grid; gap: 2px; }
.kcard b { font-size: 18px; }
.kcard small { font-size: 14px; color: var(--ink2); }
.studio-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; align-items: start; }
.inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.inline input[type="color"] { width: 52px; height: 44px; border: 2px solid var(--ink); background: none; padding: 2px; cursor: pointer; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 2px solid var(--ink); }
.seg button { min-height: 44px; background: none; border: 0; border-right: 2px solid var(--ink); cursor: pointer; font-weight: 700; font-size: 15px; padding: 6px 8px; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.studio-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.studio-note { font-size: 15px; color: var(--ink2); }

.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--dock-h) + 30px); transform: translate(-50%, 12px); background: var(--ink); color: var(--bg); padding: 12px 18px; font-weight: 700; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); border: 2px solid var(--bg); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .cell.flip, .cart-paper, .studio { animation: none; }
  .panel-photo img, .item-thumb img { transition: none; }
}

/* ============ Tablet ============ */
@media (max-width: 1080px) {
  .studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-kitchens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reserve-grid { grid-template-columns: 1fr; }
  .concept { display: none; }
  .swap-btn { margin-left: auto; }
}

/* ============ Phone: the board becomes a swipeable strip ============ */
@media (max-width: 820px) {
  :root { --dock-h: 60px; }
  body { font-size: 16px; }
  .open-body { padding-bottom: 150px; }
  .open-eta { left: var(--gutter); right: auto; bottom: 88px; }
  .eta-num { font-size: 48px; }
  .open-top { gap: 10px; }
  .status { font-size: 14px; }
  .flap-row { grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 14px; }
  .flap-row .flap-time { grid-column: 1; }
  .flap-row .cells { grid-column: 1 / -1; grid-row: 2; }
  .flap-row .flap-price { grid-column: 2; grid-row: 1; text-align: right; }
  .flap-row .flap-status { grid-column: 1 / -1; justify-self: start; }
  .flap-row { border-bottom: 1px solid rgba(255, 255, 255, .14); padding-bottom: 12px; }
  .menu-stage { position: static; height: auto; overflow: visible; }
  .menu-bar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 12px var(--gutter) 0; grid-template-columns: 1fr; }
  .menu-rail { flex-wrap: nowrap; overflow-x: auto; }
  .menu-progress { display: none; }
  .menu-track { display: block; transform: none !important; height: auto; }
  .panel, [data-menu="list"] .panel { display: block; height: auto; padding: 28px var(--gutter) 24px; }
  .panel-lead { display: block; margin-bottom: 16px; }
  .panel-photo { aspect-ratio: 16 / 9; margin-top: 14px; }
  .panel-name { font-size: calc(clamp(40px, 12vw, 64px) * var(--d-scale)); }
  .items { overflow: visible; }
  .item { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .item-thumb { width: 76px; height: 76px; }
  .item-buy { grid-column: 2; justify-content: space-between; }
  .kitchen { grid-template-columns: 1fr; }
  .reel { max-height: 70svh; width: min(360px, 100%); }
  .reserve-controls { gap: 20px; }
  .plan-wrap { padding: 6px; margin-inline: calc(var(--gutter) * -1); border-inline: 0; }
  .dock { left: 0; right: 0; bottom: 0; transform: none; max-width: none; border: 0; border-top: 2px solid var(--ink); padding-bottom: env(safe-area-inset-bottom); height: calc(var(--dock-h) + env(safe-area-inset-bottom)); }
  .dock a, .dock button { padding: 0 10px; flex: 1; justify-content: center; font-size: 14px; }
  .dock-brand { display: none !important; }
  .dock-total { display: none; }
  [data-dock="top"] .dock { top: 0; bottom: auto; border-top: 0; border-bottom: 2px solid var(--ink); }
  .sheet { width: 100vw; max-width: 100vw; max-height: 94svh; margin: auto 0 0; }
  .sheet-inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; max-height: 94svh; }
  .sheet-photo { grid-row: auto; aspect-ratio: 16 / 9; }
  .sheet-body { padding: 20px; }
  .sheet-foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .cart { right: 0; top: auto; bottom: 0; width: 100vw; }
  .cart-paper { max-height: 88svh; border-inline: 0; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-kitchens { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kcard b { font-size: 16px; }
}

/* The ticket is always paper, whatever the kitchen's palette. */
.cart .ctl-lbl, .cart .fld > span { color: #534A42; }
.cart .err { color: var(--paper-ink); }
.cart .err::before { color: #B42318; }
.cart :focus-visible { outline-color: var(--paper-ink); }
