/* Application layout & domain styles built on Lucian --ux-* tokens */
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ux-page);
  color: var(--ux-ink);
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 0 22px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  font-size: 16px;
  letter-spacing: -.02em;
  color: var(--ux-ink);
}

.brand-dot {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--ux-grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  flex: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 11px;
  border: 1px solid var(--ux-line-2);
  background: var(--ux-surface);
  color: var(--ux-ink);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .18s, border-color .18s, transform .2s var(--ux-spring);
}
.btn:hover { background: var(--ux-surface-2); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--ux-accent); border-color: transparent; color: var(--ux-accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ink { background: var(--ux-ink); border-color: transparent; color: var(--ux-page); }
.btn.mint { background: var(--ux-mint); border-color: transparent; color: #fff; }
.btn.warn { background: var(--ux-warn); border-color: transparent; color: #fff; }
.btn.danger { background: color-mix(in srgb, var(--ux-danger) 12%, var(--ux-surface)); border-color: color-mix(in srgb, var(--ux-danger) 35%, transparent); color: var(--ux-danger); }
.btn.sm { min-height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn.xs { min-height: 26px; padding: 0 8px; font-size: 11.5px; border-radius: 7px; }

/* Cards & Inputs */
.card-box {
  background: var(--ux-surface);
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--ux-line);
  padding: 20px;
}

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--ux-ink-2); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--ux-line-2);
  background: var(--ux-surface-2);
  color: var(--ux-ink);
  font-size: 14px;
}
.field textarea { min-height: 80px; resize: vertical; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 760;
  background: var(--ux-surface-2);
  color: var(--ux-ink-2);
  white-space: nowrap;
}
.badge.ok { background: color-mix(in srgb, var(--ux-mint) 15%, transparent); color: var(--ux-mint); }
.badge.warn { background: color-mix(in srgb, var(--ux-warn) 16%, transparent); color: var(--ux-warn); }
.badge.danger { background: color-mix(in srgb, var(--ux-danger) 15%, transparent); color: var(--ux-danger); }
.badge.accent { background: var(--ux-accent-soft); color: var(--ux-accent); }
.badge.info { background: color-mix(in srgb, var(--ux-accent-2) 15%, transparent); color: var(--ux-accent-2); }

.notice-bar {
  padding: 12px 15px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 650;
  background: color-mix(in srgb, var(--ux-warn) 13%, var(--ux-surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ux-warn) 35%, transparent);
  color: var(--ux-ink);
  margin-bottom: 14px;
}
.notice-bar.info {
  background: color-mix(in srgb, var(--ux-accent-2) 11%, var(--ux-surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ux-accent-2) 32%, transparent);
}
.notice-bar.danger {
  background: color-mix(in srgb, var(--ux-danger) 11%, var(--ux-surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ux-danger) 35%, transparent);
  color: var(--ux-danger);
}

/* Marketing Website — Editorial Hospitality Design */
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: 26px; margin-right: auto; }
.nav-links a { font-size: 14px; font-weight: 650; color: var(--ux-ink-2); transition: color .18s; }
.nav-links a:hover { color: var(--ux-ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.hero {
  padding: 46px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 38px;
  align-items: center;
}
.hero h1 {
  margin: 14px 0 14px;
  font-size: clamp(32px, 4.1vw, 48px);
  line-height: 1.13;
  font-weight: 900;
  letter-spacing: -.03em;
}
.hero-lead {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.68;
  color: var(--ux-ink-2);
  max-width: 520px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-demos {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--ux-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--ux-ink-2);
}

.hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 0 0 1px var(--ux-line), 0 32px 70px -30px var(--ux-shadow-strong);
  background: var(--ux-surface-2);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-visual-overlay {
  position: absolute;
  inset: auto 16px 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-float-card {
  padding: 12px 15px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--ux-surface) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px var(--ux-glass-line), 0 16px 30px -16px rgba(0, 0, 0, .4);
  color: var(--ux-ink);
  font-size: 12.5px;
}
.hero-float-card strong { display: block; font-size: 15px; font-weight: 850; }
.hero-float-card small { color: var(--ux-ink-2); font-weight: 600; }

.section { padding: 54px 0; scroll-margin-top: 76px; }
#inquiry { scroll-margin-top: 84px; }
.section-head { margin-bottom: 26px; }
.section-head h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 31px); font-weight: 850; letter-spacing: -.03em; }
.section-head p { margin: 0; font-size: 15px; color: var(--ux-ink-2); max-width: 640px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }

/* Photo Scene Cards on Website */
.scene-card {
  background: var(--ux-surface);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--ux-line);
  display: flex;
  flex-direction: column;
  transition: transform .28s var(--ux-spring), box-shadow .28s;
}
.scene-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--ux-line-2), 0 24px 48px -28px var(--ux-shadow-strong); }
.scene-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ux-surface-2);
}
.scene-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ux-ease);
}
.scene-card:hover .scene-card-media img { transform: scale(1.04); }
.scene-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.scene-card-body h3 { margin: 0; font-size: 18px; font-weight: 850; }
.scene-card-body p { margin: 0; font-size: 13.5px; line-height: 1.62; color: var(--ux-ink-2); }

.dish-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.dish-preview-tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 0 0 1px var(--ux-line);
}
.dish-preview-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish-preview-tile span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(16, 15, 14, .74);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12.5px;
  font-weight: 750;
}

.site-footer {
  border-top: 1px solid var(--ux-line);
  padding: 28px 0 40px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--ux-ink-3);
}
.site-footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }

/* Login Centered Page */
.page-center { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-shell { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.demo-creds {
  width: 100%;
  max-width: 380px;
  padding: 12px 15px;
  border-radius: 16px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line);
  font-size: 12.5px;
  color: var(--ux-ink-2);
}
.demo-creds button { margin-top: 8px; margin-right: 6px; }

/* Workspace Shell (/admin & /:tenantCode) */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  background: color-mix(in srgb, var(--ux-surface) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ux-line);
}
.app-topbar-in {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.app-main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 18px 18px 56px;
}
.subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Tables / Data Lists */
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 750;
  color: var(--ux-ink-3);
  border-bottom: 1px solid var(--ux-line);
  white-space: nowrap;
}
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--ux-line); vertical-align: middle; }
.data-table tr.clickable { cursor: pointer; transition: background .15s; }
.data-table tr.clickable:hover { background: var(--ux-surface-2); }

/* KPI Row */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi-card { background: var(--ux-surface); border-radius: 18px; box-shadow: 0 0 0 1px var(--ux-line); padding: 15px 16px; }
.kpi-card small { display: block; font-size: 12px; font-weight: 700; color: var(--ux-ink-3); }
.kpi-card strong { display: block; margin-top: 6px; font-size: 24px; font-weight: 850; font-variant-numeric: tabular-nums; }
.kpi-card span { display: block; margin-top: 3px; font-size: 12px; color: var(--ux-ink-2); }

/* ── INTERACTIVE DRAG-AND-DROP VISUAL FLOOR PLAN ───────────── */
.pos-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(360px, .82fr); gap: 16px; align-items: start; }

.floor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.zone-pills { display: flex; gap: 6px; flex-wrap: wrap; }

.floor-canvas-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--ux-line);
  background: var(--ux-surface-2);
}

.floor-canvas {
  position: relative;
  width: 100%;
  min-width: 740px;
  height: 468px;
  background-image:
    radial-gradient(circle, color-mix(in srgb, var(--ux-ink) 14%, transparent) 1px, transparent 1px);
  background-size: 20px 20px;
  user-select: none;
  touch-action: none;
}
.floor-canvas.is-editing {
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ux-accent) 10%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ux-accent) 10%, transparent) 1px, transparent 1px);
  background-size: 20px 20px;
  box-shadow: inset 0 0 0 2px var(--ux-accent);
}

.fp-fixture {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--ux-ink-2);
  background: var(--ux-surface-3);
  border: 1.5px dashed var(--ux-line-2);
  padding: 0 8px;
  text-align: center;
}
.fp-fixture[data-kind="bar"] { background: color-mix(in srgb, var(--ux-accent) 12%, var(--ux-surface)); border-color: color-mix(in srgb, var(--ux-accent) 45%, transparent); color: var(--ux-accent); }
.fp-fixture[data-kind="kitchen"] { background: color-mix(in srgb, var(--ux-warn) 14%, var(--ux-surface)); border-color: color-mix(in srgb, var(--ux-warn) 48%, transparent); color: var(--ux-warn); }
.fp-fixture[data-kind="entrance"] { background: color-mix(in srgb, var(--ux-mint) 14%, var(--ux-surface)); border-color: color-mix(in srgb, var(--ux-mint) 48%, transparent); color: var(--ux-mint); }
.fp-fixture[data-kind="window"] { background: color-mix(in srgb, var(--ux-accent-2) 12%, var(--ux-surface)); border-color: color-mix(in srgb, var(--ux-accent-2) 40%, transparent); color: var(--ux-accent-2); }
.floor-canvas.is-editing .fp-fixture { cursor: grab; }
.floor-canvas.is-editing .fp-fixture.is-sel { box-shadow: 0 0 0 2.5px var(--ux-accent); z-index: 25; }

.fp-table {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px;
  border: 2px solid var(--ux-line-2);
  border-radius: 14px;
  background: var(--ux-surface);
  color: var(--ux-ink);
  box-shadow: 0 8px 18px -12px var(--ux-shadow-strong);
  text-align: center;
  cursor: pointer;
  transition: box-shadow .18s, border-color .18s, background .18s;
}
.fp-table[data-shape="round"] { border-radius: 999px; }
.fp-table[data-shape="booth"] { border-radius: 22px 22px 8px 8px; border-top-width: 6px; }
.fp-table.is-occupied {
  border-color: var(--ux-accent);
  background: color-mix(in srgb, var(--ux-accent) 11%, var(--ux-surface));
}
.fp-table.is-bill {
  border-color: var(--ux-warn);
  background: color-mix(in srgb, var(--ux-warn) 15%, var(--ux-surface));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ux-warn) 22%, transparent);
}
.fp-table.is-dirty {
  border-color: var(--ux-accent-2);
  border-style: dashed;
  background: color-mix(in srgb, var(--ux-accent-2) 10%, var(--ux-surface));
}
.fp-table.is-selected {
  box-shadow: 0 0 0 3px var(--ux-accent), 0 14px 28px -14px var(--ux-shadow-strong);
  z-index: 20;
}
.floor-canvas.is-editing .fp-table { cursor: grab; }
.floor-canvas.is-editing .fp-table.is-dragging { cursor: grabbing; z-index: 30; opacity: .92; box-shadow: 0 20px 36px -14px var(--ux-shadow-strong); }

.fp-code { font-size: 16px; font-weight: 900; line-height: 1.1; }
.fp-sub { font-size: 11px; font-weight: 700; color: var(--ux-ink-2); }
.fp-amt { font-size: 12.5px; font-weight: 850; color: var(--ux-accent); font-variant-numeric: tabular-nums; }
.fp-dot-alert {
  position: absolute;
  top: -7px;
  right: -7px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  color: #fff;
  background: var(--ux-accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .24);
}
.fp-dot-alert.bill { background: var(--ux-warn); }
.fp-dot-alert.dirty { background: var(--ux-accent-2); }

.fp-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ux-ink-2);
}
.fp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fp-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

.fp-inspector {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
}

/* POS Dish Cards with Photos */
.pos-menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
.pos-dish-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  border: 0;
  padding: 0;
  text-align: left;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  transition: transform .18s var(--ux-spring), box-shadow .18s;
}
.pos-dish-card:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ux-accent); transform: translateY(-2px); }
.pos-dish-card:disabled { opacity: .48; cursor: not-allowed; }
.pos-dish-photo {
  width: 100%;
  height: 76px;
  object-fit: cover;
  display: block;
  background: var(--ux-surface-3);
}
.pos-dish-meta { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; width: 100%; }
.pos-dish-meta b { font-size: 12.5px; line-height: 1.3; }
.pos-dish-meta span { font-size: 12.5px; font-weight: 850; color: var(--ux-accent); font-variant-numeric: tabular-nums; }

/* KDS Tickets */
.kds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.kds-card {
  background: var(--ux-surface);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--ux-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.kds-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--ux-surface-2);
  border-bottom: 1px solid var(--ux-line);
}
.kds-head.urgent { background: color-mix(in srgb, var(--ux-danger) 15%, var(--ux-surface)); }
.kds-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.kds-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--ux-surface-2);
}
.kds-item.is-rush {
  box-shadow: inset 0 0 0 2px var(--ux-danger);
  background: color-mix(in srgb, var(--ux-danger) 8%, var(--ux-surface));
}

/* QR Mobile Diner Page */
.qr-shell {
  width: min(560px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line);
  padding-bottom: 92px;
}
.qr-hero-banner {
  position: relative;
  height: 148px;
  overflow: hidden;
  background: var(--ux-surface-2);
}
.qr-hero-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qr-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 13, 12, .78), rgba(14, 13, 12, .12));
}
.qr-hero-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}
.qr-hero-info h1 { margin: 4px 0 0; font-size: 21px; font-weight: 850; }
.qr-hero-info p { margin: 2px 0 0; font-size: 12px; opacity: .88; }

.qr-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ux-line);
}
.qr-sec { padding: 14px 16px 4px; }
.qr-sec h2 { margin: 0 0 8px; font-size: 16px; font-weight: 850; }
.qr-dish {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--ux-line);
}
.qr-dish-img {
  width: 82px;
  height: 82px;
  flex: none;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 14px -8px var(--ux-shadow-strong);
  background: var(--ux-surface-2);
}
.qr-dish-thumb {
  width: 82px;
  height: 82px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 850;
}
.qr-dish-info { flex: 1; min-width: 0; }
.qr-dish-info h3 { margin: 0; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qr-dish-info p { margin: 3px 0 6px; font-size: 12.5px; color: var(--ux-ink-2); line-height: 1.45; }
.qr-dish-price { font-size: 15px; font-weight: 850; font-variant-numeric: tabular-nums; }

.qr-bottom-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  z-index: 50;
  width: min(528px, calc(100vw - 24px));
  display: flex;
  gap: 8px;
}
.qr-cart-fab {
  flex: 1;
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: var(--ux-ink);
  color: var(--ux-page);
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14.5px;
  font-weight: 800;
  box-shadow: 0 18px 34px -14px var(--ux-shadow-strong);
}

/* Modal Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 10, 16, .48);
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-box {
  width: min(620px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 22px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line), 0 30px 60px -24px var(--ux-shadow-strong);
  padding: 22px;
}
.modal-box.wide {
  width: min(820px, 100%);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 18px; font-weight: 850; }

/* Commercial Menu Studio */
.menu-studio {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.cat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cat-nav-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--ux-surface-2);
  border: 1px solid transparent;
  transition: background .16s, border-color .16s;
}
.cat-nav-row.is-active {
  background: var(--ux-accent-soft);
  border-color: color-mix(in srgb, var(--ux-accent) 42%, transparent);
}
.cat-nav-row.is-hidden { opacity: .55; }
.cat-nav-main {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 2px 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 750;
  color: var(--ux-ink);
}
.cat-nav-actions { display: flex; gap: 3px; }
.cat-nav-actions button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: var(--ux-surface);
  color: var(--ux-ink-2);
  font-size: 11px;
  display: grid;
  place-items: center;
}
.cat-nav-actions button:hover { background: var(--ux-ink); color: var(--ux-page); }

.menu-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.menu-filter-bar input,
.menu-filter-bar select {
  min-height: 36px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid var(--ux-line-2);
  background: var(--ux-surface-2);
  font-size: 13px;
}

.dish-studio-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dish-studio-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  transition: box-shadow .16s;
}
.dish-studio-row:hover { box-shadow: inset 0 0 0 1.5px var(--ux-line-2); }
.dish-studio-photo {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  background: var(--ux-surface-3);
}
.dish-studio-placeholder {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 850;
  color: #fff;
  cursor: pointer;
}

/* Real Drag-and-Drop Image Uploader */
.upload-zone {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 2px dashed var(--ux-line-2);
  background: var(--ux-surface-2);
  transition: border-color .2s, background .2s;
}
.upload-zone.is-drag {
  border-color: var(--ux-accent);
  background: var(--ux-accent-soft);
}
.upload-preview {
  width: 112px;
  height: 112px;
  flex: none;
  border-radius: 14px;
  object-fit: cover;
  background: var(--ux-surface-3);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ux-ink-3);
  font-size: 12px;
  text-align: center;
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-controls { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

.allergen-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.allergen-chip {
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--ux-line-2);
  background: var(--ux-surface-2);
  font-size: 12px;
  font-weight: 700;
  color: var(--ux-ink-2);
  transition: background .15s, color .15s, border-color .15s;
}
.allergen-chip[aria-pressed="true"] {
  background: var(--ux-accent);
  border-color: transparent;
  color: #fff;
}

.margin-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 11px;
  background: var(--ux-surface-2);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .menu-studio { grid-template-columns: 1fr; }
  .dish-studio-row { grid-template-columns: 64px minmax(0, 1fr); }
  .dish-studio-row > :last-child { grid-column: 1 / -1; justify-content: flex-start; }
  .dish-studio-photo, .dish-studio-placeholder { width: 64px; height: 64px; }
}

/* Charts */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  padding-top: 12px;
  border-bottom: 1px solid var(--ux-line);
}
.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 4px;
}
.chart-col i {
  width: 100%;
  max-width: 18px;
  border-radius: 4px 4px 0 0;
  background: var(--ux-accent);
  min-height: 2px;
  opacity: .85;
}
.chart-col small { font-size: 9.5px; color: var(--ux-ink-3); font-variant-numeric: tabular-nums; }

/* Printable Table QR Sheet */
.qr-print-page { padding: 20px; }
.qr-print-toolbar {
  width: min(1100px, 100%);
  margin: 0 auto 20px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.qr-print-toolbar span { margin-left: 10px; font-size: 13px; color: var(--ux-ink-2); }
.qr-print-actions { display: flex; gap: 8px; }
.qr-print-grid {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.qr-print-card {
  background: #fff;
  color: #111827;
  border: 1.5px solid #E5E7EB;
  border-radius: 18px;
  padding: 20px 16px;
  text-align: center;
  break-inside: avoid;
}
.qr-print-brand { font-size: 14px; font-weight: 750; color: #C84B1F; }
.qr-print-table { margin: 6px 0 12px; font-size: 22px; font-weight: 900; }
.qr-print-table span { font-size: 14px; padding: 2px 8px; border-radius: 999px; background: #F3F4F6; }
.qr-print-box { display: grid; place-items: center; margin: 8px 0 12px; }
.qr-print-hint { font-size: 13px; font-weight: 700; color: #374151; }
.qr-print-url { margin-top: 6px; font-size: 10.5px; color: #6B7280; word-break: break-all; }

.receipt-paper {
  background: var(--ux-surface-2);
  border-radius: 14px;
  padding: 16px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.6;
}

/* 80mm Thermal Dynamic QR Ticket Slip */
.thermal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  gap: 16px;
}
.thermal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.thermal-slip {
  width: 310px;
  max-width: 100%;
  background: #FFFFFF;
  color: #111827;
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, .1), 0 22px 44px -22px rgba(0, 0, 0, .28);
  text-align: center;
}
.thermal-store { font-size: 18px; font-weight: 900; letter-spacing: -.02em; }
.thermal-sub { margin-top: 3px; font-size: 12px; font-weight: 700; color: #C84B1F; }
.thermal-divider { border-top: 1.5px dashed #D1D5DB; margin: 12px 0; }
.thermal-meta { display: flex; flex-direction: column; gap: 5px; font-size: 13px; text-align: left; }
.thermal-meta > div { display: flex; justify-content: space-between; align-items: baseline; }
.thermal-meta span { color: #6B7280; }
.thermal-qr { display: grid; place-items: center; margin: 14px 0 10px; }
.thermal-note { font-size: 12px; font-weight: 700; line-height: 1.55; color: #374151; }
.thermal-url { margin-top: 8px; font-size: 10px; color: #6B7280; word-break: break-all; }

@media print {
  .no-print { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .thermal-page { padding: 0; }
  .thermal-slip { width: 76mm; box-shadow: none; border-radius: 0; padding: 6mm 4mm; }
  .qr-print-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* Per-Restaurant Public Official Website (/:tenantCode/site) */
.rs-hero {
  position: relative;
  min-height: 410px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #141210;
}
.rs-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rs-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 12, 11, .88) 0%, rgba(14, 12, 11, .42) 55%, rgba(14, 12, 11, .28) 100%);
}
.rs-hero-inner {
  position: relative;
  z-index: 2;
  padding: 96px 0 64px;
  color: #fff;
}
.rs-hero-copy { max-width: 680px; }
.rs-hero-copy h1 {
  margin: 12px 0 10px;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.03em;
}
.rs-hero-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .9);
}
.rs-info-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line), 0 22px 42px -24px var(--ux-shadow-strong);
}
.rs-info-item small {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ux-ink-3);
  margin-bottom: 4px;
}
.rs-info-item strong { font-size: 13.5px; line-height: 1.45; }

.rs-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.rs-dish-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line), 0 12px 26px -20px var(--ux-shadow-strong);
}
.rs-dish-media { position: relative; aspect-ratio: 16 / 10; background: var(--ux-surface-2); overflow: hidden; }
.rs-dish-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-dish-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 36px;
  font-weight: 900;
}
.rs-dish-tag { position: absolute; top: 10px; left: 10px; }
.rs-dish-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.rs-dish-body h3 { margin: 0; font-size: 16px; font-weight: 850; }
.rs-dish-en { font-size: 11.5px; color: var(--ux-ink-3); margin-top: 2px; }
.rs-dish-body p { margin: 2px 0 0; font-size: 13px; color: var(--ux-ink-2); line-height: 1.5; }

.rs-booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .85fr);
  gap: 20px;
  align-items: start;
}
.rs-slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.rs-slot-btn {
  min-width: 72px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--ux-line-2);
  background: var(--ux-surface-2);
  color: var(--ux-ink);
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  transition: background .15s, color .15s, border-color .15s;
}
.rs-slot-btn:hover { border-color: var(--ux-accent); }
.rs-slot-btn.is-sel {
  background: var(--ux-accent);
  border-color: transparent;
  color: #fff;
}
.rs-confirm-card {
  padding: 20px;
  border-radius: 16px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ux-mint) 55%, transparent);
}

/* Owner Backoffice Executive Sidebar Shell (/:tenantCode/backoffice) */
.bo-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 20px 18px 64px;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.bo-sidebar {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 20px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line), 0 16px 32px -24px var(--ux-shadow-strong);
}
.bo-side-label {
  padding: 8px 10px 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--ux-ink-3);
  text-transform: uppercase;
}
.bo-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ux-ink-2);
  font-size: 13.5px;
  font-weight: 750;
  text-align: left;
  transition: background .15s, color .15s;
}
.bo-nav-btn:hover { background: var(--ux-surface-2); color: var(--ux-ink); }
.bo-nav-btn[aria-current="page"] {
  background: var(--ux-accent);
  color: #fff;
}
.bo-nav-btn[aria-current="page"] .badge {
  background: rgba(255, 255, 255, .24);
  color: #fff;
}
.bo-main { min-width: 0; }
.bo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.bo-kpi-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bo-kpi-card small { font-size: 12px; font-weight: 700; color: var(--ux-ink-3); }
.bo-kpi-card strong { font-size: 26px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bo-kpi-card span { font-size: 12px; color: var(--ux-ink-2); }

.rsv-list { display: flex; flex-direction: column; gap: 10px; }
.rsv-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
}
.rsv-time-box {
  padding: 10px;
  border-radius: 12px;
  background: var(--ux-surface);
  text-align: center;
  box-shadow: 0 0 0 1px var(--ux-line);
}
.rsv-time-box strong { display: block; font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--ux-accent); }
.rsv-time-box small { font-size: 11px; color: var(--ux-ink-3); font-variant-numeric: tabular-nums; }

/* Multi-Industry Template Selector Cards */
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tpl-card {
  padding: 20px;
  border-radius: 20px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1.5px var(--ux-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .18s, transform .18s;
}
.tpl-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--ux-line-2); }
.tpl-card.is-active {
  background: var(--ux-surface);
  box-shadow: inset 0 0 0 2.5px var(--ux-accent), 0 16px 32px -20px var(--ux-shadow-strong);
}
.tpl-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.tpl-features {
  margin: 2px 0 4px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Delivery Platform Hub (Keeta / Foodpanda) */
.deliv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.deliv-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field input[type="checkbox"],
.deliv-card input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  margin: 0;
  flex: none;
  accent-color: var(--ux-accent);
  cursor: pointer;
}
.deliv-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: .01em;
}
.deliv-order-card {
  padding: 15px 16px;
  border-radius: 16px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.deliv-order-card.is-incoming {
  background: var(--ux-surface);
  box-shadow: inset 0 0 0 2px var(--ux-warn), 0 14px 28px -18px var(--ux-shadow-strong);
}

/* One-Page Counter Quick-POS (Bubble Tea / Cafe / Fast Casual) */
.qpos-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(350px, 430px);
  gap: 16px;
  align-items: start;
}
.qpos-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.qpos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 11px;
}
.qpos-tile {
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  transition: transform .16s var(--ux-spring), box-shadow .16s;
}
.qpos-tile:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 2px var(--ux-accent), 0 12px 24px -16px var(--ux-shadow-strong);
}
.qpos-tile:disabled { opacity: .48; cursor: not-allowed; }
.qpos-tile-img { width: 100%; height: 104px; object-fit: cover; display: block; background: var(--ux-surface-3); }
.qpos-tile-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 4px; width: 100%; }
.qpos-tile-body strong { font-size: 13.5px; line-height: 1.3; }
.qpos-tile-price { font-size: 14.5px; font-weight: 900; color: var(--ux-accent); font-variant-numeric: tabular-nums; }

.qpos-ticket {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qpos-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

/* Public Pickup Queue TV Display (/:tenantCode/pickup) */
.pickup-tv {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  gap: 20px;
}
.pickup-tv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 20px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line);
}
.pickup-tv-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
}
.pickup-col {
  padding: 22px;
  border-radius: 24px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pickup-col h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ux-line);
}
.pickup-col h2 span { font-size: 14px; color: var(--ux-ink-3); font-weight: 700; }
.pickup-col.ready h2 { color: var(--ux-accent); }
.pickup-nums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.pickup-tile {
  padding: 20px 14px;
  border-radius: 18px;
  background: var(--ux-surface-2);
  color: var(--ux-ink);
  box-shadow: inset 0 0 0 1px var(--ux-line-2);
  text-align: center;
  font-size: 38px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.pickup-tile small { display: block; font-size: 12px; font-weight: 700; color: var(--ux-ink-2); margin-top: 4px; }
.pickup-tile.is-ready {
  background: var(--ux-accent-btn, var(--ux-accent));
  color: var(--ux-accent-btn-ink, #FFFFFF);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 18px 34px -14px var(--ux-glow, var(--ux-shadow-strong));
}
.pickup-tile.is-ready small { color: inherit; opacity: .88; }
.pickup-empty { grid-column: 1 / -1; padding: 36px; text-align: center; color: var(--ux-ink-3); font-size: 16px; }

/* Printable 40x30mm Cup Sticker Sheet */
.cup-sticker-sheet {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 720px;
}
.cup-sticker {
  width: 240px;
  min-height: 158px;
  background: #fff;
  color: #111827;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 0 0 1.5px rgba(17, 24, 39, .14), 0 14px 28px -18px rgba(0, 0, 0, .26);
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}
.cs-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1.5px dashed #CBD5E1; padding-bottom: 5px; }
.cs-top strong { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cs-top span { font-size: 11px; font-weight: 700; color: #475569; }
.cs-name { font-size: 15px; font-weight: 900; line-height: 1.3; margin-top: 2px; }
.cs-mods { font-size: 12px; font-weight: 750; color: #0F766E; line-height: 1.4; }
.cs-note { font-size: 11.5px; color: #B91C1C; font-weight: 700; }
.cs-foot { margin-top: auto; padding-top: 6px; border-top: 1px solid #E2E8F0; display: flex; justify-content: space-between; font-size: 10.5px; color: #64748B; }

@media (max-width: 1020px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 28px 0; }
  .grid-3, .grid-2, .pos-split, .qpos-split, .rs-booking-grid, .deliv-grid, .tpl-grid, .pickup-tv-grid { grid-template-columns: minmax(0, 1fr); }
  .pos-split > *, .qpos-split > * { min-width: 0; }
  .qpos-ticket { position: static; }
  .rs-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-info-strip, .bo-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dish-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bo-shell { grid-template-columns: 1fr; }
  .bo-sidebar { position: static; flex-direction: row; overflow-x: auto; padding: 8px; }
  .bo-side-label { display: none; }
  .bo-nav-btn { width: auto; white-space: nowrap; flex: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .u212-hd { padding: 0 14px; gap: 8px; }
  .field-grid, .field-grid-3 { grid-template-columns: 1fr; }
  .rs-menu-grid, .rs-info-strip { grid-template-columns: 1fr; }
  .rsv-row { grid-template-columns: 1fr; }
  .kpi-grid, .bo-kpi-grid { grid-template-columns: 1fr 1fr; }
  .app-main, .bo-shell { padding: 14px 12px 56px; }
}

/* Super Admin Module Catalog & Onboarding Quote Builder (/admin) */
.mod-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.mod-price-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mod-price-card.is-free {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ux-mint) 42%, transparent);
}
.mod-price-card input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--ux-accent);
  cursor: pointer;
}
.onboard-split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
}
.onboard-mod-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}
.onboard-mod-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  transition: box-shadow .16s, background .16s;
}
.onboard-mod-row.is-checked {
  background: var(--ux-surface);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ux-accent) 45%, transparent);
}
.onboard-mod-left {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}
.onboard-mod-left input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--ux-accent);
  cursor: pointer;
}
.onboard-mod-price {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}
.onboard-mod-price input {
  width: 78px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--ux-line-2);
  background: var(--ux-surface-2);
  font-size: 12.5px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.quote-summary-box {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: radial-gradient(95% 110% at 100% 0%, var(--ux-accent-soft), transparent 72%), var(--ux-surface-2);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ux-accent) 35%, transparent);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quote-final-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.quote-final-input {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ux-surface);
  border-radius: 12px;
  padding: 4px 10px;
  box-shadow: inset 0 0 0 1.5px var(--ux-accent);
}
.quote-final-input input {
  width: 96px;
  border: 0;
  background: none;
  font-size: 20px;
  font-weight: 900;
  color: var(--ux-accent);
  text-align: right;
  outline: none;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 960px) {
  .mod-catalog-grid, .onboard-split { grid-template-columns: 1fr; }
}

