﻿:root {
  --bg-1: #fbf0d6;
  --bg-2: #f6efe6;
  --panel: rgba(255, 252, 247, 0.92);
  --panel-strong: #fffaf2;
  --text: #241c18;
  --muted: #675a52;
  --line: rgba(36, 28, 24, 0.1);
  --accent: #d86f22;
  --accent-deep: #a74912;
  --accent-soft: #f8d9c0;
  --select-soft: #fff0d8;
  --select-warm: #ffd7a6;
  --select-deep: #7a3d12;
  --select-line: rgba(197, 106, 34, 0.45);
  --select-shadow: rgba(167, 73, 18, 0.14);
  --rail-active: #b76a2c;
  --rail-active-deep: #8f421f;
  --berry: #8f421f;
  --shadow: 0 24px 54px rgba(74, 48, 27, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 195, 124, 0.42), transparent 24rem),
    radial-gradient(circle at right center, rgba(205, 135, 64, 0.18), transparent 26rem),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
}

body.is-staff-scene {
  overflow: hidden;
  background: #efede6;
}

button {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.app-shell {
  width: min(1520px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(139, 62, 24, 0.14);
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, rgba(255, 252, 246, 0.9), rgba(255, 242, 227, 0.96));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar h1 {
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.05;
}

.lead {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.toolbar {
  display: grid;
  gap: 12px;
  align-content: start;
}

.toggle-set {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.toggle {
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid rgba(36, 28, 24, 0.14);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.toggle:hover {
  transform: translateY(-1px);
}

.toggle.is-active {
  color: #fff8f1;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.page-content {
  margin-top: 24px;
}

.is-staff-scene .page-content {
  margin-top: 12px;
  min-height: 0;
  overflow: hidden;
}

.scene {
  display: none;
  animation: fade-up 220ms ease;
}

.scene.is-active {
  display: block;
}

.is-staff-scene .scene-head,
.is-staff-scene .roadmap {
  display: none;
}

.is-staff-scene .topbar {
  padding: 14px 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

.is-staff-scene .topbar-copy {
  display: none;
}

.is-staff-scene .toolbar {
  align-items: end;
}

.is-staff-scene .app-shell {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding-bottom: 14px;
}

.is-staff-scene #staffScene {
  min-height: 0;
  height: 100%;
}

.is-staff-scene .staff-layout {
  height: 100%;
  min-height: 0;
}

.is-staff-scene .queue-list {
  display: none;
}

.is-staff-scene .queue-panel,
.is-staff-scene .staff-menu-panel,
.is-staff-scene .order-panel {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.scene-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.scene-head h2 {
  font-size: clamp(1.55rem, 2vw, 2.15rem);
}

.badge-row,
.future-note-list,
.staff-toolbar-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.soft-badge,
.future-note-list span,
.staff-toolbar-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px dashed rgba(97, 114, 54, 0.24);
  border-radius: 999px;
  background: rgba(237, 244, 220, 0.86);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.customer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.customer-layout > *,
.staff-layout > *,
.menu-grid > *,
.info-grid > *,
.hero-card > * {
  min-width: 0;
}

.customer-surface,
.queue-panel,
.staff-menu-panel,
.order-panel {
  padding: 20px;
}

.hero-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-lg);
  color: #fffaf4;
  background:
    radial-gradient(circle at top right, rgba(255, 220, 165, 0.16), transparent 14rem),
    linear-gradient(135deg, #2f211c, #8b3e18);
}

.hero-label {
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero-card h3 {
  max-width: 560px;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.25;
}

.hero-status {
  min-width: 170px;
  max-width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
}

.hero-status span,
.info-card span,
.order-meta span,
.cart-note,
.queue-time,
.menu-subtitle,
.panel-label {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-status span {
  color: rgba(255, 248, 240, 0.74);
}

.hero-status strong {
  display: block;
  margin-top: 6px;
  font-size: 1.06rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.info-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
}

.info-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.08rem;
  line-height: 1.45;
}

.category-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 2px 10px;
  scrollbar-width: none;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.chip {
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid rgba(36, 28, 24, 0.12);
  border-radius: 999px;
  white-space: nowrap;
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.chip.is-active {
  color: #fff9f2;
  border-color: transparent;
  background: linear-gradient(135deg, var(--rail-active), var(--rail-active-deep));
}

.tablet-category-rail {
  display: grid;
  gap: 8px;
  overflow: visible;
  padding: 0;
}

.tablet-category-rail .chip {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
  text-align: left;
  white-space: normal;
  line-height: 1.25;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
  grid-auto-rows: 1fr;
}

.builder-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(36, 28, 24, 0.1);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(250, 249, 244, 0.98), rgba(242, 240, 235, 0.92));
  box-shadow: 0 12px 24px rgba(75, 47, 25, 0.05);
}

.builder-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.builder-top h3 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.2;
}

.builder-total {
  min-width: 150px;
  display: grid;
  justify-items: center;
  padding: 18px 16px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 231, 206, 0.72);
}

.builder-total span {
  display: block;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.builder-total strong {
  display: block;
  margin-top: 6px;
  color: var(--accent-deep);
  font-size: 1.72rem;
}

.builder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  align-items: start;
}

.builder-section {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid rgba(36, 28, 24, 0.08);
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

.builder-section-full {
  grid-column: 1 / -1;
}

.builder-section.is-disabled {
  opacity: 0.55;
}

.builder-step {
  color: var(--accent-deep);
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.35;
}

.builder-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 10px;
}

.builder-options-catalog {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}

.builder-options-two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.drink-card .builder-options-catalog .builder-button {
  min-height: 82px;
  gap: 0;
}

.drink-card .builder-options-catalog .option-title {
  font-size: clamp(1.42rem, 1vw + 1.08rem, 1.7rem);
  line-height: 1.16;
}

.builder-button,
.addon-toggle {
  min-height: 96px;
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: center;
  padding: 16px 14px;
  border: 1px solid rgba(36, 28, 24, 0.12);
  border-radius: 16px;
  text-align: center;
  color: var(--text);
  background: rgba(250, 249, 246, 0.98);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.builder-button:hover,
.addon-toggle:hover {
  transform: translateY(-1px);
}

.builder-button.is-selected,
.addon-toggle.is-selected {
  color: var(--select-deep);
  border-color: var(--select-line);
  background: linear-gradient(135deg, var(--select-soft), var(--select-warm));
  box-shadow: 0 10px 18px var(--select-shadow);
}

.builder-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.option-title {
  display: block;
  font-size: clamp(1.28rem, 0.72vw + 1.06rem, 1.52rem);
  font-weight: 800;
  line-height: 1.25;
}

.option-meta,
.addon-price {
  display: block;
  font-size: clamp(1.08rem, 0.4vw + 0.98rem, 1.2rem);
  font-weight: 700;
  line-height: 1.45;
  color: #4c4139;
}

.builder-button.is-selected .option-meta,
.addon-toggle.is-selected .addon-price {
  color: rgba(255, 249, 242, 0.86);
}

.builder-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.builder-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(237, 244, 220, 0.86);
  border: 1px dashed rgba(97, 114, 54, 0.26);
  font-size: 0.95rem;
  font-weight: 700;
}

.builder-submit {
  min-height: 62px;
  font-size: 1.16rem;
}

.builder-card .menu-subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #4f433b;
}

.customer-menu-grid {
  padding-bottom: 6px;
}

.menu-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  height: 100%;
  padding: 20px;
  border: 1px solid rgba(36, 28, 24, 0.08);
  border-radius: 24px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(255, 255, 255, 0.96)),
    var(--panel-strong);
  box-shadow: 0 18px 34px rgba(75, 47, 25, 0.07);
  overflow: hidden;
  position: relative;
}

.menu-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, rgba(201, 95, 36, 0.92), rgba(255, 211, 171, 0.78));
}

