/* Generated by scripts/build_styles_bundle.py. Do not edit public/styles.css directly. */
:root { --sciencebar-style-ready: "1.244"; }

/* Source: css/tokens.css */
/* Design tokens shared across all ScienceBar ordering screens. */

:root {
  color-scheme: dark;
  --ink-strong: #fffaff;
  --ink: #f7f0ff;
  --muted: #b9abc9;
  --muted-2: #8f7ba6;
  --line: #3c2a58;
  --line-strong: #6a4c92;
  --paper: #0b0613;
  --surface: #120a1d;
  --panel: #171022;
  --panel-2: #211631;
  --deep: #07030c;
  --accent: #b26cff;
  --accent-2: #77d7ff;
  --good: #76e2a7;
  --warn: #f4b35e;
  --danger: #ff7f94;
  --call: #ffec5c;
  --checkout: #ff86d2;
  --pending: #83edff;
  --active-table: #65f7be;
  --focus-ring: rgba(119, 215, 255, 0.42);
  --panel-glass: rgba(23, 16, 34, 0.88);
  --shadow: 0 18px 50px rgba(2, 0, 8, 0.44);
  --shadow-soft: 0 10px 28px rgba(2, 0, 8, 0.28);
  --radius: 8px;
  --customer-vh: 1vh;
  --customer-viewport-height: calc(var(--customer-vh) * 100);
  --customer-sticky-height: calc(env(safe-area-inset-top) + 110px);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Segoe UI", sans-serif;
}

/* Source: css/base.css */
/* Base elements and small shared primitives. */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line-strong) var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(178, 108, 255, 0.16), transparent 36%),
    linear-gradient(180deg, #13091f 0%, var(--paper) 46%, #08040e 100%);
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(178, 108, 255, 0.18);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: var(--accent-2);
}

button,
.button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)), var(--panel);
  color: var(--ink);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 120ms ease;
}

button:hover,
.button:hover {
  border-color: rgba(178, 108, 255, 0.72);
  box-shadow: 0 8px 22px rgba(72, 28, 119, 0.28);
  color: var(--ink-strong);
}

button:active,
.button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

button:focus-visible,
.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top));
  left: 8px;
  z-index: 200;
  transform: translateY(-160%);
  border: 1px solid var(--accent-2);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--deep);
  padding: 10px 12px;
  font-weight: 900;
  text-decoration: none;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.customer-body:not(.keyboard-navigation) .skip-link:focus-visible {
  transform: translateY(-160%);
}

.primary {
  background: linear-gradient(180deg, #c18aff, #8c4fe0);
  border-color: rgba(211, 176, 255, 0.72);
  color: #fff;
}

.quiet {
  background: transparent;
}

.danger {
  border-color: rgba(255, 127, 148, 0.42);
  color: var(--danger);
}

.good {
  border-color: rgba(118, 226, 167, 0.42);
  color: var(--good);
}

.small-button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 13px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #120a1d;
  color: var(--ink);
  min-height: 46px;
  padding: 10px 12px;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
}

select {
  color-scheme: dark;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent-2);
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.center-state {
  min-height: 100vh;
  min-height: var(--customer-viewport-height);
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 24px;
}

/* Source: css/screens/version-history.css */
/* Version history page styles. */

.version-history-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(178, 108, 255, 0.16), transparent 34rem),
    linear-gradient(180deg, #0b0613 0%, #12091f 48%, #09050f 100%);
}

.version-history-page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: calc(36px + env(safe-area-inset-top)) 18px 48px;
}

.version-history-hero {
  display: grid;
  gap: 14px;
  padding: 18px 0 28px;
  border-bottom: 1px solid rgba(119, 215, 255, 0.16);
}

.version-history-kicker {
  margin: 0;
  color: var(--accent-3);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.version-history-hero h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(34px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}

.version-history-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.version-history-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 4px;
  border: 1px solid rgba(119, 215, 255, 0.36);
  border-radius: var(--radius);
  background: rgba(23, 16, 34, 0.72);
  color: var(--ink-strong);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.version-history-back:hover,
.version-history-back:focus-visible {
  border-color: rgba(119, 215, 255, 0.72);
  background: rgba(47, 31, 71, 0.86);
}

.version-history-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border-top: 1px solid rgba(247, 240, 255, 0.12);
  border-bottom: 1px solid rgba(247, 240, 255, 0.12);
}

.version-history-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.version-history-table th,
.version-history-table td {
  border-bottom: 1px solid rgba(247, 240, 255, 0.09);
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
}

.version-history-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(11, 6, 19, 0.96);
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 900;
}

.version-history-table td {
  color: rgba(247, 240, 255, 0.86);
  font-size: 14px;
  line-height: 1.65;
}

.version-history-table td:first-child {
  width: 118px;
  color: var(--accent-3);
  font-weight: 900;
  white-space: nowrap;
}