/* Backoffice Dish Editor AI Food Photo Studio */
.ai-studio-box {
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
  background: radial-gradient(90% 100% at 96% 4%, var(--ux-accent-soft), transparent 68%), var(--ux-surface-2);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ux-accent) 30%, transparent);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-studio-box[hidden] { display: none; }
.ai-studio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.ai-preset-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.ai-preset-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid var(--ux-line-2);
  background: var(--ux-surface);
  color: var(--ux-ink-2);
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}
.ai-preset-btn[aria-pressed="true"] {
  background: var(--ux-accent);
  border-color: transparent;
  color: var(--ux-accent-ink);
}
.ai-studio-compare-wrap {
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
}
.ai-studio-compare-wrap .u060 {
  border-radius: 18px;
}

/* Menu Dish Number / Code Badges & Fast Numeric Code Entry */
.dish-code-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--ux-ink);
  color: var(--ux-surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.dish-code-pill.accent {
  background: var(--ux-accent);
  color: var(--ux-accent-ink);
}
.dish-code-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .55);
}
.qpos-tile, .pos-dish-card {
  position: relative;
}
.pos-code-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--ux-accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ux-accent) 32%, transparent);
  font-size: 12.5px;
  font-weight: 750;
  color: var(--ux-accent);
}
.pos-numpad {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
}
.pos-numpad[hidden] { display: none; }
.pos-numpad button {
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--ux-line-2);
  background: var(--ux-surface);
  color: var(--ux-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: transform .12s, background-color .15s;
}
.pos-numpad button:active { transform: scale(.95); }
.pos-numpad button.np-go {
  background: var(--ux-accent);
  border-color: transparent;
  color: var(--ux-accent-ink);
  font-size: 12.5px;
}
.pos-numpad button.np-clr {
  background: var(--ux-surface-3);
  font-size: 12px;
}
.qr-search-wrap {
  padding: 10px 16px 4px;
}
.qr-search-input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid var(--ux-line-2);
  background: var(--ux-surface-2);
  color: var(--ux-ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
}
.qr-search-input:focus {
  outline: none;
  border-color: var(--ux-accent);
  background: var(--ux-surface);
}

/* Super Admin Sales Demo Quick Launcher Hub · Square Tactile Shortcut Keys
   Lucian UX/UI Prompt #228 & #214 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#228 */
.demo-hub-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.demo-topbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.demo-open-mode {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  background: var(--ux-surface-2);
  border: 1px solid var(--ux-line);
}
.demo-open-mode .btn.sm {
  height: 30px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 9px;
  border-color: transparent;
}
.demo-biz-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.demo-marketing-strip {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--ux-surface-2);
  border: 1px solid var(--ux-line);
  margin-bottom: 18px;
}
.demo-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.demo-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ux-ink);
}
.demo-section-count {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ux-ink-3);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ux-surface);
  border: 1px solid var(--ux-line);
}
.demo-section-note {
  font-size: 12px;
  color: var(--ux-ink-3);
}
.demo-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex: none;
}
.demo-dot.is-web { background: #1A73E8; }
.demo-dot.is-boss { background: #1A73E8; }
.demo-dot.is-pos { background: #202124; }
.demo-dot.is-guest { background: #137333; }

.demo-stores-workspace {
  display: flex;
  flex-direction: column;
}
/* Lucian #213-inspired 4-Restaurant Selector Bar */
.demo-store-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.demo-store-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px 13px;
  border-radius: 15px;
  border: 1px solid #DADCE0;
  background: #FFFFFF;
  color: #202124;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .05);
  transition: border-color .2s var(--ux-ease), background-color .2s var(--ux-ease), transform .18s var(--ux-ease), box-shadow .2s var(--ux-ease);
}
.demo-store-tab:hover {
  border-color: #AECBFA;
  background: #F8FAFE;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -10px rgba(26, 115, 232, .22);
}
.demo-store-tab:focus-visible {
  outline: none;
  border-color: #1A73E8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .22);
}
.demo-store-tab.is-active {
  border-color: #1A73E8;
  background: #F4F8FF;
  box-shadow: 0 6px 18px -12px rgba(26, 115, 232, .35);
}
.demo-store-tab.is-paused {
  opacity: .72;
}
.demo-tab-thumb {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
  flex: none;
  background: #F1F3F4;
  border: 1px solid #E3E5E8;
}
.demo-tab-tx {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.demo-tab-tx strong {
  font-size: 14.5px;
  font-weight: 800;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-store-tab.is-active .demo-tab-tx strong {
  color: #174EA6;
}
.demo-tab-tx small {
  font-size: 11.5px;
  font-weight: 600;
  color: #5F6368;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-tab-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #1A73E8;
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}
.demo-store-tab.is-active .demo-tab-bar {
  transform: scaleX(1);
}

.demo-store-stage-wrap {
  width: 100%;
}
.demo-store-stage.is-entering {
  animation: demoStageEnter .24s cubic-bezier(.2, .8, .2, 1);
}
@keyframes demoStageEnter {
  from { opacity: .45; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.demo-key-grid.is-stage {
  grid-template-columns: repeat(auto-fill, minmax(122px, 138px));
  gap: 11px;
}

.demo-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.demo-store-card {
  border-radius: 18px;
  padding: 18px;
  background: var(--ux-surface);
  border: 1px solid var(--ux-line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s var(--ux-ease), box-shadow .2s var(--ux-ease);
}
.demo-store-card:hover {
  border-color: #CBD2D9;
  box-shadow: 0 10px 26px -18px rgba(60, 64, 67, .22);
}
.demo-store-hd {
  display: flex;
  gap: 14px;
  align-items: center;
}
.demo-store-thumb {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  flex: none;
  background: var(--ux-surface-3);
  border: 1px solid var(--ux-line);
}
.demo-group {
  padding: 12px;
  border-radius: 14px;
  background: var(--ux-surface-2);
  border: 1px solid var(--ux-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-group-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--ux-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.demo-group-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.demo-group-meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--ux-ink-3);
}

/* Square Tactile Shortcut Key Grids */
.demo-key-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.demo-key-grid.is-marketing {
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}
.drawer-key-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 16px;
}

.demo-key {
  --u228-c: #1A73E8;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  aspect-ratio: 1 / 1;
  min-height: 108px;
  max-height: 132px;
  width: 100%;
  padding: 12px 8px 10px;
  border-radius: 15px;
  border: 1px solid #DADCE0;
  background: #FFFFFF;
  color: #202124;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .06), 0 2.5px 0 #E5E7EB;
  transition: transform .18s var(--ux-ease), border-color .18s var(--ux-ease), box-shadow .18s var(--ux-ease), background-color .18s var(--ux-ease);
}
.demo-key:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--u228-c);
  box-shadow: 0 8px 18px -10px rgba(26, 115, 232, .26), 0 3px 0 color-mix(in srgb, var(--u228-c) 24%, #E5E7EB);
}
.demo-key:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(60, 64, 67, .08), 0 0 0 #E5E7EB;
}
.demo-key:focus-visible {
  outline: none;
  border-color: #1A73E8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .24), 0 2px 0 #D2E3FC;
}
.demo-key:disabled {
  opacity: .46;
  cursor: not-allowed;
  box-shadow: none;
}

.demo-key-corner {
  position: absolute;
  top: 7px;
  right: 9px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: #9AA0A6;
  transition: transform .18s var(--ux-ease), color .18s var(--ux-ease);
}
.demo-key:hover:not(:disabled) .demo-key-corner {
  color: var(--u228-c);
  transform: translate(1.5px, -1.5px);
}

.demo-key-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: #F1F3F4;
  color: #3C4043;
  transition: transform .22s var(--ux-spring), background-color .18s var(--ux-ease), color .18s var(--ux-ease);
}
.demo-key-ic svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.demo-key:hover:not(:disabled) .demo-key-ic {
  transform: scale(1.06);
}

.demo-key-title {
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  color: #202124;
  letter-spacing: -.01em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-key-sub {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  color: #5F6368;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Group semantic tints (restrained Google Workspace palette) */
.demo-key.is-web { --u228-c: #1A73E8; }
.demo-key.is-web .demo-key-ic { background: #F1F3F4; color: #3C4043; }
.demo-key.is-web:hover:not(:disabled) .demo-key-ic { background: #E8F0FE; color: #1A73E8; }
.demo-key.is-web.is-featured {
  background: #F6F9FF;
  border-color: #C2D7FA;
}
.demo-key.is-web.is-featured .demo-key-ic {
  background: #1A73E8;
  color: #FFFFFF;
}

.demo-key.is-boss { --u228-c: #1A73E8; }
.demo-key.is-boss .demo-key-ic { background: #E8F0FE; color: #1A73E8; }
.demo-key.is-boss.is-featured {
  background: #F4F8FF;
  border-color: #AECBFA;
}
.demo-key.is-boss.is-featured .demo-key-ic {
  background: #1A73E8;
  color: #FFFFFF;
}

.demo-key.is-pos { --u228-c: #202124; }
.demo-key.is-pos .demo-key-ic { background: #ECEFF3; color: #202124; }
.demo-key.is-pos.is-featured {
  background: #202124;
  border-color: #202124;
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(32, 33, 36, .18), 0 2.5px 0 #0F1012;
}
.demo-key.is-pos.is-featured .demo-key-ic {
  background: rgba(255, 255, 255, .14);
  color: #FFFFFF;
}
.demo-key.is-pos.is-featured .demo-key-title { color: #FFFFFF; }
.demo-key.is-pos.is-featured .demo-key-sub { color: #BDC1C6; }
.demo-key.is-pos.is-featured .demo-key-corner { color: #9AA0A6; }
.demo-key.is-pos.is-featured:hover:not(:disabled) {
  background: #2C2E33;
  border-color: #3C4043;
  box-shadow: 0 10px 22px -12px rgba(32, 33, 36, .42), 0 3px 0 #0F1012;
}
.demo-key.is-pos.is-featured:hover:not(:disabled) .demo-key-corner { color: #FFFFFF; }

.demo-key.is-guest { --u228-c: #137333; }
.demo-key.is-guest .demo-key-ic { background: #E6F4EA; color: #137333; }
.demo-key.is-guest.is-featured {
  background: #F3FAF5;
  border-color: #A8DAB5;
}
.demo-key.is-guest.is-featured .demo-key-ic {
  background: #137333;
  color: #FFFFFF;
}

@media (max-width: 1160px) {
  .demo-hub-grid { grid-template-columns: 1fr; }
  .demo-key-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
}
@media (max-width: 640px) {
  .demo-marketing-strip { padding: 12px; }
  .demo-store-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .demo-store-tab {
    padding: 9px 10px 11px;
    gap: 8px;
    border-radius: 13px;
  }
  .demo-tab-thumb { width: 34px; height: 34px; border-radius: 9px; }
  .demo-tab-tx strong { font-size: 13px; }
  .demo-tab-tx small { font-size: 10.5px; }
  .demo-store-card { padding: 14px; }
  .demo-group { padding: 10px; }
  .demo-key-grid,
  .demo-key-grid.is-stage,
  .demo-key-grid.is-marketing {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .drawer-key-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .demo-key {
    min-height: 94px;
    max-height: 118px;
    padding: 10px 6px 8px;
    border-radius: 13px;
    gap: 5px;
  }
  .demo-key-ic { width: 36px; height: 36px; border-radius: 10px; }
  .demo-key-ic svg { width: 18px; height: 18px; }
  .demo-key-title { font-size: 12px; }
  .demo-key-sub { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-key,
  .demo-key-ic,
  .demo-key-corner,
  .demo-store-tab,
  .demo-tab-bar { transition: none !important; }
  .demo-store-stage.is-entering { animation: none !important; }
  .demo-key:hover:not(:disabled),
  .demo-key:hover:not(:disabled) .demo-key-ic,
  .demo-key:hover:not(:disabled) .demo-key-corner,
  .demo-store-tab:hover { transform: none !important; }
}

/* ============================================================================
   SEATLY PRO CONSOLE DESIGN SYSTEM (.app-pro)
   Modern Deep Obsidian-Slate Hospitality Console with crisp Light Mode parity
   ============================================================================ */
body.app-pro {
  background:
    radial-gradient(64% 44% at 14% -6%, var(--ux-glow), transparent 60%),
    radial-gradient(50% 42% at 92% -4%, var(--ux-glow-2), transparent 58%),
    var(--ux-page);
  background-attachment: fixed;
}
:root[data-theme="light"] body.app-pro {
  --ux-page: #F2F4F8;
  --ux-surface: #FFFFFF;
  --ux-surface-2: #F4F6FA;
  --ux-surface-3: #E7ECF3;
  --ux-line: rgba(15, 23, 42, .08);
  --ux-line-2: rgba(15, 23, 42, .15);
  background:
    radial-gradient(55% 38% at 14% -8%, color-mix(in srgb, var(--ux-accent) 9%, transparent), transparent 62%),
    radial-gradient(46% 36% at 90% -6%, color-mix(in srgb, var(--ux-accent-2) 8%, transparent), transparent 60%),
    var(--ux-page);
  background-attachment: fixed;
}

/* Frosted Glass Console Topbar */
.app-pro .app-topbar {
  background: color-mix(in srgb, var(--ux-surface) 78%, transparent);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  border-bottom: 1px solid var(--ux-line);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .03), 0 10px 30px -22px var(--ux-shadow-strong);
}
.app-pro .app-topbar-in {
  width: min(1840px, 100%);
  padding: 10px clamp(12px, 1.8vw, 24px);
}
.app-pro .app-main {
  width: min(1840px, 100%);
  padding: 16px clamp(12px, 1.8vw, 24px) 48px;
}
.app-pro .brand-mark {
  gap: 11px;
  font-size: 16.5px;
  letter-spacing: -.025em;
}
.app-pro .brand-mark img {
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .14);
}

/* Elevated Specular Cards & Tactile Buttons */
.app-pro .card-box {
  background: linear-gradient(180deg, color-mix(in srgb, var(--ux-surface-2) 34%, var(--ux-surface)) 0%, var(--ux-surface) 100%);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 var(--ux-specular), 0 0 0 1px var(--ux-line), 0 24px 48px -34px var(--ux-shadow-strong);
  padding: 20px 22px;
}
.app-pro .btn {
  background: color-mix(in srgb, var(--ux-surface-2) 82%, var(--ux-surface));
  border: 1px solid var(--ux-line-2);
  box-shadow: inset 0 1px 0 var(--ux-specular);
  font-weight: 740;
  transition: background .18s, border-color .18s, box-shadow .2s, transform .18s var(--ux-spring), filter .18s;
}
.app-pro .btn:hover:not(:disabled) {
  background: var(--ux-surface-3);
  border-color: color-mix(in srgb, var(--ux-ink) 26%, transparent);
}
.app-pro .btn.primary {
  background: var(--ux-accent-btn);
  border-color: color-mix(in srgb, #fff 16%, transparent);
  color: var(--ux-accent-btn-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 10px 22px -12px var(--ux-glow);
}
.app-pro .btn.primary:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 26px -12px var(--ux-glow);
}
.app-pro .btn.mint {
  background: linear-gradient(135deg, #10B981, #059669);
  border-color: rgba(255, 255, 255, .16);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 22px -12px rgba(16, 185, 129, .45);
}
.app-pro .btn.ink {
  background: var(--ux-ink);
  color: var(--ux-page);
  border-color: transparent;
}
.app-pro .btn.accent {
  background: var(--ux-accent-soft);
  border-color: color-mix(in srgb, var(--ux-accent) 40%, transparent);
  color: var(--ux-accent);
}
.app-pro .btn.accent:hover:not(:disabled) {
  background: color-mix(in srgb, var(--ux-accent) 24%, transparent);
}
.app-pro .badge {
  box-shadow: inset 0 0 0 1px var(--ux-line);
  font-weight: 760;
}
.app-pro .badge.ok { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ux-mint) 36%, transparent); }
.app-pro .badge.warn { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ux-warn) 38%, transparent); }
.app-pro .badge.danger { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ux-danger) 38%, transparent); }
.app-pro .badge.accent { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ux-accent) 38%, transparent); }
.app-pro .badge.info { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ux-accent-2) 38%, transparent); }

/* Recessed Command Dock Tabs (#039) */
.app-pro .u039-tabs {
  background: color-mix(in srgb, var(--ux-surface) 88%, #000);
  box-shadow: inset 0 1px 0 var(--ux-specular), 0 0 0 1px var(--ux-line), 0 12px 26px -18px var(--ux-shadow-strong);
  padding: 5px;
}
:root[data-theme="light"] .app-pro .u039-tabs {
  background: rgba(255, 255, 255, .92);
}
.app-pro .u039-pill {
  top: 5px;
  bottom: 5px;
  background: var(--ux-accent-btn);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 10px 22px -10px var(--ux-glow);
}
.app-pro .u039-tab {
  height: 36px;
  font-weight: 760;
}
.app-pro .u039-tab[aria-selected="true"] {
  color: #FFFFFF;
}
.app-pro .u039-tab[aria-selected="true"] .u039-badge {
  background: rgba(0, 0, 0, .28);
  color: #FFFFFF;
}

/* Pro Inputs & Data Tables */
.app-pro .field input,
.app-pro .field select,
.app-pro .field textarea {
  background: color-mix(in srgb, var(--ux-page) 45%, var(--ux-surface-2));
  border: 1px solid var(--ux-line-2);
  transition: border-color .18s, box-shadow .18s;
}
.app-pro .field input:focus,
.app-pro .field select:focus,
.app-pro .field textarea:focus {
  outline: none;
  border-color: var(--ux-accent);
  box-shadow: 0 0 0 3px var(--ux-accent-soft);
}
.app-pro .data-table th {
  background: color-mix(in srgb, var(--ux-surface-2) 65%, transparent);
  font-size: 11.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 11px 14px;
}
.app-pro .data-table th:first-child { border-radius: 10px 0 0 10px; }
.app-pro .data-table th:last-child { border-radius: 0 10px 10px 0; }
.app-pro .data-table td { padding: 12px 14px; }
.app-pro .data-table tr.clickable:hover td {
  background: color-mix(in srgb, var(--ux-accent) 7%, var(--ux-surface-2));
}

/* Upgraded Gradient Hourly Bar Chart */
.app-pro .chart-bars {
  height: 152px;
  gap: 6px;
  padding: 14px 6px 4px;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 34px,
    color-mix(in srgb, var(--ux-line) 75%, transparent) 34px,
    color-mix(in srgb, var(--ux-line) 75%, transparent) 35px
  );
  border-bottom: 1px solid var(--ux-line-2);
  border-radius: 12px 12px 0 0;
}
.app-pro .chart-col i {
  max-width: 22px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--ux-accent) 0%, color-mix(in srgb, var(--ux-accent) 32%, transparent) 100%);
  box-shadow: 0 -2px 12px -4px var(--ux-glow);
  transition: transform .22s var(--ux-spring), filter .2s;
}
.app-pro .chart-col:hover i {
  transform: scaleY(1.06);
  transform-origin: bottom;
  filter: brightness(1.18);
}

/* Upgraded Rolling Metric Card (#098) */
.app-pro .u098 {
  background:
    radial-gradient(90% 80% at 96% 0%, var(--ux-accent-soft), transparent 65%),
    linear-gradient(180deg, color-mix(in srgb, var(--ux-surface-2) 38%, var(--ux-surface)), var(--ux-surface));
  box-shadow: inset 0 1px 0 var(--ux-specular), 0 0 0 1px var(--ux-line), 0 24px 48px -32px var(--ux-shadow-strong);
  padding: 20px 22px;
}
.app-pro .u098-tb {
  background: color-mix(in srgb, var(--ux-surface-2) 86%, var(--ux-page));
  box-shadow: inset 0 0 0 1px var(--ux-line);
}
.app-pro .u098-tb[aria-pressed="true"] {
  background: color-mix(in srgb, var(--ux-accent) 13%, var(--ux-surface-2));
  box-shadow: inset 0 0 0 1.5px var(--ux-accent), 0 8px 18px -12px var(--ux-glow);
}

/* Upgraded Architectural Floor Plan Canvas (/pos) */
.app-pro .floor-canvas-scroll {
  background: #080C14;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 18px 40px -24px rgba(0, 0, 0, .7);
  border-radius: 20px;
}
:root[data-theme="light"] .app-pro .floor-canvas-scroll {
  background: #EDF1F7;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .1);
}
.app-pro .floor-canvas {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .13) 1px, transparent 1px),
    radial-gradient(80% 70% at 50% 0%, color-mix(in srgb, var(--ux-accent) 8%, transparent), transparent 72%);
  background-size: 22px 22px, 100% 100%;
}
:root[data-theme="light"] .app-pro .floor-canvas {
  background-image:
    radial-gradient(circle, rgba(15, 23, 42, .14) 1px, transparent 1px),
    radial-gradient(80% 70% at 50% 0%, color-mix(in srgb, var(--ux-accent) 5%, transparent), transparent 72%);
}
.app-pro .fp-fixture {
  backdrop-filter: blur(6px);
  border-radius: 12px;
  font-size: 11.5px;
  letter-spacing: .06em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.app-pro .fp-table {
  border-width: 1.5px;
  border-color: rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ux-surface-3) 76%, var(--ux-surface)) 0%, color-mix(in srgb, var(--ux-surface-2) 92%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 12px 24px -14px rgba(0, 0, 0, .7);
  transition: transform .18s var(--ux-spring), box-shadow .2s, border-color .2s;
}
:root[data-theme="light"] .app-pro .fp-table {
  border-color: rgba(15, 23, 42, .16);
  background: linear-gradient(180deg, #FFFFFF, #F6F8FB);
  box-shadow: 0 8px 18px -12px rgba(15, 23, 42, .22);
}
.app-pro .fp-table:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .32);
}
.app-pro .fp-table.is-occupied {
  border-color: var(--ux-accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ux-accent) 24%, var(--ux-surface-2)), color-mix(in srgb, var(--ux-accent) 12%, var(--ux-surface)));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 0 1px color-mix(in srgb, var(--ux-accent) 35%, transparent), 0 14px 28px -12px var(--ux-glow);
}
.app-pro .fp-table.is-bill {
  border-color: var(--ux-warn);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ux-warn) 26%, var(--ux-surface-2)), color-mix(in srgb, var(--ux-warn) 12%, var(--ux-surface)));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 4px color-mix(in srgb, var(--ux-warn) 24%, transparent), 0 14px 28px -10px rgba(251, 191, 36, .38);
  animation: seatly-bill-pulse 2.2s ease-in-out infinite;
}
@keyframes seatly-bill-pulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 3px color-mix(in srgb, var(--ux-warn) 22%, transparent), 0 14px 28px -10px rgba(251, 191, 36, .34); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 6px color-mix(in srgb, var(--ux-warn) 36%, transparent), 0 14px 32px -8px rgba(251, 191, 36, .52); }
}
.app-pro .fp-table.is-dirty {
  border-color: var(--ux-accent-2);
  border-style: dashed;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ux-accent-2) 18%, var(--ux-surface-2)), color-mix(in srgb, var(--ux-accent-2) 9%, var(--ux-surface)));
}
.app-pro .fp-table.is-selected {
  box-shadow: 0 0 0 2.5px #FFFFFF, 0 0 0 5px var(--ux-accent), 0 20px 36px -12px var(--ux-glow);
  transform: translateY(-2px);
}
:root[data-theme="light"] .app-pro .fp-table.is-selected {
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4.5px var(--ux-accent), 0 16px 30px -12px var(--ux-glow);
}
.app-pro .fp-dot-alert {
  background: var(--ux-accent-btn);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .2);
}
.app-pro .fp-dot-alert.bill { background: linear-gradient(135deg, #F59E0B, #D97706); color: #1A1205; }
.app-pro .fp-dot-alert.dirty { background: linear-gradient(135deg, #14B8A6, #0F766E); }

/* Pro Terminal Right Pane, Total Banner & HK Color-Coded Payment Keys */
.app-pro .pos-terminal-pane {
  position: sticky;
  top: 74px;
}
.app-pro .pos-total-box {
  padding: 13px 15px;
  border-radius: 16px;
  background:
    radial-gradient(95% 130% at 100% 0%, var(--ux-accent-soft), transparent 72%),
    color-mix(in srgb, var(--ux-surface-2) 88%, var(--ux-page));
  box-shadow: inset 0 1px 0 var(--ux-specular), inset 0 0 0 1px color-mix(in srgb, var(--ux-accent) 28%, var(--ux-line));
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.app-pro .pos-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
  font-weight: 850;
}
.app-pro .pos-total-amt {
  font-size: 27px;
  font-weight: 950;
  letter-spacing: -.03em;
  color: var(--ux-accent);
  font-variant-numeric: tabular-nums;
}
.app-pro .qpos-pay-grid {
  gap: 8px;
}
.app-pro .pay-btn {
  min-height: 42px;
  font-size: 13px;
  font-weight: 820;
  border-radius: 12px;
}
.app-pro .pay-octopus {
  background: linear-gradient(135deg, #F26B24, #D94E18);
  border-color: rgba(255, 255, 255, .18);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 20px -12px rgba(242, 107, 36, .6);
}
.app-pro .pay-cash {
  background: linear-gradient(135deg, #10B981, #059669);
  border-color: rgba(255, 255, 255, .18);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 20px -12px rgba(16, 185, 129, .55);
}
.app-pro .pay-fps {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  border-color: rgba(255, 255, 255, .18);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 20px -12px rgba(59, 130, 246, .55);
}
.app-pro .pay-payme {
  background: color-mix(in srgb, #E11D48 18%, var(--ux-surface-2));
  border-color: color-mix(in srgb, #FB7185 40%, transparent);
  color: #FDA4AF;
}
:root[data-theme="light"] .app-pro .pay-payme { color: #BE123C; }
.app-pro .pay-alipay {
  background: color-mix(in srgb, #0EA5E9 18%, var(--ux-surface-2));
  border-color: color-mix(in srgb, #38BDF8 40%, transparent);
  color: #7DD3FC;
}
:root[data-theme="light"] .app-pro .pay-alipay { color: #0369A1; }
.app-pro .pay-card {
  background: color-mix(in srgb, #8B5CF6 16%, var(--ux-surface-2));
  border-color: color-mix(in srgb, #A78BFA 36%, transparent);
  color: #DDD6FE;
}
:root[data-theme="light"] .app-pro .pay-card { color: #5B21B6; }

/* Sculpted POS Dish Tiles & Quick-POS Photo Cards */
.app-pro .qpos-tile,
.app-pro .pos-dish-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--ux-surface-3) 48%, var(--ux-surface-2)), var(--ux-surface-2));
  box-shadow: inset 0 1px 0 var(--ux-specular), inset 0 0 0 1px var(--ux-line);
  border-radius: 17px;
}
.app-pro .qpos-tile-img {
  height: 112px;
  transition: transform .42s var(--ux-ease);
}
.app-pro .pos-dish-photo {
  height: 82px;
  transition: transform .42s var(--ux-ease);
}
.app-pro .qpos-tile:hover:not(:disabled) .qpos-tile-img,
.app-pro .pos-dish-card:hover:not(:disabled) .pos-dish-photo {
  transform: scale(1.06);
}
.app-pro .dish-code-pill {
  background: rgba(8, 10, 16, .84);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 6px 14px -4px rgba(0, 0, 0, .65);
}
.app-pro .dish-code-pill.accent {
  background: var(--ux-accent-btn);
  color: #FFFFFF;
}
.app-pro .pos-numpad {
  background: color-mix(in srgb, var(--ux-page) 55%, var(--ux-surface-2));
  box-shadow: inset 0 0 0 1px var(--ux-line);
  padding: 9px;
  border-radius: 14px;
}
.app-pro .pos-numpad button {
  height: 38px;
  background: linear-gradient(180deg, var(--ux-surface-3), var(--ux-surface-2));
  box-shadow: inset 0 1px 0 var(--ux-specular);
}
.app-pro .pos-numpad button.np-go {
  background: var(--ux-accent-btn);
  color: #FFFFFF;
}

/* Pro High-Contrast Kitchen & Bar KDS Tickets */
.app-pro .kds-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--ux-surface-2) 45%, var(--ux-surface)), var(--ux-surface));
  box-shadow: inset 0 1px 0 var(--ux-specular), 0 0 0 1px var(--ux-line), 0 22px 42px -28px var(--ux-shadow-strong);
  border-top: 3.5px solid var(--ux-accent);
  border-radius: 20px;
}
.app-pro .kds-card[data-station="bar"] { border-top-color: var(--ux-accent-2); }
.app-pro .kds-card[data-station="dessert"] { border-top-color: var(--ux-warn); }
.app-pro .kds-card.is-urgent {
  border-top-color: var(--ux-danger);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1.5px color-mix(in srgb, var(--ux-danger) 55%, transparent), 0 20px 38px -22px rgba(251, 113, 133, .45);
}
.app-pro .kds-head {
  background: color-mix(in srgb, var(--ux-surface-2) 84%, transparent);
  padding: 13px 16px;
}
.app-pro .kds-head.urgent {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ux-danger) 24%, var(--ux-surface-2)), color-mix(in srgb, var(--ux-danger) 10%, var(--ux-surface)));
}
.app-pro .kds-item {
  background: color-mix(in srgb, var(--ux-page) 40%, var(--ux-surface-2));
  box-shadow: inset 0 0 0 1px var(--ux-line);
  padding: 11px 12px;
  border-radius: 13px;
}
.app-pro .kds-item.is-rush {
  background: color-mix(in srgb, var(--ux-danger) 14%, var(--ux-surface-2));
  box-shadow: inset 0 0 0 1.5px var(--ux-danger);
}

/* Upgraded Super Admin KPI & Demo Store Cards */
.app-pro .kpi-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 18px 20px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ux-surface-2) 40%, var(--ux-surface)), var(--ux-surface));
  box-shadow: inset 0 1px 0 var(--ux-specular), 0 0 0 1px var(--ux-line), 0 20px 38px -28px var(--ux-shadow-strong);
  transition: transform .22s var(--ux-spring), box-shadow .22s;
}
.app-pro .kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 var(--ux-specular), 0 0 0 1px var(--ux-line-2), 0 24px 44px -26px var(--ux-shadow-strong);
}
.app-pro .kpi-card strong {
  font-size: 28px;
  letter-spacing: -.03em;
}
.app-pro .demo-store-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--ux-surface-2) 55%, var(--ux-surface)), var(--ux-surface));
  box-shadow: inset 0 1px 0 var(--ux-specular), 0 0 0 1px var(--ux-line), 0 20px 38px -28px var(--ux-shadow-strong);
}
.app-pro .demo-group {
  background: color-mix(in srgb, var(--ux-page) 42%, var(--ux-surface-2));
}