.menu-head {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.menu-head > div {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.menu-card h4 {
  font-size: clamp(1.34rem, 0.82vw + 1.08rem, 1.68rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.menu-subtitle {
  margin-top: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #4f433b;
}

.price-pill {
  justify-self: center;
  display: inline-grid;
  place-items: center;
  align-items: center;
  min-height: 48px;
  min-width: 92px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-size: 1.12rem;
  font-weight: 800;
}

.addon-list,
.choice-list,
.spread-list {
  display: grid;
  gap: 12px;
}

.addon-list {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.addon-list span {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 16px;
  color: var(--accent-deep);
  background: rgba(255, 231, 206, 0.82);
  font-size: 0.98rem;
  font-weight: 700;
}

.menu-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.choice-list {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.spread-list {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.action-button,
.choice-button,
.spread-button,
.primary-action,
.secondary-action,
.qty-button {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.action-button,
.primary-action {
  color: #fff9f2;
  background: linear-gradient(135deg, var(--accent), #9f4618);
  box-shadow: 0 12px 24px rgba(139, 62, 24, 0.18);
}

.choice-button,
.spread-button,
.secondary-action {
  color: var(--text);
  background: rgba(246, 239, 230, 0.96);
  border: 1px solid rgba(36, 28, 24, 0.1);
}

.action-button {
  min-height: 62px;
  padding: 14px 18px;
  font-size: 1.12rem;
  font-weight: 800;
}

.choice-button,
.spread-button {
  min-height: 92px;
  padding: 14px 12px;
  border-radius: 20px;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.action-button:hover,
.choice-button:hover,
.spread-button:hover,
.primary-action:hover,
.secondary-action:hover,
.qty-button:hover {
  transform: translateY(-1px);
}

.ghost-action {
  color: var(--muted);
  border-style: dashed;
  background: transparent;
}

.order-panel {
  position: sticky;
  top: 16px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.panel-head h3 {
  font-size: 1.32rem;
}

.order-count {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff8f2;
  background: linear-gradient(135deg, var(--berry), #7f3029);
  font-weight: 800;
}

.cart-lines {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(36, 28, 24, 0.12);
}

.cart-main {
  min-width: 0;
}

.cart-main strong {
  display: block;
  font-size: 1.04rem;
  overflow-wrap: anywhere;
}

.cart-note {
  margin-top: 6px;
  line-height: 1.5;
}

.cart-side {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.cart-price {
  font-size: 1rem;
  font-weight: 800;
}

.qty-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.qty-button {
  min-width: 42px;
  min-height: 42px;
  color: var(--text);
  background: rgba(247, 241, 233, 0.96);
  border: 1px solid rgba(36, 28, 24, 0.12);
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
}

.empty-card {
  padding: 18px;
  border: 1px dashed rgba(36, 28, 24, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
}

.empty-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed rgba(36, 28, 24, 0.14);
}

.order-meta div {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
}

.order-meta strong {
  display: block;
  margin-top: 6px;
  font-size: 1.16rem;
}

.action-group {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.staff-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.staff-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.staff-toolbar h3 {
  font-size: 1.3rem;
}

.queue-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.queue-panel .panel-label {
  margin-top: -2px;
  line-height: 1.45;
}

.staff-menu-panel {
  display: grid;
  gap: 14px;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

.staff-menu-grid {
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.spread-card .builder-grid {
  grid-template-columns: 1fr;
}

.spread-matrix {
  display: grid;
  gap: 8px;
  text-align: left;
}

.spread-matrix-head,
.spread-matrix-row {
  display: grid;
  grid-template-columns: minmax(108px, 140px) repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.spread-matrix-label,
.spread-matrix-label-button,
.spread-matrix-head-button,
.spread-matrix-cell {
  min-height: 72px;
  display: grid;
  gap: 6px;
  align-content: center;
  justify-items: center;
  padding: 10px;
  border: 1px solid rgba(36, 28, 24, 0.12);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
}

.spread-matrix-label {
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font-weight: 800;
  justify-items: start;
  text-align: left;
}

.spread-matrix-label-button {
  justify-items: start;
  text-align: left;
  font-size: 1rem;
  font-weight: 800;
}

.spread-matrix-head-button,
.spread-matrix-cell {
  cursor: pointer;
  text-align: center;
}

.spread-matrix-head-button.is-selected,
.spread-matrix-label-button.is-selected,
.spread-matrix-cell.is-selected {
  color: var(--select-deep);
  border-color: var(--select-line);
  background: linear-gradient(135deg, var(--select-soft), var(--select-warm));
}

.queue-list {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.order-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 14px;
}

.cart-lines {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.queue-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
}

.queue-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  align-items: start;
}

.queue-top strong {
  display: block;
  font-size: 1.06rem;
}

.queue-time {
  margin-top: 4px;
}

.queue-type {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(255, 231, 206, 0.82);
  font-size: 0.84rem;
  font-weight: 700;
}

.queue-items {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.roadmap-card {
  padding: 18px;
}

.roadmap-card strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.55;
}

.pos-app {
  display: none;
}

.is-staff-scene .topbar,
.is-staff-scene .roadmap,
.is-staff-scene #customerScene {
  display: none !important;
}

.is-staff-scene .app-shell {
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: 0;
}

.is-staff-scene .page-content {
  margin: 0;
  height: 100%;
}

.is-staff-scene #staffScene.scene.is-active {
  display: grid;
  place-items: center;
  height: 100%;
}

.is-staff-scene .pos-app {
  --ipad-design-width: 2160;
  --ipad-design-height: 1620;
  --ipad-css-width: 1080px;
  --ipad-css-height: 810px;
  /* The iPad canvas is the viewport itself, so no outer letterboxing is introduced. */
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  width: 100dvw;
  height: 100dvh;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  align-self: stretch;
  justify-self: stretch;
  display: block;
  border-radius: 0;
  overflow: hidden;
  background: #efede6;
  box-shadow: none;
}

.is-staff-scene .pos-sidebar {
  position: absolute;
  inset: 0;
  z-index: 68;
  min-height: 0;
  pointer-events: none;
  background: transparent;
}

.is-staff-scene .pos-clock-label {
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

.is-staff-scene .pos-drawer {
  position: absolute;
  z-index: 68;
  inset: 8px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.is-staff-scene .pos-drawer.is-open {
  pointer-events: auto;
}

.is-staff-scene .pos-drawer-panel {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  transform: translateY(8px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(36, 28, 24, 0.12);
  border-radius: 12px;
  color: #2b2520;
  background:
    radial-gradient(circle at top left, rgba(216, 111, 34, 0.14), transparent 180px),
    rgba(255, 250, 243, 0.98);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
}

.is-staff-scene .pos-drawer.is-open .pos-drawer-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.is-staff-scene .pos-drawer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(36, 28, 24, 0.08);
}

.is-staff-scene .pos-drawer-head > div {
  min-width: 0;
  min-height: 44px;
  display: grid;
  align-content: center;
  gap: 3px;
}

.is-staff-scene .pos-drawer-head strong {
  font-size: 1.22rem;
}

.is-staff-scene .pos-drawer-head span {
  color: #7d7369;
  font-size: 0.9rem;
  font-weight: 800;
}

.is-staff-scene .pos-drawer-close {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  color: #fff8f0;
  background: #2a2623;
  font-size: 0.96rem;
  font-weight: 900;
  cursor: pointer;
}

.is-staff-scene .pos-order-tabs {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.is-staff-scene .pos-order-tabs button {
  min-width: 0;
  min-height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid rgba(84, 62, 48, 0.2);
  border-radius: 8px;
  color: #42352c;
  background: #f3e8da;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.is-staff-scene .pos-order-tabs button.is-active {
  border-color: #a94713;
  color: #fffaf4;
  background: linear-gradient(180deg, #d86f22, #b24d13);
  box-shadow: 0 4px 10px rgba(169, 71, 19, 0.18);
}

.is-staff-scene .pos-order-tabs strong {
  min-width: 50px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #4b392e;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1;
  text-align: center;
}

.is-staff-scene .pos-order-tabs button.is-active strong {
  color: #8f3d11;
  background: #fff4e8;
}

.is-staff-scene .pos-drawer-tab-panels,
.is-staff-scene .pos-drawer-tab-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.is-staff-scene .pos-drawer-tab-panels {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.is-staff-scene .pos-drawer-tab-panel {
  height: 100%;
}

.is-staff-scene .pos-drawer-tab-panel.is-active {
  display: grid;
}

.is-staff-scene .pos-drawer-tab-panel[hidden] {
  display: none !important;
}

.is-staff-scene .pos-drawer-workspace {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 30vw, 330px);
  gap: 12px;
  overflow: hidden;
}

.is-staff-scene .pos-drawer-tab-panel[data-order-drawer-panel="pending"] > .pos-pending-orders {
  min-width: 0;
  min-height: 0;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.is-staff-scene .pos-drawer-workspace > .pos-completed-orders {
  min-width: 0;
  min-height: 0;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.is-staff-scene .pos-drawer-section {
  display: grid;
  gap: 8px;
  padding: 11px;
  border-radius: 10px;
  background: #fffaf4;
}

.is-staff-scene .pos-drawer-section > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.is-staff-scene .pos-drawer-section > div:first-child > span {
  color: #3d3129;
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.is-staff-scene .pos-drawer-section strong {
  font-size: 0.98rem;
}

.is-staff-scene .pos-drawer-section p {
  margin: 0;
  color: #5f554c;
  font-size: 0.88rem;
  line-height: 1.45;
}

.is-staff-scene .pos-kitchen-section > div span,
.is-staff-scene .pos-kitchen-section > div strong {
  font-size: 1rem;
}

.is-staff-scene #drawerKitchenPreview {
  min-height: 82px;
  padding: 11px 13px;
  border-left: 4px solid #c55b18;
  border-radius: 8px;
  color: #2d251f;
  background: #fff0dc;
  font-size: 1.16rem;
  font-weight: 900;
  line-height: 1.58;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.is-staff-scene .pos-drawer-list {
  min-height: 90px;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  align-content: start;
  gap: 7px;
  padding-right: 3px;
}

.is-staff-scene .pos-drawer-empty {
  min-height: 70px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(36, 28, 24, 0.16);
  border-radius: 10px;
  color: #7d7369 !important;
  text-align: center;
}

.is-staff-scene .pos-drawer-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  padding: 9px;
  border-radius: 11px;
  color: #2b2520;
  background: #fff7eb;
  box-shadow: inset 0 -1px 0 rgba(36, 28, 24, 0.08);
}

.is-staff-scene .pos-drawer-line strong {
  min-width: 0;
  color: #211c18;
  font-size: 0.9rem;
  line-height: 1.15;
}

.is-staff-scene .pos-drawer-line span {
  grid-column: 1 / -1;
  color: #6f6258;
  font-size: 0.75rem;
  line-height: 1.28;
}

.is-staff-scene .pos-drawer-line b {
  color: #1f1a16;
  font-size: 0.9rem;
  line-height: 1.15;
}

.is-staff-scene .pos-drawer-line em {
  justify-self: start;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff8f0;
  background: #2b2724;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.is-staff-scene .pos-order-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(36, 28, 24, 0.1);
  border-radius: 10px;
  background: #fff7eb;
}

.is-staff-scene .pos-order-record.is-selected {
  border-color: rgba(216, 111, 34, 0.58);
  box-shadow: inset 3px 0 0 #d86f22;
}

.is-staff-scene .pos-order-record-main {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 8px 9px;
  border: 0;
  border-radius: 7px;
  text-align: left;
  color: #2b2520;
  background: transparent;
  cursor: pointer;
}

.is-staff-scene .pos-order-record-head {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.is-staff-scene .pos-order-record-head em {
  padding: 4px 8px;
  border-radius: 999px;
  color: #fffaf4;
  background: #c55b18;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.is-staff-scene .pos-order-record-head em[data-order-status="draft"] {
  color: #45362b;
  background: #eed9b9;
}

.is-staff-scene .pos-order-record-head em[data-order-status="completed"] {
  color: #fffaf4;
  background: #6c5140;
}

.is-staff-scene .pos-order-record-head strong {
  font-size: 1rem;
}

.is-staff-scene .pos-order-record-head b {
  justify-self: end;
  font-size: 1.04rem;
}

.is-staff-scene .pos-order-record-title,
.is-staff-scene .pos-order-record-meta {
  color: #6f6258;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.is-staff-scene .pos-order-record-actions {
  align-self: stretch;
  display: grid;
  grid-auto-rows: minmax(40px, 1fr);
  gap: 5px;
}

.is-staff-scene .pos-order-resume,
.is-staff-scene .pos-order-complete,
.is-staff-scene .pos-order-delete {
  min-width: 104px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  color: #fffaf4;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}

.is-staff-scene .pos-order-resume {
  background: #2d2926;
}

.is-staff-scene .pos-order-complete {
  background: #b85b22;
}

.is-staff-scene .pos-order-delete {
  background: #8f3f31;
}

.is-staff-scene .pos-pending-orders {
  gap: 5px;
  padding: 8px;
}

.is-staff-scene .pos-pending-pagination {
  display: grid;
  grid-template-columns: 82px 112px 82px;
  gap: 6px;
  align-items: center;
}

.is-staff-scene .pos-pending-pagination button {
  min-height: 38px;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  color: #fffaf4;
  background: #2d2926;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.is-staff-scene .pos-pending-pagination button:disabled {
  color: #9d9289;
  background: #e4ddd5;
  cursor: default;
}

.is-staff-scene .pos-pending-pagination strong {
  color: #4a3b31;
  font-size: 0.86rem;
  text-align: center;
  white-space: nowrap;
}

.is-staff-scene .pos-pending-pagination[hidden] {
  display: none;
}

.is-staff-scene .pos-pending-orders .pos-drawer-list {
  height: 100%;
  min-height: 0;
  max-height: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 0;
  align-content: stretch;
  align-items: stretch;
  gap: 5px;
  padding-right: 0;
  overflow: hidden;
}

.is-staff-scene .pos-pending-orders .pos-drawer-list[data-pending-mode="detail"] {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.is-staff-scene .pos-pending-orders .pos-drawer-empty {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  height: 100%;
}

.is-staff-scene .pos-order-ticket-card {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 36px;
  height: 100%;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(36, 28, 24, 0.18);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(36, 28, 24, 0.09);
  overflow: hidden;
}

.is-staff-scene .pos-order-ticket-card.is-selected {
  border-color: #d86f22;
  box-shadow: 0 0 0 2px rgba(216, 111, 34, 0.22), 0 4px 10px rgba(36, 28, 24, 0.12);
}

.is-staff-scene .pos-order-ticket-preview {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 6px;
  padding: 0;
  border: 0;
  color: #181512;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.is-staff-scene .pos-order-ticket-head,
.is-staff-scene .pos-order-ticket-banner,
.is-staff-scene .pos-order-ticket-summary {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.is-staff-scene .pos-order-ticket-head small {
  overflow: hidden;
  color: #62584f;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.is-staff-scene .pos-order-ticket-head em {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 4px;
  color: #fffaf4;
  background: #c55b18;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
}

.is-staff-scene .pos-order-ticket-head em[data-order-status="draft"] {
  color: #4d392b;
  background: #eed9b9;
}

.is-staff-scene .pos-order-ticket-banner {
  padding: 5px 7px;
  color: #fff;
  background: #26221f;
}

.is-staff-scene .pos-order-ticket-banner b {
  font-size: 0.88rem;
}

.is-staff-scene .pos-order-ticket-banner strong {
  font-size: 1.04rem;
}

.is-staff-scene .pos-order-ticket-reference {
  color: #4c433c;
  font-size: 0.72rem;
  font-weight: 900;
}

.is-staff-scene .pos-order-ticket-items {
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px dashed #79716b;
  list-style: none;
  overflow: hidden;
}

.is-staff-scene .pos-order-ticket-items li {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 5px;
  padding: 5px 1px;
  border-bottom: 1px dashed #aaa29c;
}

.is-staff-scene .pos-order-ticket-items li > b {
  color: #111;
  font-size: 0.9rem;
  text-align: center;
}

.is-staff-scene .pos-order-ticket-items li > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.is-staff-scene .pos-order-ticket-items strong {
  display: -webkit-box;
  overflow-wrap: anywhere;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  font-size: 0.82rem;
  line-height: 1.2;
}

.is-staff-scene .pos-order-ticket-items small {
  display: -webkit-box;
  color: #4f4741;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.is-staff-scene .pos-order-ticket-items .pos-order-ticket-more {
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  color: #8e4318;
  background: #fff3e6;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.is-staff-scene .pos-order-ticket-summary {
  padding-top: 1px;
}

.is-staff-scene .pos-order-ticket-summary b,
.is-staff-scene .pos-order-ticket-summary strong {
  font-size: 0.72rem;
}

.is-staff-scene .pos-order-ticket-summary strong {
  color: #a24814;
}

.is-staff-scene .pos-order-ticket-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
}

.is-staff-scene .pos-order-ticket-actions button {
  min-width: 0;
  min-height: 36px;
  padding: 3px 4px;
  border: 0;
  border-radius: 5px;
  color: #fffaf4;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
}

.is-staff-scene .pos-order-ticket-print {
  background: #292521;
}

.is-staff-scene .pos-order-ticket-actions .pos-order-resume {
  background: #4f443b;
}

.is-staff-scene .pos-order-ticket-actions .pos-order-complete {
  background: #b85b22;
}

.is-staff-scene .pos-order-ticket-actions .pos-order-delete {
  background: #8f3f31;
}

.is-staff-scene .pos-pending-order-detail {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(36, 28, 24, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(36, 28, 24, 0.1);
  overflow: hidden;
}

.is-staff-scene .pos-pending-detail-head {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 2px solid #2c2723;
}

.is-staff-scene .pos-pending-detail-head > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.is-staff-scene .pos-pending-detail-head em {
  padding: 5px 9px;
  border-radius: 5px;
  color: #fffaf4;
  background: #c55b18;
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 900;
}

.is-staff-scene .pos-pending-detail-head b {
  font-size: 1.08rem;
}

.is-staff-scene .pos-pending-detail-head strong {
  font-size: 1.42rem;
}

.is-staff-scene .pos-pending-detail-head > button {
  min-width: 142px;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  color: #fffaf4;
  background: #2d2926;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}

.is-staff-scene .pos-pending-detail-meta {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #4d423a;
  background: #f5ede3;
}

.is-staff-scene .pos-pending-detail-meta strong,
.is-staff-scene .pos-pending-detail-meta span {
  font-size: 0.88rem;
  font-weight: 900;
}

.is-staff-scene .pos-pending-detail-items {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  grid-auto-flow: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.is-staff-scene .pos-pending-order-detail[data-detail-density="medium"] .pos-pending-detail-items {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.is-staff-scene .pos-pending-order-detail[data-detail-density="large"] .pos-pending-detail-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.is-staff-scene .pos-pending-order-detail[data-detail-density="roomy"] .pos-pending-detail-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.is-staff-scene .pos-pending-detail-items li {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(36, 28, 24, 0.12);
  border-radius: 6px;
  background: #fffaf4;
  overflow: hidden;
}

.is-staff-scene .pos-pending-detail-items li > b {
  font-size: 1.14rem;
  text-align: center;
}

.is-staff-scene .pos-pending-detail-items li > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.is-staff-scene .pos-pending-detail-items strong {
  font-size: 1rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.is-staff-scene .pos-pending-detail-items small {
  color: #5f554d;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.is-staff-scene .pos-pending-order-detail[data-detail-density="large"] .pos-pending-detail-items li,
.is-staff-scene .pos-pending-order-detail[data-detail-density="roomy"] .pos-pending-detail-items li {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
}

.is-staff-scene .pos-pending-order-detail[data-detail-density="large"] .pos-pending-detail-items li > b,
.is-staff-scene .pos-pending-order-detail[data-detail-density="roomy"] .pos-pending-detail-items li > b {
  font-size: 1.3rem;
}

.is-staff-scene .pos-pending-order-detail[data-detail-density="large"] .pos-pending-detail-items strong,
.is-staff-scene .pos-pending-order-detail[data-detail-density="roomy"] .pos-pending-detail-items strong {
  font-size: 1.12rem;
}

.is-staff-scene .pos-pending-order-detail[data-detail-density="large"] .pos-pending-detail-items small,
.is-staff-scene .pos-pending-order-detail[data-detail-density="roomy"] .pos-pending-detail-items small {
  font-size: 0.94rem;
  line-height: 1.32;
}

.is-staff-scene .pos-pending-detail-footer {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(360px, 1fr);
  gap: 10px;
  align-items: center;
}

.is-staff-scene .pos-pending-detail-pagination {
  display: grid;
  grid-template-columns: 90px minmax(90px, 1fr) 90px;
  gap: 6px;
  align-items: center;
}

.is-staff-scene .pos-pending-detail-pagination button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  color: #fffaf4;
  background: #2d2926;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.is-staff-scene .pos-pending-detail-pagination button:disabled {
  color: #9d9289;
  background: #e4ddd5;
  cursor: default;
}

.is-staff-scene .pos-pending-detail-pagination strong {
  color: #4a3b31;
  font-size: 0.88rem;
  text-align: center;
}

.is-staff-scene .pos-pending-detail-footer .pos-order-ticket-actions {
  min-width: 0;
  grid-auto-rows: 42px;
}

.is-staff-scene .pos-pending-detail-footer .pos-order-ticket-actions button {
  font-size: 0.82rem;
}

.is-staff-scene .pos-completed-orders {
  gap: 5px;
  padding: 8px;
  height: 100%;
  align-self: stretch;
}

.is-staff-scene .pos-drawer-section .pos-completed-table-wrap {
  display: block;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: auto;
  border: 1px solid rgba(36, 28, 24, 0.1);
  border-radius: 8px;
  background: #fffdfa;
}

.is-staff-scene .pos-completed-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #302923;
  font-size: 0.9rem;
}

.is-staff-scene .pos-completed-table th,
.is-staff-scene .pos-completed-table td {
  padding: 5px;
  border-right: 1px solid rgba(36, 28, 24, 0.07);
  border-bottom: 1px solid rgba(36, 28, 24, 0.08);
  text-align: center;
  vertical-align: middle;
  line-height: 1.2;
}

.is-staff-scene .pos-completed-table th:last-child,
.is-staff-scene .pos-completed-table td:last-child {
  border-right: 0;
}

.is-staff-scene .pos-completed-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #3d3129;
  background: #ead9c5;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.is-staff-scene .pos-completed-sort-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 4px;
  align-items: center;
  white-space: normal;
}

.is-staff-scene .pos-completed-sort-head > span:first-child {
  min-width: 0;
  line-height: 1.15;
}

.is-staff-scene .pos-completed-sort-buttons {
  display: grid;
  grid-template-rows: repeat(2, 20px);
  gap: 2px;
}

.is-staff-scene .pos-completed-sort-buttons button {
  width: 28px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(71, 53, 42, 0.18);
  border-radius: 4px;
  color: #6f6258;
  background: #fffaf4;
  font-size: 0.62rem;
  line-height: 1;
  cursor: pointer;
}

.is-staff-scene .pos-completed-sort-buttons button.is-active {
  border-color: #a94713;
  color: #fffaf4;
  background: #c55b18;
  box-shadow: 0 2px 5px rgba(169, 71, 19, 0.18);
}

.is-staff-scene .pos-completed-table th:nth-child(1) {
  width: 130px;
}

.is-staff-scene .pos-completed-table th:nth-child(2),
.is-staff-scene .pos-completed-table th:nth-child(6) {
  width: 70px;
}

.is-staff-scene .pos-completed-table th:nth-child(3) {
  width: 190px;
}

.is-staff-scene .pos-completed-table th:nth-child(4),
.is-staff-scene .pos-completed-table th:nth-child(5) {
  width: 90px;
}

.is-staff-scene .pos-completed-order-id {
  text-align: center;
}

.is-staff-scene .pos-completed-order-id .pos-completed-order-link,
.is-staff-scene .pos-completed-order-id code {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

.is-staff-scene .pos-completed-order-id code {
  margin-left: 5px;
}

.is-staff-scene .pos-completed-table tbody tr.is-selected td {
  background: #fff0df;
}

.is-staff-scene .pos-completed-table tbody tr[data-completed-order-select] {
  cursor: pointer;
}

.is-staff-scene .pos-completed-table tbody tr[data-completed-order-select]:hover td {
  background: #fff7ec;
}

.is-staff-scene .pos-completed-table tbody tr.is-selected:hover td {
  background: #fff0df;
}

.is-staff-scene .pos-completed-table tbody tr.is-selected td:first-child {
  box-shadow: inset 4px 0 0 #d86f22;
}

.is-staff-scene .pos-completed-table code {
  color: #4d4037;
  font-family: "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.is-staff-scene .pos-completed-order-link,
.is-staff-scene .pos-completed-status {
  min-height: 32px;
  padding: 4px 7px;
  border: 0;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.is-staff-scene .pos-completed-order-link {
  color: #fffaf4;
  background: #2d2926;
}

.is-staff-scene .pos-completed-order-link span,
.is-staff-scene .pos-completed-order-link small {
  display: block;
}

.is-staff-scene .pos-completed-order-link small {
  margin-top: 2px;
  color: #f3d4bc;
  font-size: 0.68rem;
  line-height: 1;
}

.is-staff-scene .pos-completed-status {
  color: #62493a;
  background: #eadaca;
}

.is-staff-scene .pos-completed-status.is-confirmed {
  color: #fffaf4;
  background: #b85b22;
}

.is-staff-scene .pos-completed-empty td {
  height: 58px;
  color: #81746a;
  font-weight: 800;
}

.is-staff-scene .pos-drawer-print {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.is-staff-scene .pos-drawer-print button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff8f0;
  background: linear-gradient(180deg, #d86f22, #a74912);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.is-staff-scene .pos-print-queue {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(36, 28, 24, 0.12);
  border-radius: 11px;
  background: #f0e9df;
  overflow: hidden;
}

.is-staff-scene .pos-print-queue-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.is-staff-scene .pos-print-queue-head > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.is-staff-scene .pos-print-queue-head span {
  color: #2f2722;
  font-size: 1.06rem;
  font-weight: 900;
}

.is-staff-scene .pos-print-queue-head strong {
  color: #75685e;
  font-size: 0.78rem;
}

.is-staff-scene .pos-print-queue-head em {
  max-width: 142px;
  padding: 6px 8px;
  border-radius: 999px;
  color: #fff9f2;
  background: #2c2825;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.is-staff-scene .pos-ticket-stage {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 10px;
  border-radius: 9px;
  background: #302d2a;
  overflow: auto;
  scrollbar-gutter: stable;
}

.is-staff-scene .pos-kitchen-ticket {
  width: 100%;
  max-width: 310px;
  min-height: 100%;
  padding: 10px 9px 12px;
  color: #111;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
  font-family: "Microsoft JhengHei", "PingFang TC", sans-serif;
}

.is-staff-scene .pos-kitchen-ticket.is-empty {
  display: grid;
  place-items: center;
  color: #6b625b;
  text-align: center;
}

.is-staff-scene .pos-kitchen-ticket.is-empty p {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.is-staff-scene .pos-ticket-meta {
  display: grid;
  gap: 2px;
  padding-bottom: 6px;
  border-bottom: 2px solid #111;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
}

.is-staff-scene .pos-ticket-meta strong {
  font-size: 0.86rem;
}

.is-staff-scene .pos-ticket-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 42px;
  margin-top: 6px;
  color: #fff;
  background: #111;
}

.is-staff-scene .pos-ticket-banner b,
.is-staff-scene .pos-ticket-banner strong,
.is-staff-scene .pos-ticket-banner em {
  padding: 5px 8px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.is-staff-scene .pos-ticket-banner b,
.is-staff-scene .pos-ticket-banner strong {
  font-size: 1.35rem;
}

.is-staff-scene .pos-ticket-banner em {
  border-left: 2px solid #fff;
  font-size: 0.9rem;
}

.is-staff-scene .pos-ticket-reference {
  margin: 0;
  padding: 5px 2px;
  border-bottom: 2px solid #111;
  color: #111;
  font-size: 0.8rem;
  font-weight: 900;
}

.is-staff-scene .pos-ticket-items {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.is-staff-scene .pos-ticket-item {
  padding: 5px 2px;
  border-bottom: 1px dotted #555;
}

.is-staff-scene .pos-ticket-item-main {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: start;
}

.is-staff-scene .pos-ticket-item-main b {
  min-height: 26px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #111;
  font-size: 0.98rem;
  line-height: 1;
}

.is-staff-scene .pos-ticket-item-main strong {
  color: #111;
  font-size: 1.08rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.is-staff-scene .pos-ticket-item-main em {
  min-width: 50px;
  padding-top: 2px;
  color: #111;
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.is-staff-scene .pos-ticket-item p {
  margin: 2px 0 0 34px;
  color: #111;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.is-staff-scene .pos-ticket-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 2px;
  border-bottom: 2px solid #111;
  color: #111;
  font-size: 0.86rem;
  font-weight: 900;
}

.is-staff-scene .pos-ticket-summary strong {
  font-size: 1rem;
}

.is-staff-scene .pos-ticket-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 7px;
  color: #111;
  font-size: 0.72rem;
  font-weight: 900;
}

.is-staff-scene .pos-drawer-print .pos-print-primary.is-reprint {
  background: linear-gradient(180deg, #34302d, #171513);
}

.is-staff-scene .pos-drawer-print button:disabled {
  color: #8b8179;
  background: #ddd5cb;
  cursor: not-allowed;
  opacity: 1;
}

.is-staff-scene .pos-main {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr);
  overflow: hidden;
  background: #f5f1e9;
}

.is-staff-scene .pos-header {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 4px 5px;
  border-bottom: 1px solid rgba(36, 28, 24, 0.1);
  background: #f8f5ef;
}

.is-staff-scene .pos-brand-card {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(36, 28, 24, 0.1);
  border-radius: 6px;
  color: #302923;
  background: #fffdfa;
  font-size: 1rem;
  font-weight: 900;
}

.is-staff-scene .pos-service-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 98px));
  justify-content: start;
  gap: 6px;
}

.is-staff-scene .pos-service-tab {
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(36, 28, 24, 0.12);
  border-radius: 4px;
  color: #2d2824;
  background: #fffdf9;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.is-staff-scene .pos-service-tab.is-active {
  color: #fff9f2;
  border-color: transparent;
  background: linear-gradient(180deg, #d86f22, #a74912);
}

.is-staff-scene .pos-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.is-staff-scene .pos-scene-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 68px));
  gap: 5px;
  margin-right: 4px;
}

.is-staff-scene .pos-scene-button {
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(36, 28, 24, 0.12);
  border-radius: 6px;
  color: #36302b;
  background: #fffdfa;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.is-staff-scene .pos-scene-button.is-active {
  color: #fff9f2;
  border-color: transparent;
  background: linear-gradient(180deg, #d86f22, #a74912);
}

.is-staff-scene .pos-editor-button {
  min-width: 0;
}

.is-staff-scene .pos-service-tab[data-pos-drawer-toggle] {
  color: #fff8f0;
  border-color: #2a2623;
  background: #2a2623;
}

.is-staff-scene .pos-service-tab[data-pos-drawer-toggle].is-active {
  color: #fff8f0;
  border-color: #171411;
  background: linear-gradient(180deg, #3c352f, #191613);
  box-shadow: 0 8px 16px rgba(25, 22, 19, 0.24);
}

.is-staff-scene .pos-editor-button {
  color: #5a321f;
  border-color: rgba(197, 106, 34, 0.3);
  background: linear-gradient(180deg, #fff6ea, #f1dcc1);
}

.is-staff-scene .pos-editor-button.is-active {
  color: #fff9f2;
  border-color: rgba(167, 73, 18, 0.18);
  background: linear-gradient(180deg, #c56a22, #8f421f);
  box-shadow: 0 8px 16px rgba(167, 73, 18, 0.22);
}

.is-staff-scene .pos-header-clock {
  min-height: 34px;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px;
  align-items: center;
  justify-content: end;
  padding: 3px 10px;
  border: 1px solid rgba(36, 28, 24, 0.1);
  border-radius: 6px;
  color: #3b342e;
  background: #f0ece4;
  text-align: right;
}

.is-staff-scene .pos-clock-unit {
  display: grid;
  gap: 1px;
  justify-items: end;
  line-height: 1.05;
}

.is-staff-scene .pos-header-clock strong {
  font-size: 0.94rem;
  line-height: 1;
}

.is-staff-scene .pos-cart-toolbar-button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(36, 28, 24, 0.12);
  border-radius: 6px;
  background: #fffdfa;
  color: #36302b;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.is-staff-scene .menu-editor-panel {
  position: absolute;
  z-index: 70;
  inset: 8px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.is-staff-scene .menu-editor-panel.is-open {
  pointer-events: auto;
}

.is-staff-scene .menu-editor-card {
  position: relative;
  width: min(980px, 100%);
  height: min(700px, 100%);
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(36, 28, 24, 0.12);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(216, 111, 34, 0.14), transparent 180px),
    rgba(255, 250, 243, 0.98);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
}

.is-staff-scene .menu-editor-panel.is-open .menu-editor-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.is-staff-scene .menu-editor-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.2fr) 82px;
  gap: 12px;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(36, 28, 24, 0.08);
}

.is-staff-scene .menu-editor-head > div:first-child {
  min-width: 0;
  min-height: 38px;
  display: grid;
  align-content: center;
}

.is-staff-scene .menu-editor-head h3 {
  color: #2d2824;
  font-size: 1.1rem;
  line-height: 1.2;
}

.is-staff-scene .menu-editor-close,
.is-staff-scene .menu-editor-controls button,
.is-staff-scene .menu-editor-sort button,
.is-staff-scene .menu-editor-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.is-staff-scene .menu-editor-close {
  width: 100%;
  align-self: center;
}

.is-staff-scene .menu-editor-close,
.is-staff-scene .menu-editor-delete,
.is-staff-scene .menu-editor-sort button {
  color: #fff8f0;
  background: #2a2623;
}

.is-staff-scene .menu-editor-save,
.is-staff-scene .menu-editor-controls button {
  color: #fff8f0;
  background: linear-gradient(180deg, #d86f22, #a74912);
}

.is-staff-scene .menu-editor-controls [data-menu-editor-wizard] {
  color: #fff9f2;
  background: linear-gradient(180deg, #c56a22, #8f421f);
  box-shadow: 0 8px 16px rgba(167, 73, 18, 0.18);
}

.is-staff-scene .menu-editor-controls [data-menu-editor-new] {
  color: #6a3a1e;
  border: 1px solid rgba(197, 106, 34, 0.25);
  background: linear-gradient(180deg, #fff6ea, #f1dcc1);
}

.is-staff-scene .menu-editor-controls [data-menu-editor-reset] {
  color: #fff8f0;
  background: #2a2623;
}

.is-staff-scene .menu-editor-scope {
  min-width: 0;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(36, 28, 24, 0.08);
  border-radius: 10px;
  background: #f1eadf;
}

.is-staff-scene .menu-editor-scope button {
  min-height: 38px;
  border: 1px solid rgba(36, 28, 24, 0.1);
  border-radius: 8px;
  color: #3b342f;
  background: #fffdfa;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.is-staff-scene .menu-editor-scope button.is-active {
  color: #fff8f0;
  border-color: transparent;
  background: linear-gradient(180deg, #d86f22, #a74912);
  box-shadow: 0 8px 16px rgba(167, 73, 18, 0.24);
}

.is-staff-scene .menu-editor-category-strip {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 5px 6px;
  border: 1px solid rgba(36, 28, 24, 0.08);
  border-radius: 10px;
  background: #fff8ee;
  scrollbar-width: auto;
  scrollbar-color: #d86f22 #efe7dc;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.is-staff-scene .menu-editor-category-strip.is-hidden {
  display: none;
}

.is-staff-scene .menu-editor-category-strip span {
  flex: 0 0 auto;
  color: #6a5f55;
  font-size: 0.78rem;
  font-weight: 900;
}

.is-staff-scene .menu-editor-category-strip button {
  flex: 0 0 auto;
  min-width: 86px;
  min-height: 31px;
  padding: 5px 12px;
  border: 1px solid rgba(36, 28, 24, 0.1);
  border-radius: 999px;
  color: #3b342f;
  background: #fffdfa;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.is-staff-scene .menu-editor-category-strip button.is-active {
  color: var(--select-deep);
  border-color: var(--select-line);
  background: linear-gradient(180deg, var(--select-soft), var(--select-warm));
}

.is-staff-scene .menu-editor-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 92px 92px 92px;
  gap: 8px;
  align-items: end;
}

.is-staff-scene .menu-editor-controls label,
.is-staff-scene .menu-editor-fields label {
  display: grid;
  gap: 4px;
  color: #5d544c;
  font-size: 0.78rem;
  font-weight: 800;
}

.is-staff-scene .menu-editor-controls select,
.is-staff-scene .menu-editor-fields input,
.is-staff-scene .menu-editor-fields select {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid rgba(36, 28, 24, 0.12);
  border-radius: 7px;
  color: #29231f;
  background: #fffdfa;
  font-size: 0.94rem;
  font-weight: 800;
}

.is-staff-scene .menu-editor-controls select:disabled {
  color: #6d645c;
  background: #eee7dc;
  opacity: 1;
}

.is-staff-scene .menu-editor-guide {
  min-height: 34px;
  display: grid;
  align-items: center;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(216, 111, 34, 0.16);
  border-radius: 10px;
  color: #5d544c;
  background: #fff8ee;
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.35;
}

.is-staff-scene .menu-editor-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 8px;
}

.is-staff-scene .menu-editor-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(36, 28, 24, 0.08);
  border-radius: 10px;
  background: #f7f1e8;
  scrollbar-width: none;
}

.is-staff-scene .menu-editor-list::-webkit-scrollbar {
  display: none;
}

.is-staff-scene .menu-editor-list button {
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  justify-items: start;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid rgba(36, 28, 24, 0.08);
  border-radius: 8px;
  color: #2d2824;
  background: #fffdfa;
  text-align: left;
  cursor: pointer;
}

.is-staff-scene .menu-editor-list i {
  grid-row: span 2;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff8ef;
  background: #3a342f;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.is-staff-scene .menu-editor-list button.is-active {
  border-color: var(--select-line);
  background: linear-gradient(180deg, var(--select-soft), var(--select-warm));
}

.is-staff-scene .menu-editor-list strong {
  font-size: 0.9rem;
  line-height: 1.16;
}

.is-staff-scene .menu-editor-list span {
  color: #71685f;
  font-size: 0.74rem;
  line-height: 1.15;
}

.is-staff-scene .menu-editor-form {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  gap: 8px;
}

.is-staff-scene .menu-editor-fields {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(36, 28, 24, 0.08);
  border-radius: 10px;
  background: #fffaf4;
}

.is-staff-scene .menu-editor-field-section,
.is-staff-scene .menu-editor-fields label:first-of-type,
.is-staff-scene .menu-editor-fields label:first-child,
.is-staff-scene .menu-editor-fields label:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.is-staff-scene .menu-editor-field-section {
  min-height: 30px;
  display: grid;
  align-items: center;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--select-deep);
  background: linear-gradient(180deg, var(--select-soft), #f6c98d);
  font-size: 0.86rem;
  font-weight: 900;
}

.is-staff-scene .menu-editor-sort {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.is-staff-scene .menu-editor-actions {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
}

.is-staff-scene .menu-editor-status {
  min-height: 30px;
  display: grid;
  align-items: center;
  margin: 0;
  padding: 6px 9px;
  border-radius: 8px;
  color: #5d544c;
  background: #efe9df;
  font-size: 0.78rem;
  font-weight: 800;
}

.is-staff-scene .menu-editor-status[data-tone="success"] {
  color: var(--select-deep);
  background: var(--select-soft);
}

.is-staff-scene .menu-editor-status[data-tone="error"] {
  color: #8a2f20;
  background: #ffe2da;
}

.is-staff-scene .menu-editor-wizard {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  place-items: center;
  padding: 18px;
  border-radius: 14px;
  background: rgba(32, 27, 24, 0.42);
}

.is-staff-scene .menu-editor-wizard.is-open {
  display: grid;
}

.is-staff-scene .menu-editor-wizard-box {
  width: min(720px, 100%);
  max-height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  color: #2b2520;
  background:
    radial-gradient(circle at top left, rgba(216, 111, 34, 0.16), transparent 180px),
    #fffaf4;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.28);
}

.is-staff-scene .menu-editor-wizard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 10px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(36, 28, 24, 0.08);
}

.is-staff-scene .menu-editor-wizard-head strong {
  font-size: 1.12rem;
  line-height: 1.2;
}

.is-staff-scene .menu-editor-wizard-head button,
.is-staff-scene .menu-editor-wizard-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  color: #fff8f0;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.is-staff-scene .menu-editor-wizard-head button,
.is-staff-scene .menu-editor-wizard-actions button:first-child {
  background: #2a2623;
}

.is-staff-scene .menu-editor-wizard-intro {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid rgba(216, 111, 34, 0.18);
  border-radius: 10px;
  background: #fff3df;
}

.is-staff-scene .menu-editor-wizard-intro strong {
  color: var(--select-deep);
  font-size: 0.92rem;
}

.is-staff-scene .menu-editor-wizard-intro span,
.is-staff-scene .menu-editor-wizard-note {
  color: #5d544c;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.4;
}

.is-staff-scene .menu-editor-wizard-fields {
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding-right: 4px;
  scrollbar-width: auto;
  scrollbar-color: #c56a22 #efe7dc;
  -webkit-overflow-scrolling: touch;
}

.is-staff-scene .menu-editor-wizard-fields label {
  display: grid;
  gap: 4px;
  color: #5d544c;
  font-size: 0.78rem;
  font-weight: 850;
}

.is-staff-scene .menu-editor-wizard-fields label[data-menu-wizard-layer] {
  grid-column: span 1;
}

.is-staff-scene .menu-editor-wizard-fields label.is-hidden {
  display: none;
}

.is-staff-scene .menu-editor-wizard-fields input,
.is-staff-scene .menu-editor-wizard-fields select,
.is-staff-scene .menu-editor-wizard-fields textarea {
  width: 100%;
  min-height: 36px;
  padding: 8px 9px;
  border: 1px solid rgba(36, 28, 24, 0.12);
  border-radius: 8px;
  color: #29231f;
  background: #fffdfa;
  font-size: 0.92rem;
  font-weight: 800;
}

.is-staff-scene .menu-editor-wizard-fields textarea {
  min-height: 86px;
  resize: vertical;
  line-height: 1.35;
}

.is-staff-scene .menu-editor-wizard-note {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f3ede4;
}

.is-staff-scene .menu-editor-wizard-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8px;
}

.is-staff-scene .menu-editor-wizard-actions button:last-child {
  background: linear-gradient(180deg, #d86f22, #a74912);
}

.is-staff-scene .menu-editor-confirm {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  place-items: center;
  padding: 18px;
  border-radius: 14px;
  background: rgba(32, 27, 24, 0.44);
}

.is-staff-scene .menu-editor-confirm.is-open {
  display: grid;
}

.is-staff-scene .menu-editor-confirm-box {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 14px;
  color: #2b2520;
  background: #fffaf4;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.28);
}

.is-staff-scene .menu-editor-confirm-box strong {
  font-size: 1.1rem;
  line-height: 1.2;
}

.is-staff-scene .menu-editor-confirm-box p {
  margin: 0;
  color: #5f554c;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.is-staff-scene .menu-editor-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.is-staff-scene .menu-editor-confirm-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff8f0;
  font-size: 0.94rem;
  font-weight: 900;
  cursor: pointer;
}

.is-staff-scene .menu-editor-confirm-actions button:first-child {
  background: #302b27;
}

.is-staff-scene .menu-editor-confirm-actions button:last-child {
  background: linear-gradient(180deg, #d86f22, #a74912);
}

.is-staff-scene .menu-editor-confirm-actions button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.is-staff-scene .pos-content {
  width: 100%;
  min-height: 0;
  height: auto;
  min-width: 0;
  max-height: none;
  overflow: hidden;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 244px;
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: 5px;
  padding: 5px;
}

.is-staff-scene .pos-category-panel,
.is-staff-scene .pos-products-panel,
.is-staff-scene .pos-cart-panel {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(36, 28, 24, 0.08);
  border-radius: 8px;
  background: #faf7f1;
}

.is-staff-scene .pos-category-panel {
  grid-template-rows: auto minmax(0, 1fr);
  padding: 6px;
  gap: 6px;
}

.is-staff-scene .pos-all-items {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(36, 28, 24, 0.1);
  border-radius: 6px;
  background: #fffdfa;
  color: #2f2b27;
  font-size: 0.98rem;
  font-weight: 700;
}

.is-staff-scene .pos-category-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 6px;
  scrollbar-width: none;
}

.is-staff-scene .pos-category-list::-webkit-scrollbar {
  display: none;
}

.is-staff-scene .pos-category-button {
  min-height: 45px;
  padding: 7px 9px;
  border: 1px solid rgba(36, 28, 24, 0.08);
  border-radius: 6px;
  text-align: left;
  color: #3a352f;
  background: #f8f4ec;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
}

.is-staff-scene .pos-category-button.is-active {
  color: #c35f18;
  background: #fffaf2;
  box-shadow: inset 3px 0 0 #c35f18;
}

.is-staff-scene .pos-products-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 6px;
  gap: 6px;
  overflow: hidden;
}

.is-staff-scene .pos-products-panel.is-soup-layout {
  grid-template-rows: auto minmax(0, 1fr);
}

.is-staff-scene .pos-products-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.is-staff-scene .pos-order-reference,
.is-staff-scene .pos-table-reference,
.is-staff-scene .pos-pickup-reference {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.is-staff-scene .pos-table-reference[hidden],
.is-staff-scene .pos-pickup-reference[hidden] {
  display: none !important;
}

.is-staff-scene .pos-table-reference label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.is-staff-scene .pos-table-reference label > span,
.is-staff-scene .pos-pickup-reference > span {
  color: #6b5e54;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.is-staff-scene .pos-table-reference select,
.is-staff-scene .pos-table-reference button {
  min-height: 36px;
  border: 1px solid rgba(36, 28, 24, 0.14);
  border-radius: 7px;
  color: #302821;
  background: #fffdfa;
  font-size: 0.84rem;
  font-weight: 900;
}

.is-staff-scene .pos-table-reference select {
  min-width: 104px;
  padding: 5px 30px 5px 9px;
}

.is-staff-scene .pos-table-reference button {
  padding: 5px 10px;
  color: #fffaf4;
  background: #2d2926;
  cursor: pointer;
}

.is-staff-scene .pos-pickup-reference {
  min-height: 36px;
  padding: 4px 8px 4px 11px;
  border: 1px solid rgba(36, 28, 24, 0.12);
  border-radius: 8px;
  background: #fff3e4;
}

.is-staff-scene .pos-pickup-reference strong {
  min-width: 38px;
  color: #a94713;
  font-size: 1.18rem;
  line-height: 1;
  text-align: center;
}

.is-staff-scene .pos-kicker {
  color: #7d7369;
  font-size: 0.76rem;
  font-weight: 700;
}

.is-staff-scene .pos-products-header h3,
.is-staff-scene .pos-cart-header h3 {
  font-size: 1.04rem;
  line-height: 1.2;
}

.is-staff-scene .pos-selection-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #efebe3;
  color: #6d645c;
  font-size: 0.74rem;
  font-weight: 700;
}

.is-staff-scene .pos-products-grid {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  justify-content: start;
  align-content: start;
  grid-auto-rows: min-content;
  gap: var(--fit-gap, 5px);
  scrollbar-width: none;
}

.is-staff-scene .pos-products-grid::-webkit-scrollbar {
  display: none;
}

.is-staff-scene .pos-products-panel.is-soup-layout .pos-products-grid {
  display: none;
}

.is-staff-scene .pos-product-tile {
  min-height: var(--fit-row-min, 66px);
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4px;
  padding: 8px 6px;
  border: 1px solid rgba(36, 28, 24, 0.08);
  border-radius: 8px;
  text-align: center;
  color: #25201c;
  background: #e9e6df;
  cursor: pointer;
}

.is-staff-scene .pos-product-tile.is-active,
.is-staff-scene .pos-product-tile.is-aqua {
  background: linear-gradient(180deg, var(--select-soft), var(--select-warm));
}

.is-staff-scene .pos-product-tile.is-drink {
  background: linear-gradient(180deg, #f0efe8, #e2dfd7);
}

.is-staff-scene .pos-product-tile.is-cream {
  background: linear-gradient(180deg, #fff3d5, #f8e1af);
}

.is-staff-scene .pos-product-tile.is-active {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.86);
}

.is-staff-scene .pos-product-title {
  font-size: var(--fit-name-size, 0.92rem);
  font-weight: 800;
  line-height: 1.18;
}

.is-staff-scene .pos-product-subtitle,
.is-staff-scene .pos-product-meta {
  font-size: var(--fit-meta-size, 0.76rem);
  line-height: 1.2;
  color: #4e4741;
}

.is-staff-scene .pos-product-price {
  margin-top: 2px;
  font-size: calc(var(--fit-name-size, 0.92rem) + 0.04rem);
  font-weight: 800;
}

.is-staff-scene .pos-options-panel {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  display: grid;
  gap: 5px;
  scrollbar-width: none;
}

.is-staff-scene .pos-products-panel.is-section-layout {
  grid-template-rows: auto minmax(0, 1fr);
}

.is-staff-scene .pos-products-panel.is-section-layout .pos-products-grid {
  display: none;
}

.is-staff-scene .pos-products-panel.is-section-layout .pos-options-panel {
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 6px;
  padding-right: 0;
}

.is-staff-scene .pos-products-panel.is-soup-layout .pos-options-panel {
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-template-rows: max-content max-content max-content 36px;
  align-content: start;
  gap: 6px;
  padding-right: 0;
}

.is-staff-scene .pos-options-panel::-webkit-scrollbar {
  display: none;
}

.is-staff-scene .pos-option-section {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(36, 28, 24, 0.08);
  border-radius: 8px;
  background: #fffaf4;
  overflow: hidden;
}

.is-staff-scene .pos-products-panel.is-soup-layout .pos-option-section {
  gap: 5px;
  padding: 5px;
}

.is-staff-scene .pos-products-panel.is-section-layout .pos-option-section {
  gap: 5px;
  padding: 5px;
}

.is-staff-scene .pos-products-panel.is-soup-layout .is-soup-addon-section {
  align-content: start;
}

.is-staff-scene .pos-option-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
  color: #6e6459;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
}

.is-staff-scene .pos-products-panel.is-soup-layout .pos-option-section-head {
  min-height: 20px;
  font-size: 0.82rem;
}

.is-staff-scene .pos-products-panel.is-section-layout .pos-option-section-head {
  min-height: 20px;
  font-size: 0.82rem;
}

.is-staff-scene .pos-option-section .pos-option-grid {
  min-height: 0;
  align-content: start;
  overflow: hidden;
}

.is-staff-scene .pos-option-grid {
  display: grid;
  grid-template-columns: repeat(var(--fit-cols, 6), minmax(0, 1fr));
  gap: var(--fit-gap, 5px);
}

.is-staff-scene .pos-option-grid.is-compact {
  grid-template-columns: repeat(var(--fit-cols, 4), minmax(0, 1fr));
}

.is-staff-scene .pos-products-panel.is-section-layout .is-item-grid {
  grid-template-columns: repeat(var(--fit-cols, 5), minmax(0, 1fr));
}

.is-staff-scene .pos-products-panel.is-section-layout .is-addon-grid {
  grid-template-columns: repeat(var(--fit-cols, 4), minmax(0, 1fr));
}

.is-staff-scene .pos-products-panel.is-spread-layout .is-item-grid {
  grid-template-columns: repeat(var(--fit-cols, 4), minmax(0, 1fr));
}

.is-staff-scene .pos-products-panel.is-drink-layout .is-drink-grid {
  grid-template-columns: repeat(var(--fit-cols, 6), minmax(0, 1fr));
}

.is-staff-scene .pos-products-panel.is-drink-layout .is-compact {
  grid-template-columns: repeat(var(--fit-cols, 3), minmax(0, 1fr));
}

.is-staff-scene .pos-products-panel.is-soup-layout .is-soup-base-section .pos-option-grid {
  grid-template-columns: repeat(var(--fit-cols, 4), minmax(0, 1fr));
}

.is-staff-scene .pos-products-panel.is-soup-layout .is-soup-addon-section .pos-option-grid {
  grid-template-columns: repeat(var(--fit-cols, 5), minmax(0, 1fr));
  grid-auto-rows: var(--fit-row-min, 40px);
  gap: var(--fit-gap, 5px);
}

.is-staff-scene .pos-option-button {
  min-height: var(--fit-row-min, 43px);
  display: grid;
  gap: 2px;
  align-content: center;
  justify-items: center;
  padding: 5px 4px;
  border: 1px solid rgba(36, 28, 24, 0.08);
  border-radius: 6px;
  background: #ece9e1;
  color: #29231f;
  font-size: var(--fit-font-size, 0.78rem);
  font-weight: 700;
  cursor: pointer;
}

.is-staff-scene .pos-option-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.is-staff-scene .pos-option-button strong {
  font-size: var(--fit-meta-size, 0.82rem);
}

.is-staff-scene .pos-products-panel.is-soup-layout .pos-option-button {
  min-height: 38px;
  padding: 4px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
}

.is-staff-scene .pos-products-panel.is-section-layout .pos-option-button {
  min-height: var(--fit-row-min, 38px);
  padding: 4px;
  font-size: var(--fit-font-size, 0.8rem);
  font-weight: 800;
  line-height: 1.12;
}

.is-staff-scene .pos-products-panel.is-soup-layout .pos-option-button strong {
  font-size: 0.82rem;
  line-height: 1.15;
}

.is-staff-scene .pos-products-panel.is-section-layout .pos-option-button strong {
  font-size: var(--fit-meta-size, 0.78rem);
  line-height: 1.12;
}

.is-staff-scene .pos-products-panel.is-section-layout .is-primary-item-section .pos-option-button > span {
  font-size: var(--fit-name-size, 0.92rem);
  font-weight: 900;
  line-height: 1.12;
}

.is-staff-scene .pos-products-panel.is-drink-layout .is-drink-grid .pos-option-button {
  min-height: var(--fit-row-min, 42px);
}

.is-staff-scene .pos-products-panel.is-drink-layout .is-drink-grid .pos-option-button > span {
  font-size: var(--fit-name-size, 0.98rem);
}

.is-staff-scene .pos-products-panel.is-soup-layout .pos-option-button {
  font-size: 0.82rem;
}

.is-staff-scene .pos-products-panel.is-soup-layout .pos-option-button strong {
  font-size: 0.82rem;
  line-height: 1.15;
}

.is-staff-scene .pos-option-button.is-active {
  color: var(--select-deep);
  border-color: var(--select-line);
  background: linear-gradient(180deg, var(--select-soft), var(--select-warm));
}

.is-staff-scene .pos-empty-hint,
.empty-hint {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(36, 28, 24, 0.14);
  border-radius: 8px;
  color: #8b8176;
  background: #f7f1e8;
  font-size: 0.86rem;
  font-weight: 800;
}

.is-staff-scene .pos-empty-hint {
  grid-column: 1 / -1;
}

.action-button:disabled,
.is-staff-scene .pos-submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.is-staff-scene .pos-option-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 6px;
}

.is-staff-scene .pos-option-footer.is-single {
  grid-template-columns: 1fr;
}

.is-staff-scene .pos-submit-button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  color: #fff8f2;
  background: linear-gradient(180deg, #d86f22, #a74912);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.is-staff-scene .pos-products-panel.is-soup-layout .pos-option-footer {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 4px;
}

.is-staff-scene .pos-products-panel.is-soup-layout .pos-selection-chip {
  min-height: 28px;
  padding: 0 8px;
  overflow: hidden;
  font-size: 0.7rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.is-staff-scene .pos-products-panel.is-soup-layout .pos-submit-button {
  min-height: 36px;
  font-size: 0.86rem;
}

.is-staff-scene .pos-cart-panel {
  align-self: stretch;
  display: grid;
  grid-template-rows: auto auto minmax(72px, 1fr) auto auto;
  padding: 6px;
  gap: 5px;
}

.is-staff-scene .pos-cart-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.is-staff-scene .pos-cart-count {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff8f1;
  background: #4f4945;
  font-size: 0.96rem;
  font-weight: 800;
}

.is-staff-scene .pos-cart-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.is-staff-scene .pos-cart-toolbar-button {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 0.82rem;
}

.is-staff-scene .pos-cart-lines {
  display: grid;
  height: auto;
  max-height: none;
  min-height: 72px;
  overflow-y: auto;
  overflow-x: hidden;
  align-content: start;
  grid-auto-rows: min-content;
  gap: 0;
  margin: 0;
  padding: 2px 4px;
  border: 1px solid rgba(36, 28, 24, 0.06);
  border-radius: 8px;
  background: #fffdfa;
  scrollbar-width: none;
}

.is-staff-scene .pos-cart-lines::-webkit-scrollbar {
  display: none;
}

.is-staff-scene .pos-cart-lines .cart-line {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-height: 32px;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid rgba(36, 28, 24, 0.08);
  border-radius: 0;
  background: transparent;
}

.is-staff-scene .pos-cart-lines .cart-line:last-child {
  border-bottom: 0;
}

.is-staff-scene .pos-cart-lines .empty-card {
  display: grid;
  align-content: center;
  min-height: 118px;
  padding: 12px;
  border-radius: 8px;
}

.is-staff-scene .pos-cart-lines .empty-card strong {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.is-staff-scene .pos-cart-lines .empty-card .cart-note {
  white-space: normal;
}

.is-staff-scene .pos-cart-lines .cart-note {
  margin-top: 1px;
  overflow: hidden;
  color: #7a7066;
  font-size: 0.66rem;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.is-staff-scene .pos-cart-lines .cart-main strong {
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.is-staff-scene .pos-cart-lines .cart-side {
  grid-template-columns: auto auto;
  gap: 6px;
  align-items: center;
  justify-items: end;
}

.is-staff-scene .pos-cart-lines .cart-price {
  min-width: 42px;
  font-size: 0.84rem;
  text-align: right;
}

.is-staff-scene .pos-cart-lines .qty-button {
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 999px;
  font-size: 0.8rem;
}

.is-staff-scene .pos-cart-lines .qty-value {
  min-width: 18px;
  font-size: 0.82rem;
}

.is-staff-scene .pos-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f0ede7;
}

.is-staff-scene .pos-cart-total span {
  color: #60574f;
  font-size: 0.88rem;
  font-weight: 700;
}

.is-staff-scene .pos-cart-total strong {
  font-size: 1.56rem;
  line-height: 1;
}

.is-staff-scene .pos-cart-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.is-staff-scene .pos-action-warm,
.is-staff-scene .pos-action-hot {
  min-height: 43px;
  padding: 6px 4px;
  border: 0;
  border-radius: 8px;
  color: #fff8f2;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: normal;
  cursor: pointer;
}

.is-staff-scene .pos-action-warm {
  background: linear-gradient(180deg, #d86f22, #a74912);
}

.is-staff-scene .pos-action-hot {
  background: linear-gradient(180deg, #e47a2a, #b65318);
}

.is-staff-scene .pos-action-warm:disabled,
.is-staff-scene .pos-action-hot:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.is-staff-scene .menu-editor-category-strip,
.is-staff-scene .menu-editor-list,
.is-staff-scene .menu-editor-fields,
.is-staff-scene .pos-drawer-list,
.is-staff-scene .pos-completed-table-wrap,
.is-staff-scene .pos-ticket-stage,
.is-staff-scene .pos-category-list,
.is-staff-scene .pos-products-grid,
.is-staff-scene .pos-options-panel,
.is-staff-scene .pos-cart-lines {
  scrollbar-width: auto;
  scrollbar-color: #d86f22 #efe7dc;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.is-staff-scene .pos-category-list,
.is-staff-scene .pos-products-grid,
.is-staff-scene .pos-cart-lines {
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.is-staff-scene .pos-products-panel.is-section-layout .pos-options-panel,
.is-staff-scene .pos-products-panel.is-soup-layout .pos-options-panel {
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.is-staff-scene .pos-option-section .pos-option-grid {
  overflow: visible;
}

.is-staff-scene .menu-editor-category-strip::-webkit-scrollbar,
.is-staff-scene .menu-editor-list::-webkit-scrollbar,
.is-staff-scene .menu-editor-fields::-webkit-scrollbar,
.is-staff-scene .pos-drawer-list::-webkit-scrollbar,
.is-staff-scene .pos-completed-table-wrap::-webkit-scrollbar,
.is-staff-scene .pos-ticket-stage::-webkit-scrollbar,
.is-staff-scene .pos-category-list::-webkit-scrollbar,
.is-staff-scene .pos-products-grid::-webkit-scrollbar,
.is-staff-scene .pos-options-panel::-webkit-scrollbar,
.is-staff-scene .pos-cart-lines::-webkit-scrollbar {
  display: block;
  width: 16px;
  height: 16px;
}

.is-staff-scene .menu-editor-category-strip::-webkit-scrollbar-track,
.is-staff-scene .menu-editor-list::-webkit-scrollbar-track,
.is-staff-scene .menu-editor-fields::-webkit-scrollbar-track,
.is-staff-scene .pos-drawer-list::-webkit-scrollbar-track,
.is-staff-scene .pos-completed-table-wrap::-webkit-scrollbar-track,
.is-staff-scene .pos-ticket-stage::-webkit-scrollbar-track,
.is-staff-scene .pos-category-list::-webkit-scrollbar-track,
.is-staff-scene .pos-products-grid::-webkit-scrollbar-track,
.is-staff-scene .pos-options-panel::-webkit-scrollbar-track,
.is-staff-scene .pos-cart-lines::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #efe7dc;
}

.is-staff-scene .menu-editor-category-strip::-webkit-scrollbar-thumb,
.is-staff-scene .menu-editor-list::-webkit-scrollbar-thumb,
.is-staff-scene .menu-editor-fields::-webkit-scrollbar-thumb,
.is-staff-scene .pos-drawer-list::-webkit-scrollbar-thumb,
.is-staff-scene .pos-completed-table-wrap::-webkit-scrollbar-thumb,
.is-staff-scene .pos-ticket-stage::-webkit-scrollbar-thumb,
.is-staff-scene .pos-category-list::-webkit-scrollbar-thumb,
.is-staff-scene .pos-products-grid::-webkit-scrollbar-thumb,
.is-staff-scene .pos-options-panel::-webkit-scrollbar-thumb,
.is-staff-scene .pos-cart-lines::-webkit-scrollbar-thumb {
  min-height: 56px;
  border: 3px solid #efe7dc;
  border-radius: 999px;
  background: linear-gradient(180deg, #d86f22, #a74912);
}

.is-staff-scene .staff-layout,
.is-staff-scene .queue-panel,
.is-staff-scene .staff-menu-panel,
.is-staff-scene .order-panel {
  display: none !important;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  body:not(.is-staff-scene) {
    background:
      radial-gradient(circle at top left, rgba(255, 177, 101, 0.28), transparent 18rem),
      linear-gradient(180deg, #efe7de, #e5ddd3);
  }

  body:not(.is-staff-scene) .app-shell {
    width: min(100% - 12px, 680px);
    padding: 10px 0 24px;
  }

  body:not(.is-staff-scene) .topbar {
    position: sticky;
    top: 8px;
    z-index: 20;
    padding: 14px;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background:
      radial-gradient(circle at top right, rgba(255, 191, 132, 0.2), transparent 11rem),
      linear-gradient(145deg, #25363b, #39484c);
    box-shadow: 0 16px 28px rgba(31, 39, 42, 0.26);
  }

  body:not(.is-staff-scene) .topbar-copy {
    display: grid;
    gap: 4px;
  }

  body:not(.is-staff-scene) .topbar h1 {
    color: #fff7ef;
    font-size: clamp(1.34rem, 4.4vw, 1.76rem);
    line-height: 1.12;
  }

  body:not(.is-staff-scene) .lead {
    display: none;
  }

  body:not(.is-staff-scene) .eyebrow {
    margin-bottom: 4px;
    color: rgba(255, 244, 230, 0.76);
  }

  body:not(.is-staff-scene) .toolbar {
    gap: 10px;
  }

  body:not(.is-staff-scene) .toggle-set {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  body:not(.is-staff-scene) .toggle {
    flex: 1 1 0;
    min-height: 56px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    color: #f8efe5;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1rem;
    font-weight: 800;
  }

  body:not(.is-staff-scene) .toggle.is-active {
    background: linear-gradient(135deg, #f08f44, #cb5b1f);
    box-shadow: 0 10px 18px rgba(181, 82, 24, 0.28);
  }

  body:not(.is-staff-scene) .page-content {
    margin-top: 12px;
  }

  body:not(.is-staff-scene) .scene-head {
    display: grid;
    gap: 10px;
    align-items: start;
    margin-bottom: 12px;
  }

  body:not(.is-staff-scene) .scene-head h2 {
    font-size: clamp(1.38rem, 4vw, 1.72rem);
  }

  body:not(.is-staff-scene) .badge-row {
    gap: 8px;
  }

  body:not(.is-staff-scene) .soft-badge {
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid rgba(228, 136, 64, 0.22);
    border-radius: 16px;
    background: rgba(255, 248, 239, 0.9);
    font-size: 0.94rem;
  }

  body:not(.is-staff-scene) .customer-layout {
    gap: 12px;
  }

  body:not(.is-staff-scene) .customer-surface,
  body:not(.is-staff-scene) .customer-order-panel {
    padding: 14px;
    border: 1px solid rgba(70, 52, 42, 0.08);
    border-radius: 26px;
    background: rgba(255, 252, 248, 0.96);
    box-shadow: 0 12px 24px rgba(67, 50, 39, 0.1);
  }

  body:not(.is-staff-scene) .hero-card {
    padding: 16px;
    border-radius: 22px;
    background:
      radial-gradient(circle at top right, rgba(255, 191, 132, 0.18), transparent 11rem),
      linear-gradient(145deg, #28363b, #48565c);
  }

  body:not(.is-staff-scene) .hero-card h3 {
    font-size: clamp(1.22rem, 3.8vw, 1.48rem);
    line-height: 1.25;
  }

  body:not(.is-staff-scene) .hero-status {
    min-width: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.11);
  }

  body:not(.is-staff-scene) .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }

  body:not(.is-staff-scene) .info-card {
    padding: 14px;
    border-radius: 18px;
    background: #f4ede4;
  }

  body:not(.is-staff-scene) .info-card:last-child {
    grid-column: 1 / -1;
  }

  body:not(.is-staff-scene) .category-rail {
    gap: 10px;
    padding: 14px 0 10px;
  }

  body:not(.is-staff-scene) .chip {
    min-width: 116px;
    min-height: 66px;
    padding: 10px 14px;
    border: 1px solid rgba(72, 57, 49, 0.08);
    border-radius: 18px;
    white-space: normal;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    background: linear-gradient(180deg, #fffdf8, #f1ebe3);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
  }

  body:not(.is-staff-scene) .chip.is-active {
    background: linear-gradient(135deg, #f08f44, #cb5b1f);
  }

  body:not(.is-staff-scene) .customer-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body:not(.is-staff-scene) .menu-card {
    padding: 14px;
    gap: 12px;
    border-radius: 22px;
    box-shadow: 0 10px 18px rgba(65, 47, 35, 0.08);
  }

  body:not(.is-staff-scene) .menu-card::before {
    height: 4px;
    background: linear-gradient(90deg, #f2924a, #f4c8a7);
  }

  body:not(.is-staff-scene) .menu-head {
    gap: 10px;
  }

  body:not(.is-staff-scene) .menu-card h4 {
    font-size: clamp(1.14rem, 3vw, 1.3rem);
    line-height: 1.28;
  }

  body:not(.is-staff-scene) .menu-subtitle {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  body:not(.is-staff-scene) .price-pill {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border-radius: 14px;
    font-size: 1.06rem;
  }

  body:not(.is-staff-scene) .builder-card {
    padding: 16px;
    gap: 14px;
    border-radius: 24px;
    box-shadow: 0 12px 24px rgba(65, 47, 35, 0.08);
  }

  body:not(.is-staff-scene) .builder-top {
    gap: 12px;
    align-items: stretch;
  }

  body:not(.is-staff-scene) .builder-top h3 {
    font-size: clamp(1.28rem, 3.8vw, 1.48rem);
  }

  body:not(.is-staff-scene) .builder-total {
    min-width: 0;
    padding: 14px 12px;
    border-radius: 18px;
  }

  body:not(.is-staff-scene) .builder-grid {
    gap: 12px;
  }

  body:not(.is-staff-scene) .builder-section {
    padding: 14px;
    border-radius: 18px;
    background: #fff8ef;
  }

  body:not(.is-staff-scene) .builder-button,
  body:not(.is-staff-scene) .addon-toggle {
    min-height: 88px;
    border-radius: 18px;
  }

  body:not(.is-staff-scene) .option-title {
    font-size: clamp(1.08rem, 2.8vw, 1.2rem);
  }

  body:not(.is-staff-scene) .option-meta,
  body:not(.is-staff-scene) .addon-price {
    font-size: 0.94rem;
  }

  body:not(.is-staff-scene) .choice-button,
  body:not(.is-staff-scene) .spread-button,
  body:not(.is-staff-scene) .action-button,
  body:not(.is-staff-scene) .primary-action,
  body:not(.is-staff-scene) .secondary-action {
    min-height: 58px;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 800;
  }

  body:not(.is-staff-scene) .customer-order-panel {
    position: sticky;
    top: auto;
    bottom: 10px;
    z-index: 8;
  }

  body:not(.is-staff-scene) .panel-head {
    align-items: center;
  }

  body:not(.is-staff-scene) .panel-head h3 {
    font-size: 1.24rem;
  }

  body:not(.is-staff-scene) .order-count {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  body:not(.is-staff-scene) .cart-lines {
    margin: 14px 0;
    max-height: 280px;
    overflow: auto;
  }

  body:not(.is-staff-scene) .cart-line {
    padding-bottom: 10px;
  }

  body:not(.is-staff-scene) .qty-button {
    min-width: 44px;
    min-height: 44px;
    border-radius: 14px;
  }

  body:not(.is-staff-scene) .order-meta {
    gap: 10px;
  }

  body:not(.is-staff-scene) .order-meta div {
    padding: 12px;
    border-radius: 16px;
    background: #f4ede4;
  }

  body:not(.is-staff-scene) .action-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 1200px) {
  .customer-layout,
  .staff-layout,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .order-panel {
    position: static;
  }

  .staff-menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 980px) {
  .topbar,
  .scene-head,
  .staff-toolbar {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .toolbar,
  .toggle-set {
    justify-content: flex-start;
  }

.info-grid,
.order-meta {
  grid-template-columns: 1fr;
}

  .is-staff-scene .pos-header {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }

  .is-staff-scene .pos-header-tools {
    flex-wrap: wrap;
  }

  .is-staff-scene .pos-scene-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-right: 0;
  }

  .is-staff-scene .pos-scene-button {
    min-height: 42px;
    font-size: 0.94rem;
  }
}

@media (min-width: 981px) and (max-width: 1280px) {
  .app-shell {
    width: min(100% - 20px, 1280px);
  }

  .topbar {
    padding: 22px;
  }

  .staff-layout {
    grid-template-columns: 210px minmax(0, 1fr) 300px;
    gap: 12px;
  }

  .is-staff-scene .staff-layout {
    grid-template-columns: 176px minmax(0, 1fr) 284px;
    gap: 10px;
  }

  .queue-panel,
  .staff-menu-panel,
  .order-panel {
    padding: 16px;
  }

  .is-staff-scene .queue-panel,
  .is-staff-scene .staff-menu-panel,
  .is-staff-scene .order-panel {
    padding: 14px;
  }

  .staff-menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
    gap: 10px;
  }

.is-staff-scene .staff-menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .builder-button,
  .addon-toggle {
    min-height: 88px;
    padding: 14px 12px;
  }

  .is-staff-scene .builder-button,
  .is-staff-scene .addon-toggle {
    min-height: 82px;
    padding: 12px 10px;
  }

  .is-staff-scene .menu-card {
    padding: 14px;
    border-radius: 16px;
  }

  .is-staff-scene .menu-card h4 {
    font-size: 1.02rem;
  }

  .is-staff-scene .menu-subtitle {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .is-staff-scene .price-pill {
    min-height: 40px;
    min-width: 76px;
    padding: 8px 12px;
    font-size: 0.96rem;
  }

  .is-staff-scene .menu-actions {
    margin-top: 8px;
  }

  .option-title {
    font-size: clamp(1.08rem, 0.46vw + 0.92rem, 1.28rem);
  }

  .option-meta,
  .addon-price {
    font-size: 0.92rem;
  }

  .builder-step {
    font-size: 1.02rem;
  }

  .builder-total strong {
    font-size: 1.46rem;
  }

  .panel-head h3,
  .staff-toolbar h3 {
    font-size: 1.18rem;
  }

  .is-staff-scene .order-count {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 640px) {
  body:not(.is-staff-scene) .customer-menu-grid {
    grid-template-columns: 1fr;
  }

  body:not(.is-staff-scene) .info-grid,
  body:not(.is-staff-scene) .order-meta,
  body:not(.is-staff-scene) .action-group {
    grid-template-columns: 1fr;
  }

  body:not(.is-staff-scene) .chip {
    min-width: 104px;
    min-height: 60px;
    font-size: 0.94rem;
  }

  body:not(.is-staff-scene) .toggle {
    min-height: 54px;
    font-size: 0.94rem;
  }

  .app-shell {
    width: min(100% - 18px, 1520px);
    padding-top: 18px;
  }

  .topbar,
  .customer-surface,
  .queue-panel,
  .staff-menu-panel,
  .order-panel {
    padding: 16px;
  }

  .hero-card,
  .scene-head,
  .panel-head,
  .builder-top {
    flex-direction: column;
  }

  .hero-status {
    min-width: auto;
    width: 100%;
  }

  .menu-card {
    padding: 16px;
  }

  .menu-card h4 {
    font-size: 1.22rem;
  }

  .builder-card {
    padding: 18px;
  }

  .builder-button,
  .addon-toggle {
    min-height: 108px;
  }

  .spread-matrix-head,
  .spread-matrix-row {
    grid-template-columns: minmax(88px, 120px) repeat(3, minmax(0, 1fr));
  }

  .action-button,
  .choice-button,
  .spread-button,
  .primary-action,
  .secondary-action {
    min-height: 56px;
  }
}

/* Commercial cloud controls stay outside the fixed iPad layout flow. */
.commercial-status-button {
  position: fixed;
  z-index: 160;
  left: 10px;
  bottom: 10px;
  min-width: 104px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(43, 39, 36, 0.22);
  border-radius: 999px;
  background: #2b2724;
  color: #fff;
  font: 800 13px/1.1 "Noto Sans TC", sans-serif;
  box-shadow: 0 5px 18px rgba(43, 39, 36, 0.2);
}

.commercial-status-button[data-tone="online"] { background: #40594b; }
.commercial-status-button[data-tone="syncing"] { background: #9a521e; }
.commercial-status-button[data-tone="error"] { background: #9d352a; }

.commercial-console {
  position: fixed;
  z-index: 159;
  left: 10px;
  bottom: 52px;
  display: grid;
  gap: 8px;
  width: min(300px, calc(100vw - 20px));
  padding: 16px;
  border: 1px solid rgba(43, 39, 36, 0.16);
  border-radius: 16px;
  background: #fffaf1;
  color: #2b2724;
  box-shadow: 0 14px 40px rgba(43, 39, 36, 0.25);
}

.commercial-console[hidden] { display: none; }
.commercial-console > strong { font-size: 18px; }
.commercial-console > span { font-size: 14px; color: #6e6259; }
.commercial-console > small { color: #8a7d72; }
.commercial-console > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.commercial-console button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: #e9dfd0;
  color: #2b2724;
  font-weight: 800;
}

.commercial-login-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(43, 39, 36, 0.72);
  backdrop-filter: blur(8px);
}

.commercial-login-card {
  display: grid;
  gap: 15px;
  width: min(440px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(201, 93, 20, 0.28);
  border-radius: 24px;
  background: #fffaf1;
  color: #2b2724;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.commercial-login-card > p:first-child {
  margin: 0;
  color: #c95d14;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.commercial-login-card h2 { margin: -8px 0 4px; font-size: 30px; }
.commercial-login-card label { display: grid; gap: 7px; font-weight: 800; }
.commercial-login-card input {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #d8cbbb;
  border-radius: 10px;
  background: #fff;
  color: #2b2724;
  font: 700 18px/1.2 "Noto Sans TC", sans-serif;
}

.commercial-login-card button {
  min-height: 52px;
  border: 0;
  border-radius: 11px;
  background: #c95d14;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.commercial-login-message { min-height: 22px; margin: 0; color: #9d352a; font-weight: 800; }

.commercial-admin-overlay {
  position: fixed;
  z-index: 1001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(43, 39, 36, 0.72);
}

.commercial-admin-card {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 12px;
  width: min(920px, calc(100vw - 24px));
  height: min(720px, calc(100dvh - 24px));
  padding: 20px;
  overflow: hidden;
  border-radius: 22px;
  background: #fffaf1;
  color: #2b2724;
}

.commercial-admin-card > header { display: flex; align-items: center; justify-content: space-between; }
.commercial-admin-card h2 { margin: 3px 0 0; }
.commercial-admin-card header button,
.commercial-admin-card form > button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: #c95d14;
  color: #fff;
  font-weight: 900;
}

.commercial-admin-card > form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border-radius: 12px;
  background: #efe5d7;
}

.commercial-admin-card label { display: grid; gap: 5px; font-weight: 800; }
.commercial-admin-card input,
.commercial-admin-card select { min-height: 42px; padding: 0 9px; border: 1px solid #d4c5b4; border-radius: 8px; background: #fff; }
.commercial-admin-card > p { min-height: 20px; margin: 0; color: #9d352a; font-weight: 800; }
.commercial-user-list { display: grid; gap: 8px; align-content: start; overflow: auto; padding-right: 5px; }
.commercial-user-list form {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto auto;
  gap: 9px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #dfd4c7;
  border-radius: 10px;
  background: #fff;
}

.commercial-user-list form > label { display: flex; grid-template-columns: none; align-items: center; gap: 5px; }

@media (max-width: 760px) {
  .commercial-admin-card > form { grid-template-columns: 1fr 1fr; overflow: auto; }
  .commercial-user-list form { grid-template-columns: 1fr 1fr; }
}
