:root {
  color-scheme: dark;
  --ink: #f5f7fb;
  --muted: #8c9aad;
  --muted-2: #64748b;
  --bg: #07111d;
  --panel: #0d1927;
  --panel-2: #111f2f;
  --line: rgba(148, 163, 184, .16);
  --line-strong: rgba(148, 163, 184, .28);
  --accent: #f2543f;
  --accent-bright: #ff6a50;
  --cyan: #56d6d0;
  --green: #34d399;
  --shadow: 0 22px 64px rgba(0, 0, 0, .35);
  font-family: "DM Sans", system-ui, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #2d2d29;
  --muted: #62615a;
  --muted-2: #77756d;
  --bg: #c9c7bd;
  --panel: #dfddd4;
  --panel-2: #d5d3c9;
  --line: rgba(45, 45, 41, .15);
  --line-strong: rgba(45, 45, 41, .26);
  --cyan: #456f6b;
  --green: #4f745f;
  --shadow: 0 14px 36px rgba(42, 42, 38, .14);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(86,214,208,.5); outline-offset: 2px; }

body {
  background:
    radial-gradient(circle at 72% -10%, rgba(46, 139, 147, .14), transparent 33%),
    linear-gradient(180deg, #091522 0%, #07111d 100%);
  overflow: hidden;
}

.app-shell { height: 100vh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.topbar { height: 74px; padding: 0 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); background: rgba(7,17,29,.93); }
.brand { min-width: 305px; padding: 0; display: flex; align-items: center; gap: 11px; border: 0; background: transparent; color: inherit; text-align: left; }
.brand:hover .brand-mark { filter: brightness(1.08); transform: translateY(-1px); }
.brand:hover .admin-caret { color: var(--cyan); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; font: 800 20px/1 Manrope; background: var(--accent); box-shadow: 0 8px 24px rgba(242,84,63,.25); }
.brand div { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font: 800 17px/1.1 Manrope; letter-spacing: .15em; }
.brand small { margin-top: 5px; color: var(--muted); font: 700 9px/1 Manrope; letter-spacing: .24em; }
.admin-caret { margin-left: 4px; color: var(--muted); font-size: 18px; transition: color .15s ease; }
.location-pill { display: flex; align-items: center; gap: 9px; min-height: 40px; max-width: 140px; padding: 9px 13px; border: 1px solid rgba(52,211,153,.26); border-radius: 10px; background: rgba(52,211,153,.06); color: #d8e3ec; font-size: 12px; font-weight: 700; }
.location-pill strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location-pill.sql-offline { border-color: rgba(251,191,36,.28); background: rgba(251,191,36,.06); }
.location-pill.sql-offline .status-dot { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251,191,36,.1); }
.status-dot, .connection-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,.1); }
.menu-mode-switcher { display: flex; align-items: center; gap: 7px; }
.menu-mode-button { --mode-color: var(--cyan); position: relative; min-width: 100px; height: 46px; padding: 0 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #0d1927; color: #b8c5d3; font: 800 11px Manrope; text-align: center; }
.menu-mode-button::before, .menu-mode-button::after { content: ""; position: absolute; top: 0; bottom: 0; width: 4px; background: var(--mode-color); }
.menu-mode-button::before { left: 0; }
.menu-mode-button::after { right: 0; }
.menu-mode-button:hover { border-color: var(--mode-color); background: #15263a; color: white; }
.menu-mode-button.selected { border-color: var(--mode-color); background: #17283b; color: white; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 5px 14px rgba(0,0,0,.18); }
.menu-mode-button:disabled { opacity: .42; cursor: not-allowed; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.top-button { height: 40px; padding: 0 13px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; background: #0d1927; color: #cbd5e1; font-size: 12px; font-weight: 600; }
.top-button:hover { border-color: var(--line-strong); background: #132235; }
.top-button span { color: var(--cyan); font-size: 16px; }
.top-button b { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: white; font-size: 11px; }
.top-button:disabled { opacity: .42; cursor: not-allowed; }
.top-button[hidden], .check-choice-button[hidden] { display: none !important; }
.store-check-top { border-color: rgba(86,214,208,.28); background: rgba(86,214,208,.07); }
.store-check-top strong { color: #e7f8f7; font-size: 12px; }
.preference-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #0d1927; color: #d6e0eb; font: 800 11px Manrope; }
.preference-button:hover { border-color: rgba(86,214,208,.38); background: #132235; color: white; }
.clock { min-width: 96px; min-height: 48px; margin-left: 4px; padding: 5px 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: inherit; text-align: right; }
.clock:hover { border-color: rgba(86,214,208,.34); background: rgba(86,214,208,.06); }
.clock strong, .clock small { display: block; }
.clock strong { font: 700 17px/1.1 Manrope; }
.clock small { margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.register-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 382px 1fr; grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.check-panel { min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(11,23,36,.88); box-shadow: 12px 0 40px rgba(0,0,0,.12); }
.check-head { min-height: 76px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--cyan); font: 700 9px/1 Manrope; letter-spacing: .18em; }
h1, h2 { margin: 0; font-family: Manrope, sans-serif; }
.check-head h1 { margin-top: 6px; font-size: 19px; letter-spacing: -.02em; }
.icon-button { width: 39px; height: 39px; border: 1px solid rgba(86,214,208,.26); border-radius: 9px; background: rgba(86,214,208,.08); color: var(--cyan); font-size: 25px; }
.customer-strip { width: auto; min-height: 62px; margin: 12px 14px 8px; padding: 10px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); border-radius: 11px; background: #111f2f; }
.customer-strip:hover { border-color: rgba(86,214,208,.35); }
.customer-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(86,214,208,.1); color: var(--cyan); font-size: 20px; }
.customer-strip strong, .customer-strip small { display: block; }
.customer-strip strong { font-size: 13px; }
.customer-strip small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.chevron { color: var(--muted); font-size: 23px; }
.check-meta { padding: 4px 14px 11px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; border-bottom: 1px solid var(--line); }
.check-status-meta { grid-template-columns: minmax(0, 1fr); }
.check-choice-button { width: 100%; min-height: 50px; padding: 7px 38px 7px 12px; position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border: 1px solid var(--line); border-radius: 9px; background: #0a1624; text-align: left; }
.check-choice-button span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.check-choice-button strong { margin-top: 4px; font-size: 12px; }
.check-choice-button i, .touch-selector i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-style: normal; font-size: 22px; }
.check-choice-button:disabled { opacity: .42; cursor: not-allowed; }
.line-items { flex: 1; min-height: 90px; overflow-y: auto; padding: 8px 9px; }
.empty-check { height: 100%; display: grid; place-content: center; gap: 8px; text-align: center; color: var(--muted); }
.empty-check span { font-size: 28px; opacity: .55; }
.empty-check strong { color: #bdc8d6; font: 700 13px Manrope; }
.empty-check small { font-size: 11px; }
.line-item { width: 100%; padding: 12px 11px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.line-item:hover { background: rgba(255,255,255,.025); }
.line-item-name { font-size: 12px; font-weight: 700; }
.line-item-price { font: 700 13px Manrope; }
.line-item-detail { color: var(--muted); font-size: 10px; }
.line-item-note { grid-column: 1 / -1; color: #fbbf24; font-size: 10px; }
.check-note { min-height: 38px; margin: 0 14px 8px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; border: 1px dashed var(--line-strong); border-radius: 8px; background: transparent; color: var(--muted); text-align: left; font-size: 10px; }
.check-note span:first-child { color: var(--cyan); }
.totals { padding: 11px 17px 9px; border-top: 1px solid var(--line); }
.totals > div { display: flex; justify-content: space-between; margin: 4px 0; color: var(--muted); font-size: 11px; }
.totals strong { color: #dbe4ef; font-weight: 600; }
.totals small { color: var(--muted-2); }
.totals .grand-total { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); color: white; font: 700 15px Manrope; }
.totals .grand-total strong { color: white; font-size: 20px; }
.check-actions { min-height: 58px; margin: 0 14px 14px; display: grid; grid-template-columns: 1fr; gap: 8px; }
.save-check-button { height: 58px; padding: 0 12px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border: 1px solid rgba(86,214,208,.3); border-radius: 11px; background: rgba(86,214,208,.08); color: var(--cyan); text-align: left; }
.save-check-button span { font: 800 12px Manrope; }
.save-check-button small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.save-check-button:hover { background: rgba(86,214,208,.13); }
.save-check-button:disabled { opacity: .4; cursor: not-allowed; }
.pay-button { height: 58px; margin: 0; padding: 0 17px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--accent-bright), var(--accent)); box-shadow: 0 10px 24px rgba(242,84,63,.22); text-align: left; }
.pay-button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.pay-button span { font: 800 16px Manrope; }
.pay-button strong { font: 800 19px Manrope; }
.pay-button b { font-size: 22px; }
.pay-button:disabled { opacity: .45; filter: grayscale(.25); transform: none; cursor: not-allowed; }

.catalog-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: rgba(7,17,29,.72); }
.catalog-toolbar { min-height: 74px; padding: 15px 22px; display: flex; gap: 12px; align-items: center; }
.search-wrap { flex: 1; position: relative; }
.search-wrap span { position: absolute; left: 14px; top: 9px; color: var(--muted); font-size: 22px; }
.search-wrap input { width: 100%; height: 44px; padding: 0 16px 0 43px; border: 1px solid var(--line); border-radius: 10px; background: #0d1927; color: white; font-size: 12px; }
.search-wrap input::placeholder { color: #67768a; }
.scale-status { min-width: 226px; height: 44px; padding: 0 12px; display: grid; grid-template-columns: 31px 1fr 8px; align-items: center; gap: 9px; border: 1px solid rgba(52,211,153,.22); border-radius: 10px; background: rgba(52,211,153,.06); text-align: left; }
.scale-icon { color: var(--green); font-size: 20px; }
.scale-status small, .scale-status strong { display: block; }
.scale-status small { color: var(--muted); font-size: 8px; letter-spacing: .13em; }
.scale-status strong { margin-top: 3px; font-size: 10px; }
.scale-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.catalog-control-strip { min-height: 112px; padding: 9px 18px; display: flex; align-items: center; gap: 12px; border-block: 1px solid var(--line); background: rgba(13,25,39,.72); }
.category-tabs { min-width: 0; flex: 1; min-height: 94px; display: grid; grid-template-rows: repeat(2, 44px); grid-auto-flow: column; grid-auto-columns: 96px; justify-content: center; align-content: center; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.category-tab { position: relative; width: 96px; height: 44px; padding: 0 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(150deg, #132234, #0e1a29); color: #c5d0dc; font: 800 10px/1.12 Manrope; white-space: normal; text-align: center; touch-action: manipulation; }
.category-tab::before, .category-tab::after { content: ""; position: absolute; top: 0; bottom: 0; width: 4px; background: var(--category-color, var(--cyan)); }
.category-tab::before { left: 0; }
.category-tab::after { right: 0; }
.category-tab:hover { border-color: var(--category-color, var(--cyan)); background: #17283b; color: white; }
.category-tab:active { transform: scale(.97); }
.category-tab.active { border-color: var(--category-color, var(--cyan)); background: #1a2d43; color: white; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 5px 14px rgba(0,0,0,.2); }
.order-touch-controls { flex: 0 0 auto; display: flex; gap: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.touch-selector { width: 118px; height: 94px; padding: 7px 30px 7px 11px; position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border: 1px solid rgba(86,214,208,.24); border-radius: 11px; background: rgba(86,214,208,.06); color: var(--cyan); text-align: left; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.touch-selector.order-type-selector { width: 132px; border-color: rgba(242,84,63,.28); background: rgba(242,84,63,.07); color: #ff8a78; }
.touch-selector.prep-route-selector { width: 126px; border-color: rgba(241,197,26,.34); background: rgba(241,197,26,.07); color: #fde68a; }
.touch-selector strong { max-width: 100%; margin-top: 4px; overflow: hidden; color: white; font-size: 12px; letter-spacing: 0; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.touch-selector:disabled { opacity: .45; cursor: not-allowed; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.choice-card { min-height: 78px; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: #111f2f; text-align: left; }
.choice-card strong { font: 800 14px Manrope; }
.choice-card small { grid-column: 1; color: var(--muted); font-size: 9px; }
.choice-card b { grid-column: 2; grid-row: 1 / span 2; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: transparent; }
.choice-card.selected { border-color: var(--cyan); background: rgba(86,214,208,.09); }
.choice-card.selected b { border-color: var(--cyan); background: var(--cyan); color: #05211f; }
.menu-profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.menu-profile-card { min-height: 126px; border-left: 5px solid var(--menu-profile-color, var(--cyan)); }
.menu-profile-card strong { font-size: 18px; }
.menu-profile-card small { font-size: 11px; line-height: 1.45; }
.menu-profile-card.selected { border-color: var(--menu-profile-color, var(--cyan)); background: color-mix(in srgb, var(--menu-profile-color, var(--cyan)) 13%, #111f2f); }
.check-meta[hidden], .top-button[hidden] { display: none !important; }
.inline-choice-grid { margin-top: 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.inline-choice { min-height: 43px; border: 1px solid var(--line); border-radius: 9px; background: #111f2f; font-size: 10px; font-weight: 700; }
.inline-choice.selected { border-color: var(--cyan); background: rgba(86,214,208,.1); color: var(--cyan); }
.catalog-heading { padding: 20px 24px 13px; display: flex; align-items: end; justify-content: space-between; }
.catalog-heading h2 { margin-top: 7px; font-size: 21px; }
.catalog-heading > span { color: var(--muted); font-size: 10px; }
.product-grid { flex: 1; min-height: 0; padding: 0 22px 18px; display: grid; grid-template-columns: repeat(auto-fill, 148px); grid-auto-rows: 92px; align-content: start; justify-content: start; gap: 10px; overflow-y: auto; }
.product-card { position: relative; width: 148px; height: 92px; min-height: 92px; padding: 10px 11px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(150deg, #132234, #0e1a29); color: white; text-align: left; box-shadow: 0 7px 20px rgba(0,0,0,.1); }
.product-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--card-color, var(--cyan)); }
.product-card::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 3px; background: var(--card-color, var(--cyan)); }
.product-card:hover { border-color: rgba(148,163,184,.38); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.2); }
.product-card:active { transform: translateY(0) scale(.985); }
.product-card .tag { align-self: flex-start; padding: 2px 5px; border-radius: 4px; background: rgba(255,255,255,.06); color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product-card h3 { max-width: 95%; margin: 5px 0 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 10px/1.2 Manrope; }
.product-card .variant { min-height: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 8px; line-height: 1.2; }
.product-card footer { margin-top: 5px; display: flex; align-items: end; justify-content: space-between; }
.product-card .price { font: 800 14px/1 Manrope; }
.product-card .unit { color: var(--muted); font-size: 9px; }
.product-card .add { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: rgba(255,255,255,.075); color: var(--card-color, var(--cyan)); font-size: 18px; }
.no-products { grid-column: 1 / -1; display: grid; place-items: center; color: var(--muted); }
.register-footer { min-height: 35px; padding: 0 23px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 9px; }
.register-footer span:first-child { display: flex; align-items: center; gap: 6px; }
.register-footer b { color: var(--muted); }

.modal-layer { position: fixed; inset: 0; z-index: 20; display: none; place-items: center; padding: 20px; background: rgba(1,7,14,.72); backdrop-filter: blur(10px); }
.modal-layer.open { display: grid; }
.modal { width: min(680px, 95vw); max-height: 90vh; overflow: auto; border: 1px solid var(--line-strong); border-radius: 18px; background: #0d1927; box-shadow: var(--shadow); }
.modal.wide { width: min(900px, 96vw); }
.modal-head { position: sticky; top: 0; z-index: 2; padding: 20px 22px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: #0d1927; }
.modal-head h2 { margin-top: 5px; font-size: 22px; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.modal-head > .close-modal { flex: 0 0 37px; width: 37px; height: 37px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #111f2f; color: var(--muted); font-size: 20px; }
.modal-body { padding: 20px 22px 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 9px; background: #081421; color: white; text-transform: none; }
.field input, .field select { height: 43px; padding: 0 12px; }
.field textarea { min-height: 90px; padding: 11px 12px; resize: vertical; }
.field input.keyboard-target, .field textarea.keyboard-target { border-color: rgba(86,214,208,.45); box-shadow: 0 0 0 3px rgba(86,214,208,.07); }
.modal-actions { margin-top: 18px; display: flex; align-items: stretch; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.secondary-button, .primary-button, .danger-button { min-height: 43px; padding: 0 18px; border-radius: 9px; font-weight: 700; font-size: 11px; }
.modal-actions > .secondary-button, .modal-actions > .primary-button, .modal-actions > .danger-button { min-width: 112px; height: 46px; display: inline-flex; align-items: center; justify-content: center; line-height: 1.15; }
.modal-actions > .danger-button:first-child { margin-right: auto; }
.admin-function-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-function-button { min-height: 118px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(150deg, #14263a, #0d1927); text-align: left; }
.admin-function-button:hover { border-color: rgba(86,214,208,.38); background: #172b41; }
.admin-function-button > span { color: var(--cyan); font-size: 25px; }
.admin-function-button strong { font: 800 14px Manrope; }
.admin-function-button small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.admin-function-placeholder { border-style: dashed; opacity: .65; }
.secondary-button { border: 1px solid var(--line); background: #111f2f; }
.primary-button { border: 0; background: var(--accent); color: white; }
.primary-button:disabled { opacity: .42; cursor: not-allowed; }
.danger-button { border: 1px solid rgba(248,113,113,.3); background: rgba(248,113,113,.08); color: #fca5a5; }
.scale-readout { padding: 26px; display: grid; place-items: center; border: 1px solid rgba(52,211,153,.2); border-radius: 14px; background: rgba(52,211,153,.045); }
.scale-readout small { color: var(--green); letter-spacing: .16em; font-size: 9px; }
.scale-readout strong { margin: 10px 0; font: 800 46px/1 Manrope; }
.scale-readout span { color: var(--muted); font-size: 10px; }
.weight-controls { margin: 14px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.weight-controls button { height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #111f2f; font-size: 11px; }
.keypad-layout { display: grid; grid-template-columns: 1fr 260px; gap: 20px; }
.payment-summary { display: flex; flex-direction: column; gap: 10px; }
.payment-total { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #091522; }
.payment-total span, .payment-total strong { display: block; }
.payment-total span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.payment-total strong { margin-top: 6px; font: 800 33px Manrope; }
.payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.payment-method { min-height: 74px; border: 1px solid var(--line); border-radius: 11px; background: #111f2f; font-weight: 700; }
.payment-method.active { border-color: var(--accent); background: rgba(242,84,63,.1); }
.hidden { display: none !important; }
.gift-preset-grid { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.gift-preset-grid button { min-height: 58px; border: 1px solid rgba(241,197,26,.35); border-radius: 11px; background: rgba(241,197,26,.08); color: #fde68a; font: 800 16px Manrope; }
.gift-delivery-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.gift-delivery-grid button { min-height: 70px; padding: 10px; display: grid; place-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 10px; background: #111f2f; }
.gift-delivery-grid button.selected { border-color: #f1c51a; background: rgba(241,197,26,.09); }
.gift-delivery-grid strong, .gift-delivery-grid small { display: block; }
.gift-delivery-grid small { color: var(--muted); font-size: 8px; }
.gift-schedule { display: block; margin-top: 14px; }
.gift-terms { margin: 13px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.gift-card-mark { width: 76px; height: 48px; margin: 0 auto 15px; display: grid; place-items: center; border: 2px solid #f1c51a; border-radius: 9px; color: #f1c51a; font: 900 13px Manrope; letter-spacing: .14em; }
.gift-card-number { margin: 18px 0; padding: 15px; border: 1px dashed rgba(241,197,26,.5); border-radius: 10px; background: rgba(241,197,26,.06); color: #fde68a; font: 800 19px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }
.gift-card-entry { display: none; padding: 13px; border: 1px solid rgba(241,197,26,.28); border-radius: 11px; background: rgba(241,197,26,.045); }
.gift-card-entry.open { display: grid; gap: 10px; }
.gift-card-entry .secondary-button { min-height: 43px; }
.gift-card-balance { padding: 11px; border-radius: 8px; background: #081421; color: var(--muted); font-size: 10px; }
.gift-card-balance strong, .gift-card-balance span, .gift-card-balance small { display: block; }
.gift-card-balance strong { font: 800 22px Manrope; }
.gift-card-balance.approved { border: 1px solid rgba(52,211,153,.3); color: var(--green); }
.gift-card-balance.declined { border: 1px solid rgba(248,113,113,.3); color: #fca5a5; }
.activated-card-note { padding: 12px; border-radius: 9px; background: rgba(241,197,26,.08); color: #fde68a; font-size: 10px; }
.gift-online-label { font-size: 18px !important; }
.gift-purchase-link { min-width: 180px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; }
.paybotx-terminal { padding: 28px; text-align: center; }
.paybotx-brand { width: min(272px, 78%); margin: 0 auto 16px; padding: 10px 16px; border-radius: 9px; background: white; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.paybotx-brand img { display: block; width: 100%; height: auto; }
.paybotx-terminal h2 { margin: 7px 0; font-size: 24px; }
.paybotx-terminal p, .paybotx-status { color: var(--muted); }
.paybotx-countdown { --paybotx-progress: 0%; width: 150px; height: 150px; margin: 24px auto 17px; display: grid; place-content: center; border-radius: 50%; background: radial-gradient(circle at center, #0d1927 60%, transparent 61%), conic-gradient(#34d399 var(--paybotx-progress), #233448 0); transition: background .25s ease; }
.paybotx-countdown strong { font: 900 48px/1 Manrope; }
.paybotx-countdown small { margin-top: 5px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.paybotx-terminal > .secondary-button { margin-top: 20px; min-width: 120px; min-height: 43px; }
.tender-display { height: 54px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; background: #081421; }
.tender-display span { color: var(--muted); font-size: 10px; }
.tender-display strong { font: 700 20px Manrope; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.numpad button { height: 58px; border: 1px solid var(--line); border-radius: 10px; background: #111f2f; font: 700 17px Manrope; }
.numpad button:hover { background: #17283b; }
.numpad .wide { grid-column: span 2; }
.numpad .erase { color: #fca5a5; }
.quick-cash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.quick-cash button { height: 37px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--cyan); font-size: 10px; }
.customer-search { display: flex; gap: 8px; margin-bottom: 14px; }
.customer-search input { flex: 1; height: 43px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: #081421; color: white; }
.customer-results { display: grid; gap: 7px; max-height: 260px; overflow: auto; }
.customer-result { width: 100%; padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; border: 1px solid var(--line); border-radius: 9px; background: #111f2f; text-align: left; }
.customer-result small { color: var(--muted); }
.status-badge { align-self: center; padding: 4px 7px; border-radius: 999px; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.status-in_progress { color: #67e8f9; background: rgba(34,211,238,.1); }
.status-open { color: #86efac; background: rgba(74,222,128,.1); }
.status-waiting_payment { color: #fbbf24; background: rgba(251,191,36,.1); }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.check-card { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #111f2f; text-align: left; }
.check-card header, .check-card footer { display: flex; align-items: center; justify-content: space-between; }
.check-card h3 { margin: 10px 0 3px; font: 700 14px Manrope; }
.check-card p { margin: 0 0 12px; color: var(--muted); font-size: 10px; }
.check-card footer { color: var(--muted); font-size: 10px; }
.check-card footer strong { color: white; font: 700 14px Manrope; }
.check-kitchen-state { width: max-content; margin: -5px 0 10px; padding: 4px 7px; border-radius: 6px; background: rgba(86,214,208,.08); color: var(--cyan); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.menu-color-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-height: 470px; overflow-y: auto; }
.menu-color-item { --setup-color: var(--cyan); position: relative; padding: 12px 13px 12px 17px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #111f2f; }
.menu-color-item::before, .menu-color-item::after { content: ""; position: absolute; top: 0; bottom: 0; width: 4px; background: var(--setup-color); }
.menu-color-item::before { left: 0; }
.menu-color-item::after { right: 0; }
.menu-color-copy strong, .menu-color-copy small { display: block; }
.menu-color-copy strong { font: 700 11px Manrope; }
.menu-color-copy small { max-width: 190px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 8px; }
.menu-color-picker { width: 42px; height: 34px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 7px; background: #081421; cursor: pointer; }
.color-presets { margin-top: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.color-presets > span { margin-right: 4px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.color-preset { width: 28px; height: 28px; border: 2px solid rgba(255,255,255,.22); border-radius: 50%; background: var(--preset-color); }
.color-preset:hover { transform: scale(1.08); border-color: white; }
.json-preview { max-height: 430px; margin: 0; padding: 16px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #06101a; color: #9de3d7; font: 10px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.report-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.report-card { padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #111f2f; }
.report-card span, .report-card strong { display: block; }
.report-card span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.report-card strong { margin-top: 9px; font: 800 23px Manrope; }
.report-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.report-table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 11px; }
.report-table th, .report-table td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.report-table th { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.report-table td:last-child, .report-table th:last-child { text-align: right; }
.sale-success { padding: 16px; text-align: center; }
.success-mark { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; background: rgba(52,211,153,.12); color: var(--green); font-size: 30px; }
.sale-success h2 { font-size: 24px; }
.sale-success p { color: var(--muted); }
.change-due { margin: 18px 0; padding: 16px; border-radius: 11px; background: #081421; }
.change-due span, .change-due strong { display: block; }
.change-due span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.change-due strong { margin-top: 4px; font: 800 28px Manrope; }
.slip-preview-wrap { padding: 20px; display: grid; place-items: start center; overflow: auto; border-radius: 12px; background: #07111d; }
.slip-paper { width: 80mm; min-height: 120mm; margin: 0; padding: 9mm 6mm; overflow: visible; background: white; color: #111; box-shadow: 0 12px 32px rgba(0,0,0,.28); font: 10pt/1.28 "Courier New", ui-monospace, monospace; white-space: pre-wrap; }
.receipt-modal { width: min(940px, 96vw); }
.receipt-screen-body { display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: start; gap: 20px; background: #07111d; }
.receipt-paper { min-height: 0; justify-self: center; font-family: "DM Sans", Arial, sans-serif; white-space: normal; }
.receipt-logo { display: block; width: 64mm; max-width: 100%; height: auto; margin: 0 auto 4mm; }
.receipt-address { text-align: center; font-size: 8.5pt; line-height: 1.35; }
.receipt-rule { margin: 3.5mm 0; border-top: 1px dashed #555; }
.receipt-pair, .receipt-payments > div { margin: 1.2mm 0; display: flex; align-items: baseline; justify-content: space-between; gap: 4mm; font-size: 9pt; }
.receipt-item { margin: 2.2mm 0; display: grid; grid-template-columns: 1fr auto; gap: .7mm 4mm; font-size: 9pt; }
.receipt-item strong { grid-column: 1 / -1; }
.receipt-item span { color: #555; font-size: 8pt; }
.receipt-item b { text-align: right; }
.receipt-total { margin-top: 2.2mm; font-size: 13pt; text-transform: uppercase; }
.receipt-payments { margin-top: 3mm; padding-top: 2mm; border-top: 1px solid #aaa; }
.receipt-thanks { margin: 4mm 0 0; text-align: center; font-weight: 700; }
.receipt-actions { display: grid; gap: 10px; position: sticky; top: 92px; }
.receipt-actions button { min-height: 54px; padding: 10px; }

.kds-modal { width: calc(100vw - 24px) !important; height: calc(100vh - 24px); max-height: none; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; }
.kds-head { position: static; flex: 0 0 auto; align-items: center; }
.kds-head-actions { display: flex; align-items: center; gap: 8px; }
.kds-head-actions .secondary-button { min-height: 42px; }
.kds-head-actions .close-modal { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #111f2f; color: var(--muted); font-size: 20px; }
.kds-body { min-height: 0; flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.kds-legend { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.kds-legend span { padding: 6px 9px; border-radius: 999px; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.kds-legend small { margin-left: auto; color: var(--muted); }
.legend-new { color: #67e8f9; background: rgba(34,211,238,.11); }
.legend-added { color: #fde68a; background: rgba(241,197,26,.12); }
.legend-working { color: #86efac; background: rgba(74,222,128,.11); }
.kds-grid { min-height: 0; flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kds-card { min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px; background: #101f30; box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.kds-card.kds-items_added { border-color: rgba(241,197,26,.62); box-shadow: inset 0 0 0 2px rgba(241,197,26,.08); }
.kds-card.kds-in_progress { border-color: rgba(74,222,128,.5); }
.kds-begin, .kds-bump { flex: 0 0 44px; border: 0; border-radius: 0; font: 800 11px Manrope; text-transform: uppercase; letter-spacing: .05em; }
.kds-begin { background: var(--cyan); color: #05211f; }
.kds-begin:disabled { background: rgba(74,222,128,.14); color: #86efac; opacity: 1; }
.kds-bump { margin-top: auto; background: var(--accent); color: white; }
.kds-bump:disabled { background: #192a3d; color: #65758a; }
.kds-card header { padding: 11px 12px 6px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.kds-card header span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.kds-card header h3 { margin-top: 3px; font: 800 15px Manrope; }
.kds-timer { color: white; font: 800 21px ui-monospace, SFMono-Regular, Menlo, monospace; }
.kds-card > p { margin: 0; padding: 0 12px 8px; color: var(--muted); font-size: 9px; }
.kds-card ol { min-height: 0; margin: 0; padding: 7px 12px 9px 30px; overflow: auto; border-top: 1px solid var(--line); }
.kds-card li { margin: 5px 0; font-size: 10px; }
.kds-card li strong, .kds-card li small, .kds-card li em { display: block; }
.kds-card li small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.kds-card li em { margin-top: 2px; color: #fde68a; font-size: 9px; font-style: normal; font-weight: 700; }
.kds-card li.new-item { color: #fde68a; }
.kds-note { margin: 0 12px 8px; padding: 7px; border-radius: 7px; background: rgba(241,197,26,.08); color: #fde68a; font-size: 9px; font-weight: 700; }
.kds-empty { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; place-content: center; justify-items: center; gap: 8px; border: 2px dashed var(--line); border-radius: 14px; color: var(--muted); }
.kds-empty span { color: var(--green); font-size: 45px; }
.kds-empty strong { color: white; font: 800 24px Manrope; }

.keyboard { position: fixed; z-index: 30; left: 50%; bottom: 12px; width: min(820px, calc(100vw - 24px)); padding: 10px; display: none; transform: translateX(-50%); border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(10,22,36,.98); box-shadow: var(--shadow); }
.keyboard.open { display: block; }
.keyboard-row { display: flex; justify-content: center; gap: 6px; margin: 6px 0; }
.keyboard button { min-width: 43px; height: 43px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #15273a; font-size: 12px; font-weight: 700; }
.keyboard button:hover { background: #20364d; }
.keyboard .space { width: 280px; }
.keyboard .special { color: var(--cyan); }
.toast-region { position: fixed; z-index: 50; right: 18px; top: 88px; display: grid; gap: 8px; }
.toast { min-width: 260px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 9px; background: #142437; box-shadow: var(--shadow); font-size: 11px; animation: toast-in .18s ease-out; }
.toast.success { border-color: rgba(52,211,153,.3); }
.toast.error { border-color: rgba(248,113,113,.35); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }

:root[data-theme="light"] body { background: linear-gradient(180deg, #cfcdc4 0%, #c5c3b9 100%); }
:root[data-theme="light"] .topbar { background: rgba(221,219,210,.97); }
:root[data-theme="light"] .location-pill { color: #4f4e48; background: rgba(229,227,218,.72); }
:root[data-theme="light"] .location-pill:not(.sql-offline) { background: #d4ddd3; }
:root[data-theme="light"] .location-pill.sql-offline { background: #e5dcc3; }
:root[data-theme="light"] .top-button,
:root[data-theme="light"] .preference-button { background: #e4e2d9; color: #4f4e48; }
:root[data-theme="light"] .top-button:hover,
:root[data-theme="light"] .preference-button:hover { background: #d6d4ca; color: #2d2d29; }
:root[data-theme="light"] .store-check-top { background: #d2ddd9; }
:root[data-theme="light"] .store-check-top strong { color: #3e625e; }
:root[data-theme="light"] .check-panel { background: rgba(223,221,212,.95); }
:root[data-theme="light"] .catalog-panel { background: rgba(207,205,196,.88); }
:root[data-theme="light"] .customer-strip,
:root[data-theme="light"] .check-meta select,
:root[data-theme="light"] .search-wrap input,
:root[data-theme="light"] .secondary-button,
:root[data-theme="light"] .weight-controls button,
:root[data-theme="light"] .payment-method,
:root[data-theme="light"] .numpad button,
:root[data-theme="light"] .customer-result,
:root[data-theme="light"] .check-card,
:root[data-theme="light"] .menu-color-item,
:root[data-theme="light"] .report-card { background: #e4e2d9; color: var(--ink); }
:root[data-theme="light"] .search-wrap input,
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea,
:root[data-theme="light"] .customer-search input { background: #e7e5dc; color: var(--ink); }
:root[data-theme="light"] .catalog-control-strip { background: rgba(221,219,210,.8); }
:root[data-theme="light"] .category-tab,
:root[data-theme="light"] .product-card,
:root[data-theme="light"] .admin-function-button { background: linear-gradient(150deg, #e5e3da, #d8d6cc); color: #3e3e39; box-shadow: 0 5px 14px rgba(42,42,38,.07); }
:root[data-theme="light"] .category-tab:hover,
:root[data-theme="light"] .admin-function-button:hover,
:root[data-theme="light"] .numpad button:hover { background: #d0cec4; color: #2d2d29; }
:root[data-theme="light"] .category-tab.active { background: linear-gradient(145deg, rgba(242,84,63,.15), rgba(242,84,63,.05)); color: #853c31; }
:root[data-theme="light"] .category-tab { background: linear-gradient(150deg, #e5e3da, #d8d6cc); color: #3e3e39; }
:root[data-theme="light"] .category-tab.active { border-color: var(--category-color, var(--cyan)); background: #cfcdc3; color: #2d2d29; box-shadow: inset 0 0 0 1px rgba(45,45,41,.08); }
:root[data-theme="light"] .product-card { background: linear-gradient(150deg, #e5e3da, #d8d6cc); color: #2d2d29; text-shadow: none; }
:root[data-theme="light"] .product-card .tag,
:root[data-theme="light"] .product-card .variant,
:root[data-theme="light"] .product-card .unit { color: #4f4e48; }
:root[data-theme="light"] .menu-mode-button { background: #e4e2d9; color: #62615a; }
:root[data-theme="light"] .menu-mode-button.selected { background: #cfcdc3; color: #2d2d29; }
:root[data-theme="light"] .touch-selector strong { color: #3c5b59; }
:root[data-theme="light"] .touch-selector.order-type-selector strong { color: #70463f; }
:root[data-theme="light"] .check-choice-button,
:root[data-theme="light"] .choice-card,
:root[data-theme="light"] .inline-choice { background: #e4e2d9; color: var(--ink); }
:root[data-theme="light"] .line-item:hover { background: rgba(45,45,41,.045); }
:root[data-theme="light"] .totals strong,
:root[data-theme="light"] .totals .grand-total,
:root[data-theme="light"] .totals .grand-total strong,
:root[data-theme="light"] .check-card footer strong { color: var(--ink); }
:root[data-theme="light"] .modal-layer { background: rgba(43,43,39,.42); }
:root[data-theme="light"] .modal,
:root[data-theme="light"] .modal-head { background: #dfddd4; }
:root[data-theme="light"] .modal-head > .close-modal { background: #d4d2c8; }
:root[data-theme="light"] .scale-readout { background: #d8dfd7; }
:root[data-theme="light"] .payment-total,
:root[data-theme="light"] .tender-display,
:root[data-theme="light"] .change-due { background: #d4d2c8; }
:root[data-theme="light"] .json-preview { background: #d8ded8; color: #3e625e; }
:root[data-theme="light"] .menu-color-picker { background: #d4d2c8; }
:root[data-theme="light"] .keyboard { background: rgba(211,209,199,.98); }
:root[data-theme="light"] .keyboard button { background: #e4e2d9; color: #363631; }
:root[data-theme="light"] .toast { background: #e4e2d9; color: var(--ink); }
:root[data-theme="light"] .slip-preview-wrap { background: #bbb9b0; }
:root[data-theme="light"] .receipt-screen-body { background: #bbb9b0; }
:root[data-theme="light"] .kds-card { background: #e4e2d9; color: #2d2d29; box-shadow: 0 7px 18px rgba(42,42,38,.1); }
:root[data-theme="light"] .kds-card header h3,
:root[data-theme="light"] .kds-timer,
:root[data-theme="light"] .kds-empty strong { color: #2d2d29; }
:root[data-theme="light"] .kds-bump:disabled { background: #cfcdc3; color: #6f6d65; }

@media print {
  @page { size: 80mm auto; margin: 0; }
  body { width: 80mm; min-height: 0; background: white !important; overflow: visible; }
  body * { visibility: hidden !important; }
  .slip-paper, .slip-paper * { visibility: visible !important; }
  .slip-paper { position: absolute; left: 0; top: 0; width: 80mm; min-height: 0; padding: 5mm 4mm; box-shadow: none; color: #000 !important; background: #fff !important; font-size: 9.5pt; }
  .receipt-logo { width: 64mm; }
}

@media (max-width: 1100px) {
  .top-button { padding: 0 10px; }
  .top-button span { display: none; }
  .brand { min-width: 280px; }
  .menu-mode-button { min-width: 84px; padding-inline: 8px; font-size: 10px; }
  .product-grid { grid-template-columns: repeat(auto-fill, 142px); }
  .product-card { width: 142px; }
  .kds-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  body { overflow: auto; }
  .app-shell { height: auto; min-height: 100vh; overflow: visible; }
  .topbar { position: sticky; top: 0; z-index: 10; height: 64px; padding: 0 12px; gap: 6px; }
  .brand { min-width: 0; }
  .brand div, .clock { display: none; }
  .location-pill { min-height: 40px; padding: 0 9px; gap: 6px; font-size: 9px; white-space: nowrap; }
  .menu-mode-button { min-width: 70px; height: 42px; padding-inline: 5px; font-size: 8px; }
  .top-actions { gap: 6px; }
  .top-button { width: 44px; padding: 0; justify-content: center; font-size: 0; }
  .top-button span { display: inline; font-size: 17px; }
  .top-button strong { display: none; }
  .register-layout { display: block; }
  .check-panel { min-height: 520px; border-right: 0; }
  .catalog-panel { min-height: 640px; }
  .receipt-screen-body { grid-template-columns: 1fr; }
  .receipt-actions { position: static; grid-template-columns: repeat(3, 1fr); }
  .kds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; overflow: auto; }
  .kds-card { min-height: 360px; }
  .catalog-control-strip { flex-direction: column; align-items: stretch; }
  .category-tabs { width: 100%; justify-content: start; }
  .order-touch-controls { width: 100%; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .touch-selector, .touch-selector.order-type-selector { flex: 1; width: auto; height: 60px; }
  .product-grid { grid-template-columns: repeat(2, 138px); grid-auto-rows: 94px; }
  .product-card { width: 138px; height: 94px; min-height: 94px; }
  .scale-status { min-width: 48px; width: 48px; grid-template-columns: 1fr; }
  .scale-status span:not(.scale-icon), .scale-status i { display: none; }
  .report-cards { grid-template-columns: repeat(2, 1fr); }
  .keypad-layout { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .menu-color-grid { grid-template-columns: 1fr; }
  .menu-profile-grid { grid-template-columns: 1fr; }
}

@media (max-height: 760px) and (min-width: 861px) {
  .topbar { height: 62px; }
  .catalog-toolbar { min-height: 62px; padding-top: 9px; padding-bottom: 9px; }
  .category-tabs { min-height: 94px; }
  .catalog-heading { padding-top: 13px; }
  .product-grid { grid-auto-rows: 88px; }
  .product-card { height: 88px; min-height: 88px; }
}