@media (max-width: 1020px) {
  .app-pro .pos-terminal-pane { position: static; }
  .app-pro .card-box { min-width: 0; max-width: 100%; }
}
@media (max-width: 640px) {
  .app-pro .app-topbar-in { padding: 9px 12px; gap: 7px; }
  .app-pro .card-box { padding: 15px 14px; border-radius: 18px; }
  .app-pro .u098 { padding: 15px 14px; }
  .app-pro .u098-num { font-size: 28px; height: 38px; line-height: 38px; }
  .app-pro .u098-col { transform: translateY(calc(var(--d) * -38px)); }
  .app-pro .u098-col span { height: 38px; }
  .app-pro .u098-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .app-pro .u098-tb { padding: 8px 7px; min-width: 0; }
  .app-pro .u098-tb b { font-size: 13px; }
  .app-pro .chart-bars { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .app-pro .fp-table.is-bill { animation: none; }
}

/* ============================================================================
   FIXED-VIEWPORT iPAD KIOSK POS ARCHITECTURE (ZERO PAGE SCROLL, FIXED GRIDS)
   Full-Screen Floor Map <-> Full-Screen Fixed-Position Touch Ordering & Checkout
   ============================================================================ */
body.pos-workspace {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pos-workspace .app-topbar {
  flex: none;
}
.pos-workspace .app-topbar-in {
  padding: 7px clamp(12px, 1.5vw, 22px);
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.pos-workspace .app-topbar-in::-webkit-scrollbar { display: none; }
.pos-workspace .app-topbar-in > * { flex: none; }
.pos-workspace .app-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px clamp(12px, 1.5vw, 22px) 12px;
  overflow: hidden;
}
.pos-workspace .subbar {
  flex: none;
  margin-bottom: 10px;
  gap: 8px;
  flex-wrap: nowrap;
}
.pos-workspace .subbar .u039-tabs {
  min-width: 0;
}
.pos-workspace #liveSummaryStrip {
  flex: none;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  overflow: hidden;
}

/* Zero-scroll POS Screen Tabs (Pagination replaces vertical scrolling on touch POS!) */
.pos-workspace .pos-main-stage > section {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.pos-screen-tab {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pos-screen-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  padding: 14px 16px !important;
}
.pos-screen-head {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pos-screen-dual {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  overflow: hidden;
}
.pos-paged-grid.cols-2 {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  overflow: hidden;
}
.pos-paged-split {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-items: start;
}
.pos-paged-kds {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-content: start;
}
.pos-paged-stack {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.pos-screen-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.pos-screen-tab .pos-pager {
  flex: none;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pos-screen-tab .pos-pager[hidden] { display: none !important; }
.pos-screen-tab .pos-pager .btn {
  min-height: 48px !important;
  min-width: 126px;
  font-size: 15.5px !important;
  font-weight: 850 !important;
}

/* POS Side-by-Side Touchscreen Shell + Right-Hand Big-Button Action Dock
   Lucian UX/UI Prompt #228 & #214 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#228 */
.pos-touch-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow: hidden;
}
.pos-main-stage {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pos-side-dock {
  flex: none;
  width: 256px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: #141821;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  overflow: hidden;
}
.pos-dock-status {
  flex: none;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.pos-dock-status .badge {
  width: 100%;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  height: 26px;
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-dock-hero-btn {
  flex: none;
  width: 100%;
  min-height: 58px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid #F0945D;
  background: linear-gradient(180deg, #E28044, #CC672D);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 3px 0 #8E3F14, 0 10px 22px -12px rgba(217, 117, 59, .65);
  transition: transform .15s var(--ux-ease), filter .15s var(--ux-ease), box-shadow .15s var(--ux-ease);
}
.pos-dock-hero-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.pos-dock-hero-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.pos-dock-hero-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #8E3F14;
}
.pos-dock-hero-btn:focus-visible {
  outline: 3px solid #FDBA74;
  outline-offset: 2px;
}

.pos-dock-tabs {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 7px;
  overflow: hidden;
}
.pos-side-dock .pos-dock-key.u039-tab {
  --u228-c: #E2844B;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  height: 100%;
  min-height: 0;
  width: 100%;
  padding: 6px 4px;
  border-radius: 13px;
  border: 1.5px solid #2A3242;
  background: #1C222E;
  color: #F1F5F9;
  font-family: inherit;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 3px 0 #0B0E14;
  transition: transform .15s var(--ux-ease), background-color .16s var(--ux-ease), border-color .16s var(--ux-ease), box-shadow .16s var(--ux-ease);
}
.pos-side-dock .pos-dock-key.u039-tab[hidden] { display: none !important; }
.pos-side-dock .pos-dock-key.u039-tab:hover {
  background: #242C3B;
  border-color: #4A5670;
  transform: translateY(-1.5px);
}
.pos-side-dock .pos-dock-key.u039-tab:active {
  transform: translateY(1.5px);
  box-shadow: 0 1px 0 #0B0E14;
}
.pos-side-dock .pos-dock-key.u039-tab:focus-visible {
  outline: 3px solid #E2844B;
  outline-offset: 1px;
}
.pos-side-dock .pos-dock-key.u039-tab[aria-selected="true"] {
  background: #272F40;
  border-color: #E2844B;
  color: #FFFFFF;
  box-shadow: 0 3px 0 #7C3D18, inset 0 0 0 1px rgba(226, 132, 75, .35);
}
.pos-dk-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  color: #CBD5E1;
  display: grid;
  place-items: center;
  flex: none;
  transition: transform .2s var(--ux-spring), background-color .16s var(--ux-ease), color .16s var(--ux-ease);
}
.pos-dk-ic svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pos-dock-key:hover .pos-dk-ic {
  transform: scale(1.06);
  color: #FFFFFF;
}
.pos-dock-key[aria-selected="true"] .pos-dk-ic {
  background: rgba(226, 132, 75, .22);
  color: #F6B287;
}
.pos-dk-lbl {
  font-size: 15.5px;
  font-weight: 900;
  line-height: 1.2;
  color: #FFFFFF;
  letter-spacing: .01em;
  white-space: nowrap;
}
.pos-dk-sub {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  color: #94A3B8;
  white-space: nowrap;
}
.pos-dock-key[aria-selected="true"] .pos-dk-sub {
  color: #F3C3A3;
}
.pos-dk-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #D9753B;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 950;
  line-height: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.pos-dk-badge.is-alert {
  background: #DC2626;
}
.pos-dk-badge[hidden] { display: none !important; }

.pos-dock-foot {
  flex: none;
  margin-top: 2px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
}
.pos-dock-util-btn {
  width: 100%;
  min-height: 42px;
  padding: 6px 8px;
  border-radius: 11px;
  border: 1px solid #30394B;
  background: #1C222E;
  color: #E2E8F0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color .15s, border-color .15s;
}
.pos-dock-util-btn[hidden] { display: none !important; }
.pos-dock-util-btn:hover {
  background: #252E3F;
  border-color: #4D5B76;
  color: #FFFFFF;
}

/* Bigger Auntie-Friendly Floor Toolbar Buttons on Matte Dark POS */
.pos-matte-dark .zone-pills .btn {
  min-height: 44px !important;
  padding: 0 16px !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  border-radius: 12px !important;
}
.pos-matte-dark .fp-seg-btn {
  height: 40px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}
.pos-matte-dark .fp-zoom-pills .btn.xs {
  min-height: 40px !important;
  min-width: 40px !important;
  padding: 0 11px !important;
  font-size: 14.5px !important;
  font-weight: 850 !important;
}
.pos-matte-dark .fp-quick-search {
  height: 42px !important;
  font-size: 14.5px !important;
  width: 158px;
}

@media (max-width: 1280px) {
  .pos-side-dock { width: 232px; padding: 8px; gap: 6px; }
  .pos-dk-lbl { font-size: 14.5px; }
}
@media (max-height: 820px) and (min-width: 961px) {
  .pos-side-dock { gap: 6px; padding: 8px; }
  .pos-dock-hero-btn { min-height: 48px; font-size: 16.5px; }
  .pos-dock-tabs { gap: 5px; }
  .pos-dk-ic { width: 26px; height: 26px; border-radius: 8px; }
  .pos-dk-ic svg { width: 16px; height: 16px; }
  .pos-dk-lbl { font-size: 14px; }
  .pos-dk-sub { display: none; }
  .pos-dock-util-btn { min-height: 36px; font-size: 12.5px; }
}
@media (max-width: 960px) {
  .pos-touch-shell {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .pos-side-dock {
    width: 100%;
    padding: 8px 10px;
    gap: 7px;
    overflow: hidden;
    border-radius: 14px;
  }
  .pos-dock-status,
  .pos-dock-foot { display: none !important; }
  .pos-dock-hero-btn {
    min-height: 46px;
    font-size: 16px;
  }
  .pos-dock-tabs {
    flex: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 6px;
    overflow: hidden;
  }
  .pos-side-dock .pos-dock-key.u039-tab {
    height: auto;
    min-height: 52px;
    padding: 6px 4px;
  }
  .pos-dk-ic { width: 22px; height: 22px; border-radius: 7px; }
  .pos-dk-ic svg { width: 14px; height: 14px; }
  .pos-dk-lbl { font-size: 13px; }
  .pos-dk-sub { display: none; }
  .pos-paged-grid.cols-2,
  .pos-screen-dual { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pos-dock-hero-btn,
  .pos-dock-key,
  .pos-dk-ic { transition: none !important; transform: none !important; }
}

/* Fixed 100% height kiosk containers for Floor POS & One-Page Quick-POS */
.pos-kiosk-tab {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pos-kiosk-tab[hidden] { display: none !important; }

/* SCREEN 1: 100% FULL-SCREEN HUGE FLOOR PLAN (Always rendered behind drawer) */
.pos-kiosk-floor {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* SCREEN 2: RIGHT SLIDE-OVER ORDERING DRAWER (Pops out smoothly over dimmed floor map) */
.pos-drawer-ov {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(4, 7, 13, .62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s var(--ux-ease);
}
.pos-drawer-ov.is-open {
  opacity: 1;
  pointer-events: auto;
}
.pos-drawer-panel {
  position: fixed;
  top: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 60;
  width: min(1280px, calc(100vw - 84px));
  display: flex;
  flex-direction: column;
  transform: translateX(calc(100% + 28px));
  transition: transform .36s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.pos-drawer-panel.is-open {
  transform: translateX(0);
  pointer-events: auto;
}
.pos-drawer-panel .pos-terminal-pane {
  border-radius: 24px;
  box-shadow: inset 0 1px 0 var(--ux-specular), 0 0 0 1px var(--ux-line-2), -24px 0 64px -16px rgba(0, 0, 0, .82);
}
@media (max-width: 1180px) {
  .pos-drawer-panel {
    width: calc(100vw - 44px);
  }
}
@media (max-width: 768px) {
  .pos-drawer-panel {
    top: 6px;
    right: 6px;
    bottom: 6px;
    width: calc(100vw - 18px);
  }
}
@media (max-width: 540px) {
  .pos-drawer-panel {
    inset: 0;
    width: 100vw;
  }
  .pos-drawer-panel .pos-terminal-pane {
    border-radius: 0;
    height: 100dvh;
    overflow-y: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pos-drawer-ov, .pos-drawer-panel { transition: none; }
}
.pos-floor-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 10px !important;
  gap: 6px;
}
.pos-floor-card .floor-toolbar {
  flex: none;
  margin-bottom: 0;
}
.floor-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.floor-takeaways-inline {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pos-workspace .floor-canvas-scroll {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}
.pos-workspace .floor-canvas-scroll.is-pannable {
  display: block;
  overflow: auto;
  cursor: grab;
}
.pos-workspace .floor-canvas-scroll.is-pannable.is-panning {
  cursor: grabbing;
  user-select: none;
}
.pos-workspace .floor-canvas-scroll.is-pannable .floor-canvas-stage {
  margin: 0 auto;
}
.pos-workspace .floor-canvas-stage {
  position: relative;
  overflow: hidden;
  flex: none;
}
.pos-workspace .floor-canvas-stage .floor-canvas {
  transform-origin: top left;
  min-width: 0;
}
.fp-legend-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.fp-legend-bar .fp-legend {
  margin-top: 0;
}
.fp-tap-tip {
  font-size: 12px;
  font-weight: 700;
  color: var(--ux-ink-3);
}

/* SCREEN 2: 100% FULL-SCREEN FIXED-POSITION TOUCH ORDERING + TICKET */
.pos-workspace .pos-terminal-pane {
  position: static;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 16px !important;
  gap: 12px;
  overflow: hidden;
}
.pos-kiosk-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ux-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.pos-kiosk-bar::-webkit-scrollbar { display: none; }
.pos-kiosk-bar > * { flex: none; }
.pos-kiosk-table-id {
  display: flex;
  flex-direction: column;
  padding-right: 6px;
}
.pos-kiosk-table-id strong {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}
.pos-kiosk-table-id small {
  font-size: 11.5px;
  color: var(--ux-ink-2);
  white-space: nowrap;
}
.pos-quick-tables {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1 !important;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.pos-quick-tables::-webkit-scrollbar { display: none; }
.pos-pane-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Fixed Two-Column Ordering Body: Left 66% Fixed Dish Grid + Right 34% Fixed Bill Dock */
.pos-focus-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 400px);
  gap: 14px;
  overflow: hidden;
}
.pos-picker-col {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.pos-picker-top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pos-cat-pills {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  flex: 1;
}
.pos-cat-pills::-webkit-scrollbar { display: none; }
.pos-cat-pills .btn {
  flex: none;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
}
.pos-search-row {
  flex: none;
  display: flex;
  gap: 6px;
  align-items: center;
  width: min(290px, 38%);
}
.pos-search-inp {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1.5px solid var(--ux-line-2);
  background: color-mix(in srgb, var(--ux-page) 48%, var(--ux-surface-2));
  color: var(--ux-ink);
  font-size: 13.5px;
  font-weight: 600;
}
.pos-search-inp:focus {
  outline: none;
  border-color: var(--ux-accent);
  box-shadow: 0 0 0 3px var(--ux-accent-soft);
}

/* FIXED-POSITION NON-SCROLLING TOUCH DISH GRID (Muscle-Memory Grid + Pagination) */
.pos-workspace .pos-menu-grid,
.pos-workspace .qpos-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(var(--pos-cols, 4), minmax(0, 1fr));
  grid-template-rows: repeat(var(--pos-rows, 3), minmax(0, 1fr));
  gap: 10px;
  overflow: hidden;
}
.pos-workspace .pos-dish-card,
.pos-workspace .qpos-tile {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pos-workspace .pos-dish-photo,
.pos-workspace .qpos-tile-img {
  width: 100%;
  flex: 1 1 0%;
  height: 0;
  min-height: 0;
  object-fit: cover;
}
.pos-workspace .pos-dish-meta,
.pos-workspace .qpos-tile-body {
  flex: none;
  padding: 8px 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pos-workspace .pos-dish-meta b,
.pos-workspace .qpos-tile-body strong {
  font-size: 13.5px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-dish-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.pos-workspace .pos-dish-meta span,
.pos-workspace .qpos-tile-price {
  font-size: 14.5px;
  font-weight: 900;
}
.pos-dish-tag {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ux-accent-2) 16%, transparent);
  color: var(--ux-accent-2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ux-accent-2) 34%, transparent);
  flex: none;
}
.pos-dish-tag.is-out {
  background: color-mix(in srgb, var(--ux-danger) 16%, transparent);
  color: var(--ux-danger);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ux-danger) 36%, transparent);
}

/* Fixed Touch Pagination Bar (Zero Scroll Wheel Needed) */
.pos-pager {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}
.pos-pager .btn {
  min-height: 40px;
  min-width: 112px;
  font-size: 13.5px;
}
.pos-pager-info {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--ux-ink-2);
  font-variant-numeric: tabular-nums;
}

/* Right Column: Fixed Header Tabs + Clean Ticket List + Pinned Bottom Checkout Dock */
.pos-ticket-col {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--ux-page) 45%, var(--ux-surface-2));
  box-shadow: inset 0 1px 0 var(--ux-specular), inset 0 0 0 1px var(--ux-line);
  overflow: hidden;
}
.pos-ticket-tabs {
  flex: none;
  display: flex;
  gap: 6px;
  align-items: center;
}
.pos-ticket-scroll {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  scrollbar-width: none;
}
.pos-ticket-scroll::-webkit-scrollbar { display: none; }
.pos-ticket-dock {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--ux-line);
}
.pos-bill-row {
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--ux-surface);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  font-size: 13px;
}
.pos-bill-row.is-void { opacity: .48; text-decoration: line-through; }
.pos-bill-empty {
  margin: auto 0;
  padding: 24px 14px;
  text-align: center;
  color: var(--ux-ink-3);
  font-size: 13.5px;
  line-height: 1.65;
}
.pos-draft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--ux-surface);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  font-size: 13px;
}

/* Fixed-Screen One-Page Counter Quick-POS (#tabCounter) */
.pos-workspace .qpos-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(330px, 410px);
  align-items: stretch;
  gap: 14px;
  overflow: hidden;
}
.pos-workspace .qpos-menu-panel {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px !important;
  overflow: hidden;
}
.pos-workspace .qpos-head-row {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pos-workspace .qpos-cats {
  flex: none;
  margin-bottom: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.pos-workspace .qpos-cats::-webkit-scrollbar { display: none; }
.pos-workspace .qpos-cats .btn { flex: none; min-height: 36px; border-radius: 999px; padding: 0 14px; }
.pos-workspace .qpos-ticket {
  position: static;
  min-height: 0;
  height: 100%;
  padding: 14px 16px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.qpos-items-scroll {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  scrollbar-width: none;
}
.qpos-items-scroll::-webkit-scrollbar { display: none; }

/* iPad Landscape (1024px) & Compact Desktop */
@media (max-width: 1180px) {
  .pos-focus-grid,
  .pos-workspace .qpos-split {
    grid-template-columns: minmax(0, 1.45fr) minmax(290px, 340px);
    gap: 12px;
  }
  .pos-cat-pills .btn {
    padding: 0 11px;
    font-size: 12px;
  }
  .pos-search-row { width: min(195px, 31%); }
  .pos-workspace #liveSummaryStrip { display: none !important; }
}

/* iPad Portrait (768px - 920px): Top 62% Fixed Menu Grid + Bottom 38% Fixed Ticket Dock */
@media (max-width: 920px) {
  .pos-focus-grid,
  .pos-workspace .qpos-split {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1.45fr) minmax(215px, .82fr);
    gap: 10px;
  }
  .pos-picker-top {
    flex-wrap: wrap;
    gap: 7px;
  }
  .pos-search-row { width: 100%; }
  .pos-ticket-col { padding: 10px 12px; gap: 7px; }
  .pos-total-amt { font-size: 22px !important; }
  .fp-tap-tip { display: none; }
}

/* Mobile Phone (<= 540px): allow comfortable natural flow while keeping paginated touch grid */
@media (max-width: 540px) {
  body.pos-workspace {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }
  .pos-workspace .app-main,
  .pos-kiosk-tab,
  .pos-kiosk-floor,
  .pos-kiosk-order,
  .pos-workspace .pos-terminal-pane,
  .pos-focus-grid,
  .pos-workspace .qpos-split,
  .pos-workspace .qpos-menu-panel,
  .pos-workspace .qpos-ticket {
    overflow: visible;
    height: auto;
  }
  .pos-workspace .floor-canvas-scroll {
    overflow-x: auto;
    justify-content: flex-start;
    min-height: 365px;
  }
  .pos-focus-grid,
  .pos-workspace .qpos-split {
    grid-template-rows: auto auto;
  }
  .pos-workspace .pos-menu-grid,
  .pos-workspace .qpos-grid {
    grid-template-rows: repeat(var(--pos-rows, 3), 164px);
    gap: 9px;
  }
  .pos-workspace .qpos-head-row { flex-direction: column; align-items: stretch; }
  .qpos-pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================================
   SENIOR-FRIENDLY 1-TAP TOUCH POS MODALS (ZERO DROPDOWNS, BIG CLEAR BUTTONS)
   ============================================================================ */
.pos-workspace .modal-box {
  width: min(680px, 96vw);
  padding: 20px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ux-surface-2) 50%, var(--ux-surface)), var(--ux-surface));
  box-shadow: inset 0 1px 0 var(--ux-specular), 0 0 0 1px var(--ux-line-2), 0 34px 72px -20px rgba(0, 0, 0, .82);
}
.pos-workspace .modal-box.is-wide-touch {
  width: min(980px, 96vw);
  padding: 18px 20px;
}
.ck-two-col {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: 18px;
  align-items: stretch;
}
.ck-left-col,
.ck-right-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ck-right-col {
  gap: 12px;
}
.ck-hero-box.is-compact {
  padding: 12px 15px;
  margin-bottom: 12px;
}
.ck-hero-box.is-compact .ck-hero-row strong {
  font-size: 28px;
}
.ck-noncash-hint {
  flex: 1;
  padding: 18px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--ux-page) 40%, var(--ux-surface-2));
  box-shadow: inset 0 0 0 1px var(--ux-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.ck-noncash-hint strong {
  font-size: 16px;
  font-weight: 850;
}
.ck-noncash-hint small {
  font-size: 13px;
  color: var(--ux-ink-2);
  line-height: 1.55;
}
@media (max-width: 780px) {
  .ck-two-col { grid-template-columns: 1fr; gap: 14px; }
}
.pos-workspace .modal-head h3 {
  font-size: 20px;
  font-weight: 900;
}
.touch-modal-form {
  display: flex;
  flex-direction: column;
}
.touch-sec-label {
  font-size: 13.5px;
  font-weight: 820;
  color: var(--ux-ink-2);
  margin: 0 0 9px;
}
.ck-hero-box {
  padding: 16px 18px;
  border-radius: 18px;
  background:
    radial-gradient(90% 140% at 100% 0%, var(--ux-accent-soft), transparent 70%),
    color-mix(in srgb, var(--ux-page) 45%, var(--ux-surface-2));
  box-shadow: inset 0 1px 0 var(--ux-specular), inset 0 0 0 1px color-mix(in srgb, var(--ux-accent) 30%, var(--ux-line));
  margin-bottom: 16px;
}
.ck-hero-meta {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ux-ink-2);
  margin-bottom: 4px;
}
.ck-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 17px;
  font-weight: 850;
}
.ck-hero-row strong {
  font-size: 32px;
  font-weight: 950;
  color: var(--ux-accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}

.touch-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.touch-pay-btn {
  position: relative;
  min-height: 56px;
  font-size: 16px;
  font-weight: 850;
  border-radius: 14px;
  opacity: .72;
  transition: transform .16s var(--ux-spring), opacity .16s, box-shadow .18s;
}
.touch-pay-btn:hover {
  opacity: .94;
}
.touch-pay-btn.is-on {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2.5px #FFFFFF, 0 0 0 5px var(--ux-accent), 0 14px 26px -12px rgba(0, 0, 0, .7) !important;
}
.touch-pay-btn.is-on::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 9px;
  font-size: 13px;
  font-weight: 950;
}

.touch-choice-grid {
  display: grid;
  gap: 8px;
}
.touch-choice-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.touch-choice-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.touch-choice-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.touch-choice-btn {
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 13px;
  border: 1.5px solid var(--ux-line-2);
  background: color-mix(in srgb, var(--ux-surface-2) 85%, var(--ux-surface));
  color: var(--ux-ink);
  font-size: 14.5px;
  font-weight: 780;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  transition: background .15s, border-color .15s, box-shadow .16s, transform .15s var(--ux-spring);
}
.touch-choice-btn:hover {
  background: var(--ux-surface-3);
  border-color: color-mix(in srgb, var(--ux-ink) 30%, transparent);
}
.touch-choice-btn:active { transform: scale(.97); }
.touch-choice-btn.is-tall {
  min-height: 68px;
  padding: 10px 12px;
}
.touch-choice-btn.is-tall strong {
  font-size: 17px;
  font-weight: 900;
}
.touch-choice-btn.is-tall small {
  font-size: 12px;
  font-weight: 650;
  color: var(--ux-ink-2);
}
.touch-choice-btn.is-on {
  background: var(--ux-accent-btn);
  border-color: rgba(255, 255, 255, .28);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 0 0 2px var(--ux-accent), 0 10px 20px -10px var(--ux-glow);
}
.touch-choice-btn.is-on small {
  color: rgba(255, 255, 255, .86);
}