.version-history-table td:last-child {
  width: 112px;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.version-history-table tbody tr:hover {
  background: rgba(178, 108, 255, 0.08);
}

/* Source: css/screens/qr.css */
/* QR export page styles. */

.qr-page-head {
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: rgba(11, 6, 19, 0.92);
  border-bottom: 1px solid rgba(82, 58, 122, 0.72);
}

.qr-title {
  margin: 0;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 22px 22px;
}

.qr-card {
  break-inside: avoid;
  min-height: 310px;
  border: 1px solid #222;
  background: #fff;
  color: #111;
  padding: 18px;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border-radius: 2px;
}

.qr-card img {
  width: 156px;
  height: 156px;
  image-rendering: pixelated;
}

.qr-card h2 {
  margin: 0 0 8px;
  font-size: 30px;
  color: #111;
  line-height: 1.05;
}

.qr-card p {
  margin: 0;
  color: #333;
  line-height: 1.45;
}

.qr-url {
  margin-top: 12px;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: #555;
}

/* Source: css/runtime/customer-entry.css */
/* Customer entry gate. Split from runtime.css; keep import order stable. */
.guest-start {
  min-height: calc(100vh - 60px);
  min-height: calc(var(--customer-viewport-height) - 60px);
  min-height: calc(100svh - 60px);
  align-content: start;
  padding: clamp(18px, 4.2svh, 36px) 24px calc(24px + env(safe-area-inset-bottom));
}

.guest-start-panel {
  width: min(430px, 100%);
  display: grid;
  gap: 11px;
  align-content: start;
}

.access-code-field input {
  min-height: 62px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
  .guest-start {
    padding: clamp(14px, 3.4svh, 24px) clamp(14px, 4vw, 20px) calc(18px + env(safe-area-inset-bottom));
  }

  .guest-start-panel {
    width: min(400px, 100%);
    gap: 9px;
  }

  .access-code-field input {
    min-height: 58px;
    font-size: 26px;
    letter-spacing: 0.18em;
  }
}

.entry-topbar {
  position: sticky;
  top: 0;
  z-index: 34;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: calc(9px + env(safe-area-inset-top)) 18px 9px;
  border-bottom: 1px solid rgba(119, 215, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
    rgba(9, 5, 16, 0.95);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(2, 0, 8, 0.2);
}

.entry-brand {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.entry-brand strong {
  color: var(--ink-strong);
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
}

.entry-brand > span {

/* Source: css/runtime/app-shell.css */
/* Shared app shell. Split from runtime.css; keep import order stable. */
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.entry-topbar .status-pill {
  flex: 0 0 auto;
}

.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
  background: rgba(11, 6, 19, 0.94);
  border-bottom: 1px solid rgba(82, 58, 122, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(2, 0, 8, 0.22);
}

.brand {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0;
  color: var(--ink-strong);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.brand-title-link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

.brand-title-link:hover,
.brand-title-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(119, 215, 255, 0.72);
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

/* Source: css/runtime/staff-topbar.css */
/* Staff topbar and sound controls. Split from runtime.css; keep import order stable. */
.staff-topbar {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(380px, auto) max-content;
  align-items: center;
  gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
}

.staff-topbar .brand strong {
  font-size: 16px;
  white-space: nowrap;
}

.staff-topbar .brand span {
  font-size: 11px;
  white-space: nowrap;
}

.staff-topbar .top-actions {
  flex-wrap: nowrap;
  gap: 6px;
}

.staff-topbar .top-actions button,
.staff-topbar .top-actions .button {
  min-height: 40px;
  padding-inline: 11px;
  font-size: 13px;
}

.table-display-code {
  --table-badge-bg:
    linear-gradient(180deg, rgba(119, 215, 255, 0.22), rgba(178, 108, 255, 0.14)),
    rgba(23, 16, 34, 0.92);
  --table-badge-border: rgba(119, 215, 255, 0.62);
  --table-badge-text: var(--ink-strong);
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  min-width: 2.9em;
  min-height: 2.45em;
  padding: 0.22em 0.42em 0.25em;
  border: 1px solid var(--table-badge-border);
  border-radius: var(--radius);
  background: var(--table-badge-bg);
  color: var(--table-badge-text);
  box-shadow:
    0 8px 18px rgba(2, 0, 8, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  letter-spacing: 0;
  vertical-align: middle;
}

.table-code-main {
  font-size: 2em;
  font-weight: 950;
  line-height: 0.82;
}

.history-table-code .table-code-main {
  color: var(--history-table-code-color, var(--table-badge-text));
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.28),
    0 1px 0 rgba(0, 0, 0, 0.36);
}

.history-table-code .table-code-c1 {
  --history-table-code-color: #78f0ff;
}

.history-table-code .table-code-c {
  --history-table-code-color: #ffffff;
}

.history-table-code .table-code-c2 {
  --history-table-code-color: #a8ff7a;
}

.history-table-code .table-code-c3 {
  --history-table-code-color: #ffe06b;
}

.history-table-code .table-code-c4 {
  --history-table-code-color: #ff9a76;
}

.history-table-code .table-code-c5 {
  --history-table-code-color: #ff78d8;
}

.history-table-code .table-code-c6 {
  --history-table-code-color: #bfa3ff;
}

.history-table-code .table-code-ta {
  --history-table-code-color: #66ffd7;
}

.history-table-code .table-code-tb {
  --history-table-code-color: #f4ff72;
}

.table-code-suffix {
  font-size: 0.5em;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 0.18em 1px;
  opacity: 0.86;
}

.qr-card .table-display-code {
  --table-badge-bg: #f5f1fb;
  --table-badge-border: #222;
  --table-badge-text: #111;
  box-shadow: none;
}

.customer-body .table-display-code {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 1px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  vertical-align: baseline;
}

.customer-body .table-code-main {
  font-size: 1em;
  font-weight: 900;
  line-height: 1;
}

.customer-body .table-code-suffix {
  font-size: 0.72em;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.04em 1px;
  opacity: 0.78;
}

.customer-table-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.customer-header-version {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  white-space: nowrap;
}

.staff-sound-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-left: auto;
  padding: 5px 7px;
  border: 1px solid rgba(119, 215, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(23, 16, 34, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.staff-sound-toggle,
.staff-volume-control,
.staff-sound-test-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.staff-sound-toggle input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.staff-sound-toggle strong {
  min-width: 28px;
  color: var(--ink);
  font-size: 12px;
}

.staff-volume-control input {
  width: 96px;
  min-height: 28px;
  padding: 0;
  accent-color: var(--accent-2);
}

.staff-sound-test-control select {
  min-height: 32px;
  max-width: 118px;
  padding: 0 28px 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(119, 215, 255, 0.24);
  background: rgba(10, 7, 18, 0.82);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.staff-sound-controls .small-button {
  min-height: 32px;
  padding-inline: 9px;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
}

.segmented button {
  border: 0;
  border-radius: 0;
  min-height: 40px;
  min-width: 54px;
  background: transparent;
}

.segmented button.active {
  background: #f7f0ff;
  color: #fff;
  color: var(--deep);
}

/* Source: css/runtime/customer-language-entry.css */
/* Customer language and entry controls. Split from runtime.css; keep import order stable. */
.language-menu {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-width: 0;
  isolation: isolate;
}

.language-menu.open {
  z-index: 220;
}

.language-menu-button {
  min-height: 44px;
  min-width: 0;
  padding: 0 10px;
  gap: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.language-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--accent-2);
}

.language-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-current {
  display: inline-block;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.language-chevron {
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 221;
  width: min(220px, calc(100vw - 24px));
  max-height: min(calc(var(--customer-vh) * 62), 430px);
  max-height: min(62svh, 430px);
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(119, 215, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(18, 10, 28, 0.99);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.language-option {
  width: 100%;
  min-height: 44px;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 850;
}

.language-option:hover,
.language-option:focus-visible {
  background: rgba(178, 108, 255, 0.16);
  box-shadow: none;
}

.language-option.active {
  background: #f7f0ff;
  color: var(--deep);
}

.guest-start-language {
  position: relative;
  z-index: 140;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 0 4px;
}

.initial-language-menu {
  justify-content: center;
}

.initial-language-menu .language-menu-button {
  min-height: 72px;
  min-width: min(100%, 292px);
  padding: 0 18px;
  gap: 12px;
  border-color: rgba(119, 215, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04)),
    rgba(23, 16, 34, 0.94);
  box-shadow:
    0 12px 28px rgba(2, 0, 8, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-size: 24px;
}

.initial-language-menu .language-icon {
  width: 40px;
  height: 40px;
}

.initial-language-menu .language-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.4;
}

.initial-language-menu .language-current {
  max-width: 192px;
}

.initial-language-menu .language-chevron {
  font-size: 26px;
}

.initial-language-menu .language-dropdown {
  left: 50%;
  right: auto;
  width: min(320px, calc(100vw - 32px));
  transform: translateX(-50%);
}

.guest-table-chip {
  width: max-content;
  min-width: 0;
  min-height: 28px;
  margin: 0 auto 2px;
  padding: 4px 14px;
  border: 1px solid rgba(244, 179, 94, 0.32);
  background:
    linear-gradient(180deg, rgba(244, 179, 94, 0.2), rgba(244, 179, 94, 0.1)),
    rgba(36, 22, 36, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.guest-start-panel > div:not(.guest-start-language) {
  display: grid;
  gap: 7px;
}

.guest-start h1 {
  letter-spacing: 0;
}

.guest-start p:not(.status-pill) {
  max-width: 28rem;
}

.guest-start .field {
  gap: 8px;
}

.access-code-warning {
  width: max-content;
  max-width: 100%;
  justify-self: center;
  min-height: 28px;
  margin: 2px 0 0;
  padding: 4px 11px;
  border: 1px solid rgba(244, 179, 94, 0.2);
  border-radius: 999px;
  background: rgba(244, 179, 94, 0.09);
  color: #f4d1a2;
  font-size: 12px;
  font-weight: 850;
}

.guest-start .full-width-action {
  min-height: 56px;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 900;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(119, 215, 255, 0.14);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.new {
  background: rgba(178, 108, 255, 0.18);
  color: var(--accent);
}

.status-pill.good {
  background: rgba(118, 226, 167, 0.14);
  color: var(--good);
}

.status-pill.completion-status-pill {
  border: 1px solid rgba(118, 226, 167, 0.48);
  background:
    linear-gradient(180deg, rgba(118, 226, 167, 0.22), rgba(118, 226, 167, 0.1)),
    rgba(10, 32, 24, 0.72);
  color: #d9ffe8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.status-pill.warn {
  background: rgba(244, 179, 94, 0.16);
  color: var(--warn);
}

.status-pill.danger {
  background: rgba(255, 127, 148, 0.14);
  color: var(--danger);
}

@media (max-width: 420px) {
  .initial-language-menu .language-menu-button {
    min-height: 64px;
    min-width: min(100%, 260px);
    padding: 0 15px;
    gap: 10px;
    font-size: 21px;
  }

  .initial-language-menu .language-icon,
  .initial-language-menu .language-icon svg {
    width: 34px;
    height: 34px;
  }

  .initial-language-menu .language-current {
    max-width: 170px;
  }

  .initial-language-menu .language-chevron {
    font-size: 22px;
  }

  .guest-start-panel > div:not(.guest-start-language) {
    gap: 6px;
  }

  .access-code-warning {
    width: auto;
    padding: 4px 10px;
    text-align: center;
  }

  .guest-start .full-width-action {
    min-height: 52px;
    margin-top: 2px;
  }
}

/* Source: css/runtime/customer-order.css */
/* Customer menu and bottom dock. Split from runtime.css; keep import order stable. */
.customer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.customer-body {
  padding-bottom: calc(74px + env(safe-area-inset-bottom));
}

.customer-body.customer-entry-body {
  padding-bottom: 0;
}

.customer-order-app {
  min-height: 100vh;
  min-height: var(--customer-viewport-height);
  min-height: 100svh;
  padding-top: var(--customer-sticky-height);
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.customer-sticky-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
}

/* Keep the language dropdown above the category rail.
   The header and category rail share one fixed shell, so raising only the
   dropdown can still let later category elements paint over it. */
.customer-sticky-shell.language-menu-is-open {
  z-index: 180;
}

.customer-sticky-shell.language-menu-is-open .customer-app-header {
  z-index: 181;
}

.customer-app-header {
  position: relative;
  z-index: 1;
  padding-top: env(safe-area-inset-top);
  background: rgba(11, 6, 19, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.customer-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  min-height: 56px;
}

.game-launch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(119, 215, 255, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(36, 247, 255, 0.18), rgba(255, 62, 232, 0.18)),
    rgba(255, 255, 255, 0.04);
  color: #dffbff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(36, 247, 255, 0.14);
}

.game-launch-button:hover,
.game-launch-button:focus-visible {
  border-color: rgba(36, 247, 255, 0.72);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(36, 247, 255, 0.27), rgba(255, 62, 232, 0.25)),
    rgba(255, 255, 255, 0.08);
  outline: none;
  box-shadow: 0 0 22px rgba(36, 247, 255, 0.2);
}

.customer-category-rail {
  position: relative;
  top: auto;
  z-index: 1;
  min-height: 54px;
  overflow: hidden;
  background: rgba(8, 4, 15, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(82, 58, 122, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 42px rgba(2, 0, 8, 0.26);
}

.customer-category-band {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 54px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  padding-inline: 8px 22px;
  scrollbar-width: none;
}

.customer-category-band::-webkit-scrollbar {
  display: none;
}

.category-edge-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.category-edge-fade.left {
  left: 0;
  background: linear-gradient(90deg, rgba(8, 4, 15, 0.98), rgba(8, 4, 15, 0));
}

.category-edge-fade.right {
  right: 0;
  background: linear-gradient(270deg, rgba(8, 4, 15, 0.98), rgba(8, 4, 15, 0));
}

.customer-category-rail.can-scroll-left .category-edge-fade.left,
.customer-category-rail.can-scroll-right .category-edge-fade.right {
  opacity: 1;
}

.category-scroll-hint {
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 34px;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
}

.category-scroll-hint.left {
  left: 4px;
}

.category-scroll-hint.right {
  right: 4px;
}

.category-scroll-hint span {
  display: block;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 18px rgba(120, 215, 255, 0.32);
}

.customer-category-rail.can-scroll-left .category-scroll-hint.left,
.customer-category-rail.can-scroll-right .category-scroll-hint.right {
  opacity: 0.92;
  pointer-events: auto;
}

.customer-category-rail.hint-pulse .category-scroll-hint.right {
  animation: categoryHintPulse 820ms ease-out 2;
}

.customer-category-rail.hint-pulse .customer-category-band {
  animation: categoryBandNudge 520ms ease-out 1;
}

.category-tab {
  flex: 0 0 auto;
  min-width: 118px;
  max-width: 172px;
  min-height: 54px;
  border: 0;
  border-right: 1px solid rgba(247, 240, 255, 0.1);
  border-radius: 0;
  background: transparent;
  color: rgba(247, 240, 255, 0.8);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  scroll-margin-inline: 12px;
}

.category-tab.active {
  color: #fff;
  background: rgba(178, 108, 255, 0.3);
  box-shadow: inset 0 -5px 0 var(--accent-2);
}

.customer-category-rail.has-overflow .category-tab:not(.active) {
  background: linear-gradient(180deg, rgba(247, 240, 255, 0.028), rgba(247, 240, 255, 0.01));
}

.category-tab:hover,
.category-tab:focus-visible {
  background: rgba(178, 108, 255, 0.18);
}

@keyframes categoryHintPulse {
  0%,
  100% {
    transform: translateX(0);
    color: rgba(255, 255, 255, 0.88);
  }
  35% {
    transform: translateX(3px);
    color: #bff2ff;
  }
}

@keyframes categoryBandNudge {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  30% {
    transform: translate3d(-8px, 0, 0);
  }
}

.customer-content-rail {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
}

.customer-category-content {
  width: auto;
  margin: 0;
  padding: 18px 12px calc(152px + env(safe-area-inset-bottom));
  touch-action: pan-y;
}

.customer-category-content.swipe-dragging {
  transition: none;
  will-change: transform, opacity;
}

.customer-category-content.swipe-snapback {
  transition: transform 170ms ease-out, opacity 170ms ease-out;
}

.content-edge-fade {
  position: fixed;
  top: calc(50% - min(18svh, 136px));
  height: min(36svh, 272px);
  bottom: auto;
  width: 24px;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.content-edge-fade.left {
  left: max(0px, calc((100vw - min(760px, 100vw)) / 2));
  background: linear-gradient(90deg, rgba(8, 4, 15, 0.42), rgba(8, 4, 15, 0));
}

.content-edge-fade.right {
  right: max(0px, calc((100vw - min(760px, 100vw)) / 2));
  background: linear-gradient(270deg, rgba(8, 4, 15, 0.42), rgba(8, 4, 15, 0));
}

.customer-content-rail.can-swipe-left .content-edge-fade.left,
.customer-content-rail.can-swipe-right .content-edge-fade.right {
  opacity: 0.96;
}

.content-swipe-hint {
  position: fixed;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  align-items: center;
  width: 44px;
  min-width: 44px;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(247, 240, 255, 0.84);
  padding: 0;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.content-swipe-hint::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 21px;
  min-height: 46px;
  margin: auto;
  border: 1px solid rgba(218, 198, 255, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(22, 13, 34, 0.78);
  box-shadow:
    0 10px 22px rgba(2, 0, 8, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.content-swipe-hint.left {
  left: max(4px, calc((100vw - min(760px, 100vw)) / 2 + 4px));
  transform: translate3d(-6px, -50%, 0);
}

.content-swipe-hint.right {
  right: max(4px, calc((100vw - min(760px, 100vw)) / 2 + 4px));
  transform: translate3d(6px, -50%, 0);
}

.content-swipe-hint-arrow {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.customer-content-rail.can-swipe-left .content-swipe-hint.left,
.customer-content-rail.can-swipe-right .content-swipe-hint.right {
  opacity: 0.8;
  pointer-events: auto;
  transform: translate3d(0, -50%, 0);
}

.customer-content-rail.dragging-left .content-swipe-hint.right,
.customer-content-rail.dragging-right .content-swipe-hint.left {
  opacity: 0.98;
  color: #fff;
}

.customer-content-rail.dragging-left .content-swipe-hint.right::before,
.customer-content-rail.dragging-right .content-swipe-hint.left::before {
  border-color: rgba(127, 232, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(127, 232, 255, 0.13), rgba(127, 232, 255, 0.05)),
    rgba(19, 12, 30, 0.84);
  box-shadow:
    0 12px 24px rgba(2, 0, 8, 0.34),
    0 0 0 1px rgba(127, 232, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.customer-content-rail.dragging-left .content-edge-fade.right,
.customer-content-rail.dragging-right .content-edge-fade.left {
  opacity: 1;
}

.customer-content-rail.hint-pulse-right .content-swipe-hint.right {
  animation: contentHintPulseRight 780ms ease-out 2;
}

.customer-content-rail.hint-pulse-left .content-swipe-hint.left {
  animation: contentHintPulseLeft 780ms ease-out 2;
}

.customer-content-rail.hint-pulse-right .customer-category-content {
  animation: contentRailNudgeRight 520ms ease-out 1;
}

.customer-content-rail.hint-pulse-left .customer-category-content {
  animation: contentRailNudgeLeft 520ms ease-out 1;
}

@keyframes contentHintPulseRight {
  0%,
  100% {
    transform: translate3d(0, -50%, 0);
    color: rgba(247, 240, 255, 0.84);
  }
  35% {
    transform: translate3d(5px, -50%, 0);
    color: #d7f8ff;
  }
}

@keyframes contentHintPulseLeft {
  0%,
  100% {
    transform: translate3d(0, -50%, 0);
    color: rgba(247, 240, 255, 0.84);
  }
  35% {
    transform: translate3d(-5px, -50%, 0);
    color: #d7f8ff;
  }
}

@keyframes contentRailNudgeRight {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  32% {
    transform: translate3d(8px, 0, 0);
  }
}

@keyframes contentRailNudgeLeft {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  32% {
    transform: translate3d(-8px, 0, 0);
  }
}

body.customer-modal-active .content-swipe-hint,
body.customer-modal-active .content-edge-fade {
  opacity: 0 !important;
  pointer-events: none !important;
}

.active-category {
  animation: categoryIn 160ms ease-out;
}

@keyframes categoryIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.customer-bottom-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  min-height: calc(72px + env(safe-area-inset-bottom));
  padding: 0 0 env(safe-area-inset-bottom);
  background:
    linear-gradient(180deg, rgba(63, 40, 91, 0.9), rgba(23, 13, 35, 0.96)),
    rgba(22, 13, 34, 0.92);
  border-top: 1px solid rgba(210, 178, 255, 0.28);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  backdrop-filter: blur(22px) saturate(1.12);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 -2px 0 rgba(178, 108, 255, 0.12),
    0 -24px 54px rgba(2, 0, 8, 0.56);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.customer-bottom-actions::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(178, 108, 255, 0.52), transparent);
}

.customer-bottom-actions button {
  --action-rgb: 178, 108, 255;
  --action-color: rgb(var(--action-rgb));
  position: relative;
  min-width: 0;
  width: 100%;
  min-height: 72px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.024));
  color: rgba(247, 240, 255, 0.92);
  padding: 0 8px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.12;
  white-space: normal;
  transition:
    background-color 150ms ease,
    filter 150ms ease,
    transform 110ms ease;
  will-change: transform;
}

.customer-bottom-actions button + button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(160, 125, 207, 0.36), transparent);
}

.bottom-action-icon {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--action-color);
  box-shadow: none;
  transform: translateY(0);
  transition:
    filter 150ms ease,
    box-shadow 150ms ease,
    transform 110ms ease;
}

.bottom-action-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 0 8px rgba(var(--action-rgb), 0.2));
}

.bottom-action-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
}

.customer-bottom-actions .bottom-action-call {
  --action-rgb: 255, 236, 92;
  --action-color: #ffec5c;
}

.customer-bottom-actions .bottom-action-call .bottom-action-icon {
  width: 40px;
  height: 40px;
  left: -0.5em;
}

.customer-bottom-actions .bottom-action-checkout {
  --action-rgb: 255, 134, 210;
  --action-color: #ff86d2;
}

.customer-bottom-actions .bottom-action-checkout .bottom-action-icon {
  width: 45px;
  height: 45px;
  left: -1em;
}

.customer-bottom-actions .bottom-action-history {
  --action-rgb: 119, 215, 255;
  --action-color: #77d7ff;
}

.customer-bottom-actions .bottom-action-history .bottom-action-icon {
  left: -0.5em;
}

.customer-bottom-actions button > span:last-child {
  position: relative;
  z-index: 1;
  min-width: 0;
  white-space: nowrap;
}

.customer-bottom-actions button:active {
  filter: brightness(1.08);
  transform: translateY(1px);
}

.customer-bottom-actions button:active .bottom-action-icon {
  transform: translateY(1px) scale(0.94);
  filter: drop-shadow(0 0 10px rgba(var(--action-rgb), 0.58));
  box-shadow:
    0 0 18px rgba(var(--action-rgb), 0.18);
}

.customer-bottom-actions button:focus-visible {
  outline: 0;
}

.customer-bottom-actions button:focus-visible::after {
  content: "";
  position: absolute;
  inset: 7px 6px;
  z-index: 0;
  border: 2px solid rgba(var(--action-rgb), 0.68);
  border-radius: 9px;
  box-shadow: 0 0 0 3px rgba(119, 215, 255, 0.12);
  pointer-events: none;
}

.customer-bottom-actions button + button {
  border-left: 0;
}

@media (hover: hover) and (pointer: fine) {
  .customer-bottom-actions button:hover {
    background-color: rgba(var(--action-rgb), 0.055);
    filter: brightness(1.06);
  }

  .customer-bottom-actions button:hover .bottom-action-icon {
    filter: drop-shadow(0 0 9px rgba(var(--action-rgb), 0.38));
    box-shadow: none;
  }
}

.cart-dock {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 44;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(119, 215, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(18, 10, 28, 0.98);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.cart-dock-summary {
  min-width: 0;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
}

.cart-dock-summary span,
.cart-dock-summary strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-dock-submit {
  min-width: 0;
  font-weight: 900;
}

.menu-head {
  padding: 28px 0 16px;
  display: grid;
  gap: 8px;
}

.menu-head h1,
.center-state h1 {
  margin: 0;
  font-size: 42px;
  line-height: 0.94;
  text-wrap: balance;
}

.menu-head p,
.center-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  width: 100%;
  max-width: 34rem;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.category-nav {
  position: sticky;
  top: 73px;
  z-index: 12;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  background: rgba(14, 8, 22, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.category-nav a {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--ink);
  text-decoration: none;
  background: var(--panel);
  font-size: 13px;
}

.category-block {
  padding: 6px 0 24px;
}

.category-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.category-title h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.06;
  text-wrap: balance;
}

.category-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.item-list {
  --customer-item-card-height: 172px;
  --customer-item-thumb-width: 150px;
  display: grid;
  gap: 10px;
}

.item-row {
  position: relative;
  width: 100%;
  min-height: 96px;
  border: 1px solid rgba(82, 58, 122, 0.74);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.026)),
    rgba(23, 16, 34, 0.86);
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: stretch;
  gap: 12px;
  text-align: left;
  white-space: normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.item-row-with-thumb {
  display: grid;
  grid-template-columns: var(--customer-item-thumb-width) minmax(0, 1fr);
  grid-template-areas: "thumb copy";
  align-items: stretch;
  justify-items: stretch;
  height: var(--customer-item-card-height);
  min-height: var(--customer-item-card-height);
  max-height: var(--customer-item-card-height);
  padding: 0;
  gap: 0;
}

.menu-item-thumb {
  width: 104px;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(119, 215, 255, 0.34);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 104px;
  background:
    radial-gradient(circle at 35% 28%, rgba(119, 215, 255, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(178, 108, 255, 0.16), rgba(12, 7, 20, 0.92));
  color: rgba(240, 232, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.item-row-with-thumb .menu-item-thumb {
  grid-area: thumb;
  grid-column: 1;
  grid-row: 1;
  flex: 0 0 var(--customer-item-thumb-width);
  width: var(--customer-item-thumb-width);
  height: calc(100% + 2px);
  min-height: 0;
  margin: -1px 0 -1px -1px;
  align-self: stretch;
  border-width: 0 1px 0 0;
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow:
    inset -1px 0 0 rgba(119, 215, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.menu-item-thumb img,
.item-detail-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translate(var(--image-x, 0), var(--image-y, 0)) scale(var(--image-scale, 1));
  transform-origin: center;
}

.menu-item-thumb.is-placeholder {
  text-align: center;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 0.96;
  font-size: 15px;
}

.item-row .menu-item-thumb + .item-name {
  min-width: 0;
}

.item-row-with-thumb .item-row-copy {
  position: absolute;
  inset: 0 0 0 var(--customer-item-thumb-width);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "text"
    "price";
  min-width: 0;
  min-height: 0;
  height: 100%;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  align-self: stretch;
  justify-self: stretch;
  text-align: left;
}

.item-row-with-thumb .item-name {
  grid-area: text;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  justify-self: stretch;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 14px 14px 4px;
  text-align: left;
  overflow: hidden;
}

.item-row-with-thumb .item-name > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-box-align: start;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  margin-left: 0;
  margin-right: auto;
  padding: 0;
  text-align: left;
  align-self: stretch;
}

.item-row-with-thumb .item-name strong {
  display: block;
  font-size: 17px;
  line-height: 1.13;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  max-height: 4em;
}

.item-row-with-thumb .item-title-main {
  display: block;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.item-row-with-thumb .item-name > span {
  padding-right: 0;
  -webkit-line-clamp: 3;
}

.item-row-with-thumb .guest-prefix {
  display: block;
  font-size: 0.56em;
  line-height: 1.05;
  margin-bottom: 4px;
}

.item-row-with-thumb .price {
  grid-area: price;
  align-self: end;
  justify-self: end;
  width: 100%;
  max-width: none;
  padding: 0 16px 14px 14px;
  text-align: right;
}

.item-row .price {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  min-width: 96px;
  line-height: 1;
}

.item-row .price .tax-note {
  display: block;
}

.item-row-divider-before {
  margin-top: 36px;
}

.item-row-divider-before::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: -24px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(178, 108, 255, 0.56), transparent);
}

.item-group-heading {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 10px 4px 0;
  color: #ffd98a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.item-group-heading::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, rgba(255, 217, 138, 0.58), transparent);
}

.item-group-heading small {
  max-width: min(68vw, 420px);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.35;
}

.item-group-heading-large {
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1.25;
}

.item-group-heading-xlarge {
  font-size: 26px;
  letter-spacing: 0;
  line-height: 1.05;
}

@media (max-width: 420px) {
  .item-group-heading-xlarge {
    font-size: 24px;
  }
}

.item-group-heading-with-note {
  display: grid;
  grid-template-columns: auto minmax(34px, 1fr);
  align-items: end;
  gap: 3px 10px;
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1.25;
}

.item-group-heading-with-note::after {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.item-group-heading-with-note small {
  grid-column: 1 / -1;
  grid-row: 2;
  max-width: none;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.item-group-heading-divider {
  margin-top: 36px;
}

.item-row.item-row-grouped {
  width: 100%;
  margin-left: 0;
  border-left-color: rgba(255, 217, 138, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 217, 138, 0.06), rgba(255, 255, 255, 0.024)),
    rgba(25, 17, 36, 0.88);
}

.item-row:hover,
.item-row:focus-visible {
  border-color: rgba(178, 108, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(178, 108, 255, 0.12), rgba(119, 215, 255, 0.045)),
    rgba(23, 16, 34, 0.9);
}

.item-row.sold-out {
  opacity: 0.56;
}

.item-name {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.item-row:not(.item-row-with-thumb) {
  grid-template-columns: 104px minmax(0, 1fr) auto;
}

.item-name strong {
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.guest-prefix {
  display: block;
  font-size: calc(1em - 2pt);
  font-weight: 300;
  letter-spacing: 0;
  color: var(--muted);
  margin: 0 0 2px;
}

.item-title-main {
  display: block;
}

.item-name span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.item-name strong,
.item-name .item-title-main {
  color: #ffffff;
}

.item-name .item-title-main {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.item-name .guest-prefix {
  color: var(--muted);
}

.price {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  font-weight: 900;
  color: var(--accent-2);
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.item-detail-action-row {
  position: sticky;
  top: -18px;
  z-index: 22;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 64px;
  margin: -18px -18px 14px;
  padding: 12px 14px 8px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(30, 22, 42, 0.98), rgba(30, 22, 42, 0.82) 68%, rgba(30, 22, 42, 0));
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.item-detail-action-row .small-button {
  pointer-events: auto;
}

.item-detail-close-button {
  width: 50px;
  min-width: 50px;
  min-height: 50px;
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 130, 158, 0.62);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 159, 183, 0.26), transparent 58%),
    linear-gradient(180deg, rgba(255, 92, 127, 0.18), rgba(255, 92, 127, 0.08)),
    rgba(28, 14, 30, 0.96);
  background-clip: padding-box;
  color: #ff9ab1;
  box-shadow:
    inset 0 0 0 1px rgba(255, 130, 158, 0.12),
    inset 0 10px 24px rgba(255, 122, 154, 0.1);
}

.item-detail-close-button:hover {
  border-color: rgba(255, 158, 183, 0.82);
  color: #ffc1ce;
  filter: brightness(1.04);
}

.item-detail-close-button:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 130, 158, 0.2),
    inset 0 8px 18px rgba(255, 122, 154, 0.12);
}

.item-detail-close-button:focus-visible {
  outline: 3px solid rgba(255, 158, 183, 0.48);
  outline-offset: 3px;
}

.item-detail-close-icon {
  display: block;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-2px);
}

.item-detail-hero {
  margin: 0 0 18px;
}

.item-detail-image {
  margin: 0;
  display: flex;
  justify-content: center;
}

.item-detail-image-frame {
  width: var(--detail-image-width, 100%);
  min-height: clamp(
    var(--detail-image-min-height, 230px),
    var(--detail-image-fluid-height, 35vh),
    var(--detail-image-max-height, 340px)
  );
  border: 1px solid rgba(119, 215, 255, 0.34);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 25%, rgba(119, 215, 255, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(178, 108, 255, 0.16), rgba(12, 7, 20, 0.92));
}

.item-detail-image-frame.is-placeholder {
  color: rgba(240, 232, 255, 0.82);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0.1em;
  line-height: 1;
  text-align: center;
}

.item-detail-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.item-detail-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
  text-wrap: balance;
}

@media (max-width: 420px) {
  .item-list {
    --customer-item-card-height: 150px;
    --customer-item-thumb-width: 112px;
  }

  .item-row {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .item-row-with-thumb {
    gap: 0;
    padding: 0;
  }

  .menu-item-thumb {
    width: 88px;
    min-height: 88px;
    border-radius: 8px;
  }

  .item-row-with-thumb .menu-item-thumb {
    flex-basis: var(--customer-item-thumb-width);
    width: var(--customer-item-thumb-width);
    height: calc(100% + 2px);
    min-height: 0;
    border-radius: var(--radius) 0 0 var(--radius);
  }

  .item-row-with-thumb .item-name {
    padding: 12px 12px 0;
  }

  .item-row-with-thumb .price {
    padding: 0 12px 12px;
  }

  .item-detail-action-row {
    min-height: 58px;
    margin: -18px -18px 12px;
    padding: 10px 12px 7px;
  }

  .item-detail-close-button {
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
  }

  .item-detail-close-icon {
    font-size: 31px;
  }

  .item-detail-hero {
    margin-bottom: 16px;
  }

  .item-detail-image-frame {
    min-height: clamp(
      var(--detail-image-mobile-min-height, 210px),
      var(--detail-image-mobile-fluid-height, 32vh),
      var(--detail-image-mobile-max-height, 300px)
    );
  }
}

.tax-note {
  color: #d7cae8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

/* Source: css/runtime/order-ui.css */
/* Order lines, modals, form controls, toast. Split from runtime.css; keep import order stable. */
.side-panel {
  position: sticky;
  top: 90px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 16, 34, 0.92);
  box-shadow: var(--shadow);
  padding: 14px;
}

.side-panel h2,
.side-panel h3,
.staff-panel h2,
.staff-panel h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.cart-lines,
.history-lines,
.queue-list,
.table-orders,
.menu-toggle-list {
  display: grid;
  gap: 10px;
}

.line {
  border: 1px solid rgba(82, 58, 122, 0.58);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.032);
  padding: 10px;
  display: grid;
  gap: 6px;
}

.line:first-child {
  border-top: 1px solid rgba(82, 58, 122, 0.58);
  padding-top: 10px;
}

.line-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
  min-width: 0;
}

.line-title span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.line-title span:last-child {
  flex: 0 0 auto;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

.line-detail {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.history-line-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.history-ai-document-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(178, 108, 255, 0.26);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(178, 108, 255, 0.14), rgba(119, 215, 255, 0.08)),
    rgba(17, 9, 27, 0.58);
  padding: 8px 10px;
}

.ai-document-badge {
  color: #d8c2ff;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.ai-document-history-action {
  min-height: 38px;
}

.history-checkout-summary {
  margin-top: 14px;
  border-top: 1px solid rgba(119, 215, 255, 0.24);
  padding-top: 14px;
  background: rgba(119, 215, 255, 0.055);
  border: 1px solid rgba(119, 215, 255, 0.18);
  border-radius: var(--radius);
  padding: 14px;
}

.history-total-row {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.line-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
  font-weight: 900;
}

.total-row input {
  flex: 0 0 96px;
  width: 96px !important;
}

.quantity-field {
  margin-top: 54px;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 56px minmax(78px, 1fr) 56px;
  gap: 10px;
  align-items: center;
}

.quantity-button {
  min-height: 54px;
  padding: 0;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  background: rgba(178, 108, 255, 0.16);
}

.quantity-value {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(178, 108, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(178, 108, 255, 0.14);
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.schema-number-stepper {
  width: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: center;
}

.schema-number-button {
  min-height: 50px;
  padding: 0;
  border-color: rgba(178, 108, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(178, 108, 255, 0.18);
  color: var(--ink);
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
}

.schema-number-button:disabled {
  opacity: 0.38;
}

.schema-number-value {
  min-height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(178, 108, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(11, 7, 18, 0.72);
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
}

.schema-number-value.empty {
  color: var(--muted);
  font-weight: 850;
}

.guest-start .guest-count-stepper .schema-number-value {
  min-height: 66px;
  color: #ffffff;
  font-size: 44px;
  letter-spacing: 0;
}

@media (max-width: 420px) {
  .guest-start .guest-count-stepper {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 8px;
  }

  .guest-start .guest-count-stepper .schema-number-value {
    min-height: 58px;
    font-size: 38px;
  }

  .guest-start .guest-count-stepper .schema-number-button {
    min-height: 52px;
  }
}

.full-width-action {
  width: 100%;
  margin-top: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  min-height: var(--customer-viewport-height);
  padding: 16px;
  background: rgba(4, 1, 8, 0.74);
  overscroll-behavior: contain;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.entry-success-screen {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  min-height: var(--customer-viewport-height);
  padding: 24px;
  background: #050109;
}

.entry-success-screen p {
  margin: 0;
  color: #c58cff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 0 24px rgba(197, 140, 255, 0.45);
}

.entry-terms-backdrop {
  z-index: 82;
  background: rgba(4, 1, 8, 0.82);
}

.entry-terms-modal {
  width: min(460px, calc(100vw - 28px));
  display: grid;
  gap: 16px;
  padding: 20px;
}

.entry-terms-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.15em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.72;
}

.entry-terms-small-note {
  font-size: 0.82em;
  font-weight: 750;
  color: var(--muted);
}

.entry-terms-accept {
  min-height: 52px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(197, 140, 255, 0.32);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(197, 140, 255, 0.08);
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.entry-terms-accept input {
  width: 22px;
  height: 22px;
  accent-color: #c58cff;
}

.sheet-backdrop {
  align-items: end;
  justify-items: center;
  padding: 16px 12px calc(88px + env(safe-area-inset-bottom));
}

.item-detail-backdrop {
  z-index: 70;
  align-items: start;
  justify-items: center;
  padding: calc(var(--customer-sticky-height) + 10px) 12px calc(94px + env(safe-area-inset-bottom));
}

.modal {
  width: min(640px, 100%);
  max-height: min(calc(var(--customer-vh) * 86), 780px);
  max-height: min(86svh, 780px);
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    var(--panel);
  border: 1px solid rgba(119, 215, 255, 0.18);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.58);
  padding: 18px;
  scrollbar-color: var(--line-strong) var(--panel);
}

.item-detail-modal {
  position: relative;
  max-height: min(calc(var(--customer-viewport-height) - var(--customer-sticky-height) - 114px), 780px);
  touch-action: pan-y;
  will-change: transform, opacity;
}

.item-detail-scroll-hint {
  position: sticky;
  bottom: -18px;
  z-index: 5;
  display: none;
  width: calc(100% + 36px);
  height: 34px;
  margin: -28px -18px 0;
  pointer-events: none;
  transform: translateX(0);
}

.item-detail-scroll-hint::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 54px;
  background: linear-gradient(180deg, rgba(25, 16, 38, 0), rgba(25, 16, 38, 0.94) 72%);
}

.item-detail-scroll-hint span {
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 18px;
  height: 18px;
  border-right: 4px solid rgba(119, 215, 255, 0.95);
  border-bottom: 4px solid rgba(119, 215, 255, 0.95);
  filter: drop-shadow(0 0 10px rgba(119, 215, 255, 0.5));
  transform: translateX(-50%) rotate(45deg);
  animation: item-detail-scroll-nudge 1200ms ease-in-out infinite;
}

.item-detail-modal.has-scroll-more .item-detail-scroll-hint {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .item-detail-scroll-hint span {
    animation: none;
  }
}

@keyframes item-detail-scroll-nudge {
  0%,
  100% {
    transform: translate(-50%, -2px) rotate(45deg);
    opacity: 0.72;
  }
  50% {
    transform: translate(-50%, 5px) rotate(45deg);
    opacity: 1;
  }
}

@supports (height: 100svh) {
  .item-detail-modal {
    max-height: min(calc(100svh - var(--customer-sticky-height) - 114px), 780px);
  }
}

.item-detail-modal.swipe-dragging {
  transition: none;
}

.item-detail-modal.swipe-snapback {
  transition: transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 180ms ease-out;
}

.item-detail-modal.swipe-dismissing {
  transition: transform 180ms ease-in, opacity 180ms ease-in;
}

.wifi-connect-panel {
  display: grid;
  gap: 14px;
  padding-top: 6px;
}

.external-link-panel {
  display: grid;
  gap: 16px;
  padding-top: 6px;
}

.external-link-message {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.external-link-button {
  margin-top: 2px;
}

.wifi-credentials {
  display: grid;
  gap: 10px;
}

.wifi-credential {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(119, 215, 255, 0.18);
}

.wifi-credential span,
.wifi-connect-note,
.wifi-qr-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.wifi-credential strong {
  color: var(--text);
  font-size: 18px;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.wifi-connect-button {
  margin-top: 2px;
}

.wifi-qr-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(15, 9, 28, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.wifi-qr-card img {
  width: min(180px, 58vw);
  height: auto;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.modal-backdrop.swipe-snapback,
.modal-backdrop.swipe-dismissing {
  transition: background 180ms ease-in;
}

.item-detail-modal.swipe-dismiss-left {
  animation: itemModalDismissLeft 180ms ease-in forwards;
}

.item-detail-modal.swipe-dismiss-right {
  animation: itemModalDismissRight 180ms ease-in forwards;
}

.swipe-dismiss-backdrop {
  animation: modalBackdropFadeOut 180ms ease-in forwards;
}

@keyframes itemModalDismissLeft {
  to {
    opacity: 0;
    transform: translateX(-110vw) scale(0.98);
  }
}

@keyframes itemModalDismissRight {
  to {
    opacity: 0;
    transform: translateX(110vw) scale(0.98);
  }
}

@keyframes modalBackdropFadeOut {
  to {
    background: rgba(4, 1, 8, 0);
  }
}

.modal.bottom-sheet {
  width: min(640px, 100%);
  max-height: min(calc(var(--customer-vh) * 72), 680px);
  max-height: min(72svh, 680px);
}

.confirm-modal {
  width: min(420px, calc(100vw - 28px));
  display: grid;
  gap: 16px;
  padding: 20px;
}

.confirm-copy {
  display: grid;
  gap: 8px;
}

.confirm-copy h2 {
  margin: 0;
  font-size: 23px;
}

.confirm-copy p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.7;
}

.confirm-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 160, 214, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 120, 196, 0.1), rgba(114, 61, 175, 0.08)),
    rgba(20, 11, 33, 0.9);
}

.confirm-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.confirm-summary strong {
  color: #ffe7f6;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
}

.confirm-actions.single-action {
  grid-template-columns: 1fr;
}

.confirm-actions button {
  min-height: 50px;
}

.guest-count-modal {
  width: min(430px, 100%);
}

.manual-order-modal {
  width: min(520px, calc(100vw - 28px));
}

.ai-document-modal {
  width: min(680px, calc(100vw - 28px));
}

.ai-document-textarea {
  min-height: 300px;
  resize: vertical;
  line-height: 1.6;
  white-space: pre-wrap;
}

.ai-document-viewer-modal {
  width: min(680px, calc(100vw - 28px));
  max-height: min(82svh, 760px);
  overflow: auto;
}

.ai-document-viewer-modal .small-button {
  min-width: 44px;
  min-height: 44px;
}

.ai-document-viewer-backdrop,
.ai-document-notice-backdrop {
  z-index: 90;
  align-items: start;
  justify-items: center;
  padding: calc(env(safe-area-inset-top) + 18px) 12px calc(92px + env(safe-area-inset-bottom));
}

.ai-document-viewer-backdrop .ai-document-viewer-modal {
  max-height: min(calc(var(--customer-viewport-height) - env(safe-area-inset-top) - 116px), 760px);
}

@supports (height: 100svh) {
  .ai-document-viewer-backdrop .ai-document-viewer-modal {
    max-height: min(calc(100svh - env(safe-area-inset-top) - 116px), 760px);
  }
}

.ai-document-notice-modal h2 {
  color: #d7b8ff;
}

.ai-document-theme-box,
.ai-document-body {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(178, 108, 255, 0.24);
  border-radius: 12px;
  background: rgba(19, 10, 31, 0.78);
  padding: 12px 14px;
}

.ai-document-theme-box span,
.ai-document-body span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.ai-document-theme-box strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

.ai-document-body p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.78;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.move-session-modal {
  width: min(560px, calc(100vw - 28px));
}

.move-table-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.move-table-option {
  min-height: 68px;
  border: 1px solid rgba(178, 108, 255, 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(23, 16, 34, 0.92);
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
}

.move-table-option span {
  display: block;
}

.move-table-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.manual-order-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
}

.manual-order-name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.manual-menu-picker-trigger {
  min-height: 44px;
  white-space: nowrap;
}

.manual-order-picker {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(119, 215, 255, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(119, 215, 255, 0.08), rgba(178, 108, 255, 0.055)),
    rgba(15, 10, 24, 0.72);
  padding: 10px;
}

.manual-order-picker.is-open {
  max-height: min(52svh, 520px);
  overflow: hidden;
}

.manual-order-picker-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.manual-order-category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.manual-order-category-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid rgba(178, 108, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  padding: 8px 12px;
  font-weight: 900;
}

.manual-order-category-tabs button.active {
  border-color: rgba(119, 215, 255, 0.7);
  background: rgba(119, 215, 255, 0.18);
  color: var(--ink);
}

.manual-order-picker-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.manual-order-picker-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  border: 1px solid rgba(178, 108, 255, 0.28);
  border-radius: 12px;
  background: rgba(26, 19, 40, 0.9);
  color: var(--ink);
  padding: 11px 12px;
  text-align: left;
}

.manual-order-picker-item-main,
.manual-order-picker-price {
  display: grid;
  gap: 4px;
}

.manual-order-picker-item-main strong {
  font-size: 16px;
  line-height: 1.25;
}

.manual-order-picker-item-main small,
.manual-order-picker-price small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.manual-order-picker-category-label {
  width: fit-content;
  border: 1px solid rgba(119, 215, 255, 0.38);
  border-radius: 999px;
  background: rgba(119, 215, 255, 0.12);
  color: #9be5ff;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 900;
}

.manual-order-picker-price {
  justify-items: end;
  white-space: nowrap;
}

.manual-order-picker-price strong {
  color: #77d7ff;
  font-size: 17px;
}

.manual-order-picker-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.manual-order-picker-badges em {
  border: 1px solid rgba(255, 224, 138, 0.42);
  border-radius: 999px;
  background: rgba(255, 224, 138, 0.12);
  color: #ffe08a;
  padding: 2px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.callout-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  border: 1px solid rgba(178, 108, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(178, 108, 255, 0.1);
  padding: 10px 12px;
}

.callout-inline span {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  text-wrap: balance;
}

.modal-tail-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(210, 178, 255, 0.14);
}

.option-group {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.option-group legend {
  font-weight: 900;
  margin-bottom: 8px;
}

.required-mark {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 7px;
  padding: 2px 7px 3px;
  border: 1px solid rgba(255, 209, 102, 0.44);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.13);
  color: #ffd166;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.08);
}

.option-help {
  margin: -2px 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.choice {
  min-height: 44px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.choice:hover,
.choice:focus-within {
  border-color: rgba(119, 215, 255, 0.46);
  background: rgba(119, 215, 255, 0.07);
}

.choice span {
  overflow-wrap: anywhere;
}

.choice-label {
  display: block;
  min-width: 0;
}

.choice-label-emphasis {
  display: inline-block;
  margin-right: 4px;
  font-size: calc(1em + 3pt);
  font-weight: 950;
  line-height: 1;
}

.choice-label-rest {
  display: inline;
  font-size: 0.95em;
  font-weight: 800;
}

.choice-label-note {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76em;
  font-weight: 700;
  line-height: 1.35;
}

.choice.is-preferred span {
  font-size: 1.08em;
  font-weight: 900;
}

.choice.is-preferred .choice-label-note {
  font-size: 0.72em;
  font-weight: 700;
}

.choice-section-divider {
  height: 1px;
  margin: 14px 2px 4px;
  background: linear-gradient(90deg, transparent, rgba(178, 108, 255, 0.58), transparent);
}

.choice-section-title {
  margin: 4px 0 2px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.schema-block[data-schema-block-key="bottle-wine-choice"] .choice-section-title {
  margin: 12px 0 8px;
  font-size: 24px;
  line-height: 1.18;
}

.choice input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.schema-field-error {
  margin: -2px 0 4px;
  color: #ff9bb8;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.schema-block[data-schema-block-key="bottle-glass-count"] {
  margin-bottom: 48px;
}

.schema-block[data-schema-block-key="hot-wine-sweetness"] {
  margin-bottom: 50px;
}

.schema-block[data-schema-block-key="hot-wine-sweetness"] .schema-number-stepper {
  gap: 10px;
}

.schema-block[data-schema-block-key="hot-wine-sweetness"] .schema-number-button {
  border-color: rgba(255, 88, 112, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(172, 18, 52, 0.34);
  color: #ffd9e0;
  box-shadow: inset 0 0 0 1px rgba(255, 139, 156, 0.12);
}

.schema-block[data-schema-block-key="hot-wine-sweetness"] .schema-number-value {
  min-height: 70px;
  border-color: rgba(255, 88, 112, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 85, 116, 0.16), rgba(33, 5, 18, 0.72)),
    rgba(42, 7, 20, 0.88);
  color: #fff3f5;
  font-size: 44px;
  box-shadow: inset 0 0 0 1px rgba(255, 139, 156, 0.12);
}

#itemForm .schema-number-stepper {
  max-width: 420px;
  grid-template-columns: 44px minmax(68px, 1fr) 44px;
  gap: 8px;
}

#itemForm .schema-number-button {
  min-height: 44px;
  font-size: 22px;
}

#itemForm .schema-number-value {
  min-height: 44px;
  font-size: 20px;
}

.schema-block[data-schema-block-key="ai-cocktail-free-text"] textarea {
  min-height: 138px;
}

.schema-block.has-error .choice {
  border-color: rgba(255, 155, 184, 0.55);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  z-index: 90;
  background: #f7f0ff;
  color: var(--deep);
  border-radius: var(--radius);
  padding: 12px 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  max-width: min(520px, calc(100vw - 28px));
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Source: css/runtime/staff.css */
/* Staff layout and table grid. Split from runtime.css; keep import order stable. */
.staff-login {
  min-height: 100vh;
  min-height: var(--customer-viewport-height);
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 14px;
}

.login-panel h1 {
  margin: 0;
  font-size: 30px;
}

.staff-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 14px;
}

.staff-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-glass);
  padding: 14px;
  min-width: 0;
  box-shadow: var(--shadow-soft);
}

.staff-spacer {
  height: 14px;
}

.staff-section-gap {
  margin-top: 18px;
}

.table-list-section {
  display: grid;
  gap: 12px;
}

.table-list-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(150px, 1.1fr);
  gap: 10px;
  align-items: stretch;
}

.table-list-head h2 {
  margin: 0;
  align-self: center;
}

.shared-access-code-panel,
.session-total-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 213, 118, 0.38);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 213, 118, 0.14), rgba(178, 108, 255, 0.07)),
    rgba(21, 12, 32, 0.92);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.shared-access-code-panel span,
.session-total-panel span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
}

.shared-access-code-panel strong,
.session-total-panel strong {
  display: block;
  margin-top: 4px;
  color: #ffe08a;
  font-size: 38px;
  font-weight: 950;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.session-total-panel {
  margin: 12px 0;
}

.session-total-panel strong {
  font-size: 34px;
}

.shared-code-refresh {
  min-width: 44px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-color: rgba(255, 224, 138, 0.48);
  background: rgba(255, 224, 138, 0.12);
  color: #ffe08a;
}

.shared-code-refresh svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.table-action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 18px;
}

.table-action-row button {
  min-width: 0;
  min-height: 52px;
  padding-inline: 10px;
  white-space: normal;
  line-height: 1.25;
}

.manual-order-action {
  border-color: rgba(119, 215, 255, 0.76);
  background: linear-gradient(180deg, #9be5ff, #3aa3d1);
  color: #071923;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(58, 163, 209, 0.18);
}

.manual-order-action:hover {
  border-color: rgba(198, 242, 255, 0.88);
  color: #030c12;
  box-shadow: 0 12px 28px rgba(58, 163, 209, 0.28);
}

.table-detail-nav {
  margin-bottom: 12px;
}

.session-guest-count {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 12px 0;
}

.staff-subheading {
  margin-top: 18px;
}

.staff-panel.scroll {
  max-height: calc(100svh - 96px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--line-strong) var(--panel);
}

.staff-history-panel {
  overflow-x: auto;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.table-tile {
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.024)),
    rgba(23, 16, 34, 0.88);
  padding: 12px;
  display: grid;
  gap: 8px;
  align-content: start;
  text-align: left;
  white-space: normal;
  overflow: hidden;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.table-tile[aria-disabled="true"] {
  cursor: default;
}

.table-tile:hover,
.table-tile:focus-visible {
  border-color: rgba(119, 215, 255, 0.58);
  background: rgba(119, 215, 255, 0.08);
}

.table-tile.open-ready {
  border-color: rgba(255, 225, 129, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 225, 129, 0.12), rgba(119, 215, 255, 0.055)),
    rgba(33, 23, 47, 0.92);
  box-shadow: 0 12px 28px rgba(255, 225, 129, 0.12), inset 0 0 0 1px rgba(255, 225, 129, 0.18);
}

.table-tile.open-ready .status-pill {
  background: rgba(255, 225, 129, 0.18);
  color: #ffe181;
}

.table-tile.open {
  color: #061d16;
  border-color: rgba(101, 247, 190, 0.96);
  background: var(--active-table);
  box-shadow: 0 14px 34px rgba(101, 247, 190, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.table-tile.checkout {
  color: #241408;
  border-color: rgba(255, 194, 92, 0.96);
  background: #ffc25c;
  box-shadow: 0 14px 34px rgba(255, 194, 92, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.table-tile.selected {
  outline: 3px solid rgba(178, 108, 255, 0.32);
}

.table-tile.open .tile-meta,
.table-tile.open .tile-title strong {
  color: #061d16;
}

.table-tile.checkout .tile-meta,
.table-tile.checkout .tile-title strong {
  color: #241408;
}

.table-tile.open .status-pill,
.table-tile.checkout .status-pill {
  background: rgba(27, 18, 48, 0.82);
  color: #fff8d3;
}

.tile-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.tile-title strong {
  font-size: 18px;
}

.tile-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

.tile-meta-line {
  display: block;
}

.tile-bill-total {
  display: inline-block;
  font-size: 2em;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  vertical-align: -0.08em;
}

.queue-item,
.request-item,
.order-block,
.settings-block,
.menu-toggle-row {
  border: 1px solid rgba(82, 58, 122, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.request-item:not(.resolved-request-item) {
  border-color: rgba(255, 236, 92, 0.74);
  background: rgba(255, 236, 92, 0.13);
}

/* Source: css/runtime/menu-builder.css */
/* Menu Builder. Split from runtime.css; keep import order stable. */
.menu-builder-body {
  min-width: 1024px;
}

.builder-toolbar {
  position: sticky;
  top: 74px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(180px, 0.8fr) minmax(220px, 1fr) auto auto auto auto;
  gap: 10px;
  align-items: end;
  width: min(1480px, calc(100% - 28px));
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 7, 20, 0.95);
  box-shadow: 0 12px 34px rgba(6, 2, 14, 0.35);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.compact-field input,
.compact-field select {
  min-height: 38px;
}

.builder-save-state {
  min-height: 46px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.builder-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 92px;
  gap: 14px;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 14px;
}

.builder-sidebar,
.builder-action-rail {
  position: sticky;
  top: 170px;
  align-self: start;
  max-height: calc(100svh - 188px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-glass);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.builder-sidebar {
  display: grid;
  gap: 14px;
}

.builder-sidebar-head,
.builder-section-title,
.builder-subcard-head,
.builder-option-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.builder-sidebar h2,
.builder-section-title h2,
.builder-edit-section h3,
.builder-issues h3 {
  margin: 0;
}

.builder-category-list {
  display: grid;
  gap: 8px;
}

.builder-category-chip,
.issue-row {
  min-height: auto;
  justify-content: space-between;
  padding: 10px;
  text-align: left;
  white-space: normal;
}

.builder-category-chip.active {
  border-color: rgba(178, 108, 255, 0.74);
  background: rgba(178, 108, 255, 0.16);
}

.builder-issues {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.issue-row {
  display: grid;
  gap: 3px;
}

.issue-row.error {
  border-color: rgba(255, 127, 148, 0.46);
}

.issue-row.warning {
  border-color: rgba(244, 179, 94, 0.46);
}

.builder-canvas {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.builder-category-section {
  display: grid;
  gap: 10px;
}

.builder-section-title {
  padding: 0 4px;
}

.builder-section-title p,
.builder-card-title span {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.builder-item-stack,
.order-block-stack,
.detail-block-stack,
.option-row-stack {
  display: grid;
  gap: 10px;
}

.builder-item-card,
.builder-subcard {
  border: 1px solid rgba(82, 58, 122, 0.82);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.022)),
    rgba(23, 16, 34, 0.84);
}

.builder-item-card.archived {
  opacity: 0.68;
}

.builder-card-head {
  display: grid;
  grid-template-columns: 28px 56px minmax(250px, 1fr) 90px minmax(170px, auto) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  border-radius: var(--radius);
}

.builder-card-head:hover,
.builder-card-head:focus-visible {
  background: rgba(119, 215, 255, 0.055);
  outline: none;
}

.builder-card-title {
  min-width: 0;
}

.builder-image-preview {
  border: 1px solid rgba(119, 215, 255, 0.34);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 28%, rgba(119, 215, 255, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(178, 108, 255, 0.16), rgba(12, 7, 20, 0.92));
  color: rgba(240, 232, 255, 0.82);
  text-align: center;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 0.96;
}

.builder-image-preview.small {
  width: 56px;
  height: 56px;
  font-size: 9px;
}

.builder-image-preview.large {
  width: 180px;
  min-height: 140px;
  font-size: 18px;
}

.builder-image-preview img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
  transform: translate(var(--image-x, 0), var(--image-y, 0)) scale(var(--image-scale, 1));
  transform-origin: center;
}

.builder-image-uploader {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(82, 58, 122, 0.72);
  border-radius: var(--radius);
  background: rgba(12, 7, 20, 0.44);
}

.builder-image-uploader-copy {
  display: grid;
  gap: 8px;
}

.builder-image-uploader-copy strong {
  font-size: 16px;
}

.builder-image-upload-button {
  width: fit-content;
  cursor: pointer;
}

.builder-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.builder-image-delete-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.builder-image-layout-panel {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid rgba(119, 215, 255, 0.22);
  border-radius: 10px;
  background: rgba(20, 12, 34, 0.72);
}

.builder-image-layout-panel.is-disabled {
  opacity: 0.58;
}

.builder-image-layout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.builder-image-layout-control {
  display: grid;
  gap: 6px;
}

.builder-image-layout-control span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: rgba(240, 232, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.builder-image-layout-control output {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.builder-image-layout-control input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.builder-card-title strong,
.history-item-name {
  overflow-wrap: anywhere;
}

.builder-price-summary {
  font-weight: 800;
  text-align: right;
}

.builder-card-badges,
.builder-card-actions,
.builder-inline-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.builder-card-body {
  display: grid;
  gap: 14px;
  padding: 0 12px 12px;
}

.builder-edit-section {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(82, 58, 122, 0.62);
  padding-top: 12px;
}

.builder-form-grid,
.builder-setting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.builder-wide-field,
.visibility-rule-row {
  grid-column: 1 / -1;
}

.builder-subcard {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(12, 7, 20, 0.52);
}

.translation-editor,
.translation-row-stack {
  display: grid;
  gap: 10px;
}

.translation-toolbar {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
  border: 1px solid rgba(82, 58, 122, 0.56);
  border-radius: var(--radius);
  background: rgba(12, 7, 20, 0.42);
  padding: 10px;
}

.translation-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 1fr) 150px;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(82, 58, 122, 0.66);
  border-radius: var(--radius);
  background: rgba(12, 7, 20, 0.38);
  padding: 10px;
}

.translation-source {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.translation-source p {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.translation-source p span,
.translation-path {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.translation-textarea textarea {
  min-height: 92px;
  resize: vertical;
}

.translation-actions {
  display: grid;
  gap: 8px;
}

.builder-option-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(110px, 1fr) 96px 90px auto auto;
  gap: 8px;
  align-items: center;
}

.builder-ref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.field-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.compact-toggle {
  min-height: 42px;
  padding: 8px;
}

.visibility-rule-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.customer-preview-wrap {
  display: flex;
  justify-content: center;
}

.preview-phone {
  width: 390px;
  min-height: 520px;
  border: 1px solid rgba(119, 215, 255, 0.28);
  border-radius: 28px;
  background: linear-gradient(180deg, #181023, #0d0716);
  box-shadow: inset 0 0 0 8px #09050f, 0 20px 48px rgba(0, 0, 0, 0.32);
  padding: 24px 18px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.preview-phone-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.preview-facts {
  display: grid;
  gap: 6px;
  margin: 0;
}

.preview-facts div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(82, 58, 122, 0.5);
  padding-bottom: 6px;
}

.preview-facts dt,
.preview-note {
  color: var(--muted);
}

.preview-facts dd {
  margin: 0;
  font-weight: 700;
}

.builder-action-rail {
  display: grid;
  gap: 8px;
}

.builder-action-rail button {
  width: 100%;
  min-height: 54px;
  white-space: normal;
  padding: 8px;
}

.template-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.template-card {
  min-height: 124px;
  display: grid;
  align-content: start;
  gap: 8px;
  text-align: left;
  white-space: normal;
  padding: 14px;
}

.builder-template-modal {
  width: min(780px, calc(100vw - 32px));
}

/* Source: css/runtime/staff-history.css */
/* Staff order history and billing. Split from runtime.css; keep import order stable. */
.queue-title,
.request-title,
.order-title,
.settings-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.billing-summary {
  gap: 10px;
  margin: 12px 0 14px;
}

.history-title {
  margin-bottom: 10px;
}

.order-history-table {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.order-history-row {
  min-height: 50px;
  display: grid;
  grid-template-columns: 54px 48px max-content minmax(76px, 1fr) 82px 44px;
  column-gap: 4px;
  row-gap: 8px;
  align-items: center;
  border: 1px solid rgba(82, 58, 122, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.02)),
    rgba(23, 16, 34, 0.88);
  padding: 6px 5px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.order-history-row .history-detail-panel {
  cursor: auto;
}

.pending-order-row {
  color: #071d24;
  border-color: rgba(129, 237, 255, 0.96);
  background: var(--pending);
  box-shadow: 0 14px 34px rgba(75, 219, 245, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.pending-order-row .history-table-code,
.pending-order-row time,
.pending-order-row .history-item-name {
  color: #071d24;
}

.pending-order-row .small-button {
  color: #071d24;
  border-color: rgba(7, 29, 36, 0.42);
  background: rgba(255, 255, 255, 0.64);
}

.pending-order-row .small-button.danger {
  color: #fff8d3;
  border-color: rgba(7, 29, 36, 0.52);
  background: #1b1230;
}

.service-history-row {
  color: #1b1230;
  border-color: rgba(255, 239, 116, 0.96);
  background: var(--call);
  box-shadow: 0 14px 34px rgba(255, 220, 62, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.checkout-request-row {
  background: var(--checkout);
  border-color: rgba(255, 134, 210, 0.98);
  box-shadow: 0 14px 36px rgba(255, 94, 190, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.access-lock-active-row {
  color: #fff7ea;
  border-color: rgba(255, 112, 112, 0.98);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    #5b1028;
  box-shadow: 0 14px 36px rgba(255, 68, 97, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.access-lock-active-row .history-table-code,
.access-lock-active-row time,
.access-lock-active-row .history-item-name {
  color: #fff7ea;
}

.access-lock-active-row .small-button {
  color: #5b1028;
  border-color: rgba(255, 247, 234, 0.6);
  background: rgba(255, 247, 234, 0.88);
}

.service-history-row .history-table-code,
.service-history-row time,
.service-history-row .history-item-name {
  color: #1b1230;
}

.access-lock-active-row .history-table-code,
.access-lock-active-row time,
.access-lock-active-row .history-item-name {
  color: #fff7ea;
}

.service-history-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-history-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #1b1230;
  color: #fff8d3;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
}

.access-lock-badge {
  background: #fff7ea;
  color: #5b1028;
}

.service-status-button {
  color: #1b1230;
  border-color: rgba(27, 18, 48, 0.46);
  background: rgba(255, 255, 255, 0.62);
}

.service-status-button.good {
  color: var(--ink);
  border-color: rgba(101, 247, 190, 0.48);
  background: rgba(101, 247, 190, 0.14);
}

.completion-status-button,
.service-status-button.completion-status-button {
  color: #d9ffe8;
  border-color: rgba(118, 226, 167, 0.52);
  background:
    linear-gradient(180deg, rgba(118, 226, 167, 0.22), rgba(118, 226, 167, 0.1)),
    rgba(10, 32, 24, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.completion-status-button:hover,
.service-status-button.completion-status-button:hover {
  border-color: rgba(118, 226, 167, 0.82);
  color: #fff;
  box-shadow: 0 8px 22px rgba(40, 192, 111, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.small-button.restore,
.service-status-button.restore {
  color: #fff8d3;
  border-color: rgba(119, 215, 255, 0.5);
  background: rgba(119, 215, 255, 0.14);
}

.service-row-status {
  justify-self: start;
}

.service-task-row .history-expand-button {
  color: currentColor;
  border-color: currentColor;
}

.resolved-service-row .service-history-badge {
  background: rgba(178, 108, 255, 0.18);
  color: var(--muted);
  border: 1px solid rgba(178, 108, 255, 0.24);
}

.resolved-request-item {
  opacity: 0.76;
}

.drag-handle {
  width: 24px;
  height: 24px;
  display: grid;
  align-content: center;
  gap: 3px;
  justify-self: center;
  opacity: 0.72;
}

.drag-handle i {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--muted);
}

.history-expand-button {
  width: 32px;
  min-height: 32px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 8px;
  border: 1px solid rgba(178, 108, 255, 0.36);
  background: rgba(178, 108, 255, 0.12);
  color: var(--ink);
  padding: 0;
}

.history-expand-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.history-expand-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.order-ack-button {
  width: 62px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border: 1px solid rgba(178, 108, 255, 0.36);
  border-radius: 8px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.order-ack-button.is-unconfirmed {
  border-color: rgba(255, 231, 104, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04)),
    #ffe45f;
  color: #211300;
}

.order-ack-button.is-confirmed {
  border-color: rgba(118, 226, 167, 0.48);
  background:
    linear-gradient(180deg, rgba(118, 226, 167, 0.24), rgba(118, 226, 167, 0.08)),
    #1b1230;
  color: #e8fff0;
}

.pending-order-row .history-expand-button,
.service-history-row .history-expand-button,
.checkout-request-row .history-expand-button {
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(7, 29, 36, 0.4);
  color: currentColor;
}

.history-detail-panel {
  grid-column: 1 / -1;
  min-width: 0;
  border-top: 1px solid rgba(178, 108, 255, 0.28);
  margin-top: 4px;
  padding: 12px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(9, 5, 15, 0.34);
}

.access-lock-detail-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.access-lock-detail-panel .history-detail-grid {
  min-width: 0;
}

.history-detail-actions {
  display: flex;
  justify-content: flex-end;
  align-items: start;
  min-width: 76px;
}

.history-detail-actions .small-button {
  min-width: 72px;
}

.history-selection-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  row-gap: 4px;
  padding: 9px 11px;
}

.ai-document-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.ai-document-panel-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ai-document-status {
  color: #d7b8ff;
  font-size: 14px;
  font-weight: 950;
}

.ai-document-actions {
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-document-send-button {
  min-width: 104px;
  border-color: rgba(118, 231, 255, 0.74);
  background:
    linear-gradient(180deg, rgba(122, 238, 255, 0.34), rgba(52, 158, 224, 0.24)),
    rgba(9, 34, 52, 0.88);
  color: #eaffff;
  font-weight: 950;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 18px rgba(84, 213, 255, 0.2);
}

.ai-document-send-button:hover:not(:disabled),
.ai-document-send-button:focus-visible:not(:disabled) {
  border-color: rgba(158, 244, 255, 0.96);
  background:
    linear-gradient(180deg, rgba(151, 247, 255, 0.42), rgba(60, 177, 235, 0.34)),
    rgba(10, 44, 66, 0.92);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 0 24px rgba(84, 213, 255, 0.28);
}

.ai-document-send-button:disabled {
  border-color: rgba(128, 116, 151, 0.24);
  background: rgba(42, 34, 55, 0.48);
  color: rgba(227, 218, 238, 0.42);
  box-shadow: none;
  opacity: 0.72;
}

.history-selection-label {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  color: currentColor;
  font-size: 11px;
  font-weight: 900;
  opacity: 0.68;
  white-space: nowrap;
}

.history-selection-text {
  min-width: 0;
  margin: 0;
  color: currentColor;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.history-selection-part,
.history-selection-key,
.history-selection-value,
.history-selection-separator {
  display: inline;
}

.history-selection-value-alert {
  color: #ff4f6d;
  font-size: calc(1em + 4pt);
  font-weight: 950;
  line-height: 1;
}

.pending-order-row .history-detail-panel,
.service-history-row .history-detail-panel,
.checkout-request-row .history-detail-panel {
  border-color: rgba(7, 29, 36, 0.28);
  background: rgba(255, 255, 255, 0.42);
}

.history-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.history-detail-panel h3 {
  margin: 0 0 7px;
  color: currentColor;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.history-detail-list,
.history-detail-options {
  display: grid;
  gap: 7px;
  margin: 0;
}

.history-detail-list div,
.history-detail-option {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.history-detail-list dt,
.history-detail-option dt {
  color: currentColor;
  font-size: 11px;
  font-weight: 900;
  opacity: 0.68;
}

.history-detail-list dd,
.history-detail-option dd {
  min-width: 0;
  margin: 0;
  color: currentColor;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.history-detail-list small,
.history-detail-option small,
.history-detail-option span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.72;
}

.history-detail-empty {
  margin: 0;
  color: currentColor;
  font-size: 13px;
  font-weight: 800;
  opacity: 0.72;
}

.history-free-text {
  margin-top: 10px;
  border: 1px solid rgba(255, 155, 184, 0.36);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 155, 184, 0.12);
}

.history-free-text span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 900;
  opacity: 0.74;
}

.history-free-text p {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.history-json-detail {
  margin-top: 10px;
  color: currentColor;
  font-size: 12px;
}

.history-json-detail summary {
  cursor: pointer;
  font-weight: 900;
}

.history-json-detail pre {
  max-height: 220px;
  overflow: auto;
  margin: 8px 0 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  padding: 10px;
  color: currentColor;
  font-size: 11px;
  white-space: pre-wrap;
}

.order-history-row time {
  font-size: 12px;
  white-space: nowrap;
}

.history-table-code {
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0;
  justify-self: start;
  transform: translateX(-4px);
}

.order-history-row > .small-button {
  min-width: 0;
  padding-inline: 5px;
  font-size: 12px;
}

.history-item-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  line-height: 1.3;
}

.history-order-line-text {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  font-size: var(--history-order-line-font-size, 16px);
  line-height: 1;
}

.history-quantity {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: flex-end;
  gap: 1px;
  color: inherit;
}

.history-quantity.quantity-caution {
  color: #ffe66d;
  text-shadow: 0 0 10px rgba(255, 230, 109, 0.35);
}

.history-quantity.quantity-warning {
  color: #ffad42;
  text-shadow: 0 0 10px rgba(255, 173, 66, 0.35);
}

.history-quantity.quantity-critical {
  color: #ff5b6b;
  text-shadow: 0 0 12px rgba(255, 91, 107, 0.42);
}

.history-quantity-main,
.history-item-text {
  font-size: 2em;
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: 0;
}

.history-quantity-suffix {
  font-size: 0.5em;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.16em;
  opacity: 0.86;
}

.history-times {
  flex: 0 0 auto;
  margin-bottom: 0.09em;
  color: currentColor;
  font-size: 0.9em;
  font-weight: 900;
  opacity: 0.72;
}

.history-addon-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  margin-bottom: 0.03em;
  border-radius: 7px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 238, 148, 0.78);
  color: #1e1230;
  background: linear-gradient(180deg, #ffe986 0%, #ffc83d 100%);
  box-shadow: 0 0 0 1px rgba(255, 248, 202, 0.18), 0 0 14px rgba(255, 205, 72, 0.34);
  font-size: 0.9em;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
}

.history-item-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.free-text-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 7px;
  color: #fff8d3;
  background: #7a164d;
  border: 1px solid rgba(255, 248, 211, 0.58);
  box-shadow: 0 0 0 2px rgba(122, 22, 77, 0.18);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.pending-order-row .free-text-badge {
  color: #fff8d3;
  background: #1b1230;
  border-color: rgba(7, 29, 36, 0.42);
  box-shadow: 0 0 0 2px rgba(255, 248, 211, 0.35);
}

.empty-history {
  padding: 12px;
}

.metric {
  border-top: 1px solid rgba(82, 58, 122, 0.72);
  padding-top: 8px;
}

.bill-metric {
  border: 1px solid rgba(82, 58, 122, 0.78);
  border-radius: var(--radius);
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(18, 10, 29, 0.86);
}

.bill-total {
  grid-column: 1 / -1;
  border-color: rgba(119, 215, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(119, 215, 255, 0.16), rgba(178, 108, 255, 0.13)),
    rgba(18, 10, 29, 0.92);
  padding: 14px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  font-size: 20px;
  white-space: nowrap;
}

.bill-total strong {
  color: var(--ink-strong);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
}

.toggle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.toggle-row input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
}

.menu-toggle-row {
  grid-template-columns: minmax(0, 1fr);
}

.toggle-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.toggle-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.toggle-actions input {
  width: 18px;
  min-height: 18px;
}

/* Source: css/runtime/responsive-print.css */
/* Responsive and print rules. Split from runtime.css; keep import order stable. */
@media (max-width: 980px) {
  .customer-layout,
  .staff-shell {
    grid-template-columns: 1fr;
  }

  .side-panel,
  .staff-panel.scroll {
    position: static;
    max-height: none;
  }

  .staff-shell {
    display: flex;
    flex-direction: column;
    padding: 10px;
  }

  .staff-work-panel {
    order: 1;
  }

  .staff-left-panel {
    order: 1;
  }

  .staff-history-panel {
    order: 2;
  }

  .staff-ops-panel {
    order: 3;
  }
}

@media (max-width: 1180px) {
  .builder-toolbar {
    grid-template-columns: minmax(170px, 1fr) minmax(150px, 0.8fr) minmax(188px, 1fr) repeat(4, auto);
    gap: 8px;
    width: min(100%, calc(100% - 20px));
  }

  .builder-shell {
    grid-template-columns: 220px minmax(0, 1fr) 76px;
    gap: 10px;
    padding: 10px;
  }

  .builder-card-head {
    grid-template-columns: 24px minmax(200px, 1fr) 84px minmax(120px, auto) auto;
    gap: 8px;
  }

  .builder-card-actions .small-button {
    min-height: 38px;
    padding-inline: 8px;
  }

  .builder-option-row {
    grid-template-columns: repeat(2, minmax(120px, 1fr)) 92px 86px repeat(2, auto);
  }

  .translation-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .staff-sound-controls {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .staff-volume-control,
  .staff-sound-test-control {
    flex: 1;
  }

  .staff-volume-control input {
    width: 100%;
  }

  .staff-sound-test-control select {
    width: 100%;
    max-width: none;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand span {
    font-size: 11px;
  }

  .app-shell {
    padding: 12px;
  }

  .modal {
    width: calc(100vw - 24px);
    padding: 14px;
  }

  .menu-head {
    padding-top: 18px;
  }

  .menu-head h1,
  .center-state h1 {
    font-size: 32px;
  }

  .customer-meta-row {
    align-items: center;
    gap: 8px;
  }

  .customer-meta-row .top-actions {
    width: auto;
    flex: 0 0 auto;
  }

  .customer-meta-row .language-menu-button {
    min-height: 44px;
    padding-inline: 9px;
  }

  .customer-meta-row .language-current {
    max-width: 72px;
  }

  .topbar .language-current {
    max-width: 128px;
  }

  .category-title {
    align-items: start;
  }

  .category-title h2 {
    font-size: 26px;
  }

  .item-row {
    min-height: 104px;
    grid-template-columns: 1fr;
  }

  .category-nav {
    top: 68px;
  }

  .qr-grid {
    grid-template-columns: 1fr;
  }

  .staff-shell {
    padding: 10px;
  }

  .staff-panel {
    padding: 12px;
  }

  .table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .table-list-head {
    grid-template-columns: 1fr;
  }

  .table-tile {
    min-height: 118px;
    padding: 10px;
  }

  .tile-title {
    display: grid;
    gap: 6px;
  }

  .tile-title strong {
    font-size: 20px;
  }

  .queue-title,
  .request-title,
  .order-title,
  .settings-title {
    align-items: start;
  }

  .line-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .line-actions button {
    min-width: 0;
    padding-inline: 8px;
    white-space: normal;
  }

  .request-item .line-actions,
  .table-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-action-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manual-order-fields {
    grid-template-columns: 1fr;
  }

  .move-table-list {
    grid-template-columns: 1fr;
  }

  .session-guest-count {
    grid-template-columns: 1fr;
  }

  .toggle-actions {
    grid-template-columns: 1fr;
  }

  .order-history-table {
    min-width: 0;
  }

  .order-history-row {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    grid-template-areas:
      "drag time table"
      "drag item item"
      "drag status action";
    gap: 8px;
    align-items: center;
    min-height: 86px;
  }

  .order-history-row > :nth-child(1) {
    grid-area: drag;
  }

  .order-history-row > :nth-child(2) {
    grid-area: time;
  }

  .order-history-row > :nth-child(3) {
    grid-area: table;
    justify-self: end;
  }

  .order-history-row > :nth-child(4) {
    grid-area: item;
    white-space: normal;
  }

  .order-history-row > :nth-child(5) {
    grid-area: status;
    justify-self: start;
  }

  .order-history-row > :nth-child(6) {
    grid-area: action;
    justify-self: end;
  }

  .history-detail-panel {
    grid-column: 1 / -1;
    padding: 10px;
  }

  .history-detail-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .access-lock-detail-panel {
    grid-template-columns: 1fr;
  }

  .history-detail-actions {
    justify-content: stretch;
  }

  .history-detail-actions .small-button {
    width: 100%;
  }

  .history-item-name {
    white-space: normal;
  }

  .history-item-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .qr-page-head {
    display: grid;
    padding: 16px;
  }
}

@media (max-width: 390px) {
  .category-tab {
    min-width: 112px;
  }

  .customer-bottom-actions button {
    font-size: 14px;
    gap: 6px;
    padding-inline: 6px;
  }

  .bottom-action-icon {
    width: 46px;
    height: 46px;
  }

  .customer-bottom-actions .bottom-action-call .bottom-action-icon {
    width: 37px;
    height: 37px;
    left: -0.5em;
  }

  .customer-bottom-actions .bottom-action-checkout .bottom-action-icon {
    width: 41px;
    height: 41px;
  }

  .customer-bottom-actions .bottom-action-history .bottom-action-icon {
    left: -0.5em;
  }

  .bottom-action-icon svg {
    width: 26px;
    height: 26px;
  }

  .table-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-category-rail.hint-pulse .category-scroll-hint.right,
  .customer-category-rail.hint-pulse .customer-category-band,
  .customer-content-rail.hint-pulse-right .content-swipe-hint.right,
  .customer-content-rail.hint-pulse-left .content-swipe-hint.left,
  .customer-content-rail.hint-pulse-right .customer-category-content,
  .customer-content-rail.hint-pulse-left .customer-category-content {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

  body {
    background: #fff;
  }

  .qr-page-head,
  .topbar,
  button {
    display: none !important;
  }

  .qr-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
    gap: 8mm;
  }

  .qr-card {
    min-height: 128mm;
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #111;
  }
}
