
:root {
  color-scheme: dark;
  --bg: #0a101b;
  --surface: #111b2a;
  --surface-raised: #172234;
  --line: #273247;
  --text: #f3f6fc;
  --muted: #94a3ba;
  --gold: #ffca45;
  --blue: #2583ff;
  --danger: #ff8d96;
  --radius: 17px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button { transition: background .16s ease, border-color .16s ease, transform .16s ease; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
input, select { min-width: 0; }
input::placeholder { color: #8c9bb1; opacity: 1; }
input { color: var(--text); }
button { color: inherit; }
svg { width: 21px; height: 21px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.topbar { height: 82px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; background: #101a2b; border-bottom: 1px solid #26334a; }
.brand { display: inline-flex; gap: 13px; align-items: center; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 13px; color: #192130; background: linear-gradient(145deg, #ffdc77, #ffbd2f); box-shadow: 0 5px 20px #ffca4510; }
.brand-mark svg { width: 30px; height: 30px; stroke-width: 1.9; }
.brand strong { display: block; font-size: 20px; letter-spacing: -.6px; font-weight: 750; }
.brand small { display: block; color: #a6b5cd; letter-spacing: 2.3px; font-size: 9px; font-weight: 700; margin-top: 5px; }
.brand small span { padding: 0 6px; color: #52647f; }
.header-actions { display: flex; align-items: center; gap: 21px; }
.demo-badge { color: #aab9cf; display: inline-flex; gap: 7px; align-items: center; font-size: 12px; }
.demo-badge>span { width: 6px; height: 6px; background: #ffca45; border-radius: 50%; }
.clock { color: #ced7e8; font-size: 13px; border-left: 1px solid var(--line); padding-left: 21px; min-width: 92px; font-variant-numeric: tabular-nums; }
.utility-button { height: 40px; padding: 0 14px; border: 1px solid #354259; border-radius: 10px; background: #182335; font-size: 12px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.utility-button:hover { background: #23324b; }
.utility-button svg { width: 17px; height: 17px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 400px; height: calc(100dvh - 82px); padding: 24px; gap: 24px; max-width: 2000px; margin: auto; }
.menu-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.menu-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 0 2px; margin-bottom: 24px; }
.eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 1.7px; color: #8495af; line-height: 1.4; }
h1 { margin-top: 6px; font-size: 27px; font-weight: 730; letter-spacing: -.8px; }
.search-box { border: 1px solid var(--line); background: #111b2a; border-radius: 12px; display: flex; gap: 10px; padding: 0 12px; align-items: center; height: 43px; max-width: 265px; width: 41%; }
.search-box svg { width: 18px; height: 18px; color: #99aac3; }
.search-box input { border: none; width: 100%; background: transparent; font-size: 12px; height: 100%; outline: none; }
.search-box:focus-within { border-color: var(--gold); }
kbd { font-family: inherit; font-size: 12px; border: 1px solid #354257; border-radius: 4px; color: #99a7bc; width: 21px; height: 22px; display: grid; place-items: center; }
.categories { display: flex; gap: 10px; margin-bottom: 23px; flex-shrink: 0; padding: 3px 2px; overflow-x: auto; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
.category { height: 51px; display: flex; align-items: center; gap: 9px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: #131d2c; font-size: 13px; font-weight: 650; white-space: nowrap; }
.category svg { width: 21px; height: 21px; }
.category:hover { background: #1d2b40; }
.category.active { background: linear-gradient(120deg, #ffd465, #ffbf31); color: #192130; border-color: #ffcf58; box-shadow: 0 5px 20px #ffc54412; }
.category>span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #1c25361a; font-size: 10px; }
.menu-scroll { flex: 1; overflow-y: auto; min-height: 0; padding: 1px 4px 0 2px; scrollbar-width: thin; scrollbar-color: #334359 transparent; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card { position: relative; background: linear-gradient(145deg, #162132, #101a29); border: 1px solid #29354a; padding: 0; border-radius: 15px; overflow: hidden; text-align: left; min-width: 0; isolation: isolate; box-shadow: 0 6px 18px #00000013; }
.product-card:hover { border-color: #8797ad; transform: translateY(-2px); }
.product-card:active { transform: scale(.98); }
.product-card.in-cart { border-color: #c49c40; box-shadow: 0 0 0 1px #ffca4518; }
.product-image { aspect-ratio: 2.12; position: relative; overflow: hidden; background: #23334a; }
.product-image:after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #111b2a33, transparent 45%); pointer-events: none; }
.product-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-badge { position: absolute; top: 11px; left: 11px; background: #172031dc; color: #ffe088; border: 1px solid #ffffff20; font-size: 8px; font-weight: 800; letter-spacing: 1px; padding: 6px 8px; border-radius: 6px; }
.product-quantity { display: grid; place-items: center; position: absolute; right: 11px; top: 11px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #182132; font-size: 12px; font-weight: 800; box-shadow: 0 3px 10px #0005; }
.product-details { padding: 13px 14px 12px; }
.product-name { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.2px; line-height: 1.25; }
.product-description { display: none; font-size: 10px; color: #a2afc4; margin-top: 5px; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; }
.product-price { font-size: 15px; color: var(--gold); font-weight: 760; font-variant-numeric: tabular-nums; }
.product-price small { font-size: 10px; font-weight: 600; margin-right: 2px; }
.add-indicator { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #25324a; color: #d6e1f2; }
.add-indicator svg { width: 15px; height: 15px; stroke-width: 2; }
.in-cart .add-indicator { background: #ffca451d; color: #ffcf58; }
.menu-footer { font-size: 10px; color: #8898b0; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 18px 4px 7px; }
.menu-footer>span { color: #ffca4588; }
.no-results { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: #a9b7cb; line-height: 1.8; }
.no-results strong { display: block; color: var(--text); }
.order-panel { min-height: 0; display: flex; flex-direction: column; background: linear-gradient(155deg, #151f30, #101927); border: 1px solid #2b374d; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 35px #00000018; }
.order-top { padding: 18px 20px 0; }
.order-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.order-heading .eyebrow { display: none; font-size: 8px; letter-spacing: 1.6px; }
h2 { font-size: 21px; font-weight: 720; letter-spacing: -.6px; }
.order-heading h2 { margin-top: 0; }
#item-count { display: inline-grid; place-items: center; vertical-align: middle; background: #ffca4518; color: var(--gold); min-width: 24px; height: 24px; border: 1px solid #ffca4533; border-radius: 7px; font-size: 11px; margin-left: 5px; letter-spacing: 0; }
.draft-label { align-self: center; font-size: 9px; font-weight: 750; letter-spacing: .8px; color: #a5b4ca; border: 1px solid #354156; border-radius: 5px; padding: 5px 7px; }
.order-types { display: flex; background: #0c1422; padding: 5px; border: 1px solid #27364d; border-radius: 12px; gap: 5px; }
.order-types button { flex: 1; height: 43px; border: 0; border-radius: 8px; background: transparent; color: #a6b6ce; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 13px; font-weight: 700; }
.order-types button.active { background: linear-gradient(120deg, #ffd467, #ffc038); color: #172030; box-shadow: 0 3px 8px #0002; }
.order-types svg { width: 20px; height: 20px; }
.table-select { position: relative; height: 42px; display: flex; align-items: center; gap: 9px; margin-top: 10px; border: 1px solid #33425d; background: #101a2b; border-radius: 9px; padding: 0 10px; }
.table-select>svg { width: 15px; height: 15px; color: #a7b8d0; pointer-events: none; }
.table-select>svg:last-child { position: absolute; right: 10px; }
.table-select select { border: none; background: transparent; width: 100%; height: 100%; appearance: none; color: #e1e8f5; font-size: 12px; padding-right: 25px; }
.table-select option { background: #111b2a; }
.order-list-label { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #2a3448; margin-top: 10px; height: 44px; }
.order-list-label>span { color: #8b9db6; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
.text-button { border: 0; background: transparent; color: #c8d2e3; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; min-height: 36px; padding: 0 1px; }
.text-button:hover:not(:disabled) { color: #ffa3aa; }
.text-button:disabled { color: #748198; }
.text-button svg { width: 13px; height: 13px; }
.cart-items { flex: 1; min-height: 100px; overflow-y: auto; padding: 0 20px; scrollbar-width: thin; scrollbar-color: #344159 transparent; }
.cart-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 10px 0; border-bottom: 1px solid #273247; }
.cart-item:last-child { border-bottom: 0; }
.cart-thumb { width: 44px; height: 47px; object-fit: cover; border-radius: 9px; border: 1px solid #3f4754; }
.cart-item-info { align-self: start; padding-top: 2px; min-width: 0; }
.cart-item-name { display: block; font-size: 12px; font-weight: 700; line-height: 1.4; }
.cart-item-unit { display: block; color: #c4a758; margin-top: 4px; font-size: 10px; }
.cart-line-total { font-size: 12px; font-weight: 720; margin-bottom: 8px; text-align: right; color: #f0d58c; white-space: nowrap; font-variant-numeric: tabular-nums; }
.quantity-row { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.quantity-button { background: #233047; border: 1px solid #30405a; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; padding: 0; }
.quantity-button:hover { background: #314966; }
.quantity-button.plus { color: #d7e9ff; background: #1d3c68; border-color: #285487; }
.quantity-button:disabled { opacity: .45; }
.quantity-button svg { width: 13px; height: 13px; }
.quantity-number { font-size: 11px; font-weight: 700; min-width: 17px; text-align: center; }
.remove-item { padding: 0; width: 25px; height: 30px; background: transparent; border: 0; color: #ec8d97; display: grid; place-items: center; margin-left: 2px; }
.remove-item svg { width: 15px; height: 15px; }
.cart-empty { height: 100%; min-height: 150px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; gap: 9px; color: #9cacc3; }
.empty-icon { width: 67px; height: 67px; display: grid; place-items: center; background: #20304755; border: 1px dashed #394a63; border-radius: 21px; margin-bottom: 8px; color: #b2c2d9; }
.empty-icon svg { width: 29px; height: 29px; }
.cart-empty strong { color: #d0daeb; font-size: 14px; }
.cart-empty p { font-size: 11px; max-width: 210px; line-height: 1.7; }
.order-bottom { padding: 14px 20px 13px; border-top: 1px solid #2b374e; background: #101a2a; }
.order-note { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: #0b1422; border: 1px solid #26354d; border-radius: 8px; margin-bottom: 15px; }
.order-note svg { width: 15px; height: 15px; color: #8b9bb4; }
.order-note input { background: transparent; width: 100%; height: 100%; outline: none; border: 0; font-size: 10px; }
.order-note:focus-within { border-color: var(--gold); }
.totals-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; min-height: 24px; color: #a6b5ca; }
.totals-row strong { font-size: 12px; font-weight: 650; color: #e1e8f5; font-variant-numeric: tabular-nums; }
.discount-row { margin-top: 5px; }
.discount-controls { display: flex; gap: 8px; align-items: center; }
.discount-switch { display: flex; border-radius: 6px; background: #111d30; border: 1px solid #344259; padding: 2px; }
.discount-switch button { border: 0; background: transparent; color: #a7b6cc; border-radius: 4px; font-size: 9px; height: 27px; min-width: 31px; padding: 0 7px; font-weight: 700; }
.discount-switch button.active { background: #ffca45; color: #182032; }
#discount-value { border: 1px solid #344259; border-radius: 6px; background: #111d30; height: 33px; width: 78px; text-align: right; padding: 0 9px; font-size: 12px; }
.discount-applied { display: flex; justify-content: space-between; color: #9bd3ba; font-size: 10px; margin-top: 9px; }
.grand-total { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed #3c4961; margin-top: 14px; padding-top: 15px; margin-bottom: 17px; }
.grand-total>span { font-size: 18px; font-weight: 720; letter-spacing: -.4px; }
.grand-total>strong { color: var(--gold); font-size: 26px; font-weight: 750; letter-spacing: -.9px; font-variant-numeric: tabular-nums; }
.payment-options { display: flex; gap: 10px; margin-bottom: 12px; }
.payment-options button { display: flex; align-items: center; justify-content: center; gap: 10px; height: 47px; flex: 1; background: #172639; border: 1px solid #35445f; border-radius: 10px; font-size: 13px; font-weight: 700; position: relative; }
.payment-options button.selected { color: #ffd96d; background: #ffca450d; border-color: #c89d3c; }
.selected-dot { display: none; position: absolute; right: 9px; top: 9px; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }
.selected .selected-dot { display: inline-block; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(110deg, #328dff, #1268ed); color: white; border: 1px solid #4495ff; border-radius: 10px; height: 48px; padding: 0 19px; font-size: 13px; font-weight: 720; box-shadow: 0 7px 20px #146fea1c; }
.primary-button:hover:not(:disabled) { background: linear-gradient(110deg, #51a0ff, #237bfd); }
.primary-button:disabled { opacity: .45; box-shadow: none; }
.checkout-button { width: 100%; height: 51px; }
.checkout-button>svg:last-child { margin-left: auto; width: 18px; height: 18px; }
.checkout-button>svg:first-child { margin-right: auto; width: 20px; height: 20px; }
.local-notice { color: #92a0b6; font-size: 9px; text-align: center; margin-top: 10px; }
.mobile-bill-button, .mobile-close { display: none !important; }
.storage-banner { padding: 10px 24px; background: #543720; border-bottom: 1px solid #997248; color: #ffe5c0; font-size: 12px; line-height: 1.5; }
body.has-warning .workspace { height: calc(100dvh - 124px); }
.icon-button { display: inline-grid; place-items: center; border: 1px solid #3a465c; background: #19263a; padding: 0; border-radius: 9px; width: 38px; height: 38px; }
.icon-button:hover { background: #2c3c56; }
.icon-button svg { width: 17px; height: 17px; }
dialog { color: var(--text); background: #141f30; border: 1px solid #3a4860; border-radius: 20px; width: min(490px, calc(100vw - 28px)); max-height: calc(100dvh - 30px); padding: 25px; box-shadow: 0 30px 120px #000a; }
dialog::backdrop { background: #030813c9; backdrop-filter: blur(6px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
.dialog-heading .eyebrow { margin-bottom: 5px; font-size: 8px; }
.dialog-heading h2 { font-size: 22px; }
.payment-due { text-align: center; border: 1px solid #334359; border-radius: 13px; padding: 22px 12px; margin-bottom: 23px; background: #0e192a; }
.payment-due>span { display: block; color: #a5b4cb; font-size: 12px; margin-bottom: 6px; }
.payment-due>strong { color: var(--gold); font-size: 34px; letter-spacing: -1px; display: block; }
.payment-due>small { display: block; margin-top: 10px; color: #a9b9d2; }
.field-label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 650; }
.large-input { width: 100%; border: 1px solid #455671; background: #0d1829; border-radius: 10px; min-height: 49px; padding: 12px; font-size: 16px; }
.cash-input-row { display: flex; align-items: stretch; gap: 10px; }
.cash-input-row input { width: 55%; }
.cash-input-row button { flex: 1; font-size: 11px; }
.change-row { display: flex; justify-content: space-between; font-size: 13px; margin: 18px 0 23px; padding-bottom: 18px; border-bottom: 1px solid #35425b; color: #b3c2d7; }
.change-row strong { color: #9ce1bc; }
.secondary-button, .danger-button { height: 43px; padding: 0 15px; border-radius: 9px; background: #202e44; border: 1px solid #3c4c66; font-size: 12px; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.secondary-button:hover { background: #2b3f5c; }
.secondary-button:disabled { opacity: .45; }
.danger-button { background: #9b3046; border-color: #d65f71; color: #fff; }
.danger-button:hover { background: #ad4055; }
.full-width { width: 100%; }
.inline-error { color: #ffa0aa; font-size: 11px; line-height: 1.5; margin-top: 8px; }
#payment-error { margin-bottom: 14px; }
.dialog-footnote { text-align: center; font-size: 10px; color: #a7b4c8; margin-top: 16px; line-height: 1.7; }
.info-box { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #455470; background: #1a2b43; border-radius: 10px; padding: 13px; margin-bottom: 18px; }
.info-box p { font-size: 12px; color: #d0def1; line-height: 1.65; }
.info-box svg { margin-top: 2px; color: #ffcd55; }
.check-field { display: flex; align-items: center; gap: 11px; padding: 17px 0; color: #d6e3f4; font-size: 12px; line-height: 1.6; }
.check-field input { appearance: auto; width: 19px; height: 19px; accent-color: #ffca45; }
.muted { color: #acbcd3; font-size: 13px; line-height: 1.8; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; }
.dialog-actions .primary-button { height: 43px; }
.receipt-dialog { width: min(455px, calc(100vw - 28px)); }
.receipt-preview { background: #fff; color: #141c28; padding: 23px 18px; border-radius: 4px; max-height: 58dvh; overflow-y: auto; }
.receipt { color: #141c28; font-family: 'Courier New', monospace; font-size: 12px; line-height: 1.65; }
.receipt h3 { font-size: 20px; text-align: center; margin-bottom: 4px; line-height: 1.3; }
.receipt-center { text-align: center; }
.receipt-demo { text-align: center; border: 1px solid #414141; padding: 5px; font-size: 9px; margin-bottom: 14px; font-weight: 700; }
.receipt-rule { border: 0; border-top: 1px dashed #6c6c6c; margin: 13px 0; }
.receipt-row { display: flex; justify-content: space-between; gap: 9px; align-items: baseline; margin: 4px 0; }
.receipt-row>*:last-child { white-space: nowrap; }
.receipt-row.receipt-grand { font-size: 16px; font-weight: 700; }
.receipt-line { margin: 9px 0; }
.receipt-line small { color: #444; }
.receipt-note { overflow-wrap: anywhere; }
.history-dialog { width: min(650px, calc(100vw - 28px)); }
.history-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.summary-card { padding: 14px 12px; border: 1px solid #3c4a63; border-radius: 11px; background: #101b2d; }
.summary-card small { font-size: 9px; display: block; color: #9fb0c8; margin-bottom: 7px; }
.summary-card strong { font-size: 16px; color: #ffcd57; }
.history-list { max-height: 45dvh; overflow-y: auto; }
.history-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; border: none; border-bottom: 1px solid #354156; background: transparent; padding: 17px 0; }
.history-item:hover { background: #ffffff05; }
.history-item strong { display: block; font-size: 13px; }
.history-item small { display: block; margin-top: 6px; color: #9eb1cc; font-size: 10px; }
.history-item>span:last-child { color: #ffcf63; white-space: nowrap; font-size: 13px; }
.history-empty { color: #aec0d9; text-align: center; padding: 35px 15px; font-size: 13px; }
.history-limit { color: #99abc5; font-size: 10px; margin: 10px 0; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); background: #253650; color: #fff; border: 1px solid #5a718f; border-radius: 11px; padding: 13px 18px; font-size: 12px; box-shadow: 0 8px 30px #0005; max-width: calc(100vw - 30px); z-index: 100; text-align: center; line-height: 1.6; }
#print-area { display: none; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; background: #111b2a; font-size: 20px; padding: 30px; z-index: 999; }
@media (min-width: 1650px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 440px; gap: 30px; padding: 30px; }
  .product-grid { gap: 21px; }
  .product-image { aspect-ratio: 2.12; }
  .product-name { font-size: 16px; }
  .product-details { padding: 15px 17px; }
  .product-description { font-size: 11px; }
  .product-price { font-size: 18px; }
  .cart-item { padding: 19px 0; }
  .cart-item-name { font-size: 13px; }
  .cart-item-unit { font-size: 11px; }
  .cart-thumb { width: 48px; height: 51px; }
  .cart-item { grid-template-columns: 48px minmax(0, 1fr) auto; }
}
@media (max-width: 1230px) and (min-width: 801px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 365px; padding: 18px; gap: 18px; }
  .product-grid { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category { padding: 0 12px; height: 46px; font-size: 12px; }
  .menu-heading { flex-wrap: wrap; gap: 14px; margin-bottom: 17px; }
  .search-box { width: 100%; max-width: none; }
  .product-image { aspect-ratio: 1.85; }
  .order-top { padding: 20px 17px 0; }
  .order-bottom { padding-left: 17px; padding-right: 17px; }
  .cart-items { padding: 0 17px; }
  .cart-item { column-gap: 7px; grid-template-columns: 38px minmax(0, 1fr) auto; }
  .cart-thumb { width: 38px; height: 45px; }
  .cart-item-name { font-size: 11px; }
  .quantity-row { gap: 3px; }
  .quantity-button { width: 28px; height: 29px; }
  .remove-item { width: 22px; }
}
@media (max-height: 790px) and (min-width: 801px) {
  .topbar { height: 67px; }
  .workspace { height: calc(100dvh - 67px); padding-top: 17px; padding-bottom: 17px; }
  .menu-heading { margin-bottom: 16px; }
  .categories { margin-bottom: 15px; }
  .order-top { padding-top: 16px; }
  .order-heading { margin-bottom: 14px; }
  .order-types button { height: 37px; }
  .order-bottom { padding-top: 10px; padding-bottom: 9px; }
  .order-note { margin-bottom: 9px; height: 33px; }
  .grand-total { margin-top: 9px; margin-bottom: 11px; padding-top: 10px; }
  .payment-options { margin-bottom: 9px; }
  .payment-options button { height: 41px; }
  .checkout-button { height: 45px; }
  .local-notice { margin-top: 8px; }
}
@media (max-width: 800px) {
  .topbar { height: 72px; padding: 0 16px; }
  .brand { gap: 10px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .brand-mark svg { width: 26px; height: 26px; }
  .brand strong { font-size: 17px; letter-spacing: -.55px; }
  .brand small { font-size: 7px; letter-spacing: 1.7px; margin-top: 4px; }
  .header-actions { gap: 10px; }
  .clock { display: none; }
  .demo-badge { font-size: 9px; gap: 5px; }
  .demo-badge>span { width: 5px; height: 5px; }
  .utility-button { padding: 0; width: 36px; height: 38px; border: 0; background: transparent; }
  .utility-button>span { display: none; }
  .utility-button svg { width: 21px; height: 21px; }
  .workspace, body.has-warning .workspace { display: block; padding: 21px 14px 104px; height: auto; }
  .menu-heading { flex-wrap: wrap; gap: 17px; margin-bottom: 15px; }
  .menu-heading h1 { font-size: 25px; }
  .menu-heading .eyebrow { font-size: 8px; }
  .search-box { max-width: none; width: 100%; height: 44px; }
  .search-box input { font-size: 14px; }
  .search-box kbd { display: none; }
  .categories { gap: 8px; margin-bottom: 17px; padding-bottom: 3px; }
  .category { height: 46px; padding: 0 13px; gap: 7px; font-size: 12px; }
  .category svg { width: 18px; height: 18px; }
  .category>span { width: 18px; height: 18px; font-size: 9px; }
  .product-grid { gap: 13px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-scroll { overflow: visible; padding: 0 2px; }
  .product-image { aspect-ratio: 1.46; }
  .product-details { padding: 11px 11px 10px; }
  .product-name { font-size: 12px; }
  .product-description { font-size: 9px; margin-top: 5px; }
  .product-price-row { margin-top: 9px; }
  .product-price { font-size: 14px; }
  .product-price small { font-size: 9px; }
  .add-indicator { width: 25px; height: 25px; }
  .product-badge { top: 8px; left: 8px; padding: 5px 6px; font-size: 7px; }
  .product-quantity { top: 8px; right: 8px; width: 23px; height: 23px; font-size: 11px; }
  .menu-footer { font-size: 9px; flex-wrap: wrap; line-height: 1.5; }
  .order-panel { display: none; position: fixed; inset: auto 0 0; height: calc(100dvh - 12px); max-height: 900px; border-radius: 21px 21px 0 0; z-index: 40; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .order-panel.open { display: flex; }
  .cart-backdrop { position: fixed; inset: 0; background: #020712c9; z-index: 39; }
  .mobile-close { display: inline-grid !important; }
  .draft-label { display: none; }
  .order-top { padding: 20px 20px 0; }
  .order-heading { margin-bottom: 18px; }
  .order-types button { height: 44px; }
  .table-select { height: 44px; }
  .table-select select { font-size: 14px; }
  .order-list-label { height: 44px; }
  .text-button { min-height: 44px; }
  .cart-items { min-height: 100px; }
  .cart-item { padding: 14px 0; gap: 8px; grid-template-columns: 40px minmax(0, 1fr) auto; }
  .cart-thumb { width: 40px; height: 44px; }
  .cart-item-name { font-size: 12px; }
  .cart-item-unit { font-size: 10px; }
  .quantity-button { width: 36px; height: 40px; }
  .remove-item { width: 30px; height: 40px; }
  .quantity-row { gap: 4px; }
  .quantity-number { font-size: 12px; min-width: 17px; }
  .cart-line-total { font-size: 12px; margin-bottom: 6px; }
  .order-bottom { padding: 12px 20px 14px; }
  .order-note { height: 39px; margin-bottom: 12px; }
  .order-note input { font-size: 12px; }
  .totals-row { font-size: 13px; }
  .discount-switch button { min-width: 35px; height: 30px; font-size: 10px; }
  #discount-value { height: 37px; font-size: 14px; }
  .grand-total { margin-top: 12px; padding-top: 13px; margin-bottom: 14px; }
  .grand-total strong { font-size: 27px; }
  .payment-options button { height: 47px; }
  .checkout-button { height: 51px; }
  .mobile-bill-button { display: flex !important; align-items: center; gap: 10px; position: fixed; bottom: max(13px, env(safe-area-inset-bottom)); left: 14px; right: 14px; z-index: 20; height: 62px; padding: 0 16px; border: 1px solid #ffda75; border-radius: 14px; background: linear-gradient(110deg, #ffd970, #ffc133); box-shadow: 0 0 0 9px #0a101bc9, 0 12px 30px #0005; color: #182233; font-size: 13px; font-weight: 700; }
  .mobile-bill-button>strong { margin-left: auto; white-space: nowrap; font-size: 15px; }
  .mobile-bill-button>svg { width: 17px; }
  .mobile-bag { position: relative; width: 30px; }
  .mobile-bag svg { width: 24px; height: 24px; }
  .mobile-bag>b { display: inline-grid; place-items: center; position: absolute; right: 0; top: -6px; border-radius: 50%; min-width: 15px; height: 15px; font-size: 8px; background: #1b2a43; color: white; border: 1px solid #ffd161; }
  body.cart-open { overflow: hidden; }
  body.cart-open .mobile-bill-button { display: none !important; }
  .toast { bottom: 92px; width: max-content; }
  dialog { padding: 21px; }
  .history-summary { gap: 7px; }
  .summary-card { padding: 11px 9px; }
  .summary-card strong { font-size: 13px; }
  .summary-card small { font-size: 8px; }
  .dialog-actions { flex-wrap: wrap; }
}
@media (min-width: 540px) and (max-width: 800px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-box { width: 44%; }
  .order-panel { width: min(470px, 100vw); left: auto; right: 0; height: 100dvh; border-radius: 20px 0 0 20px; }
}
@media (max-width: 360px) {
  .brand strong { font-size: 15px; }
  .demo-badge { display: none; }
  .product-details { padding: 9px; }
  .product-name { font-size: 11px; }
  .product-price { font-size: 13px; }
  .order-top, .order-bottom { padding-left: 14px; padding-right: 14px; }
  .cart-items { padding-left: 14px; padding-right: 14px; }
  .cart-thumb { display: none; }
  .cart-item { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
  @page { size: auto; margin: 4mm; }
  html, body { width: auto; height: auto; min-height: 0; background: #fff !important; color: #000 !important; overflow: visible !important; }
  #app-shell, dialog, .toast, .icon-library, .noscript { display: none !important; }
  #print-area { display: block !important; width: 72mm; max-width: 100%; margin: 0 auto; padding: 0; }
  /* High contrast monochrome thermal receipt (80mm paper). */
  #print-area, #print-area * { color: #000 !important; background: #fff !important; text-shadow: none !important; opacity: 1 !important; filter: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print-area .receipt { font-family: Arial, Helvetica, sans-serif !important; font-size: 13px !important; font-weight: 700 !important; line-height: 1.4 !important; }
  #print-area .receipt h3 { font-size: 21px !important; font-weight: 900 !important; }
  #print-area .receipt small { font-size: 12px !important; font-weight: 700 !important; }
  #print-area .receipt-grand { font-size: 18px !important; font-weight: 900 !important; }
  #print-area .receipt-rule { border-top: 2px dashed #000 !important; }
  #print-area .receipt-demo { border: 2px solid #000 !important; font-size: 11px !important; }
  #print-area .receipt-line strong { font-weight: 900 !important; }
  .receipt-line, .receipt-grand, .receipt-note { break-inside: avoid; }
}
/* On very short phones, let the complete order panel scroll instead of cutting off checkout. */
@media screen and (max-width: 800px) and (max-height: 700px) {
  .order-panel { overflow-y: auto; }
  .order-top, .order-bottom { flex-shrink: 0; }
  .cart-items { flex: 0 0 auto; overflow: visible; min-height: 120px; }
}