.ck-cash-panel {
  margin-top: 14px;
  padding: 12px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--ux-mint) 7%, var(--ux-surface-2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ux-mint) 26%, var(--ux-line));
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* Tactile Cash Numeric Keypad & Animated Amount Display (Ported Lucian #035 · MIT License) */
.ck-tender-display {
  padding: 10px 14px 11px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ux-page) 68%, var(--ux-surface));
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .28), inset 0 0 0 1.5px color-mix(in srgb, var(--ux-mint) 36%, var(--ux-line-2));
  transition: box-shadow .18s ease, background .18s ease;
}
.ck-tender-display.is-manual {
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .28), inset 0 0 0 2px var(--ux-accent);
}
.ck-tender-display.is-short {
  background: color-mix(in srgb, #EF4444 10%, var(--ux-page));
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .28), inset 0 0 0 2px #EF4444;
}
.ck-tender-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.ck-tender-lbl {
  font-size: 12px;
  font-weight: 800;
  color: var(--ux-ink-2);
}
.ck-tender-mode {
  font-size: 11px;
  font-weight: 820;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ux-mint) 18%, transparent);
  color: var(--ux-mint);
}
.ck-tender-display.is-manual .ck-tender-mode {
  background: var(--ux-accent-soft);
  color: var(--ux-accent);
}
.ck-tender-display.is-short .ck-tender-mode {
  background: rgba(239, 68, 68, .18);
  color: #F87171;
}
.ck-tender-val {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
  min-height: 40px;
  overflow: hidden;
}
.ck-tender-cur {
  font-size: 18px;
  font-weight: 850;
  color: var(--ux-ink-3);
}
.u035-amount {
  display: inline-flex;
  align-items: baseline;
  font-size: 34px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--ux-ink);
  font-variant-numeric: tabular-nums;
}
.ck-tender-display.is-short .u035-amount {
  color: #F87171;
}
.u035-ch {
  display: inline-block;
}
.u035-ch.is-new {
  animation: u035-up .19s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes u035-up {
  from { opacity: 0; transform: translateY(10px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ck-tender-display.u035-shake {
  animation: u035-shake .36s cubic-bezier(.36, .07, .19, .97) both;
}
@keyframes u035-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.ck-banknote-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.ck-banknote-btn {
  min-height: 36px;
  padding: 4px 4px;
  border-radius: 10px;
  border: 1.5px solid var(--ux-line-2);
  background: color-mix(in srgb, var(--ux-surface-2) 92%, var(--ux-surface));
  color: var(--ux-ink);
  font-size: 12.5px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: background .14s, border-color .14s, transform .12s var(--ux-spring);
}
.ck-banknote-btn:hover {
  background: var(--ux-surface-3);
  border-color: color-mix(in srgb, var(--ux-ink) 30%, transparent);
}
.ck-banknote-btn:active {
  transform: scale(.96);
}
.ck-banknote-btn.is-on {
  background: var(--ux-accent-btn);
  border-color: rgba(255, 255, 255, .28);
  color: #FFFFFF;
  box-shadow: 0 0 0 1.5px var(--ux-accent), 0 8px 16px -10px var(--ux-glow);
}

.ck-numpad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.ck-num-key {
  min-height: 48px;
  padding: 0 6px;
  border-radius: 13px;
  border: 1.5px solid var(--ux-line-2);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ux-surface-3) 72%, var(--ux-surface-2)), color-mix(in srgb, var(--ux-surface-2) 95%, var(--ux-surface)));
  color: var(--ux-ink);
  font-size: 21px;
  font-weight: 880;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  box-shadow: inset 0 1px 0 var(--ux-specular), 0 2px 4px rgba(0, 0, 0, .2);
  transition: background .12s, border-color .12s, transform .1s var(--ux-spring), box-shadow .12s;
}
.ck-num-key:hover {
  background: var(--ux-surface-3);
  border-color: color-mix(in srgb, var(--ux-ink) 32%, transparent);
}
.ck-num-key:active {
  transform: scale(.95);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .28);
}
.ck-num-key.is-back {
  font-size: 20px;
  background: color-mix(in srgb, var(--ux-warn) 16%, var(--ux-surface-2));
  border-color: color-mix(in srgb, var(--ux-warn) 35%, var(--ux-line-2));
  color: var(--ux-warn);
}
.ck-num-key.is-clear {
  font-size: 14.5px;
  font-weight: 850;
  background: color-mix(in srgb, #EF4444 15%, var(--ux-surface-2));
  border-color: color-mix(in srgb, #EF4444 34%, var(--ux-line-2));
  color: #F87171;
}
.ck-num-key.is-add {
  font-size: 15px;
  font-weight: 880;
  background: color-mix(in srgb, var(--ux-mint) 14%, var(--ux-surface-2));
  border-color: color-mix(in srgb, var(--ux-mint) 34%, var(--ux-line-2));
  color: var(--ux-mint);
}
.btn.is-short-soft {
  opacity: .72;
  background: linear-gradient(180deg, #B91C1C, #991B1B) !important;
  color: #FFFFFF !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}

.ck-change-bar {
  margin-top: 0;
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14.5px;
  font-weight: 760;
}
.ck-change-bar.is-ok {
  background: color-mix(in srgb, var(--ux-mint) 16%, var(--ux-surface));
  color: var(--ux-mint);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ux-mint) 42%, transparent);
}
.ck-change-bar.is-short {
  background: color-mix(in srgb, #EF4444 16%, var(--ux-surface));
  color: #F87171;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #EF4444 45%, transparent);
}
.ck-change-num {
  font-size: 22px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 780px) {
  .pos-workspace .modal-box,
  .pos-workspace .modal-box.is-wide-touch {
    padding: 14px 14px 16px;
    max-height: calc(100dvh - 20px);
  }
  .ck-banknote-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ck-num-key {
    min-height: 46px;
    font-size: 20px;
  }
  .u035-amount {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .u035-ch.is-new,
  .ck-tender-display.u035-shake {
    animation: none !important;
  }
}

.touch-stepper-row {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 800;
}
.touch-stepper {
  display: flex;
  align-items: center;
  gap: 14px;
}
.touch-stepper strong {
  min-width: 64px;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--ux-accent);
  font-variant-numeric: tabular-nums;
}
.touch-step-btn {
  width: 48px;
  height: 46px;
  font-size: 22px !important;
  padding: 0 !important;
}

.touch-modal-foot {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--ux-line);
}
.btn.touch-lg {
  min-height: 52px;
  padding: 0 20px;
  font-size: 15.5px;
  font-weight: 850;
  border-radius: 14px;
}
@media (max-width: 560px) {
  .touch-pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .touch-choice-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .touch-choice-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ============================================================================
   ARCHITECTURAL TOP-DOWN FLOOR PLAN (#105 / #106) & 2026 FLAGSHIP POS POLISH
   ============================================================================ */

/* Live Floor Telemetry HUD inside Floor Toolbar */
.floor-telemetry-hud {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ux-page) 62%, var(--ux-surface-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 0 0 1px var(--ux-line);
  flex-wrap: wrap;
}
.fp-hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 680;
  color: var(--ux-ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fp-hud-chip b {
  color: var(--ux-ink);
  font-weight: 850;
}
.fp-hud-chip small {
  color: var(--ux-ink-3);
  font-weight: 650;
}
.fp-hud-chip.is-dirty {
  background: color-mix(in srgb, var(--ux-accent-2) 12%, transparent);
  color: var(--ux-accent-2);
}
.fp-hud-chip.is-dirty b { color: var(--ux-accent-2); }
.fp-hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.fp-hud-dot.is-occ { background: var(--ux-accent); box-shadow: 0 0 8px var(--ux-accent); }
.fp-hud-dot.is-guest { background: #60A5FA; box-shadow: 0 0 8px rgba(96, 165, 250, .7); }
.fp-hud-dot.is-rev { background: var(--ux-mint); box-shadow: 0 0 8px rgba(52, 211, 153, .65); }
.fp-hud-dot.is-clean { background: var(--ux-accent-2); box-shadow: 0 0 8px rgba(45, 212, 191, .7); }

/* Upgraded Architectural Floor Studio Canvas (POS & Backoffice Editor) */
.app-pro .floor-canvas-scroll {
  background:
    radial-gradient(62% 52% at 50% 0%, rgba(249, 123, 79, .08), transparent 72%),
    radial-gradient(48% 45% at 24% 100%, rgba(56, 189, 248, .06), transparent 70%),
    #070B13;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(255, 255, 255, .085), inset 0 24px 48px -28px rgba(0, 0, 0, .85);
  border-radius: 22px;
}
.app-pro .floor-canvas {
  background:
    radial-gradient(70% 60% at 50% 48%, rgba(22, 31, 48, .44), rgba(7, 11, 19, .92));
  border-radius: 18px;
  overflow: hidden;
}
.app-pro .floor-canvas.is-editing {
  background-image:
    linear-gradient(to right, rgba(249, 123, 79, .09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(249, 123, 79, .09) 1px, transparent 1px),
    radial-gradient(70% 60% at 50% 48%, rgba(22, 31, 48, .44), rgba(7, 11, 19, .92));
  background-size: 20px 20px, 20px 20px, 100% 100%;
}
.fp-arch-bg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}
.bo-main .floor-canvas {
  min-width: 0;
  transform-origin: top left;
}
.fp-zone-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  fill: rgba(215, 224, 242, .44);
  font-family: "Noto Sans TC", "PingFang HK", sans-serif;
}
.fp-zone-label.is-vip { fill: rgba(249, 123, 79, .78); }
.fp-zone-label.is-booth { fill: rgba(45, 212, 191, .72); }

/* Top-Down Sculpted Architectural Fixtures */
.app-pro .fp-fixture {
  z-index: 5;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  overflow: visible;
}
.fp-fix-surface {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, rgba(30, 38, 54, .92), rgba(16, 21, 32, .96));
  color: rgba(235, 240, 250, .86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 8px 18px -10px rgba(0, 0, 0, .75);
}
.fp-fix-ico {
  width: 18px;
  height: 18px;
  flex: none;
  display: grid;
  place-items: center;
  opacity: .88;
}
.fp-fix-ico svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fp-fix-label {
  position: relative;
  z-index: 2;
  white-space: nowrap;
}
.fp-fixture[data-kind="bar"] .fp-fix-surface {
  background: linear-gradient(180deg, rgba(66, 40, 32, .94) 0%, rgba(28, 19, 21, .97) 100%);
  border-color: rgba(249, 123, 79, .45);
  color: #FFC3AB;
  border-radius: 10px 10px 16px 16px;
}
.fp-bar-stools {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 12px;
  pointer-events: none;
}
.fp-bar-stool {
  position: absolute;
  top: 0;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #5A3A2E, #231819);
  border: 1.5px solid rgba(249, 123, 79, .5);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .6);
}

.fp-fixture[data-kind="kitchen"] .fp-fix-surface {
  background:
    repeating-linear-gradient(-45deg, rgba(251, 191, 36, .04) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, rgba(44, 36, 26, .95), rgba(21, 19, 20, .98));
  border-color: rgba(251, 191, 36, .42);
  color: #FDE68A;
}
.fp-fix-heatbar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, rgba(251, 191, 36, .2), rgba(251, 191, 36, .95), rgba(251, 191, 36, .2));
  box-shadow: 0 0 12px rgba(251, 191, 36, .75);
}

.fp-fixture[data-kind="entrance"] .fp-fix-surface {
  background: linear-gradient(180deg, rgba(16, 48, 39, .9), rgba(11, 28, 25, .96));
  border-color: rgba(52, 211, 153, .48);
  color: #A7F3D0;
}
.fp-fix-arrow {
  font-size: 13px;
  font-weight: 900;
  color: #34D399;
}
.fp-entry-doors {
  position: absolute;
  left: 0;
  top: calc(100% - 1px);
  width: 100%;
  height: 24px;
  pointer-events: none;
  overflow: visible;
}

.fp-fixture[data-kind="window"] .fp-fix-surface {
  background: linear-gradient(180deg, rgba(16, 48, 66, .88), rgba(10, 26, 38, .96));
  border-color: rgba(56, 189, 248, .44);
  border-top: 2px solid rgba(125, 211, 252, .65);
  color: #BAE6FD;
  border-radius: 8px;
}
.fp-win-mullions {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fp-win-mullion {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(125, 211, 252, .22);
}

/* Sculpted Top-Down Tables & Illuminated Furniture (#106) */
.app-pro .fp-table {
  z-index: 10;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible;
  animation: none !important;
  transition: transform .22s var(--ux-spring);
}
.app-pro .fp-table:hover {
  transform: translateY(-2.5px);
  z-index: 18;
}
.app-pro .fp-table.is-selected {
  transform: translateY(-2.5px);
  z-index: 22;
}
.fp-table-surface {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, .15);
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(255, 255, 255, .07), transparent 65%),
    linear-gradient(165deg, #1E2738 0%, #111826 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 12px 24px -10px rgba(0, 0, 0, .85);
  transition: border-color .2s, box-shadow .22s, background .22s;
}
.fp-table[data-shape="round"] .fp-table-surface {
  border-radius: 999px;
}
.fp-table[data-shape="booth"] .fp-table-surface {
  border-radius: 13px;
}
.fp-round-ring {
  position: absolute;
  inset: 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .075);
  pointer-events: none;
}
.app-pro .fp-table:hover .fp-table-surface {
  border-color: rgba(255, 255, 255, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 16px 30px -10px rgba(0, 0, 0, .9);
}

/* Occupied Tabletop */
.app-pro .fp-table.is-occupied .fp-table-surface {
  border-color: rgba(249, 123, 79, .85);
  background:
    radial-gradient(95% 85% at 50% 0%, rgba(249, 123, 79, .28), transparent 68%),
    linear-gradient(165deg, #2C1D1E 0%, #15141F 100%);
  box-shadow: inset 0 1px 0 rgba(255, 220, 200, .24), 0 0 0 1px rgba(249, 123, 79, .28), 0 16px 30px -10px rgba(249, 123, 79, .42);
}
.app-pro .fp-table.is-occupied .fp-round-ring {
  border-color: rgba(249, 123, 79, .24);
}

/* Bill Requested Tabletop */
.app-pro .fp-table.is-bill .fp-table-surface {
  border-color: #FBBF24;
  background:
    radial-gradient(95% 85% at 50% 0%, rgba(251, 191, 36, .3), transparent 68%),
    linear-gradient(165deg, #2D2315 0%, #16151C 100%);
  animation: seatly-surface-bill 2.2s ease-in-out infinite;
}
@keyframes seatly-surface-bill {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 245, 210, .26), 0 0 0 3px rgba(251, 191, 36, .24), 0 14px 28px -10px rgba(251, 191, 36, .42); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 245, 210, .34), 0 0 0 6px rgba(251, 191, 36, .4), 0 16px 32px -8px rgba(251, 191, 36, .62); }
}

/* Cleaning Tabletop */
.app-pro .fp-table.is-dirty .fp-table-surface {
  border-color: rgba(45, 212, 191, .78);
  border-style: dashed;
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(45, 212, 191, .2), transparent 68%),
    linear-gradient(165deg, #13282C 0%, #0E1721 100%);
  box-shadow: inset 0 1px 0 rgba(167, 243, 208, .18), 0 14px 26px -12px rgba(45, 212, 191, .35);
}

/* Selected Tabletop Focus Ring */
.app-pro .fp-table.is-selected .fp-table-surface {
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4.5px var(--ux-accent), 0 20px 36px -10px var(--ux-glow) !important;
}

/* Top-Down Chairs & Banquette Sofas (#106 Seat Illumination) */
.fp-chairs-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.fp-chair {
  position: absolute;
  width: 24px;
  height: 9px;
  background: linear-gradient(180deg, #232E42, #151C2A);
  border: 1px solid rgba(255, 255, 255, .17);
  box-shadow: 0 3px 7px rgba(0, 0, 0, .6);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.fp-chair.is-top {
  top: -11px;
  transform: translateX(-50%);
  border-radius: 6px 6px 2px 2px;
  border-top: 2.5px solid rgba(255, 255, 255, .26);
}
.fp-chair.is-bot {
  bottom: -11px;
  transform: translateX(-50%);
  border-radius: 2px 2px 6px 6px;
  border-bottom: 2.5px solid rgba(255, 255, 255, .26);
}
.fp-chair.is-radial {
  width: 20px;
  height: 8px;
  border-radius: 6px 6px 2px 2px;
  border-top: 2.5px solid rgba(255, 255, 255, .26);
}
.fp-chair.is-lit {
  background: linear-gradient(180deg, #FB8B60, #C8451A);
  border-color: rgba(255, 232, 220, .7);
  box-shadow: 0 0 10px rgba(249, 123, 79, .6);
}
.fp-table.is-bill .fp-chair.is-lit {
  background: linear-gradient(180deg, #FCD34D, #D97706);
  border-color: rgba(255, 250, 224, .8);
  box-shadow: 0 0 10px rgba(251, 191, 36, .68);
}

/* Curved Upholstered Banquette Sofa for Booths */
.fp-banquette {
  position: absolute;
  top: -13px;
  left: 4%;
  right: 4%;
  height: 12px;
  display: flex;
  gap: 3px;
  padding: 2px 3px 0;
  border-radius: 10px 10px 3px 3px;
  background: #172030;
  border: 1.5px solid rgba(255, 255, 255, .17);
  border-top: 3px solid rgba(255, 255, 255, .25);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, .5);
}
.fp-banquette.is-lit {
  border-color: rgba(249, 123, 79, .55);
  border-top-color: rgba(249, 123, 79, .85);
}
.fp-table.is-bill .fp-banquette.is-lit {
  border-color: rgba(251, 191, 36, .68);
  border-top-color: #FBBF24;
}
.fp-bq-seg {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: rgba(255, 255, 255, .08);
  transition: background .2s, box-shadow .2s;
}
.fp-bq-seg.is-lit {
  background: linear-gradient(180deg, #FB8B60, #C8451A);
  box-shadow: 0 0 8px rgba(249, 123, 79, .55);
}
.fp-table.is-bill .fp-bq-seg.is-lit {
  background: linear-gradient(180deg, #FCD34D, #D97706);
  box-shadow: 0 0 8px rgba(251, 191, 36, .6);
}

/* Crisp Tabletop Telemetry Typography */
.fp-head-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
}
.app-pro .fp-code {
  font-size: 15.5px;
  font-weight: 950;
  letter-spacing: -.02em;
  color: #FFFFFF;
  line-height: 1.1;
}
.fp-seat-pill {
  padding: 1.5px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, .09);
  color: rgba(235, 240, 250, .78);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fp-seat-pill.is-occ {
  background: rgba(249, 123, 79, .24);
  color: #FFD0BC;
  box-shadow: inset 0 0 0 1px rgba(249, 123, 79, .38);
}
.fp-table.is-bill .fp-seat-pill.is-occ {
  background: rgba(251, 191, 36, .26);
  color: #FEF08A;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .45);
}
.app-pro .fp-amt {
  font-size: 13.5px;
  font-weight: 900;
  color: #FFA07A;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.fp-table.is-bill .fp-amt { color: #FCD34D; }
.fp-meta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  width: 100%;
  max-width: 100%;
}
.fp-time-chip {
  font-size: 10px;
  font-weight: 720;
  color: rgba(226, 232, 245, .72);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fp-cook-chip {
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  background: rgba(251, 191, 36, .18);
  color: #FDE68A;
  white-space: nowrap;
}
.fp-state-tag {
  padding: 1.5px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 760;
  background: rgba(255, 255, 255, .055);
  color: rgba(196, 207, 224, .65);
}
.fp-state-tag.is-dirty {
  background: rgba(45, 212, 191, .16);
  color: #5EEAD4;
}
.app-pro .fp-dot-alert {
  z-index: 6;
  top: -9px;
  right: -6px;
  padding: 2.5px 8px;
  font-size: 10px;
  font-weight: 880;
  letter-spacing: .02em;
}

/* Legend Swatches */
.fp-sw {
  width: 11px;
  height: 11px;
  border-radius: 4px;
  display: inline-block;
}
.fp-sw.is-free { background: #1B2435; border: 1.5px solid rgba(255, 255, 255, .28); }
.fp-sw.is-occ { background: linear-gradient(135deg, #FB8B60, #C8451A); box-shadow: 0 0 8px rgba(249, 123, 79, .6); }
.fp-sw.is-bill { background: linear-gradient(135deg, #FCD34D, #D97706); box-shadow: 0 0 8px rgba(251, 191, 36, .6); }
.fp-sw.is-dirty { background: rgba(45, 212, 191, .28); border: 1.5px dashed #2DD4BF; }

/* ── 2026 FLAGSHIP POS CHROME, TOPBAR, NAV DOCK & FULL-BLEED DISH CARDS ── */
.pos-workspace .app-topbar {
  background: linear-gradient(180deg, rgba(11, 15, 24, .95), rgba(8, 11, 18, .9));
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 8px 26px -14px rgba(0, 0, 0, .75);
}
.pos-workspace #shiftTopBadge.ok::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ux-mint);
  box-shadow: 0 0 8px var(--ux-mint);
}
.pos-workspace .u039-tabs {
  background: linear-gradient(180deg, rgba(18, 24, 38, .92), rgba(11, 15, 24, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(255, 255, 255, .09), 0 12px 26px -16px rgba(0, 0, 0, .8);
}
.pos-workspace .u039-pill {
  background: var(--ux-accent-btn);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 20px -6px var(--ux-glow);
}
.pos-workspace .u039-tab[aria-selected="true"] {
  color: #FFFFFF;
}

/* Full-Bleed Editorial Culinary Dish Cards (Floor Drawer + Counter Quick-POS) */
.pos-workspace .pos-dish-card,
.pos-workspace .qpos-tile {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0F1522;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(255, 255, 255, .1), 0 12px 24px -14px rgba(0, 0, 0, .78);
  text-align: left;
  transition: transform .18s var(--ux-spring), box-shadow .2s;
}
.pos-workspace .pos-dish-card:hover:not(:disabled),
.pos-workspace .qpos-tile:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 1.5px var(--ux-accent), 0 16px 30px -12px var(--ux-glow);
}
.pos-workspace .pos-dish-card:active:not(:disabled),
.pos-workspace .qpos-tile:active:not(:disabled) {
  transform: scale(.97);
}
.pos-workspace .pos-dish-card.is-in-cart,
.pos-workspace .qpos-tile.is-in-cart {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 2px var(--ux-accent), 0 14px 28px -10px var(--ux-glow);
}
.pos-workspace .pos-dish-photo,
.pos-workspace .qpos-tile-img,
.pos-dish-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  flex: none !important;
  object-fit: cover;
  display: block;
  z-index: 0;
  transition: transform .48s var(--ux-ease);
}
.pos-workspace .pos-dish-card:hover:not(:disabled) .pos-dish-photo,
.pos-workspace .qpos-tile:hover:not(:disabled) .qpos-tile-img {
  transform: scale(1.06);
}
.pos-dish-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(6, 9, 15, .44) 0%,
    rgba(6, 9, 15, .04) 35%,
    rgba(6, 9, 15, .66) 64%,
    rgba(6, 9, 15, .95) 100%
  );
}
.pos-dish-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 9px 0;
  width: 100%;
}
.pos-dish-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--ux-accent-btn);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .3), 0 6px 14px -2px var(--ux-glow);
}
.pos-workspace .pos-dish-meta,
.pos-workspace .qpos-tile-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 6px 10px 9px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pos-workspace .pos-dish-meta b,
.pos-workspace .qpos-tile-body strong {
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 840;
  line-height: 1.24;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-workspace .pos-dish-meta span,
.pos-workspace .qpos-tile-price {
  color: #FFB08E;
  font-size: 15px;
  font-weight: 920;
  letter-spacing: -.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
  font-variant-numeric: tabular-nums;
}
[data-template="tea_shop"] .pos-workspace .qpos-tile-price,
[data-template="tea_shop"] .qpos-tile-price {
  color: #5EEAD4;
}
.pos-dish-en {
  font-size: 10px;
  color: rgba(226, 232, 245, .66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}
.pos-dish-badge {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  flex: none;
}
.pos-workspace .pos-dish-tag {
  background: rgba(8, 12, 22, .76);
  backdrop-filter: blur(8px);
  color: #7DD3FC;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .38);
}
.pos-workspace .pos-dish-tag.is-out {
  background: rgba(220, 38, 38, .82);
  color: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

/* Elevated Right Slide-Over Ordering Drawer & Status-Coded Receipt Rail */
.pos-drawer-panel .pos-terminal-pane {
  background:
    radial-gradient(65% 32% at 50% 0%, color-mix(in srgb, var(--ux-accent) 10%, transparent), transparent 70%),
    linear-gradient(180deg, #111726 0%, #0B0F1A 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(255, 255, 255, .14), -28px 0 72px -16px rgba(0, 0, 0, .88);
}
.pos-back-btn {
  min-height: 38px !important;
  padding: 0 14px !important;
  background: rgba(255, 255, 255, .07) !important;
  border-color: rgba(255, 255, 255, .16) !important;
}
.pos-qsw-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
}
.pos-qsw-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}
.pos-qsw-dot.is-occ { background: var(--ux-accent); }
.pos-qsw-dot.is-bill { background: var(--ux-warn); }
.pos-qsw-dot.is-dirty { background: var(--ux-accent-2); }
.pos-qsw-pill.primary .pos-qsw-dot { background: #FFFFFF; }

/* Color-Coded Left Accent Bars on Ordered Ticket Items */
.pos-bill-row {
  position: relative;
  padding: 10px 12px 10px 14px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(24, 31, 46, .9), rgba(16, 21, 33, .95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .08);
  overflow: hidden;
}
.pos-bill-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--ux-warn);
}
.pos-bill-row[data-kstatus="preparing"]::before { background: var(--ux-accent); }
.pos-bill-row[data-kstatus="served"]::before { background: var(--ux-mint); }
.pos-bill-row[data-kstatus="void"]::before { background: var(--ux-ink-3); }
.pos-bill-row.is-rush::before { background: var(--ux-danger); }
.pos-bill-row.is-rush {
  box-shadow: inset 0 0 0 1px rgba(251, 113, 133, .38);
}

.pos-draft-row {
  padding: 9px 11px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(24, 31, 46, .92), rgba(16, 21, 33, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(255, 255, 255, .09);
}

@media (max-width: 1080px) {
  .floor-telemetry-hud { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .app-pro .fp-table.is-bill .fp-table-surface { animation: none; }
  .app-pro .fp-table,
  .pos-workspace .pos-dish-card,
  .pos-workspace .qpos-tile { transition: none; }
}


/* ============================================================================
   FLOOR PLAN RESERVATION LOCK & TIME-WINDOW REMINDERS
   ============================================================================ */
.fp-hud-chip.is-rsv {
  background: rgba(139, 92, 246, .16);
  color: #DDD6FE;
}
.fp-hud-chip.is-rsv b { color: #EDE9FE; }
.fp-hud-dot.is-rsv {
  background: #A78BFA;
  box-shadow: 0 0 8px rgba(167, 139, 250, .85);
}
.fp-sw.is-rsv {
  background: linear-gradient(135deg, #A78BFA, #7C3AED);
  box-shadow: 0 0 8px rgba(167, 139, 250, .65);
}

/* Locked Reserved Tabletop (Cannot seat walk-ins directly) */
.app-pro .fp-table.is-rsv-locked .fp-table-surface {
  border-color: rgba(167, 139, 250, .88);
  background:
    repeating-linear-gradient(-45deg, rgba(167, 139, 250, .06) 0 7px, transparent 7px 14px),
    radial-gradient(95% 85% at 50% 0%, rgba(139, 92, 246, .34), transparent 70%),
    linear-gradient(165deg, #251B3D 0%, #131126 100%);
  box-shadow: inset 0 1px 0 rgba(237, 233, 254, .26), 0 0 0 2px rgba(139, 92, 246, .32), 0 16px 30px -10px rgba(139, 92, 246, .52);
}
.app-pro .fp-table.is-rsv-locked .fp-round-ring {
  border-color: rgba(167, 139, 250, .3);
}
.fp-table.is-rsv-locked .fp-chair.is-lit {
  background: linear-gradient(180deg, #C4B5FD, #7C3AED);
  border-color: rgba(245, 243, 255, .75);
  box-shadow: 0 0 10px rgba(167, 139, 250, .7);
}
.fp-table.is-rsv-locked .fp-banquette.is-lit {
  border-color: rgba(167, 139, 250, .7);
  border-top-color: #C4B5FD;
}
.fp-table.is-rsv-locked .fp-bq-seg.is-lit {
  background: linear-gradient(180deg, #C4B5FD, #7C3AED);
  box-shadow: 0 0 8px rgba(167, 139, 250, .68);
}

/* Vacant table with later reservation today */
.app-pro .fp-table.is-rsv-upcoming .fp-table-surface {
  border-color: rgba(167, 139, 250, .46);
  background:
    radial-gradient(95% 80% at 50% 0%, rgba(139, 92, 246, .16), transparent 68%),
    linear-gradient(165deg, #201E34 0%, #121626 100%);
}

.fp-seat-pill.is-rsv {
  background: rgba(167, 139, 250, .26);
  color: #EDE9FE;
  box-shadow: inset 0 0 0 1px rgba(196, 181, 253, .45);
}
.fp-rsv-time {
  font-size: 12px;
  font-weight: 900;
  color: #DDD6FE;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-rsv-sub {
  font-size: 9.5px;
  font-weight: 760;
  color: rgba(221, 214, 254, .78);
  white-space: nowrap;
}
.fp-rsv-pill {
  padding: 1.5px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  background: rgba(139, 92, 246, .24);
  color: #DDD6FE;
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .38);
  white-space: nowrap;
  max-width: 96%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-pro .fp-dot-alert.rsv-lock {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  color: #FFFFFF;
  box-shadow: 0 4px 14px -2px rgba(109, 40, 217, .75), 0 0 0 1px rgba(237, 233, 254, .35);
}
.app-pro .fp-dot-alert.rsv-soon {
  background: linear-gradient(135deg, rgba(91, 33, 182, .95), rgba(76, 29, 149, .95));
  color: #EDE9FE;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, .6), 0 0 0 1px rgba(196, 181, 253, .38);
}

/* Quick-Switch Pill & Drawer Banner & Guard Modal */
.pos-qsw-dot.is-rsv { background: #A78BFA; }
.pos-qsw-pill.is-rsv-locked {
  border-color: rgba(167, 139, 250, .45);
  background: rgba(139, 92, 246, .16);
  color: #EDE9FE;
}
.pos-rsv-banner {
  flex: none;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #EDE9FE;
  background: linear-gradient(90deg, rgba(109, 40, 217, .28), rgba(139, 92, 246, .14));
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .42);
}
.pos-rsv-banner.is-urgent {
  color: #FEF3C7;
  background: linear-gradient(90deg, rgba(217, 119, 6, .3), rgba(139, 92, 246, .22));
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .55);
}
.rsv-lock-card {
  padding: 16px 18px;
  border-radius: 18px;
  background:
    radial-gradient(95% 130% at 100% 0%, rgba(139, 92, 246, .22), transparent 72%),
    color-mix(in srgb, var(--ux-page) 45%, var(--ux-surface-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1.5px rgba(167, 139, 250, .48);
}
.rsv-lock-card.is-upcoming {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1.5px rgba(251, 191, 36, .48);
}
.rsv-lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  background: rgba(139, 92, 246, .26);
  color: #EDE9FE;
  margin-bottom: 10px;
}
.rsv-lock-pill.is-warn {
  background: rgba(245, 158, 11, .22);
  color: #FDE68A;
}
.rsv-lock-time-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.rsv-lock-time-row strong {
  font-size: 32px;
  font-weight: 950;
  color: #DDD6FE;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}
.rsv-lock-card.is-upcoming .rsv-lock-time-row strong {
  color: #FCD34D;
}
.rsv-lock-time-row span {
  font-size: 14px;
  font-weight: 800;
  color: var(--ux-ink-2);
}
.rsv-lock-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: 13.5px;
}
.rsv-lock-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.rsv-lock-meta span {
  color: var(--ux-ink-3);
  font-weight: 650;
  flex: none;
}
.rsv-lock-meta b {
  color: var(--ux-ink);
  font-weight: 800;
  text-align: right;
}
.touch-choice-btn.is-rsv-disabled {
  opacity: .52;
  border-style: dashed;
  border-color: rgba(167, 139, 250, .48);
  color: #C4B5FD;
  cursor: not-allowed;
}


/* ============================================================================
   SINGLE-PAGE FULL-SCREEN FOCUS MODE (/pos, /backoffice, /admin)
   ============================================================================ */
.focus-inline-btn.is-focus-on {
  background: color-mix(in srgb, var(--ux-accent) 22%, var(--ux-surface-2)) !important;
  border-color: color-mix(in srgb, var(--ux-accent) 62%, transparent) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ux-accent) 36%, transparent), 0 8px 18px -8px var(--ux-glow);
}

.focus-exit-fab {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 68;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--ux-accent) 60%, rgba(255, 255, 255, .22));
  background: rgba(11, 15, 24, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 820;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 14px 32px -10px rgba(0, 0, 0, .82);
  transition: transform .18s var(--ux-spring), background .18s;
}
.focus-exit-fab:hover {
  background: var(--ux-accent-btn);
  border-color: rgba(255, 255, 255, .3);
  transform: translateY(-2px);
}
.focus-exit-fab:active { transform: scale(.96); }
.focus-exit-fab.is-suppressed { display: none !important; }

/* Hide topbars, legacy subbars, and backoffice sidebars in Focus Mode,
   while KEEPING the right-hand POS touchscreen keypad (.pos-side-dock) visible! */
body.is-focus-mode .app-topbar,
body.is-focus-mode .subbar,
body.is-focus-mode .bo-sidebar,
body.is-focus-mode .admin-kpi-hero {
  display: none !important;
}

body.is-focus-mode .app-main {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px 12px;
}

body.is-focus-mode.pos-workspace .app-main {
  height: 100vh;
  height: 100dvh;
}

body.is-focus-mode.pos-workspace .pos-floor-card {
  border-radius: 14px;
  padding: 6px 8px !important;
  gap: 6px;
}
body.is-focus-mode.pos-workspace .floor-canvas-scroll {
  padding: 0;
}

body.is-focus-mode .bo-shell {
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr);
  padding: 12px 16px 68px;
}


/* ============================================================================
   5 BESPOKE RESTAURANT WEBSITE TEMPLATES (Fine Dining -> HK Local) + STUDIO
   ============================================================================ */

/* Shared Upgraded Restaurant Site Sections */
.rs-body .rs-hero {
  min-height: 500px;
}
.rs-hero-eyebrow-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.rs-cuisine-pill {
  background: var(--ux-accent) !important;
  color: #FFFFFF !important;
}
.rs-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.rs-cta-glass {
  background: rgba(255, 255, 255, .15) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, .32) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.rs-cta-glass:hover {
  background: rgba(255, 255, 255, .24) !important;
}
.rs-info-wrap {
  margin-top: -36px;
  position: relative;
  z-index: 4;
}
.rs-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ux-accent);
}
.rs-story-sec { padding-bottom: 24px; }
.rs-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 32px;
  align-items: center;
}
.rs-story-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 880;
  letter-spacing: -.02em;
  line-height: 1.18;
}
.rs-story-p {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.82;
  color: var(--ux-ink-2);
}
.rs-service-box {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
}
.rs-service-box p {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ux-ink-2);
}
.rs-story-figure {
  margin: 0;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  box-shadow: 0 0 0 1px var(--ux-line), 0 28px 54px -28px var(--ux-shadow-strong);
  background: var(--ux-surface-2);
}
.rs-story-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rs-story-figure figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 11, 16, .74);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 720;
}

/* Mid-Page Full-Width Atmospheric Promo / Culinary Banner Band */
.rs-promo-wrap {
  padding-top: 8px;
  padding-bottom: 14px;
}
.rs-promo-band {
  position: relative;
  min-height: 310px;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 0 0 1px var(--ux-line), 0 32px 64px -32px var(--ux-shadow-strong);
  background: #121216;
}
.rs-promo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ux-ease);
}
.rs-promo-band:hover .rs-promo-img { transform: scale(1.03); }
.rs-promo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(10, 10, 14, .88) 0%, rgba(10, 10, 14, .62) 52%, rgba(10, 10, 14, .22) 100%);
}
.rs-promo-content {
  position: relative;
  z-index: 2;
  padding: 36px 40px;
  max-width: 660px;
  color: #FFFFFF;
}
.rs-promo-kicker {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .24);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
}
.rs-promo-content h2 {
  margin: 12px 0 8px;
  font-size: clamp(24px, 3.1vw, 34px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.02em;
}
.rs-promo-content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .88);
}
.rs-promo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.rs-promo-band {
  scroll-margin-top: 88px;
}
/* Multi-Photo Environment & Dish Gallery Wall (Balanced 4-Tile Editorial Bento) */
.rs-gallery-sec { padding-top: 32px; padding-bottom: 18px; scroll-margin-top: 88px; }
.rs-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.rs-sec-head h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 880;
  letter-spacing: -.02em;
}
.rs-gallery-tip {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ux-ink-3);
}
.rs-gallery-grid {
  display: grid;
  grid-template-columns: 1.42fr 1fr 1fr;
  grid-template-rows: 224px 224px;
  gap: 14px;
}
.rs-gal-tile {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: var(--ux-surface-2);
  box-shadow: 0 0 0 1px var(--ux-line), 0 16px 32px -22px var(--ux-shadow-strong);
  text-align: left;
  cursor: zoom-in;
}
.rs-gal-tile:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
.rs-gal-tile:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
.rs-gal-tile:nth-child(3) { grid-column: 3 / 4; grid-row: 1 / 2; }
.rs-gal-tile:nth-child(4) { grid-column: 2 / 4; grid-row: 2 / 3; }
.rs-gal-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ux-ease);
}
.rs-gal-tile:hover img { transform: scale(1.05); }
.rs-gal-cap {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  border-radius: 11px;
  background: rgba(10, 11, 16, .72);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 750;
}

/* Lightbox Zoom (#061) */
.rs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(6, 7, 11, .9);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 24px;
}
.rs-lb-close {
  position: fixed;
  top: 20px;
  right: 22px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(16, 18, 26, .85);
  color: #FFFFFF;
  font-weight: 800;
}
.rs-lb-fig {
  margin: 0;
  max-width: min(1060px, 94vw);
  text-align: center;
}
.rs-lb-fig img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 18px;
  box-shadow: 0 32px 72px rgba(0, 0, 0, .75);
  display: block;
  margin: 0 auto;
}
.rs-lb-fig figcaption {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 750;
  color: rgba(255, 255, 255, .92);
}

.rs-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.rs-menu-search {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1.5px solid var(--ux-line-2);
  background: var(--ux-surface-2);
  color: var(--ux-ink);
  font-size: 13px;
  min-width: 220px;
}
.rs-panel-box { padding: 26px; }
.rs-sub-card { padding: 18px; border-radius: 16px; background: var(--ux-surface-2); }
.rs-footer {
  border-top: 1px solid var(--ux-line);
  margin-top: 20px;
}
.rs-footer-in {
  padding: 28px 0 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ux-ink-3);
}
.rs-footer-in strong { color: var(--ux-ink); }
.rs-hk-tile-strip { display: none; }

/* Optional Preview Bar (?theme= preview from Backoffice) */
.rs-preview-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 88;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(11, 14, 22, .94);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 20px 44px -12px rgba(0, 0, 0, .75);
  backdrop-filter: blur(12px);
  font-size: 12.5px;
  font-weight: 780;
  max-width: calc(100vw - 24px);
}

/* ── THEME 1: 黑金星級私房菜 (fine_dining — Ultra Luxury Dark & Champagne Gold) ── */
.rs-body[data-site-theme="fine_dining"] {
  --ux-page: #09090D;
  --ux-surface: #121218;
  --ux-surface-2: #191922;
  --ux-surface-3: #23232F;
  --ux-ink: #F6F1E7;
  --ux-ink-2: rgba(246, 241, 231, .74);
  --ux-ink-3: rgba(212, 175, 55, .66);
  --ux-line: rgba(212, 175, 55, .18);
  --ux-line-2: rgba(212, 175, 55, .34);
  --ux-accent: #D4AF37;
  --ux-accent-2: #E5C76B;
  --ux-accent-soft: rgba(212, 175, 55, .16);
  --ux-accent-ink: #0E0C07;
  --ux-grad: linear-gradient(135deg, #E5C76B, #B8912B);
  background: radial-gradient(70% 40% at 50% 0%, rgba(212, 175, 55, .07), transparent 68%), #09090D;
}
.rs-body[data-site-theme="fine_dining"] h1,
.rs-body[data-site-theme="fine_dining"] h2,
.rs-body[data-site-theme="fine_dining"] .brand-mark {
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  letter-spacing: .02em;
}
.rs-body[data-site-theme="fine_dining"] .rs-hero {
  min-height: 560px;
}
.rs-body[data-site-theme="fine_dining"] .rs-hero-frame {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(212, 175, 55, .32);
  pointer-events: none;
  z-index: 2;
}
.rs-body[data-site-theme="fine_dining"] .rs-hero-scrim {
  background: linear-gradient(to top, #09090D 0%, rgba(9, 9, 13, .48) 48%, rgba(9, 9, 13, .3) 100%);
}
.rs-body[data-site-theme="fine_dining"] .rs-cuisine-pill {
  background: transparent !important;
  color: #E5C76B !important;
  border: 1px solid rgba(212, 175, 55, .65);
  letter-spacing: .1em;
}
.rs-body[data-site-theme="fine_dining"] .btn.primary {
  background: linear-gradient(135deg, #E5C76B, #B8912B);
  color: #0D0B07;
  font-weight: 850;
  box-shadow: 0 12px 26px -10px rgba(212, 175, 55, .45);
}
.rs-body[data-site-theme="fine_dining"] .rs-info-strip,
.rs-body[data-site-theme="fine_dining"] .rs-dish-card,
.rs-body[data-site-theme="fine_dining"] .rs-panel-box {
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .24), 0 24px 48px -28px rgba(0, 0, 0, .85);
}
.rs-body[data-site-theme="fine_dining"] .rs-promo-band {
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .34), 0 32px 64px -26px rgba(0, 0, 0, .9);
}
.rs-body[data-site-theme="fine_dining"] .rs-gal-tile {
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .26);
}
.rs-body[data-site-theme="fine_dining"] .rs-brand-seal {
  background: linear-gradient(135deg, #E5C76B, #9A7520);
  color: #0B0A07;
  border-radius: 6px;
}

/* ── THEME 2: 雜誌感精品小館 (bistro_editorial — Warm Alabaster & Terracotta) ── */
.rs-body[data-site-theme="bistro_editorial"] {
  --ux-page: #FAF7F2;
  --ux-surface: #FFFFFF;
  --ux-surface-2: #F3ECE3;
  --ux-surface-3: #E8DDD0;
  --ux-ink: #191614;
  --ux-ink-2: #59524B;
  --ux-ink-3: #8A8178;
  --ux-accent: #C84B1F;
  --ux-accent-2: #0F766E;
  --ux-accent-soft: rgba(200, 75, 31, .11);
}
.rs-body[data-site-theme="bistro_editorial"] h1,
.rs-body[data-site-theme="bistro_editorial"] h2 {
  font-family: "Noto Serif TC", "Songti TC", Georgia, serif;
}

/* ── THEME 3: 港式貼地老字號 (hk_local — Authentic HK Jade Green, Vermilion & Cream Paper) ── */
.rs-body[data-site-theme="hk_local"] {
  --ux-page: #FFFBF2;
  --ux-surface: #FFFFFF;
  --ux-surface-2: #F7EFE0;
  --ux-surface-3: #ECE0C9;
  --ux-ink: #1A2421;
  --ux-ink-2: #4A5550;
  --ux-ink-3: #7A837E;
  --ux-line: rgba(15, 107, 91, .14);
  --ux-line-2: rgba(15, 107, 91, .28);
  --ux-accent: #C83226;
  --ux-accent-2: #0F6B5B;
  --ux-accent-soft: rgba(200, 50, 38, .12);
  --ux-grad: linear-gradient(135deg, #0F6B5B, #115E59);
}
.rs-body[data-site-theme="hk_local"] .rs-hk-tile-strip {
  display: block;
  height: 10px;
  background-image:
    repeating-linear-gradient(90deg, #0F6B5B 0 18px, #FFFBF2 18px 22px, #C83226 22px 40px, #FFFBF2 40px 44px);
  border-bottom: 1.5px solid #0F6B5B;
}
.rs-body[data-site-theme="hk_local"] .rs-nav-wrap {
  background: #0F6B5B !important;
  color: #FFFBF2;
  border-bottom: 2px solid #D9A441;
}
.rs-body[data-site-theme="hk_local"] .rs-nav-wrap .brand-mark,
.rs-body[data-site-theme="hk_local"] .rs-nav-wrap .nav-links a {
  color: #FFFBF2;
}
.rs-body[data-site-theme="hk_local"] .rs-brand-seal {
  background: #C83226;
  border: 2px solid #FDE68A;
  color: #FFFBF2;
  border-radius: 8px;
}
.rs-body[data-site-theme="hk_local"] .rs-info-strip {
  border: 2px solid #0F6B5B;
  box-shadow: 0 14px 28px -18px rgba(15, 107, 91, .35);
}
.rs-body[data-site-theme="hk_local"] .rs-dish-card {
  border: 1.5px solid rgba(15, 107, 91, .22);
  border-radius: 16px;
}
.rs-body[data-site-theme="hk_local"] .rs-dish-tag {
  border-radius: 6px;
  background: #C83226 !important;
  color: #FFFFFF !important;
  border: 1px solid #FDE68A;
}
.rs-body[data-site-theme="hk_local"] .rs-promo-band {
  border: 2.5px solid #0F6B5B;
}

/* ── THEME 4: 清新活力茶飲甜品 (tea_vibrant — Crisp Botanical Sage & Mango Amber) ── */
.rs-body[data-site-theme="tea_vibrant"] {
  --ux-page: #F2FAF7;
  --ux-surface: #FFFFFF;
  --ux-surface-2: #E4F4EE;
  --ux-surface-3: #CEEAE0;
  --ux-ink: #0F2622;
  --ux-ink-2: #3F635B;
  --ux-ink-3: #6C8F87;
  --ux-accent: #0D9488;
  --ux-accent-2: #F59E0B;
  --ux-accent-soft: rgba(13, 148, 136, .13);
  --ux-grad: linear-gradient(135deg, #0D9488, #14B8A6 60%, #F59E0B);
}
.rs-body[data-site-theme="tea_vibrant"] .rs-dish-card,
.rs-body[data-site-theme="tea_vibrant"] .rs-promo-band,
.rs-body[data-site-theme="tea_vibrant"] .rs-gal-tile {
  border-radius: 26px;
}
.rs-body[data-site-theme="tea_vibrant"] .btn.primary {
  border-radius: 999px;
}

/* ── THEME 5: 溫潤木質精品咖啡 (cafe_artisan — Oat Linen, Roasted Espresso & Brass) ── */
.rs-body[data-site-theme="cafe_artisan"] {
  --ux-page: #F7F2EB;
  --ux-surface: #FFFDF9;
  --ux-surface-2: #EFE6DA;
  --ux-surface-3: #E2D4C3;
  --ux-ink: #241912;
  --ux-ink-2: #634E3F;
  --ux-ink-3: #927B6A;
  --ux-accent: #7C4A2D;
  --ux-accent-2: #B68042;
  --ux-accent-soft: rgba(124, 74, 45, .12);
  --ux-grad: linear-gradient(135deg, #7C4A2D, #B68042);
}
.rs-body[data-site-theme="cafe_artisan"] h1,
.rs-body[data-site-theme="cafe_artisan"] h2 {
  font-family: "Noto Serif TC", Georgia, serif;
}

/* Backoffice 5-Template Gallery Picker & Built-In Banner Picker */
.ws-theme-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.ws-theme-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  transition: transform .2s var(--ux-spring), box-shadow .2s;
}
.ws-theme-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--ux-line-2), 0 14px 28px -18px rgba(0, 0, 0, .65);
}
.ws-theme-card.is-active {
  box-shadow: 0 0 0 2px var(--ux-accent), 0 16px 32px -16px var(--ux-glow);
}
.ws-theme-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0D1018;
}
.ws-theme-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ws-theme-tier {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(8, 11, 18, .82);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}
.ws-theme-cur {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ux-mint);
  color: #072017;
  font-size: 10px;
  font-weight: 900;
}
.ws-theme-swatches {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: inline-flex;
  gap: 3px;
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(8, 11, 18, .72);
  backdrop-filter: blur(6px);
}
.ws-theme-swatches i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .38);
  display: block;
}
.ws-theme-body {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.ws-theme-body strong { font-size: 14px; font-weight: 850; }
.ws-theme-sub { font-size: 11px; color: var(--ux-accent); font-weight: 700; }
.ws-theme-body p { margin: 2px 0 8px; font-size: 11.5px; line-height: 1.5; color: var(--ux-ink-2); flex: 1; }
.ws-theme-actions { display: flex; gap: 6px; margin-top: auto; }
.ws-theme-actions > * {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  justify-content: center;
  padding: 0 6px;
  font-size: 11.5px;
}

.ws-banner-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}
.ws-bp-chip {
  position: relative;
  border: 1.5px solid var(--ux-line);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ux-surface-3);
  text-align: left;
  transition: border-color .15s, transform .15s;
}
.ws-bp-chip:hover { border-color: var(--ux-line-2); transform: translateY(-1px); }
.ws-bp-chip.is-on { border-color: var(--ux-accent); box-shadow: 0 0 0 2px var(--ux-accent-soft); }
.ws-bp-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-bp-chip span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 5px;
  font-size: 9.5px;
  font-weight: 780;
  color: #FFFFFF;
  background: linear-gradient(to top, rgba(0, 0, 0, .86), rgba(0, 0, 0, .08));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1240px) {
  .ws-theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .rs-story-grid { grid-template-columns: 1fr; gap: 20px; }
  .rs-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .rs-gal-tile { aspect-ratio: 4 / 3; height: auto; }
  .rs-gal-tile:nth-child(n) { grid-column: auto; grid-row: auto; }
  .ws-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .rs-promo-content { padding: 24px 20px; }
  .rs-gallery-grid { grid-template-columns: 1fr; }
  .ws-theme-grid { grid-template-columns: 1fr; }
  .ws-banner-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================================
   GOOGLE-INSPIRED EXECUTIVE WHITE / LIGHT CONSOLE PALETTE (.console-light)
   Used by Owner Backoffice (/:code/backoffice) & Platform Super Admin (/admin)
   Clean white surfaces, refined neutral hairlines, zero sci-fi neon glow
   ============================================================================ */
body.console-light,
body.console-light[data-template="full_service"],
body.console-light[data-template="tea_shop"],
body.console-light[data-template="cafe"],
body.console-light[data-template="fast_casual"] {
  color-scheme: light;
  --ux-page: #F8F9FA;
  --ux-surface: #FFFFFF;
  --ux-surface-2: #F1F3F4;
  --ux-surface-3: #E8EAED;
  --ux-ink: #202124;
  --ux-ink-2: #5F6368;
  --ux-ink-3: #80868B;
  --ux-line: #E3E5E8;
  --ux-line-2: #DADCE0;
  --ux-accent: #1A73E8;
  --ux-accent-2: #188038;
  --ux-accent-soft: #E8F0FE;
  --ux-accent-ink: #FFFFFF;
  --ux-accent-btn: #1A73E8;
  --ux-accent-btn-ink: #FFFFFF;
  --ux-specular: rgba(255, 255, 255, 0);
  --ux-glow: transparent;
  --ux-glow-2: transparent;
  --ux-mint: #188038;
  --ux-warn: #B06000;
  --ux-danger: #C5221F;
  --ux-glass: rgba(255, 255, 255, .96);
  --ux-glass-line: #E3E5E8;
  --ux-shadow: rgba(60, 64, 67, .10);
  --ux-shadow-strong: rgba(60, 64, 67, .18);
  --ux-grad: linear-gradient(135deg, #1A73E8, #1967D2);
  background: #F8F9FA;
  color: #202124;
}

.console-light .app-topbar {
  background: #FFFFFF;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid #E3E5E8;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .05);
}

.console-light .card-box {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E3E5E8;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .05), 0 1px 3px 1px rgba(60, 64, 67, .03);
}

.console-light .kpi-card {
  background: #FFFFFF;
  border: 1px solid #E3E5E8;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .05);
  padding: 18px 20px;
  transition: border-color .16s, box-shadow .16s;
}
.console-light .kpi-card:hover {
  border-color: #CBD2D9;
  box-shadow: 0 4px 12px rgba(60, 64, 67, .08);
}
.console-light .kpi-card strong {
  color: #202124;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.025em;
}
.console-light .kpi-card small { color: #5F6368; font-weight: 650; }
.console-light .kpi-card span { color: #80868B; }

.console-light .btn {
  background: #FFFFFF;
  border: 1px solid #DADCE0;
  color: #3C4043;
  border-radius: 9px;
  font-weight: 650;
  box-shadow: none;
}
.console-light .btn:hover:not(:disabled) {
  background: #F8F9FA;
  border-color: #CBD2D9;
  color: #202124;
}
.console-light .btn.primary {
  background: #1A73E8;
  border-color: #1A73E8;
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(26, 115, 232, .22);
}
.console-light .btn.primary:hover:not(:disabled) {
  background: #1765CC;
  border-color: #1765CC;
  filter: none;
  box-shadow: 0 2px 6px rgba(26, 115, 232, .28);
}
.console-light .btn.ink {
  background: #202124;
  border-color: #202124;
  color: #FFFFFF;
}
.console-light .btn.ink:hover:not(:disabled) {
  background: #3C4043;
  border-color: #3C4043;
}
.console-light .btn.mint {
  background: #188038;
  border-color: #188038;
  color: #FFFFFF;
}
.console-light .btn.danger {
  background: #FCE8E6;
  border-color: #F6AEA9;
  color: #C5221F;
}
.console-light .btn.danger:hover:not(:disabled) {
  background: #FAD2CF;
}

.console-light .badge {
  background: #F1F3F4;
  color: #3C4043;
  font-weight: 650;
}
.console-light .badge.ok { background: #E6F4EA; color: #137333; }
.console-light .badge.accent { background: #E8F0FE; color: #1967D2; }
.console-light .badge.info { background: #E4F7FB; color: #007B83; }
.console-light .badge.warn { background: #FEF7E0; color: #B06000; }
.console-light .badge.danger { background: #FCE8E6; color: #C5221F; }

.console-light .field input,
.console-light .field select,
.console-light .field textarea,
.console-light input[type="search"],
.console-light input[type="date"],
.console-light select {
  background: #FFFFFF;
  border: 1px solid #DADCE0;
  color: #202124;
  border-radius: 8px;
}
.console-light .field input:focus,
.console-light .field select:focus,
.console-light .field textarea:focus {
  border-color: #1A73E8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .14);
  outline: none;
}

.console-light .u039-tabs {
  background: #F1F3F4;
  border: 1px solid #E3E5E8;
  box-shadow: none;
  padding: 4px;
}
.console-light .u039-pill {
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(60, 64, 67, .16), 0 0 0 1px rgba(60, 64, 67, .06);
}
.console-light .u039-tab {
  color: #5F6368;
  font-weight: 680;
}
.console-light .u039-tab[aria-selected="true"] {
  color: #1967D2;
}

.console-light .u098 {
  background: #FFFFFF;
  border: 1px solid #E3E5E8;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .05);
  border-radius: 16px;
}
.console-light .u098-tb {
  background: #F8F9FA;
  border: 1px solid #E8EAED;
  box-shadow: none;
}
.console-light .u098-tb[aria-pressed="true"] {
  background: #E8F0FE;
  border-color: #AECBFA;
  box-shadow: none;
}
.console-light .u098-tb[aria-pressed="true"] b { color: #1967D2; }

.console-light .data-table th {
  background: #F8F9FA;
  color: #5F6368;
  font-weight: 700;
  border-bottom: 1px solid #E3E5E8;
  padding: 11px 14px;
}
.console-light .data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #F1F3F4;
  color: #202124;
}
.console-light .data-table tr.clickable:hover td,
.console-light .data-table tbody tr:hover td {
  background: #F8FAFD;
}

.console-light .chart-bars {
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 34px,
    #F1F3F4 34px,
    #F1F3F4 35px
  );
  border-bottom: 1px solid #E3E5E8;
}
.console-light .chart-col i {
  background: #1A73E8;
  border-radius: 5px 5px 1px 1px;
  box-shadow: none;
}
.console-light .chart-col:hover i { background: #1765CC; }

.console-light .modal-backdrop {
  background: rgba(32, 33, 36, .42);
  backdrop-filter: blur(3px);
}
.console-light .modal-box {
  background: #FFFFFF;
  border: 1px solid #E3E5E8;
  box-shadow: 0 24px 54px -16px rgba(32, 33, 36, .28);
}
.console-light .u273-pn {
  background: #FFFFFF;
  border-left: 1px solid #E3E5E8;
  box-shadow: -12px 0 36px rgba(32, 33, 36, .14);
}
.console-light .notice-bar {
  background: #FEF7E0;
  box-shadow: inset 0 0 0 1px #FDE293;
  color: #3C4043;
}
.console-light .notice-bar.info {
  background: #E8F0FE;
  box-shadow: inset 0 0 0 1px #D2E3FC;
  color: #174EA6;
}
.console-light .notice-bar.danger {
  background: #FCE8E6;
  box-shadow: inset 0 0 0 1px #F6AEA9;
  color: #A50E0E;
}

/* Clean Google-light Demo Hub & Module Catalog on /admin */
.console-light .demo-marketing-strip {
  background: #F8F9FA;
  border: 1px solid #E3E5E8;
  border-radius: 14px;
}
.console-light .demo-store-card {
  background: #FFFFFF;
  border: 1px solid #E3E5E8;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .05);
}
.console-light .demo-group {
  background: #F8F9FA;
  border: 1px solid #ECEEF0;
}
.console-light .floor-canvas-scroll {
  background: #F1F3F4;
  border: 1px solid #DADCE0;
  box-shadow: inset 0 1px 3px rgba(60, 64, 67, .08);
}
.console-light .floor-canvas {
  background-image: radial-gradient(circle, rgba(60, 64, 67, .16) 1px, transparent 1px);
  background-size: 22px 22px;
}
.console-light .fp-table {
  background: #FFFFFF;
  border: 1.5px solid #BDC1C6;
  color: #202124;
  box-shadow: 0 2px 6px rgba(60, 64, 67, .1);
}
.console-light .fp-table.is-selected {
  border-color: #1A73E8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .22);
}
.console-light .fp-code { color: #202124 !important; }
.console-light .fp-seat-pill { background: #F1F3F4; color: #3C4043; }
.console-light .fp-state-tag { background: #F1F3F4; color: #5F6368; }
.console-light .ws-theme-card {
  background: #FFFFFF;
  border: 1px solid #E3E5E8;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .05);
}
.console-light .ws-theme-card:hover {
  border-color: #CBD2D9;
  box-shadow: 0 6px 18px -6px rgba(60, 64, 67, .16);
}
.console-light .ws-theme-card.is-active {
  border-color: #1A73E8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, .2);
}
.console-light .focus-exit-fab {
  background: #202124;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 8px 24px rgba(32, 33, 36, .28);
}

/* ============================================================================
   ALL-APP MOBILE ESSENTIALS MODE (<= 768px)
   Desktop retains 100% full depth; Mobile trims secondary bloat & adds
   thumb-first native navigation (Ported from Lucian #041 & #221 · MIT)
   ============================================================================ */
.mob-bottom-nav,
.mob-sticky-bar,
.mob-sheet-ov,
.mob-sheet-panel,
.mob-only {
  display: none;
}

@media (max-width: 768px) {
  .mob-hide { display: none !important; }
  .mob-only { display: inline-flex; }

  /* Fixed Native-Style Bottom Tab Bar (Lucian #041 inspired) */
  .mob-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 75;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid #E3E5E8;
    box-shadow: 0 -4px 20px rgba(60, 64, 67, .08);
  }
  .mob-bnav-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 48px;
    padding: 4px 2px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #5F6368;
    font-size: 11px;
    font-weight: 680;
    text-decoration: none;
    transition: color .16s, background .16s, transform .18s var(--ux-spring);
  }
  .mob-bnav-btn svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .22s var(--ux-spring);
  }
  .mob-bnav-btn[aria-current="page"],
  .mob-bnav-btn[aria-selected="true"] {
    color: #1A73E8;
    background: #E8F0FE;
    font-weight: 780;
  }
  .mob-bnav-btn[aria-current="page"] svg,
  .mob-bnav-btn[aria-selected="true"] svg {
    transform: translateY(-1px);
  }
  .mob-bnav-badge {
    position: absolute;
    top: 3px;
    right: calc(50% - 19px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #D93025;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
  }

  /* Bottom "More Tools" Sheet for Secondary Backoffice/Admin Modules */
  .mob-sheet-ov {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 84;
    background: rgba(32, 33, 36, .42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
  }
  .mob-sheet-ov.is-open { opacity: 1; pointer-events: auto; }
  .mob-sheet-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    max-height: 78vh;
    background: #FFFFFF;
    border-radius: 22px 22px 0 0;
    padding: 12px 16px calc(22px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -14px 40px rgba(32, 33, 36, .22);
    transform: translateY(104%);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
    overflow-y: auto;
  }
  .mob-sheet-panel.is-open { transform: translateY(0); }
  .mob-sheet-handle {
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: #DADCE0;
    margin: 0 auto 12px;
  }
  .mob-sheet-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  .mob-sheet-head strong { font-size: 16px; font-weight: 800; color: #202124; }
  .mob-sheet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .mob-sheet-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 13px;
    border-radius: 12px;
    border: 1px solid #E3E5E8;
    background: #F8F9FA;
    color: #202124;
    font-size: 13px;
    font-weight: 680;
    text-align: left;
    text-decoration: none;
  }
  .mob-sheet-item:active { background: #E8F0FE; border-color: #AECBFA; color: #1967D2; }

  /* Sticky Mobile Bottom Quick-Action Bar (Lucian #221 inspired — Websites) */
  .mob-sticky-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 74;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--ux-surface) 95%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--ux-line);
    box-shadow: 0 -8px 24px -10px var(--ux-shadow-strong);
  }
  .mob-sticky-bar > * { flex: 1; justify-content: center; min-height: 42px; font-size: 13px; }

  /* Reserve bottom safe space on pages with fixed mobile bottom bar */
  body.has-mob-nav { padding-bottom: 78px !important; }
  body.has-mob-bar { padding-bottom: 70px !important; }

  /* ── OWNER BACKOFFICE & SUPER ADMIN MOBILE ESSENTIALS CURATION ── */
  .console-light .app-topbar-in {
    padding: 8px 12px;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .console-light .app-topbar .brand-mark {
    font-size: 14.5px;
    min-width: 0;
    overflow: hidden;
  }
  .console-light .app-topbar .brand-mark span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .console-light .bo-sidebar { display: none !important; }
  .console-light .bo-shell {
    padding: 12px 12px 18px;
    gap: 12px;
  }
  .console-light .bo-hero-bar {
    padding: 14px 15px;
    gap: 10px;
    margin-bottom: 12px;
  }
  .console-light .bo-hero-bar h1 { font-size: 18px; }
  .console-light .bo-hero-bar p { display: none; }
  .console-light .bo-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    margin-bottom: 14px;
  }
  .console-light .bo-kpi-card {
    padding: 13px 13px 13px 15px;
    gap: 3px;
  }
  .console-light .bo-kpi-card small { font-size: 11px; }
  .console-light .bo-kpi-card strong { font-size: 19px; }
  .console-light .bo-kpi-card span { font-size: 11px; line-height: 1.35; }
  .console-light .kpi-card { padding: 13px 14px; }
  .console-light .kpi-card small { font-size: 11px; }
  .console-light .kpi-card strong { font-size: 19.5px; white-space: nowrap; }
  .console-light .kpi-card span { font-size: 11px; line-height: 1.35; }
  .console-light .card-box {
    padding: 14px;
    border-radius: 14px;
  }
  .console-light .grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .console-light .app-main {
    padding: 12px 12px 18px;
  }
  .console-light .admin-kpi-hero {
    grid-template-columns: 1fr !important;
    margin-bottom: 12px !important;
  }
  .console-light #adminMetricCard,
  .console-light #boMetricCard { display: none !important; }
  .console-light .subbar {
    margin-bottom: 12px;
  }
  .console-light #adminTabs { display: none !important; }
  .console-light #adminSearch { width: 100%; min-width: 0 !important; }
  .console-light .data-table th,
  .console-light .data-table td {
    padding: 9px 8px;
    font-size: 12.5px;
  }
  .console-light .bo-subtabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    margin-bottom: 12px;
  }
  .console-light .bo-subtabs::-webkit-scrollbar { display: none; }
  .console-light .bo-subtab {
    flex: none;
    white-space: nowrap;
    padding: 0 12px;
    font-size: 12.5px;
  }
  .console-light .u158-bo .u158-ledger {
    height: 178px;
    padding: 24px 2px 22px;
    gap: 5px;
  }
  .console-light .u158-bo .u158-step { height: 126px; }
  .console-light .u158-bo .u158-brick b { font-size: 10px; top: -18px; }
  .console-light .u158-bo .u158-step small { font-size: 10px; }

  /* ── RESTAURANT PUBLIC SITE MOBILE ESSENTIALS (/:code/site) ── */
  .rs-body .rs-hero { min-height: 390px; }
  .rs-body .rs-hero-inner { padding: 36px 16px 56px; }
  .rs-body .rs-hero-copy h1 { font-size: 30px; }
  .rs-body .rs-hero-lead { font-size: 14px; }
  .rs-body #rsDelivHeroStrip,
  .rs-body #rsPickupBoardBtn,
  .rs-body .rs-story-figure,
  .rs-body .rs-gallery-tip { display: none !important; }
  .rs-body .rs-info-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
  }
  .rs-body .rs-story-sec { padding-top: 22px; padding-bottom: 18px; }
  .rs-body .rs-promo-band { min-height: 230px; border-radius: 18px; }
  .rs-body .rs-promo-content { padding: 20px 18px; }
  .rs-body .rs-promo-content h2 { font-size: 21px; }
  .rs-body .rs-promo-content p { font-size: 13px; }
  /* Horizontal swipeable gallery on mobile instead of 4 tall stacked photos */
  .rs-body .rs-gallery-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .rs-body .rs-gallery-grid::-webkit-scrollbar { display: none; }
  .rs-body .rs-gal-tile {
    flex: 0 0 80%;
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    scroll-snap-align: start;
    border-radius: 16px;
  }
  .rs-body .rs-menu-search { width: 100%; min-width: 0; }
  .rs-body .rs-panel-box { padding: 16px; }
  .rs-body .rs-preview-bar { bottom: 68px; font-size: 11.5px; padding: 7px 10px; }

  /* ── FRONTLINE POS MOBILE STREAMLINING ── */
  .pos-workspace #liveSummaryStrip,
  .pos-workspace #posTemplateBadge,
  .pos-workspace #userBadge { display: none !important; }
}

/* ============================================================================
   UNIFIED CLEAN LIGHT POS & DAYLIGHT ARCHITECTURAL FLOOR PLAN
   Drops dark sci-fi obsidian/neon glow -> Crisp Google-clean white/slate POS
   Shared cleanly by Frontline POS (/:code/pos) & Backoffice Floor Editor
   ============================================================================ */
body.console-light.pos-workspace {
  background: #F4F6F9;
  color: #1F2937;
}
.console-light.pos-workspace .app-topbar {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.console-light.pos-workspace #shiftTopBadge.ok::before {
  background: #16A34A;
  box-shadow: none;
}
.console-light.pos-workspace .u039-tabs {
  background: #ECEFF4;
  border: 1px solid #DDE3EC;
  box-shadow: none;
}
.console-light.pos-workspace .u039-pill {
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12), 0 0 0 1px rgba(15, 23, 42, .05);
}
.console-light.pos-workspace .u039-tab {
  color: #475569;
  font-weight: 700;
}
.console-light.pos-workspace .u039-tab[aria-selected="true"] {
  color: #1A73E8;
}
.console-light.pos-workspace .u039-tab[aria-selected="true"] .u039-badge {
  background: #E8F0FE;
  color: #1967D2;
}

/* Clean Daylight Telemetry HUD */
.console-light .floor-telemetry-hud {
  background: #F8FAFC;
  box-shadow: inset 0 0 0 1px #E2E8F0;
}
.console-light .fp-hud-chip { color: #475569; }
.console-light .fp-hud-chip b { color: #0F172A; }
.console-light .fp-hud-chip small { color: #64748B; }
.console-light .fp-hud-dot { box-shadow: none !important; }
.console-light .fp-hud-dot.is-occ { background: #1A73E8; }
.console-light .fp-hud-dot.is-guest { background: #64748B; }
.console-light .fp-hud-dot.is-rev { background: #16A34A; }
.console-light .fp-hud-dot.is-share { background: #059669; }
.console-light .fp-hud-dot.is-clean { background: #0E7490; }
.console-light .fp-hud-dot.is-rsv { background: #4F46E5; }
.console-light .fp-hud-chip.is-share {
  background: #ECFDF5;
  color: #047857;
}
.console-light .fp-hud-chip.is-share b { color: #065F46; }
.console-light .fp-hud-chip.is-rsv {
  background: #EEF2FF;
  color: #4338CA;
}
.console-light .fp-hud-chip.is-rsv b { color: #3730A3; }
.console-light .fp-hud-chip.is-dirty {
  background: #ECFEFF;
  color: #0E7490;
}
.console-light .fp-hud-chip.is-dirty b { color: #155E75; }

/* Daylight Architectural Floor Plan Canvas (POS + Backoffice Floor Editor) */
.console-light .floor-canvas-scroll {
  background: #EEF2F6;
  border: 1px solid #D8E0EA;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, .05);
  border-radius: 18px;
}
.console-light .floor-canvas {
  background: #F8FAFC;
  border-radius: 16px;
}
.console-light .floor-canvas.is-editing {
  background-image:
    linear-gradient(to right, rgba(26, 115, 232, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 115, 232, .08) 1px, transparent 1px);
  background-color: #F8FAFC;
  background-size: 20px 20px;
}
.console-light .fp-zone-label { fill: #64748B; }
.console-light .fp-zone-label.is-vip { fill: #B45309; }
.console-light .fp-zone-label.is-booth { fill: #1D4ED8; }

/* Daylight Fixtures */
.console-light .fp-fix-surface {
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .06);
}
.console-light .fp-fixture[data-kind="bar"] .fp-fix-surface {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #92400E;
}
.console-light .fp-bar-stool {
  background: #FDE68A;
  border-color: #D97706;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
}
.console-light .fp-fixture[data-kind="kitchen"] .fp-fix-surface {
  background: #FFF7ED;
  border-color: #FB923C;
  color: #9A3412;
}
.console-light .fp-fix-heatbar {
  background: #F97316;
  box-shadow: none;
}
.console-light .fp-fixture[data-kind="entrance"] .fp-fix-surface {
  background: #ECFDF5;
  border-color: #34D399;
  color: #065F46;
}
.console-light .fp-fix-arrow { color: #059669; }
.console-light .fp-fixture[data-kind="window"] .fp-fix-surface {
  background: #EFF6FF;
  border-color: #93C5FD;
  border-top: 2px solid #3B82F6;
  color: #1E40AF;
}
.console-light .fp-win-mullion { background: rgba(59, 130, 246, .25); }

/* Daylight Sculpted Tables & High-Contrast Chairs (Zero Sci-Fi Glow) */
.console-light .fp-table {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.console-light .fp-table-surface {
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .07);
}
.console-light .fp-round-ring {
  border-color: #E2E8F0;
}
.console-light .fp-table:hover .fp-table-surface {
  border-color: #94A3B8;
  box-shadow: 0 6px 16px -4px rgba(15, 23, 42, .14);
}
.console-light .fp-table.is-occupied .fp-table-surface {
  border-color: #1A73E8;
  background: #EFF6FF;
  box-shadow: 0 3px 10px -2px rgba(26, 115, 232, .18);
}
.console-light .fp-table.is-occupied .fp-round-ring {
  border-color: #BFDBFE;
}
.console-light .fp-table.is-bill .fp-table-surface {
  border-color: #D97706;
  background: #FFFBEB;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, .18), 0 4px 12px -2px rgba(217, 119, 6, .2);
  animation: seatly-light-bill 2.4s ease-in-out infinite;
}
@keyframes seatly-light-bill {
  0%, 100% { box-shadow: 0 0 0 2px rgba(217, 119, 6, .18), 0 4px 12px -2px rgba(217, 119, 6, .18); }
  50% { box-shadow: 0 0 0 5px rgba(217, 119, 6, .28), 0 4px 14px -2px rgba(217, 119, 6, .28); }
}
.console-light .fp-table.is-dirty .fp-table-surface {
  border-color: #0E7490;
  border-style: dashed;
  background: #ECFEFF;
  box-shadow: 0 2px 8px rgba(14, 116, 144, .1);
}
.console-light .fp-table.is-rsv-locked .fp-table-surface {
  border-color: #4F46E5;
  background: repeating-linear-gradient(-45deg, rgba(79, 70, 229, .04) 0 7px, transparent 7px 14px), #EEF2FF;
  box-shadow: 0 2px 10px -2px rgba(79, 70, 229, .18);
}
.console-light .fp-table.is-rsv-upcoming .fp-table-surface {
  border-color: #A5B4FC;
  background: #F5F7FF;
}
.console-light .fp-table.is-selected .fp-table-surface {
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #1A73E8, 0 8px 18px -6px rgba(26, 115, 232, .32) !important;
}

/* Daylight Chairs & Banquettes */
.console-light .fp-chair {
  background: #E2E8F0;
  border: 1px solid #94A3B8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
.console-light .fp-chair.is-top { border-top: 2.5px solid #94A3B8; }
.console-light .fp-chair.is-bot { border-bottom: 2.5px solid #94A3B8; }
.console-light .fp-chair.is-radial { border-top: 2.5px solid #94A3B8; }
.console-light .fp-chair.is-lit {
  background: #1A73E8;
  border-color: #1557B0;
  box-shadow: 0 1px 4px rgba(26, 115, 232, .32);
}
.console-light .fp-table.is-bill .fp-chair.is-lit {
  background: #D97706;
  border-color: #B45309;
  box-shadow: 0 1px 4px rgba(217, 119, 6, .3);
}
.console-light .fp-table.is-rsv-locked .fp-chair.is-lit {
  background: #4F46E5;
  border-color: #3730A3;
  box-shadow: 0 1px 4px rgba(79, 70, 229, .3);
}
.console-light .fp-banquette {
  background: #E2E8F0;
  border: 1.5px solid #94A3B8;
  border-top: 3px solid #94A3B8;
  box-shadow: none;
}
.console-light .fp-banquette.is-lit {
  border-color: #1A73E8;
  border-top-color: #1557B0;
}
.console-light .fp-bq-seg { background: #CBD5E1; }
.console-light .fp-bq-seg.is-lit {
  background: #1A73E8;
  box-shadow: none;
}
.console-light .fp-table.is-bill .fp-bq-seg.is-lit { background: #D97706; box-shadow: none; }
.console-light .fp-table.is-rsv-locked .fp-bq-seg.is-lit { background: #4F46E5; box-shadow: none; }

/* Daylight Table Typography & Share Pills */
.console-light .fp-code { color: #0F172A !important; }
.console-light .fp-sub { color: #64748B; font-weight: 650; }
.console-light .fp-seat-pill {
  background: #F1F5F9;
  color: #475569;
  box-shadow: none;
}
.console-light .fp-seat-pill.is-occ {
  background: #DBEAFE;
  color: #1D4ED8;
  box-shadow: none;
}
.console-light .fp-table.is-bill .fp-seat-pill.is-occ {
  background: #FEF3C7;
  color: #92400E;
}
.console-light .fp-seat-pill.is-rsv {
  background: #E0E7FF;
  color: #3730A3;
  box-shadow: none;
}
.console-light .fp-amt { color: #1D4ED8; }
.console-light .fp-table.is-bill .fp-amt { color: #B45309; }
.console-light .fp-time-chip { color: #475569; }
.console-light .fp-cook-chip { background: #FEF3C7; color: #92400E; }
.console-light .fp-state-tag { background: #F1F5F9; color: #64748B; }
.console-light .fp-state-tag.is-dirty { background: #CFFAFE; color: #155E75; }
.console-light .fp-rsv-time { color: #3730A3; }
.console-light .fp-rsv-sub { color: #4F46E5; }
.console-light .fp-rsv-pill {
  background: #E0E7FF;
  color: #3730A3;
  box-shadow: none;
}
.fp-share-pill {
  padding: 1.5px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.3;
}
.fp-share-pill.is-yes {
  background: #DCFCE7;
  color: #15803D;
}
.fp-share-pill.is-no {
  background: #F1F5F9;
  color: #64748B;
}
.console-light .fp-dot-alert {
  background: #1A73E8;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .16);
}
.console-light .fp-dot-alert.bill { background: #D97706; color: #FFFFFF; }
.console-light .fp-dot-alert.dirty { background: #0E7490; color: #FFFFFF; }
.console-light .fp-dot-alert.share { background: #16A34A; color: #FFFFFF; }
.console-light .fp-dot-alert.rsv-lock { background: #4F46E5; color: #FFFFFF; box-shadow: 0 2px 6px rgba(79, 70, 229, .28); }
.console-light .fp-dot-alert.rsv-soon { background: #EEF2FF; color: #3730A3; box-shadow: 0 0 0 1px #C7D2FE; }

/* Legend Swatches (Light) */
.console-light .fp-legend-bar { color: #475569; }
.console-light .fp-sw.is-free { background: #FFFFFF; border: 1.5px solid #94A3B8; box-shadow: none; }
.console-light .fp-sw.is-occ { background: #1A73E8; box-shadow: none; }
.console-light .fp-sw.is-share { background: #16A34A; box-shadow: none; }
.console-light .fp-sw.is-rsv { background: #4F46E5; box-shadow: none; }
.console-light .fp-sw.is-bill { background: #D97706; box-shadow: none; }
.console-light .fp-sw.is-dirty { background: #ECFEFF; border: 1.5px dashed #0E7490; box-shadow: none; }

/* Clean Light Right Slide-Over Drawer, Bill Cards & Dish Tiles */
.console-light.pos-workspace .pos-drawer-ov {
  background: rgba(15, 23, 42, .34);
  backdrop-filter: blur(2px);
}
.console-light.pos-workspace .pos-drawer-panel .pos-terminal-pane {
  background: #FFFFFF;
  border-left: 1px solid #E2E8F0;
  box-shadow: -16px 0 42px -12px rgba(15, 23, 42, .18);
}
.console-light.pos-workspace .pos-back-btn {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #1E293B !important;
}
.console-light.pos-workspace .pos-back-btn:hover {
  background: #E2E8F0 !important;
}
.console-light.pos-workspace .pos-dish-card,
.console-light.pos-workspace .qpos-tile {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}
.console-light.pos-workspace .pos-dish-card:hover:not(:disabled),
.console-light.pos-workspace .qpos-tile:hover:not(:disabled) {
  border-color: #1A73E8;
  box-shadow: 0 6px 16px -6px rgba(26, 115, 232, .25);
}
.console-light.pos-workspace .pos-dish-card.is-in-cart,
.console-light.pos-workspace .qpos-tile.is-in-cart {
  box-shadow: 0 0 0 2px #1A73E8, 0 6px 14px -6px rgba(26, 115, 232, .25);
}
.console-light.pos-workspace .pos-dish-meta span,
.console-light.pos-workspace .qpos-tile-price {
  color: #FDE68A;
}
.console-light.pos-workspace .pos-bill-row,
.console-light.pos-workspace .pos-draft-row {
  background: #F8FAFC;
  box-shadow: inset 0 0 0 1px #E2E8F0;
}
.console-light.pos-workspace .pos-total-box {
  background: #F8FAFC;
  box-shadow: inset 0 0 0 1px #CBD5E1;
}
.console-light.pos-workspace .pos-total-amt { color: #1A73E8; }
.console-light.pos-workspace .pos-numpad {
  background: #F1F5F9;
  box-shadow: inset 0 0 0 1px #DDE3EC;
}
.console-light.pos-workspace .pos-numpad button {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.console-light.pos-workspace .pos-numpad button.np-go {
  background: #1A73E8;
  border-color: #1A73E8;
  color: #FFFFFF;
}
.console-light.pos-workspace .pos-rsv-banner {
  background: #EEF2FF;
  color: #3730A3;
  box-shadow: inset 0 0 0 1px #C7D2FE;
}
.console-light.pos-workspace .pos-rsv-banner.is-urgent {
  background: #FEF3C7;
  color: #92400E;
  box-shadow: inset 0 0 0 1px #FCD34D;
}
.console-light.pos-workspace .pos-qsw-pill.is-rsv-locked {
  background: #EEF2FF;
  border-color: #C7D2FE;
  color: #3730A3;
}
.console-light.pos-workspace .kds-card {
  background: #FFFFFF;
  box-shadow: 0 0 0 1px #E2E8F0, 0 2px 8px rgba(15, 23, 42, .05);
}
.console-light.pos-workspace .kds-head { background: #F8FAFC; }
.console-light.pos-workspace .kds-item {
  background: #F8FAFC;
  box-shadow: inset 0 0 0 1px #E2E8F0;
}

/* Clean Light POS Modals, Payment Buttons & Cash Numeric Keypad */
.console-light.pos-workspace .modal-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 24px 54px -16px rgba(15, 23, 42, .24);
  color: #0F172A;
}
.console-light.pos-workspace .ck-hero-box {
  background: #F8FAFC;
  box-shadow: inset 0 0 0 1px #CBD5E1;
}
.console-light.pos-workspace .ck-hero-row strong { color: #1A73E8; }
.console-light.pos-workspace .touch-choice-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #1E293B;
}
.console-light.pos-workspace .touch-choice-btn:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
}
.console-light.pos-workspace .touch-choice-btn.is-on {
  background: #1A73E8;
  border-color: #1A73E8;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(26, 115, 232, .28);
}
.console-light.pos-workspace .touch-pay-btn {
  opacity: .88;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
.console-light.pos-workspace .touch-pay-btn.is-on {
  opacity: 1;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4.5px #1A73E8 !important;
}
.console-light.pos-workspace .pay-octopus { background: #EA580C; border-color: #EA580C; color: #FFFFFF; box-shadow: none; }
.console-light.pos-workspace .pay-cash { background: #188038; border-color: #188038; color: #FFFFFF; box-shadow: none; }
.console-light.pos-workspace .pay-fps { background: #1A73E8; border-color: #1A73E8; color: #FFFFFF; box-shadow: none; }
.console-light.pos-workspace .pay-payme { background: #FFF1F2; border-color: #FECDD3; color: #BE123C; }
.console-light.pos-workspace .pay-alipay { background: #F0F9FF; border-color: #BAE6FD; color: #0369A1; }
.console-light.pos-workspace .pay-card { background: #F1F5F9; border-color: #CBD5E1; color: #334155; }

.console-light.pos-workspace .ck-noncash-hint {
  background: #F8FAFC;
  box-shadow: inset 0 0 0 1px #E2E8F0;
}
.console-light.pos-workspace .ck-cash-panel {
  background: #F4F7FA;
  box-shadow: inset 0 0 0 1px #D8E0EA;
}
.console-light.pos-workspace .ck-tender-display {
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1.5px #CBD5E1;
}
.console-light.pos-workspace .ck-tender-display.is-manual {
  box-shadow: inset 0 0 0 2px #1A73E8;
}
.console-light.pos-workspace .ck-tender-display.is-short {
  background: #FEF2F2;
  box-shadow: inset 0 0 0 2px #DC2626;
}
.console-light.pos-workspace .ck-tender-mode {
  background: #E6F4EA;
  color: #137333;
}
.console-light.pos-workspace .ck-tender-display.is-manual .ck-tender-mode {
  background: #E8F0FE;
  color: #1967D2;
}
.console-light.pos-workspace .ck-tender-display.is-short .ck-tender-mode {
  background: #FEE2E2;
  color: #B91C1C;
}
.console-light.pos-workspace .u035-amount { color: #0F172A; }
.console-light.pos-workspace .ck-tender-display.is-short .u035-amount { color: #DC2626; }
.console-light.pos-workspace .ck-banknote-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #1E293B;
}
.console-light.pos-workspace .ck-banknote-btn.is-on {
  background: #1A73E8;
  border-color: #1A73E8;
  color: #FFFFFF;
  box-shadow: none;
}
.console-light.pos-workspace .ck-num-key {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
.console-light.pos-workspace .ck-num-key:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
}
.console-light.pos-workspace .ck-num-key.is-back {
  background: #FEF3C7;
  border-color: #FCD34D;
  color: #92400E;
}
.console-light.pos-workspace .ck-num-key.is-clear {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #B91C1C;
}
.console-light.pos-workspace .ck-num-key.is-add {
  background: #E6F4EA;
  border-color: #A8DAB5;
  color: #137333;
}
.console-light.pos-workspace .ck-change-bar.is-ok {
  background: #E6F4EA;
  color: #137333;
  box-shadow: inset 0 0 0 1.5px #A8DAB5;
}
.console-light.pos-workspace .ck-change-bar.is-short {
  background: #FEE2E2;
  color: #B91C1C;
  box-shadow: inset 0 0 0 1.5px #FCA5A5;
}
.console-light.pos-workspace .touch-stepper-row {
  background: #F8FAFC;
  box-shadow: inset 0 0 0 1px #E2E8F0;
}
.console-light.pos-workspace .rsv-lock-card {
  background: #F5F7FF;
  box-shadow: inset 0 0 0 1.5px #C7D2FE;
}
.console-light.pos-workspace .rsv-lock-pill {
  background: #E0E7FF;
  color: #3730A3;
}
.console-light.pos-workspace .rsv-lock-pill.is-warn {
  background: #FEF3C7;
  color: #92400E;
}

/* Seat Table Guest Count & Table-Sharing Controls */
.seat-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}
.seat-summary-bar strong { display: block; font-size: 16px; color: #0F172A; }
.seat-summary-bar small { font-size: 12.5px; color: #64748B; }
.seat-guest-btn {
  min-height: 52px;
  font-size: 16px !important;
}
.seat-guest-btn strong { font-size: 17px; font-weight: 850; }
.seat-guest-btn.is-fit {
  border-color: #86EFAC;
  background: #F0FDF4;
  color: #166534;
}
.seat-cap-bar {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 11px;
  background: #F1F5F9;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.seat-cap-bar.is-ok {
  background: #E6F4EA;
  color: #137333;
}
.seat-cap-bar.is-warn {
  background: #FEF7E0;
  color: #B06000;
}
.seat-share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.seat-share-btn {
  padding: 12px 14px;
  border-radius: 13px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #1E293B;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.seat-share-btn strong { font-size: 15px; font-weight: 850; }
.seat-share-btn small { font-size: 11.5px; color: #64748B; font-weight: 600; }
.seat-share-btn.is-on {
  border-color: #1A73E8;
  background: #E8F0FE;
  color: #174EA6;
  box-shadow: 0 0 0 1.5px #1A73E8;
}
.seat-share-btn.is-on small { color: #1967D2; }

.pos-seat-pill-btn {
  background: #E8F0FE !important;
  border-color: #AECBFA !important;
  color: #1967D2 !important;
  font-weight: 800 !important;
}
.pos-share-ok-btn {
  background: #E6F4EA !important;
  border-color: #A8DAB5 !important;
  color: #137333 !important;
  font-weight: 800 !important;
}
.pos-share-switcher {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 8px;
}
.pos-share-tab {
  flex: 1 1 0;
  min-width: 112px;
  padding: 7px 10px;
  border-radius: 11px;
  border: 1.5px solid #CBD5E1;
  background: #F8FAFC;
  color: #334155;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pos-share-tab strong { font-size: 13px; font-weight: 850; }
.pos-share-tab small { font-size: 11px; color: #64748B; font-variant-numeric: tabular-nums; }
.pos-share-tab.is-on {
  border-color: #1A73E8;
  background: #E8F0FE;
  color: #174EA6;
}
/* Top-Center Non-Blocking Toast Pill (.u070-zone sits neatly at top-center across all consoles) */
.btn.is-awaiting-pick {
  background: #E2E8F0 !important;
  border-color: #CBD5E1 !important;
  color: #475569 !important;
  box-shadow: none !important;
}
.pos-share-tab.is-on small { color: #1967D2; }

/* Architectural SVG Theme Classes — Light (.console-light) defaults */
.fp-svg-grid-line { stroke: rgba(148, 163, 184, .18); }
.fp-svg-grid-dot { fill: rgba(100, 116, 139, .24); }
.fp-svg-wall-out { stroke: rgba(148, 163, 184, .55); }
.fp-svg-wall-in { stroke: rgba(203, 213, 225, .75); }
.fp-svg-ticks { stroke: rgba(100, 116, 139, .45); }
.fp-svg-main-rect { fill: rgba(255, 255, 255, .82); stroke: rgba(148, 163, 184, .34); }
.fp-svg-booth-rect { fill: rgba(239, 246, 255, .72); stroke: rgba(26, 115, 232, .18); }
.fp-svg-vip-rect { fill: rgba(255, 247, 237, .85); stroke: rgba(180, 83, 9, .28); }
.fp-svg-vip-inner { stroke: rgba(148, 163, 184, .28); }
.fp-svg-door-cut { stroke: #F8FAFC; }
.fp-svg-door-leaf { stroke: rgba(180, 83, 9, .55); }
.fp-svg-door-arc { fill: rgba(217, 119, 6, .06); stroke: rgba(180, 83, 9, .42); }
.fp-svg-compass-bg { fill: #FFFFFF; stroke: rgba(148, 163, 184, .65); }
.fp-svg-compass-needle { fill: #1A73E8; }
.fp-svg-compass-txt { fill: #475569; }

/* ============================================================================
   CALM UNIFIED MATTE CHARCOAL DARK POS (.pos-matte-dark)
   Refined dark hospitality console: zero sci-fi neon glows, zero rainbow overload.
   Strict 2-accent discipline: Warm Terracotta (#D9753B) + Calm Sage Green (#228B5D)
   ============================================================================ */
body.pos-matte-dark,
body.pos-matte-dark[data-template="full_service"],
body.pos-matte-dark[data-template="tea_shop"],
body.pos-matte-dark[data-template="cafe"],
body.pos-matte-dark[data-template="fast_casual"] {
  color-scheme: dark;
  --ux-page: #121419;
  --ux-surface: #181B22;
  --ux-surface-2: #1F232C;
  --ux-surface-3: #272C37;
  --ux-ink: #F1F5F9;
  --ux-ink-2: #9CA3AF;
  --ux-ink-3: #6B7280;
  --ux-line: rgba(255, 255, 255, .085);
  --ux-line-2: rgba(255, 255, 255, .14);
  --ux-accent: #E2844B;
  --ux-accent-2: #94A3B8;
  --ux-accent-soft: rgba(226, 132, 75, .14);
  --ux-accent-ink: #FFFFFF;
  --ux-accent-btn: #D9753B;
  --ux-accent-btn-ink: #FFFFFF;
  --ux-specular: rgba(255, 255, 255, .04);
  --ux-glow: transparent;
  --ux-glow-2: transparent;
  --ux-mint: #2DA46F;
  --ux-warn: #D9A520;
  --ux-danger: #E05252;
  --ux-shadow: rgba(0, 0, 0, .28);
  --ux-shadow-strong: rgba(0, 0, 0, .48);
  background: #121419 !important;
  color: #F1F5F9;
}

/* Matte Topbar & Unified Calm Monochrome Chrome (No Rainbow Pill Soup) */
.pos-matte-dark .app-topbar {
  background: #161920;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: none;
}
.pos-matte-dark .card-box {
  background: #181B22;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}
.pos-matte-dark .badge,
.pos-matte-dark .badge.ok,
.pos-matte-dark .badge.info,
.pos-matte-dark .badge.accent,
.pos-matte-dark .badge.warn {
  background: #212630;
  color: #D1D5DB;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.pos-matte-dark .badge.ok { color: #86EFAC; }
.pos-matte-dark .badge.accent { color: #F5B895; }
.pos-matte-dark .badge.warn { color: #FDE68A; }
.pos-matte-dark .badge.danger {
  background: rgba(224, 82, 82, .14);
  color: #FCA5A5;
  box-shadow: inset 0 0 0 1px rgba(224, 82, 82, .3);
}
.pos-matte-dark #shiftTopBadge.ok::before {
  background: #2DA46F;
  box-shadow: none;
}
.pos-matte-dark .btn {
  background: #222631;
  border: 1px solid rgba(255, 255, 255, .12);
  color: #E5E7EB;
  box-shadow: none;
}
.pos-matte-dark .btn:hover:not(:disabled) {
  background: #2A303D;
  border-color: rgba(255, 255, 255, .2);
  color: #FFFFFF;
}
.pos-matte-dark .btn.primary {
  background: #D9753B;
  border-color: #D9753B;
  color: #FFFFFF;
  box-shadow: none;
}
.pos-matte-dark .btn.primary:hover:not(:disabled) {
  background: #E2844B;
  border-color: #E2844B;
  filter: none;
  box-shadow: none;
}
.pos-matte-dark .btn.mint {
  background: #228B5D;
  border-color: #228B5D;
  color: #FFFFFF;
  box-shadow: none;
}
.pos-matte-dark .btn.mint:hover:not(:disabled) {
  background: #289E6A;
}
.pos-matte-dark .btn.accent {
  background: #252A36;
  border-color: rgba(226, 132, 75, .36);
  color: #F3B087;
}
.pos-matte-dark .btn.accent:hover:not(:disabled) {
  background: rgba(226, 132, 75, .16);
}
.pos-matte-dark .btn.ink {
  background: #E5E7EB;
  border-color: #E5E7EB;
  color: #121419;
}
.pos-matte-dark .btn.danger {
  background: rgba(224, 82, 82, .14);
  border-color: rgba(224, 82, 82, .34);
  color: #FCA5A5;
}
.pos-matte-dark .btn.is-awaiting-pick {
  background: #262B36 !important;
  border-color: rgba(255, 255, 255, .1) !important;
  color: #8B93A3 !important;
}

/* Calm Navigation Pill Bar (#039) */
.pos-matte-dark .u039-tabs {
  background: #171A21;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  padding: 4px;
}
.pos-matte-dark .u039-pill {
  top: 4px;
  bottom: 4px;
  background: #2B313E;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.pos-matte-dark .u039-tab {
  color: #9CA3AF;
  font-weight: 700;
}
.pos-matte-dark .u039-tab[aria-selected="true"] {
  color: #FFFFFF;
}
.pos-matte-dark .u039-badge {
  background: rgba(255, 255, 255, .1);
  color: #E5E7EB;
}
.pos-matte-dark .u039-tab[aria-selected="true"] .u039-badge {
  background: #D9753B;
  color: #FFFFFF;
}

/* Calm Floor Telemetry HUD (Zero Neon Dots) */
.pos-matte-dark .floor-telemetry-hud {
  background: #14171E;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.pos-matte-dark .fp-hud-chip { color: #9CA3AF; }
.pos-matte-dark .fp-hud-chip b { color: #F1F5F9; }
.pos-matte-dark .fp-hud-dot { box-shadow: none !important; }
.pos-matte-dark .fp-hud-dot.is-free { background: #22C55E; }
.pos-matte-dark .fp-hud-dot.is-occ { background: #F97316; }
.pos-matte-dark .fp-hud-dot.is-guest { background: #9CA3AF; }
.pos-matte-dark .fp-hud-dot.is-rev { background: #34D399; }
.pos-matte-dark .fp-hud-dot.is-share { background: #2DA46F; }
.pos-matte-dark .fp-hud-dot.is-clean { background: #38BDF8; }
.pos-matte-dark .fp-hud-dot.is-rsv { background: #A78BFA; }
.pos-matte-dark .fp-hud-chip.is-free { background: rgba(34, 197, 94, .14); color: #86EFAC; }
.pos-matte-dark .fp-hud-chip.is-free b { color: #BBF7D0; }
.pos-matte-dark .fp-hud-chip.is-share { background: rgba(45, 164, 111, .12); color: #86EFAC; }
.pos-matte-dark .fp-hud-chip.is-share b { color: #BBF7D0; }
.pos-matte-dark .fp-hud-chip.is-rsv { background: rgba(167, 139, 250, .14); color: #DDD6FE; }
.pos-matte-dark .fp-hud-chip.is-rsv b { color: #EDE9FE; }
.pos-matte-dark .fp-hud-chip.is-dirty { background: rgba(56, 189, 248, .15); color: #7DD3FC; }
.pos-matte-dark .fp-hud-chip.is-dirty b { color: #BAE6FD; }
.pos-matte-dark .fp-hud-chip.is-dirty b { color: #F1F5F9; }

/* Matte Architectural Floor Plan Canvas & Unified Monochrome Fixtures */
.pos-matte-dark .floor-canvas-scroll {
  background: #14171E;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
}
.pos-matte-dark .floor-canvas-scroll.is-pannable {
  overflow: auto;
}
.pos-matte-dark .floor-canvas {
  background: transparent;
  border-radius: 0;
}
.pos-matte-dark .fp-svg-grid-line { stroke: rgba(255, 255, 255, .035); }
.pos-matte-dark .fp-svg-grid-dot { fill: rgba(255, 255, 255, .08); }
.pos-matte-dark .fp-svg-wall-out { stroke: rgba(255, 255, 255, .14); }
.pos-matte-dark .fp-svg-wall-in { stroke: rgba(255, 255, 255, .055); }
.pos-matte-dark .fp-svg-ticks { stroke: rgba(255, 255, 255, .18); }
.pos-matte-dark .fp-svg-main-rect { fill: rgba(255, 255, 255, .022); stroke: rgba(255, 255, 255, .075); }
.pos-matte-dark .fp-svg-booth-rect { fill: rgba(255, 255, 255, .026); stroke: rgba(255, 255, 255, .08); }
.pos-matte-dark .fp-svg-vip-rect { fill: rgba(226, 132, 75, .045); stroke: rgba(226, 132, 75, .22); }
.pos-matte-dark .fp-svg-vip-inner { stroke: rgba(255, 255, 255, .06); }
.pos-matte-dark .fp-svg-door-cut { stroke: #14171E; }
.pos-matte-dark .fp-svg-door-leaf { stroke: rgba(226, 132, 75, .48); }
.pos-matte-dark .fp-svg-door-arc { fill: rgba(226, 132, 75, .04); stroke: rgba(226, 132, 75, .32); }
.pos-matte-dark .fp-svg-compass-bg { fill: #181C24; stroke: rgba(255, 255, 255, .16); }
.pos-matte-dark .fp-svg-compass-needle { fill: #E2844B; }
.pos-matte-dark .fp-svg-compass-txt { fill: #9CA3AF; }
.pos-matte-dark .fp-zone-label,
.pos-matte-dark .fp-zone-label.is-booth { fill: rgba(156, 163, 175, .56); }
.pos-matte-dark .fp-zone-label.is-vip { fill: rgba(226, 132, 75, .72); }

/* Unified Matte Slate Fixtures (No Rainbow Circus!) */
.pos-matte-dark .fp-fix-surface,
.pos-matte-dark .fp-fixture[data-kind="bar"] .fp-fix-surface,
.pos-matte-dark .fp-fixture[data-kind="kitchen"] .fp-fix-surface,
.pos-matte-dark .fp-fixture[data-kind="entrance"] .fp-fix-surface,
.pos-matte-dark .fp-fixture[data-kind="window"] .fp-fix-surface {
  background: #1C2029;
  border: 1px solid rgba(255, 255, 255, .11);
  color: #9CA3AF;
  box-shadow: none;
}
.pos-matte-dark .fp-bar-stool {
  background: #242934;
  border-color: rgba(255, 255, 255, .18);
  box-shadow: none;
}
.pos-matte-dark .fp-fix-heatbar {
  background: rgba(226, 132, 75, .42);
  box-shadow: none;
}
.pos-matte-dark .fp-fix-arrow { color: #9CA3AF; }
.pos-matte-dark .fp-win-mullion { background: rgba(255, 255, 255, .08); }
.pos-matte-dark .fp-entry-doors path,
.pos-matte-dark .fp-entry-doors line {
  stroke: rgba(255, 255, 255, .22) !important;
  fill: rgba(255, 255, 255, .03) !important;
}

/* Distinct High-Legibility Floor Table States (Green Free · Orange Occupied · Sky Blue Dirty · Gold Bill · Violet Reserved) */
.pos-matte-dark .fp-table-surface {
  border: 2px solid #22C55E;
  background: #122D22;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}
.pos-matte-dark .fp-table:hover .fp-table-surface {
  filter: brightness(1.09);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .38);
}
.pos-matte-dark .fp-table.is-free .fp-table-surface {
  border-color: #22C55E;
  background: #122D22;
}
.pos-matte-dark .fp-table.is-free .fp-chair {
  background: #193D2E;
  border-color: rgba(34, 197, 94, .48);
}
.pos-matte-dark .fp-table.is-free .fp-banquette {
  background: #17382A;
  border-color: rgba(34, 197, 94, .42);
  border-top-color: #22C55E;
}
.pos-matte-dark .fp-table.is-occupied .fp-table-surface {
  border-color: #F97316;
  background: #2F1D13;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .36);
}
.pos-matte-dark .fp-table.is-bill .fp-table-surface {
  border-color: #FACC15;
  background: #2E2511;
  box-shadow: 0 0 0 2.5px rgba(250, 204, 21, .28);
  animation: none;
}
.pos-matte-dark .fp-table.is-dirty .fp-table-surface {
  border-color: #38BDF8;
  border-style: dashed;
  background: #10283D;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}
.pos-matte-dark .fp-table.is-dirty .fp-chair {
  background: #183A56;
  border-color: rgba(56, 189, 248, .5);
}
.pos-matte-dark .fp-table.is-dirty .fp-banquette {
  background: #15344E;
  border-color: rgba(56, 189, 248, .44);
  border-top-color: #38BDF8;
}
.pos-matte-dark .fp-table.is-rsv-locked .fp-table-surface {
  border-color: #A78BFA;
  background: repeating-linear-gradient(-45deg, rgba(167, 139, 250, .07) 0 7px, transparent 7px 14px), #1F1B36;
  box-shadow: none;
}
.pos-matte-dark .fp-table.is-rsv-upcoming .fp-table-surface {
  border-color: #22C55E;
  background: #122D22;
}
.pos-matte-dark .fp-table.is-selected .fp-table-surface {
  box-shadow: 0 0 0 2px #14171E, 0 0 0 4px #F97316 !important;
}

/* Flat Clean Chairs & Banquettes */
.pos-matte-dark .fp-chair {
  background: #2D3340;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: none;
}
.pos-matte-dark .fp-chair.is-top { border-top: 2.5px solid rgba(255, 255, 255, .2); }
.pos-matte-dark .fp-chair.is-bot { border-bottom: 2.5px solid rgba(255, 255, 255, .2); }
.pos-matte-dark .fp-chair.is-radial { border-top: 2.5px solid rgba(255, 255, 255, .2); }
.pos-matte-dark .fp-chair.is-lit {
  background: #F97316;
  border-color: #FDBA74;
  box-shadow: none;
}
.pos-matte-dark .fp-table.is-bill .fp-chair.is-lit {
  background: #FACC15;
  border-color: #FEF08A;
  box-shadow: none;
}
.pos-matte-dark .fp-table.is-rsv-locked .fp-chair.is-lit {
  background: #A78BFA;
  border-color: #DDD6FE;
  box-shadow: none;
}
.pos-matte-dark .fp-banquette {
  background: #262B36;
  border-color: rgba(255, 255, 255, .15);
  border-top-color: rgba(255, 255, 255, .22);
  box-shadow: none;
}
.pos-matte-dark .fp-banquette.is-lit {
  border-color: rgba(249, 115, 22, .6);
  border-top-color: #F97316;
}
.pos-matte-dark .fp-bq-seg { background: rgba(255, 255, 255, .07); }
.pos-matte-dark .fp-bq-seg.is-lit { background: #F97316; box-shadow: none; }
.pos-matte-dark .fp-table.is-bill .fp-bq-seg.is-lit { background: #FACC15; box-shadow: none; }
.pos-matte-dark .fp-table.is-rsv-locked .fp-bq-seg.is-lit { background: #A78BFA; box-shadow: none; }

/* Clean Tabletop Typography & State Badges */
.pos-matte-dark .fp-code { color: #F8FAFC; }
.pos-matte-dark .fp-sub { color: #CBD5E1; }
.pos-matte-dark .fp-seat-pill { background: rgba(255, 255, 255, .1); color: #E2E8F0; }
.pos-matte-dark .fp-seat-pill.is-free {
  background: rgba(34, 197, 94, .22);
  color: #BBF7D0;
}
.pos-matte-dark .fp-seat-pill.is-occ {
  background: rgba(249, 115, 22, .22);
  color: #FED7AA;
  box-shadow: none;
}
.pos-matte-dark .fp-amt { color: #FDBA74; }
.pos-matte-dark .fp-time-chip { color: #CBD5E1; }
.pos-matte-dark .fp-cook-chip { background: rgba(255, 255, 255, .09); color: #E2E8F0; }
.pos-matte-dark .fp-state-tag.is-free {
  background: rgba(34, 197, 94, .22);
  color: #86EFAC;
}
.pos-matte-dark .fp-state-tag.is-dirty {
  background: rgba(56, 189, 248, .22);
  color: #7DD3FC;
}
.pos-matte-dark .fp-share-pill.is-yes {
  background: rgba(34, 197, 94, .18);
  color: #86EFAC;
}
.pos-matte-dark .fp-share-pill.is-no {
  background: rgba(255, 255, 255, .07);
  color: #CBD5E1;
}
.pos-matte-dark .fp-dot-alert {
  background: #F97316;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.pos-matte-dark .fp-dot-alert.bill { background: #FACC15; color: #1A1607; }
.pos-matte-dark .fp-dot-alert.dirty { background: #0284C7; color: #FFFFFF; }
.pos-matte-dark .fp-dot-alert.share { background: #16A34A; color: #FFFFFF; }
.pos-matte-dark .fp-dot-alert.rsv-lock { background: #7C3AED; color: #FFFFFF; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.pos-matte-dark .fp-dot-alert.rsv-soon { background: #2B2447; color: #DDD6FE; box-shadow: 0 0 0 1px rgba(167, 139, 250, .5); }

/* Legend Swatches (Distinct, Unmistakable High-Contrast Hue per State) */
.pos-matte-dark .fp-sw.is-free { background: #22C55E; border: 1.5px solid #86EFAC; box-shadow: none; }
.pos-matte-dark .fp-sw.is-occ { background: #F97316; border: 1.5px solid #FDBA74; box-shadow: none; }
.pos-matte-dark .fp-sw.is-dirty { background: #10283D; border: 2px dashed #38BDF8; box-shadow: none; }
.pos-matte-dark .fp-sw.is-bill { background: #FACC15; border: 1.5px solid #FEF08A; box-shadow: none; }
.pos-matte-dark .fp-sw.is-rsv { background: #A78BFA; border: 1.5px solid #DDD6FE; box-shadow: none; }
.pos-matte-dark .fp-sw.is-share { background: #16A34A; border: 1.5px solid #4ADE80; box-shadow: none; }

/* Matte Right Slide-Over Drawer, Dish Cards & Ticket Rail */
.pos-matte-dark .pos-drawer-panel .pos-terminal-pane {
  background: #171A21;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), -20px 0 48px rgba(0, 0, 0, .55);
}
.pos-matte-dark .pos-dish-card,
.pos-matte-dark .qpos-tile {
  background: #1C2029;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.pos-matte-dark .pos-dish-card:hover:not(:disabled),
.pos-matte-dark .qpos-tile:hover:not(:disabled) {
  box-shadow: inset 0 0 0 1.5px #D9753B;
}
.pos-matte-dark .pos-dish-card.is-in-cart,
.pos-matte-dark .qpos-tile.is-in-cart {
  box-shadow: inset 0 0 0 2px #D9753B;
}
.pos-matte-dark .pos-dish-meta span,
.pos-matte-dark .qpos-tile-price { color: #F5B895; }
.pos-matte-dark .pos-dish-tag {
  background: rgba(18, 20, 25, .82);
  color: #D1D5DB;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.pos-matte-dark .pos-bill-row,
.pos-matte-dark .pos-draft-row {
  background: #1F232C;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .075);
}
.pos-matte-dark .pos-total-box {
  background: #1D212A;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.pos-matte-dark .pos-total-amt { color: #F1F5F9; }
.pos-matte-dark .pos-seat-pill-btn {
  background: #252A36 !important;
  border-color: rgba(255, 255, 255, .16) !important;
  color: #F1F5F9 !important;
}
.pos-matte-dark .pos-share-ok-btn {
  background: rgba(45, 164, 111, .14) !important;
  border-color: rgba(45, 164, 111, .34) !important;
  color: #86EFAC !important;
}
.pos-matte-dark .pos-share-tab {
  border-color: rgba(255, 255, 255, .12);
  background: #1F232C;
  color: #CBD5E1;
}
.pos-matte-dark .pos-share-tab small { color: #9CA3AF; }
.pos-matte-dark .pos-share-tab.is-on {
  border-color: #D9753B;
  background: rgba(217, 117, 59, .14);
  color: #FFFFFF;
}
.pos-matte-dark .pos-share-tab.is-on small { color: #F5B895; }

/* Unified Matte Payment Method Buttons (Sleek Charcoal + Subtle Brand Dot — NOT Rainbow!) */
.pos-matte-dark .pay-btn,
.pos-matte-dark .touch-pay-btn {
  background: #222732 !important;
  border: 1.5px solid rgba(255, 255, 255, .12) !important;
  color: #E5E7EB !important;
  box-shadow: none !important;
  opacity: 1 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pos-matte-dark .pay-btn:hover:not(:disabled),
.pos-matte-dark .touch-pay-btn:hover:not(:disabled) {
  background: #2A303E !important;
  border-color: rgba(255, 255, 255, .24) !important;
}
.pos-matte-dark .pay-btn::before,
.pos-matte-dark .touch-pay-btn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: #94A3B8;
}
.pos-matte-dark .pay-octopus::before { background: #EB7B3D; }
.pos-matte-dark .pay-cash::before { background: #2DA46F; }
.pos-matte-dark .pay-fps::before { background: #5B8DEF; }
.pos-matte-dark .pay-payme::before { background: #E5637A; }
.pos-matte-dark .pay-alipay::before { background: #4BA3E3; }
.pos-matte-dark .pay-wechat::before { background: #2EB872; }
.pos-matte-dark .pay-card::before { background: #A1A8B8; }
.ck-member-box {
  padding: 9px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
}
.pos-matte-dark .touch-pay-btn.is-on {
  background: rgba(217, 117, 59, .18) !important;
  border-color: #E2844B !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 1px #E2844B !important;
  transform: none;
}
.pos-matte-dark .touch-pay-btn.pay-cash.is-on {
  background: rgba(45, 164, 111, .18) !important;
  border-color: #2DA46F !important;
  box-shadow: 0 0 0 1px #2DA46F !important;
}

/* Sleek Matte Modals, Seat Picker & Cash Numeric Keypad */
.pos-matte-dark .modal-box {
  background: #1A1E26;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 28px 60px -16px rgba(0, 0, 0, .72);
}
.pos-matte-dark .ck-hero-box {
  background: #14171E;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.pos-matte-dark .ck-hero-row strong { color: #F8FAFC; }
.pos-matte-dark .touch-choice-btn {
  background: #222732;
  border-color: rgba(255, 255, 255, .11);
  color: #E5E7EB;
}
.pos-matte-dark .touch-choice-btn:hover {
  background: #2A303E;
  border-color: rgba(255, 255, 255, .22);
}
.pos-matte-dark .touch-choice-btn.is-on {
  background: #D9753B;
  border-color: #E2844B;
  color: #FFFFFF;
  box-shadow: none;
}
.pos-matte-dark .ck-cash-panel {
  background: #151820;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.pos-matte-dark .ck-tender-display {
  background: #111319;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12);
}
.pos-matte-dark .ck-tender-display.is-manual {
  box-shadow: inset 0 0 0 1.5px #E2844B;
}
.pos-matte-dark .ck-tender-display.is-short {
  background: rgba(224, 82, 82, .08);
  box-shadow: inset 0 0 0 1.5px #E05252;
}
.pos-matte-dark .ck-banknote-btn {
  background: #222732;
  border-color: rgba(255, 255, 255, .11);
  color: #E5E7EB;
}
.pos-matte-dark .ck-banknote-btn.is-on {
  background: #D9753B;
  border-color: #E2844B;
  color: #FFFFFF;
  box-shadow: none;
}
.pos-matte-dark .ck-num-key {
  background: #232834;
  border-color: rgba(255, 255, 255, .1);
  color: #F8FAFC;
  box-shadow: none;
}
.pos-matte-dark .ck-num-key:hover {
  background: #2C3240;
  border-color: rgba(255, 255, 255, .2);
}
.pos-matte-dark .ck-num-key.is-back {
  background: #2A2620;
  border-color: rgba(217, 165, 32, .3);
  color: #EBC351;
}
.pos-matte-dark .ck-num-key.is-clear {
  background: #2B2023;
  border-color: rgba(224, 82, 82, .3);
  color: #F18A8A;
}
.pos-matte-dark .ck-num-key.is-add {
  background: #1D2A26;
  border-color: rgba(45, 164, 111, .32);
  color: #7AD9AC;
}
.pos-matte-dark .ck-change-bar.is-ok {
  background: rgba(45, 164, 111, .14);
  color: #86EFAC;
  box-shadow: inset 0 0 0 1px rgba(45, 164, 111, .34);
}
.pos-matte-dark .ck-change-bar.is-short {
  background: rgba(224, 82, 82, .14);
  color: #FCA5A5;
  box-shadow: inset 0 0 0 1px rgba(224, 82, 82, .36);
}

/* Matte Dark Seat Table Modal Elements */
.pos-matte-dark .seat-summary-bar {
  background: #14171E;
  border-color: rgba(255, 255, 255, .09);
}
.pos-matte-dark .seat-summary-bar strong { color: #F8FAFC; }
.pos-matte-dark .seat-summary-bar small { color: #9CA3AF; }
.pos-matte-dark .seat-guest-btn.is-fit {
  border-color: rgba(45, 164, 111, .42);
  background: rgba(45, 164, 111, .1);
  color: #A7F3D0;
}
.pos-matte-dark .seat-cap-bar {
  background: #14171E;
  color: #9CA3AF;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.pos-matte-dark .seat-cap-bar.is-ok {
  background: rgba(45, 164, 111, .12);
  color: #86EFAC;
}
.pos-matte-dark .seat-cap-bar.is-warn {
  background: rgba(217, 165, 32, .14);
  color: #FDE68A;
}
.pos-matte-dark .seat-share-btn {
  background: #222732;
  border-color: rgba(255, 255, 255, .11);
  color: #E5E7EB;
}
.pos-matte-dark .seat-share-btn small { color: #9CA3AF; }
.pos-matte-dark .seat-share-btn.is-on {
  border-color: #E2844B;
  background: rgba(226, 132, 75, .14);
  color: #FFFFFF;
  box-shadow: 0 0 0 1px #E2844B;
}
.pos-matte-dark .seat-share-btn.is-on small { color: #F5B895; }

/* Matte Dark KDS Cards */
.pos-matte-dark .kds-card {
  background: #181B22;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
  border-top-color: #D9753B;
}
.pos-matte-dark .kds-card[data-station="bar"] { border-top-color: #64748B; }
.pos-matte-dark .kds-card[data-station="dessert"] { border-top-color: #D9A520; }
.pos-matte-dark .kds-head { background: #1E222B; }
.pos-matte-dark .kds-item {
  background: #1F232C;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}

/* ============================================================================
   POS WAITLIST QUEUE CALLER TAB & ENTRANCE SELF-SERVICE KIOSK
   Ported Lucian #182 (Queue caller) & #187 (Ticket check-in) · MIT License
   ============================================================================ */
.wl-board {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: start;
}
.wl-col {
  padding: 14px;
  border-radius: 14px;
  background: #14171E;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.wl-col-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.wl-col-head strong { font-size: 14.5px; color: #F1F5F9; }
.wl-col-head small { font-size: 12px; color: #8B93A3; }
.wl-list { display: flex; flex-direction: column; gap: 9px; }
.wl-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: #6B7280;
  border: 1px dashed rgba(255, 255, 255, .1);
  border-radius: 12px;
}
.wl-card {
  padding: 12px 14px;
  border-radius: 13px;
  background: #1C2029;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.wl-card.is-called {
  background: #25201D;
  box-shadow: inset 0 0 0 1.5px #D9753B;
}
.wl-card.is-skipped { opacity: .72; }
.wl-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.wl-ticket-no {
  min-width: 72px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #262B36;
  color: #F8FAFC;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.wl-card.is-called .wl-ticket-no {
  background: #D9753B;
  color: #FFFFFF;
}
.wl-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Entrance Self-Service Walk-In Queue Kiosk (/:code/kiosk) */
body.kiosk-page {
  min-height: 100dvh;
  background: #F4F5F7;
  color: #1F2937;
  display: flex;
  flex-direction: column;
  margin: 0;
}
.kiosk-topbar {
  background: #181B22;
  color: #F8FAFC;
  padding: 12px clamp(16px, 2.4vw, 32px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.kiosk-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.kiosk-brand strong { display: block; font-size: 18px; font-weight: 850; letter-spacing: -.02em; }
.kiosk-brand small { display: block; font-size: 12px; color: #9CA3AF; }
.kiosk-top-right { display: flex; align-items: center; gap: 12px; flex: none; }
.kiosk-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(45, 164, 111, .16);
  color: #86EFAC;
  font-size: 12px;
  font-weight: 700;
}
.kiosk-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #2DA46F; }
.kiosk-clock { font-size: 20px; font-weight: 850; font-variant-numeric: tabular-nums; color: #F1F5F9; }
.kiosk-fs-btn {
  background: #262B36 !important;
  border-color: rgba(255, 255, 255, .14) !important;
  color: #E5E7EB !important;
}

.kiosk-shell {
  flex: 1;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 18px clamp(14px, 2vw, 28px) 22px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 20px;
  align-items: stretch;
}
.kiosk-board-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
/* Ported Lucian #182 Queue caller Sign */
.kiosk-u182-sign {
  padding: 22px 24px 18px;
  border-radius: 20px;
  background: #1F2B27;
  color: #ECEDD8;
  box-shadow: inset 0 0 0 4px #33453E, 0 14px 30px -18px rgba(15, 23, 42, .45);
  text-align: center;
}
.kiosk-u182-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #B4C4AE;
}
.kiosk-u182-num {
  display: block;
  font: 800 72px/1.08 ui-monospace, "SF Mono", "Noto Sans TC", monospace;
  letter-spacing: -2px;
  color: #E7EFB1;
  margin: 12px 0 10px;
  font-variant-numeric: tabular-nums;
}
.kiosk-called-chips {
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  min-height: 30px;
}
.kiosk-called-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9px;
  background: rgba(231, 239, 177, .12);
  border: 1px solid rgba(231, 239, 177, .28);
  color: #F4F7D7;
  font-variant-numeric: tabular-nums;
}
.kiosk-called-chip strong { font-size: 14px; font-weight: 850; }
.kiosk-called-chip small { font-size: 11px; color: #C5D3BE; }
.kiosk-called-empty { font-size: 12.5px; color: #9FB29A; }

.kiosk-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.kiosk-grp-card {
  background: #FFFFFF;
  border: 1px solid #DDE3EC;
  border-radius: 16px;
  padding: 13px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kiosk-grp-top { display: flex; align-items: center; gap: 9px; }
.kiosk-grp-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #181B22;
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex: none;
}
.kiosk-grp-top strong { display: block; font-size: 14.5px; color: #0F172A; }
.kiosk-grp-top small { display: block; font-size: 11.5px; color: #64748B; }
.kiosk-grp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid #EEF2F6;
  text-align: center;
}
.kiosk-grp-stats span { display: block; font-size: 10.5px; color: #64748B; }
.kiosk-grp-stats b { display: block; font-size: 13.5px; font-weight: 850; color: #0F172A; font-variant-numeric: tabular-nums; margin-top: 2px; }

.kiosk-waiting-box {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #DDE3EC;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kiosk-waiting-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
}
.kiosk-waiting-head strong { color: #0F172A; font-size: 13.5px; }
.kiosk-u182-queue {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}
.u182-ticket-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 9px;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  font-variant-numeric: tabular-nums;
}
.u182-ticket-chip b { font: 800 14px ui-monospace, monospace; color: #0F172A; }
.u182-ticket-chip small { font-size: 11px; color: #64748B; font-weight: 700; }
.u182-ticket-chip.is-share {
  background: #F0FDF4;
  border-color: #86EFAC;
}
.u182-ticket-chip.is-share small { color: #15803D; }

/* Right Column: 1-Tap Self-Service Dispenser */
.kiosk-dispense-col { display: flex; flex-direction: column; min-width: 0; }
.kiosk-dispense-card {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #DDE3EC;
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 8px 28px -18px rgba(15, 23, 42, .14);
  display: flex;
  flex-direction: column;
}
.kiosk-step-head h1 { margin: 0; font-size: 24px; font-weight: 900; color: #0F172A; letter-spacing: -.02em; }
.kiosk-step-head p { margin: 4px 0 14px; font-size: 13.5px; color: #64748B; }
.kiosk-sec-lbl { font-size: 13.5px; font-weight: 800; color: #334155; margin-bottom: 8px; }
.kiosk-party-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.kiosk-party-btn {
  min-height: 66px;
  padding: 8px 6px;
  border-radius: 14px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: border-color .14s, background .14s, transform .1s;
}
.kiosk-party-btn:hover { background: #F8FAFC; border-color: #94A3B8; }
.kiosk-party-btn:active { transform: scale(.97); }
.kiosk-party-btn strong { font-size: 20px; font-weight: 900; }
.kiosk-party-btn small { font-size: 11px; color: #64748B; font-weight: 700; }
.kiosk-party-btn.is-on {
  background: #181B22;
  border-color: #181B22;
  color: #FFFFFF;
}
.kiosk-party-btn.is-on small { color: #F5B895; }

.kiosk-stepper-bar {
  margin-top: 10px;
  padding: 9px 14px;
  border-radius: 13px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 750;
  color: #475569;
}
.kiosk-stepper { display: flex; align-items: center; gap: 12px; }
.kiosk-stepper strong { min-width: 64px; text-align: center; font-size: 18px; font-weight: 900; color: #0F172A; font-variant-numeric: tabular-nums; }
.kiosk-step-btn {
  width: 42px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 20px;
  font-weight: 800;
}

.kiosk-share-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.kiosk-share-opt {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.kiosk-share-opt strong { font-size: 15px; font-weight: 850; display: flex; align-items: center; gap: 6px; }
.kiosk-share-opt small { font-size: 11.5px; color: #64748B; }
.kiosk-share-opt.is-on {
  border-color: #181B22;
  background: #F8FAFC;
  box-shadow: 0 0 0 1px #181B22;
}
.kiosk-share-opt[data-kshare="1"].is-on {
  border-color: #16A34A;
  background: #F0FDF4;
  box-shadow: 0 0 0 1px #16A34A;
}
.kiosk-fast-tag {
  padding: 1.5px 6px;
  border-radius: 999px;
  background: #DCFCE7;
  color: #15803D;
  font-size: 10.5px;
  font-weight: 800;
}

.kiosk-opt-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
}
.kiosk-opt-row input {
  min-height: 44px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 14px;
}
.kiosk-opt-row input:focus { outline: none; border-color: #181B22; }

.kiosk-preview-bar {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #F1F5F9;
  color: #475569;
  font-size: 13.5px;
  font-weight: 750;
  text-align: center;
}
.kiosk-preview-bar.is-ready {
  background: #ECFDF5;
  color: #065F46;
}
.kiosk-submit-btn {
  padding: 12px 18px;
  width: 100%;
  min-height: 58px;
  margin-top: 12px;
  border: 0;
  border-radius: 16px;
  background: #D9753B;
  color: #FFFFFF;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.01em;
  transition: background .15s, transform .1s;
}
.kiosk-submit-btn:hover:not(:disabled) { background: #C8642B; }
.kiosk-submit-btn:active { transform: scale(.99); }
.kiosk-submit-btn.is-idle {
  background: #CBD5E1;
  color: #475569;
}

/* Issued Ticket Pass & Mobile Live Tracker (Ported Lucian #187 Ticket check-in) */
.kiosk-issued-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kiosk-mobile-pass-shell {
  flex: 1;
  padding: 20px 14px 36px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.kiosk-u187-pass {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #F3F3E6;
  color: #223024;
  border-radius: 20px;
  padding: 24px 26px;
  border: 1px solid #D8DCC7;
  box-shadow: 0 18px 40px -22px rgba(24, 34, 24, .32);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.u187-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.u187-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #4A5D49; }
.u187-big-no {
  font: 950 64px/1 ui-monospace, "SF Mono", monospace;
  letter-spacing: -2px;
  color: #1A291C;
  text-align: center;
  margin: 4px 0;
  font-variant-numeric: tabular-nums;
}
.u187-stamp {
  position: absolute;
  right: 22px;
  top: 56px;
  border: 3px double #16A34A;
  color: #15803D;
  background: rgba(243, 243, 230, .94);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 900;
  transform: rotate(-12deg);
}
.kiosk-u187-pass.is-skipped .u187-stamp,
.kiosk-u187-pass.is-cancelled .u187-stamp {
  border-color: #DC2626;
  color: #B91C1C;
}
.u187-status-box {
  padding: 12px 14px;
  border-radius: 13px;
  background: #FFFFFF;
  border: 1px solid #D8DCC7;
  text-align: center;
}
.u187-status-box strong { display: block; font-size: 16px; font-weight: 850; color: #1A291C; }
.u187-status-box small { display: block; font-size: 12.5px; color: #4A5D49; margin-top: 2px; }
.u187-status-box.is-called {
  background: #DCFCE7;
  border-color: #4ADE80;
}
.u187-status-box.is-called strong { color: #166534; }
.u187-stub {
  border-top: 1.5px dashed #9BA88F;
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.u187-qr-box {
  width: 128px;
  height: 128px;
  flex: none;
  padding: 6px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #D8DCC7;
}
.u187-qr-box svg { width: 100%; height: 100%; display: block; }
.u187-stub-copy strong { display: block; font-size: 15px; color: #1A291C; margin-bottom: 4px; }
.u187-stub-copy p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; color: #4A5D49; }
.u187-details {
  border-top: 1.5px dashed #9BA88F;
  padding-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
}
.u187-details span { display: block; font-size: 11px; color: #4A5D49; }
.u187-details strong { display: block; font-size: 14px; color: #1A291C; margin-top: 2px; }
.u187-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

@media (max-width: 920px) {
  .kiosk-shell { grid-template-columns: 1fr; padding: 14px; gap: 14px; }
  .wl-board { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .kiosk-u182-num { font-size: 52px; }
  .kiosk-party-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .kiosk-party-btn { min-height: 56px; }
  .kiosk-party-btn strong { font-size: 17px; }
  .kiosk-share-row,
  .kiosk-opt-row { grid-template-columns: 1fr; }
  .kiosk-dispense-card { padding: 16px; }
  .u187-stub { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .mob-sheet-ov, .mob-sheet-panel, .mob-bnav-btn, .mob-bnav-btn svg { transition: none !important; }
  .console-light .fp-table.is-bill .fp-table-surface { animation: none !important; }
}

/* ============================================================================
   SCALABLE 50–120 TABLE FLOOR PLAN SYSTEM (BACKOFFICE EDITOR + POS MAP & GRID)
   ============================================================================ */

/* Backoffice Canvas Size / Bulk Table Size / Zoom Control Bar */
.fp-editor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #F8F9FA;
  border: 1px solid #E3E5E8;
}
.fp-ed-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.fp-ed-lbl {
  font-size: 11.5px;
  font-weight: 800;
  color: #5F6368;
  white-space: nowrap;
}
.fp-ed-pills,
.fp-zoom-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.fp-ed-dim-inputs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #5F6368;
}
.fp-ed-dim-inputs input {
  width: 68px;
  height: 28px;
  padding: 0 7px;
  border-radius: 7px;
  border: 1px solid #DADCE0;
  background: #FFFFFF;
  color: #202124;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.bo-floor-scroll {
  overflow: auto;
  max-height: 640px;
  padding: 12px;
  border-radius: 14px;
}
.bo-floor-scroll .floor-canvas-stage {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

/* Corner Drag-Resize Handle on Selected Table / Fixture (Backoffice Editor) */
.fp-resize-handle {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: #1A73E8;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(32, 33, 36, .35);
  cursor: nwse-resize;
  z-index: 25;
  touch-action: none;
}
.fp-resize-handle::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-right: 1.5px solid #FFFFFF;
  border-bottom: 1.5px solid #FFFFFF;
}

/* Compact Mini Table Styling (width <= 96px or height <= 68px for 50+ table layouts) */
.fp-table.is-mini .fp-table-surface {
  padding: 4px 5px;
  gap: 1.5px;
  border-radius: 10px;
}
.fp-table.is-mini[data-shape="round"] .fp-table-surface {
  border-radius: 999px;
}
.fp-table.is-mini .fp-head-row {
  gap: 3px;
}
.fp-table.is-mini .fp-code {
  font-size: 12.5px;
  letter-spacing: -.01em;
}
.fp-table.is-mini .fp-seat-pill {
  font-size: 9.5px;
  padding: 1px 4px;
}
.fp-table.is-mini .fp-amt {
  font-size: 11px;
}
.fp-table.is-mini .fp-share-pill,
.fp-table.is-mini .fp-state-tag,
.fp-table.is-mini .fp-rsv-time,
.fp-table.is-mini .fp-rsv-pill {
  font-size: 9px;
  padding: 1px 5px;
}
.fp-table.is-mini .fp-chair {
  width: 14px;
  height: 6px;
}
.fp-table.is-mini .fp-chair.is-top { top: -6px; }
.fp-table.is-mini .fp-chair.is-bot { bottom: -6px; }
.fp-table.is-mini .fp-banquette {
  top: -7px;
  height: 7px;
}
.fp-table.is-mini .fp-dot-alert {
  top: -8px;
  right: -4px;
  padding: 1.5px 5px;
  font-size: 9px;
}

/* Floor Table Search Highlight & Dimming */
.fp-table.is-search-dim {
  opacity: .24;
  transition: opacity .15s;
}
.fp-table.is-search-hit {
  z-index: 20;
}
.fp-table.is-search-hit .fp-table-surface {
  box-shadow: 0 0 0 2px #14171E, 0 0 0 4.5px #E2844B !important;
}

/* Frontline POS Scalable Controls (Quick Search + Map/Grid Segmented Toggle + Zoom) */
.fp-pos-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.fp-quick-search {
  width: 142px;
  height: 36px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #14171E;
  color: #F1F5F9;
  font-size: 13px;
  font-weight: 600;
}
.fp-quick-search::placeholder { color: #7C8596; }
.fp-quick-search:focus {
  outline: none;
  border-color: #D9753B;
}
.fp-view-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #13161C;
  border: 1px solid rgba(255, 255, 255, .1);
  gap: 2px;
}
.fp-seg-btn {
  height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #9CA3AF;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  transition: background .14s, color .14s;
}
.fp-seg-btn:hover { color: #E5E7EB; }
.fp-seg-btn.is-on {
  background: #D9753B;
  color: #FFFFFF;
}
.pos-matte-dark .fp-zoom-pills .btn.xs {
  min-height: 34px;
  padding: 0 9px;
  background: #202530;
  border: 1px solid rgba(255, 255, 255, .12);
  color: #E5E7EB;
  font-variant-numeric: tabular-nums;
}
.pos-matte-dark .fp-zoom-pills .btn.xs:hover {
  background: #29303E;
  border-color: rgba(255, 255, 255, .24);
}

/* Frontline POS Large-Tile Zero-Scroll Table Grid View (`大格枱陣`) */
.fp-grid-view {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 12px 14px;
  border-radius: 16px;
  background: #13161C;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fp-grid-empty {
  margin: auto;
  padding: 36px 20px;
  text-align: center;
  color: #CBD5E1;
  font-size: 18px;
  font-weight: 700;
}
.fp-grid-tiles {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(var(--fg-cols, 4), minmax(0, 1fr));
  grid-template-rows: repeat(var(--fg-rows, 2), minmax(0, 1fr));
  gap: 14px;
}
.fp-grid-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 148px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, .14);
  border-left: 6px solid rgba(255, 255, 255, .24);
  background: #1D212B;
  color: #F8FAFC;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .14s, background .14s, transform .1s, box-shadow .14s;
}
.fp-grid-tile:hover {
  background: #242A36;
  border-color: rgba(255, 255, 255, .34);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}
.fp-grid-tile:active { transform: scale(.985); }
.fp-grid-tile.is-free {
  background: linear-gradient(155deg, #133527 0%, #0E261C 100%);
  border-color: rgba(34, 197, 94, .78);
  border-left-color: #22C55E;
}
.fp-grid-tile.is-occupied {
  background: linear-gradient(155deg, #3A2013 0%, #27150D 100%);
  border-color: rgba(249, 115, 22, .8);
  border-left-color: #F97316;
}
.fp-grid-tile.is-bill {
  background: linear-gradient(155deg, #3B2F10 0%, #261E0A 100%);
  border-color: #FACC15;
  border-left-color: #FACC15;
}
.fp-grid-tile.is-rsv-locked {
  background: linear-gradient(155deg, #272048 0%, #1B1633 100%);
  border-color: rgba(167, 139, 250, .75);
  border-left-color: #A78BFA;
}
.fp-grid-tile.is-dirty {
  background: linear-gradient(155deg, #11324D 0%, #0C2236 100%);
  border-style: dashed;
  border-color: #38BDF8;
  border-left-style: solid;
  border-left-color: #38BDF8;
}
.fp-grid-tile.is-selected {
  box-shadow: 0 0 0 3px #14171E, 0 0 0 6px #E2844B;
}
.fgt-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fgt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fgt-code {
  font-size: clamp(30px, 2.8vw, 46px);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.02;
  letter-spacing: -.02em;
}
.fgt-seats {
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 850;
  padding: 6px 13px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .12);
  color: #F1F5F9;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fp-grid-tile.is-occupied .fgt-seats {
  background: rgba(249, 115, 22, .28);
  color: #FED7AA;
}
.fp-grid-tile.is-free .fgt-seats {
  background: rgba(34, 197, 94, .22);
  color: #DCFCE7;
}
.fp-grid-tile.is-dirty .fgt-seats {
  background: rgba(56, 189, 248, .24);
  color: #E0F2FE;
}
.fgt-tags {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.fgt-zone-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: clamp(13.5px, 1.15vw, 16px);
  font-weight: 800;
  background: rgba(255, 255, 255, .11);
  color: #E2E8F0;
}
.fgt-main {
  margin: auto 0;
  padding: 8px 0;
  display: flex;
  align-items: center;
}
.fgt-amt {
  font-size: clamp(24px, 2.4vw, 38px);
  font-weight: 900;
  color: #FDBA74;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}
.fgt-state {
  font-size: clamp(20px, 1.9vw, 30px);
  font-weight: 900;
  line-height: 1.18;
}
.fgt-state.is-free { color: #4ADE80; }
.fgt-state.is-rsv { color: #DDD6FE; }
.fgt-state.is-dirty { color: #7DD3FC; }
.fgt-foot {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fgt-meta {
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 750;
  color: #CBD5E1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-grid-tile.is-shareable .fgt-meta {
  color: #86EFAC;
}
.fgt-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #D9753B;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 850;
}
.fgt-pill.is-bill {
  background: #FACC15;
  color: #16140D;
}
.fp-grid-pager {
  flex-shrink: 0;
  margin-top: 0;
}

/* ============================================================================
   POS GLOBAL TOUCHSCREEN ERGONOMICS (ALL TABS, QUEUE, KDS, WAITLIST, DELIVERY,
   SHIFT, QUICKSTOCK, ORDER DRAWER, COUNTER POS & CONFIRM MODALS)
   High-visibility large touch buttons built for busy HK restaurant floor staff
   ============================================================================ */
body.pos-workspace .app-topbar .btn.sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 10px;
}

body.pos-workspace .pos-main-stage .btn,
body.pos-workspace #formModal .btn {
  min-height: 52px;
  padding: 0 22px;
  font-size: 16.5px;
  font-weight: 900;
  border-radius: 13px;
  letter-spacing: .01em;
}
body.pos-workspace .pos-main-stage .btn.sm,
body.pos-workspace #formModal .btn.sm {
  min-height: 48px;
  padding: 0 18px;
  font-size: 15.5px;
  font-weight: 850;
  border-radius: 12px;
}
body.pos-workspace .pos-main-stage .btn.xs,
body.pos-workspace #formModal .btn.xs {
  min-height: 44px;
  padding: 0 15px;
  font-size: 14.5px;
  font-weight: 850;
  border-radius: 11px;
}
body.pos-workspace .pos-main-stage .btn.pos-cta-xl,
body.pos-workspace #formModal .btn.touch-lg,
body.pos-workspace #formModal .touch-modal-foot .btn,
body.pos-workspace .qpos-pay-grid .pay-btn {
  min-height: 56px;
  padding: 0 22px;
  font-size: 17px;
  font-weight: 900;
  border-radius: 14px;
}

/* Keep quick table switcher & zoom controls generously tappable without overflowing single-line bars */
body.pos-workspace .pos-quick-tables .pos-qsw-pill {
  min-height: 40px;
  min-width: 44px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 850;
}
body.pos-workspace .pos-kiosk-bar .btn.xs,
body.pos-workspace .pos-kiosk-bar .btn.sm {
  min-height: 44px;
  padding: 0 14px;
  font-size: 14.5px;
}

/* Enlarge tactile quantity stepper (− / +) across Order Drawer & Counter Quick-POS */
body.pos-workspace .u018-mini-step {
  padding: 4px;
  gap: 6px;
}
body.pos-workspace .u018-mb {
  width: 40px;
  height: 40px;
  font-size: 20px;
  font-weight: 900;
}
body.pos-workspace .u018-mv {
  min-width: 28px;
  font-size: 16.5px;
  font-weight: 900;
}

/* Enlarge modal choice buttons, share buttons & close button */
body.pos-workspace #formModal .touch-choice-btn {
  min-height: 54px;
  font-size: 16px;
  font-weight: 850;
  border-radius: 13px;
}
body.pos-workspace #formModal .seat-share-btn {
  min-height: 66px;
  padding: 12px 14px;
}
body.pos-workspace #formModal .seat-share-btn strong { font-size: 16px; }
body.pos-workspace #formModal .modal-head .btn.sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
}

/* Enlarge Queue, KDS, Delivery, Waitlist & QuickStock readability to match big touch buttons */
body.pos-workspace .kds-item {
  padding: 12px 14px;
  gap: 12px;
}
body.pos-workspace .kds-item strong {
  font-size: 16.5px !important;
}
body.pos-workspace .kds-item .btn {
  min-width: 118px;
  min-height: 50px;
  font-size: 16px;
  flex: none;
}
body.pos-workspace .wl-card {
  padding: 14px 16px;
  gap: 12px;
}
body.pos-workspace .wl-card-actions {
  gap: 8px;
}
body.pos-workspace .wl-card-actions .btn {
  min-height: 48px;
  min-width: 82px;
  font-size: 15.5px;
}
body.pos-workspace .deliv-order-card {
  padding: 16px 18px;
  gap: 12px;
}
body.pos-workspace .qpos-cats .btn,
body.pos-workspace .pos-cat-pills .btn {
  min-height: 46px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 850;
}
body.pos-workspace .pos-search-inp,
body.pos-workspace #qsSearch,
body.pos-workspace #qposNoteInp {
  min-height: 46px !important;
  font-size: 15px !important;
}
body.pos-workspace .pos-numpad button {
  min-height: 52px;
  font-size: 19px;
  font-weight: 900;
}

@media (max-width: 640px) {
  body.pos-workspace .pos-main-stage .btn,
  body.pos-workspace #formModal .btn {
    min-height: 48px;
    padding: 0 16px;
    font-size: 15.5px;
  }
  body.pos-workspace .pos-main-stage .btn.sm,
  body.pos-workspace #formModal .btn.sm {
    min-height: 44px;
    padding: 0 14px;
    font-size: 14.5px;
  }
  body.pos-workspace .pos-main-stage .btn.xs,
  body.pos-workspace #formModal .btn.xs {
    min-height: 42px;
    padding: 0 12px;
    font-size: 14px;
  }
  body.pos-workspace .pos-main-stage .btn.pos-cta-xl,
  body.pos-workspace #formModal .btn.touch-lg,
  body.pos-workspace #formModal .touch-modal-foot .btn,
  body.pos-workspace .qpos-pay-grid .pay-btn {
    min-height: 50px;
    padding: 0 14px;
    font-size: 15.5px;
  }
}

@media (max-width: 768px) {
  .fp-quick-search { width: 116px; height: 34px; font-size: 12.5px; }
  .fp-grid-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fp-grid-tile { min-height: 120px; padding: 12px 14px; }
}

/* ============================================================================
   UNIVERSAL CUSTOM POS TOUCHSCREEN POPUP KEYBOARD (#posTouchKb)
   Lucian #336-inspired Bottom Sheet Motion · MIT License (c) 2026 Seokwoooo
   ============================================================================ */
.pos-touch-kb {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 9600;
  width: min(680px, calc(100vw - 24px));
  padding: 12px 14px 14px;
  border-radius: 22px;
  background: rgba(18, 22, 30, .97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, .16);
  box-shadow: 0 -10px 42px rgba(0, 0, 0, .65), 0 24px 60px -16px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .1);
  transform: translate(-50%, calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
  transition: transform .26s cubic-bezier(.22, 1, .36, 1), opacity .2s ease;
}
.pos-touch-kb.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.ptk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.ptk-display {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
}
.ptk-field-tag {
  font-size: 12px;
  font-weight: 850;
  color: #CBD5E1;
  background: rgba(255, 255, 255, .08);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.ptk-readout {
  font-size: 20px;
  font-weight: 950;
  color: #FFFFFF;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ptk-readout.is-placeholder {
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
}
.ptk-match-pill {
  border: 1px solid rgba(226, 132, 75, .55);
  background: rgba(226, 132, 75, .18);
  color: #FDBA74;
  border-radius: 10px;
  padding: 5px 11px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ptk-match-pill:hover {
  background: rgba(226, 132, 75, .28);
  color: #FFFFFF;
}
.ptk-match-pill[hidden] { display: none !important; }

.ptk-modes {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ptk-mode-btn {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #2D3648;
  background: #1B212E;
  color: #94A3B8;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}
.ptk-mode-btn.is-on {
  background: #293347;
  border-color: #E2844B;
  color: #FFFFFF;
}
.ptk-close-btn {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: #252C3B;
  color: #F1F5F9;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 850;
  cursor: pointer;
}
.ptk-close-btn:hover { background: #333C4F; }

.ptk-prefix-row {
  display: flex;
  gap: 7px;
  margin-bottom: 9px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ptk-prefix-row::-webkit-scrollbar { display: none; }
.ptk-chip {
  flex: 1 0 54px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid #334057;
  background: #222938;
  color: #F8FAFC;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 0 #0B0E14;
}
.ptk-chip:hover { background: #2D364A; border-color: #E2844B; }
.ptk-chip:active { transform: translateY(1.5px); }

.ptk-num-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.ptk-key {
  min-height: 58px;
  border-radius: 13px;
  border: 1.5px solid #2D3648;
  background: #202735;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 0 #0A0D13;
  transition: transform .1s ease, background-color .12s ease, border-color .12s ease;
}
.ptk-key:hover { background: #2A3346; border-color: #4D5D78; }
.ptk-key:active { transform: translateY(2px); box-shadow: 0 1px 0 #0A0D13; }
.ptk-key:focus-visible { outline: 2px solid #E2844B; outline-offset: 1px; }
.ptk-key.is-fn {
  background: #283040;
  color: #E2E8F0;
  font-size: 16px;
}
.ptk-key.is-sub {
  background: #1B212E;
  color: #CBD5E1;
  font-size: 17px;
}
.ptk-key.is-go {
  grid-row: span 2;
  background: linear-gradient(180deg, #E28044, #CC672D);
  border-color: #F0945D;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 3px 0 #8E3F14;
}
.ptk-key.is-go:hover { filter: brightness(1.06); }

.ptk-qwerty {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ptk-qrow {
  display: flex;
  gap: 6px;
}
.ptk-key.is-sm {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  font-size: 17px;
  border-radius: 11px;
  grid-row: auto;
}
.ptk-phrases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.ptk-phrase-btn {
  min-height: 48px;
  padding: 6px 10px;
  border-radius: 11px;
  border: 1.5px solid #2D3648;
  background: #202735;
  color: #F8FAFC;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 2px 0 #0A0D13;
}
.ptk-phrase-btn:hover { background: #2B3447; border-color: #E2844B; }
.ptk-phrase-btn:active { transform: translateY(1.5px); }

@media (max-width: 640px) {
  .pos-touch-kb {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 10px 10px 12px;
    transform: translateY(105%);
  }
  .pos-touch-kb.is-open { transform: translateY(0); }
  .ptk-key { min-height: 50px; font-size: 20px; }
  .ptk-key.is-sm { min-height: 44px; font-size: 15px; }
  .ptk-chip { min-height: 40px; font-size: 15px; }
  .ptk-phrase-btn { min-height: 44px; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .pos-touch-kb, .ptk-key { transition: none !important; }
}

/* ═════════════════════════════════════════════════════════════════
   BACKOFFICE WINDOWS DESKTOP & POS SOFTWARE DOWNLOAD CENTER
   Lucian UX/UI Prompt #004 Progress Download Button (MIT License)
   https://lucianlabs.dev/uxui-prompt/#004
   ═════════════════════════════════════════════════════════════════ */
.win-dl-card {
  border: 1px solid #DADCE0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFE 100%);
}
.win-dl-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.win-dl-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.win-os-ic {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1A73E8, #1557B0);
  color: #FFFFFF;
  box-shadow: 0 8px 18px -10px rgba(26, 115, 232, .65);
}
.win-os-ic svg {
  width: 22px;
  height: 22px;
}
.win-dl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .95fr);
  gap: 20px;
  align-items: start;
}
.win-sec-lbl {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ux-ink-2);
  margin-bottom: 8px;
}
.win-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.win-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1.5px solid #DADCE0;
  background: #FFFFFF;
  color: var(--ux-ink);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .12s ease;
}
.win-mode-btn strong {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
}
.win-mode-btn small {
  font-size: 11.5px;
  color: var(--ux-ink-2);
  line-height: 1.35;
}
.win-mode-btn:hover {
  border-color: #AECBFA;
  background: #F8FAFF;
}
.win-mode-btn.is-on {
  border-color: #1A73E8;
  background: #E8F0FE;
  box-shadow: 0 0 0 1px #1A73E8;
}
.win-mode-btn.is-on strong {
  color: #174EA6;
}
.win-mode-btn:focus-visible {
  outline: 2px solid #1A73E8;
  outline-offset: 2px;
}
.win-opt-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}
.win-url-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.win-url-row input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
}

.win-dl-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 18px 16px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 26px -18px rgba(15, 23, 42, .22);
}

/* Lucian #004 Progress Download Button mapped to Seatly tokens */
.u004 {
  --bar: linear-gradient(90deg, #1A73E8, #3D8BFF 58%, #1E8E3E);
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.u004-file {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ux-ink-2);
  max-width: 100%;
}
.u004-fname {
  word-break: break-all;
  color: var(--ux-ink);
}
.u004-zip {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #1A73E8;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.u004-file small {
  font-weight: 700;
  color: var(--ux-ink-3);
  font-variant-numeric: tabular-nums;
}
.u004-btn {
  --p: 0;
  position: relative;
  width: min(100%, 304px);
  height: 62px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: #1A73E8;
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 18px 30px -18px rgba(26, 115, 232, .72);
  transition: width .55s cubic-bezier(.22, 1, .36, 1), transform .4s cubic-bezier(.34, 1.56, .64, 1), background-color .4s ease;
}
.u004-btn:hover {
  background: #1557B0;
  transform: translateY(-2px);
}
.u004-btn:active {
  transform: scale(.97);
}
.u004-btn:focus-visible {
  outline: 2px solid #1A73E8;
  outline-offset: 4px;
}
.u004-idle,
.u004-run,
.u004-ok {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  transition: opacity .32s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}
.u004-idle {
  gap: 12px;
  padding: 0 20px 0 8px;
}
.u004-arw {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .18);
  overflow: hidden;
  flex: none;
}
.u004-arw svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.u004-arw .u004-a {
  transition: transform .45s ease;
}
.u004-btn:hover .u004-arw .u004-a {
  animation: u004-bob 1s ease infinite;
}
@keyframes u004-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
.u004-idle b {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.u004-idle small {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 700;
  opacity: .84;
  font-variant-numeric: tabular-nums;
}
.u004-track {
  position: absolute;
  inset: 0;
  background: #1E293B;
  opacity: 0;
  transition: opacity .35s ease;
}
.u004-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: var(--bar);
  transform-origin: 0 50%;
  transform: scaleX(var(--p));
  border-radius: inherit;
  transition: transform .16s linear;
}
.u004-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: u004-shine 1.3s linear infinite;
}
@keyframes u004-shine {
  from { background-position: 120% 0; }
  to { background-position: -100% 0; }
}
.u004-run {
  justify-content: space-between;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(12px);
  color: #FFFFFF;
}
.u004-run b {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.u004-run small {
  font-size: 12.5px;
  font-weight: 600;
  opacity: .9;
}
.u004-ok {
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transform: scale(.65);
  color: #FFFFFF;
}
.u004-ok i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .2);
  flex: none;
}
.u004-ok svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.u004-ok path {
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
  transition: stroke-dashoffset .45s ease .22s;
}
.u004-ok span {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width .55s ease, opacity .35s ease;
}
.u004[data-state="run"] .u004-idle { opacity: 0; transform: translateY(-12px); }
.u004[data-state="run"] .u004-arw .u004-a { transform: translateY(24px); }
.u004[data-state="run"] .u004-track { opacity: 1; }
.u004[data-state="run"] .u004-run { opacity: 1; transform: none; }
.u004[data-state="fold"] .u004-idle,
.u004[data-state="done"] .u004-idle { opacity: 0; }
.u004[data-state="fold"] .u004-btn { width: 62px; background: #1E8E3E; }
.u004[data-state="fold"] .u004-bar { opacity: 0; }
.u004[data-state="fold"] .u004-ok,
.u004[data-state="done"] .u004-ok { opacity: 1; transform: none; }
.u004[data-state="fold"] .u004-ok path,
.u004[data-state="done"] .u004-ok path { stroke-dashoffset: 0; }
.u004[data-state="done"] .u004-btn { background: #1E8E3E; }
.u004[data-state="done"] .u004-ok span { max-width: 210px; opacity: 1; }
.u004-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.win-target-preview {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: #F1F3F4;
  font-size: 12px;
  color: var(--ux-ink-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.win-target-preview code {
  color: #174EA6;
  font-weight: 700;
  word-break: break-all;
}
.win-install-steps {
  margin: 0;
  padding-left: 18px;
  width: 100%;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ux-ink-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.win-install-steps strong { color: var(--ux-ink); }
.win-dl-foot {
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid #EAECEF;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.win-direct-link {
  font-size: 12.5px;
  font-weight: 700;
  color: #1A73E8;
  text-decoration: none;
}
.win-direct-link:hover { text-decoration: underline; }
.win-sys-note {
  font-size: 11.5px;
  color: var(--ux-ink-3);
}

@media (max-width: 1020px) {
  .win-dl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .win-mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .win-url-row { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .u004-btn, .u004-idle, .u004-run, .u004-ok, .u004-bar, .u004-arw .u004-a, .win-mode-btn {
    transition: none !important;
    animation: none !important;
  }
}

/* ── TABLE ASSIGNED STAFF BADGES & CONTROLS (Backoffice + POS) ── */
.fp-staff-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 1.5px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.25;
  max-width: 100%;
  flex-shrink: 0;
  white-space: nowrap;
  background: rgba(56, 189, 248, .22);
  color: #E0F2FE;
  border: 1px solid rgba(56, 189, 248, .38);
}
.console-light .fp-staff-chip {
  background: #E8F0FE;
  color: #174EA6;
  border-color: #AECBFA;
}
.fgt-staff {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: clamp(13.5px, 1.15vw, 16px);
  font-weight: 800;
  background: rgba(56, 189, 248, .22);
  color: #BAE6FD;
  border: 1px solid rgba(56, 189, 248, .38);
}
.fp-staff-filter-wrap {
  display: flex;
  align-items: center;
}
.fp-staff-select {
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1.5px solid #2D3648;
  background: #1C222E;
  color: #F8FAFC;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.fp-staff-select:focus-visible {
  outline: 2px solid #E2844B;
  outline-offset: 2px;
}
.pos-staff-pill-btn {
  background: rgba(56, 189, 248, .18) !important;
  border-color: rgba(56, 189, 248, .42) !important;
  color: #BAE6FD !important;
  font-weight: 800 !important;
}
.pos-staff-pill-btn:hover {
  background: rgba(56, 189, 248, .28) !important;
  color: #FFFFFF !important;
}
.bo-zone-assign-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--ux-surface-2);
  border: 1px solid var(--ux-line);
}
.bo-zone-assign-bar select,
.bo-tb-staff-sel {
  min-height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--ux-line-2);
  background: var(--ux-surface);
  color: var(--ux-ink);
  font-size: 12.5px;
  font-weight: 700;
}
.bo-tb-staff-sel { flex: 1; min-width: 0; }

/* Configurable Mandatory vs Optional QR Printing Banner inside POS Seat Modal */
.seat-qr-policy-bar {
  margin-top: 10px;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.seat-qr-policy-bar.is-force {
  background: color-mix(in srgb, var(--ux-mint) 14%, var(--ux-surface-2));
  color: var(--ux-ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ux-mint) 48%, transparent);
}
.seat-qr-policy-bar.is-opt {
  background: var(--ux-surface-2);
  color: var(--ux-ink-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
}
