:root {
  --brand: #e6292f;
  --brand-dark: #b9171e;
  --brand-soft: #fff1ec;
  --brand-pale: #fff8ee;
  --gold: #c9994f;
  --ink: #242a32;
  --muted: #797f89;
  --line: #f0d8c8;
  --page: #fff7ec;
  --card: #ffffff;
  --success: #27864a;
  --warning: #c87a12;
  --danger: #d8232a;
  --shadow: 0 18px 42px rgba(166, 57, 32, 0.13);
  --radius-card: 16px;
  --radius-state: 20px;
  --radius-input: 10px;
  --radius-button: 14px;
  font-family: "Inter", "Arial", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 5% 12%, rgba(236, 198, 126, 0.18) 0 120px, transparent 122px),
    radial-gradient(circle at 92% 82%, rgba(230, 41, 47, 0.1) 0 140px, transparent 142px),
    linear-gradient(135deg, #fffaf2 0%, #fff7ec 42%, #fff1e4 100%);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(230, 41, 47, 0.22);
  outline-offset: 2px;
}

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

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.app-shell {
  min-height: 100vh;
}

.customer-page,
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at -6% 12%, rgba(232, 202, 143, 0.22) 0 140px, transparent 142px),
    radial-gradient(circle at 104% 34%, rgba(232, 202, 143, 0.14) 0 86px, transparent 88px);
}

.phone-frame {
  width: min(100%, 380px);
  min-height: 660px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(232, 202, 143, 0.13), transparent 150px),
    linear-gradient(180deg, #fffefa 0%, #ffffff 52%, #fff9ef 100%);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 24px 22px 34px;
}

.phone-frame::before {
  content: "";
  position: absolute;
  right: -58px;
  top: 72px;
  width: 142px;
  height: 62px;
  opacity: 0.28;
  background:
    radial-gradient(ellipse at 20% 65%, rgba(214, 166, 87, 0.34) 0 28px, transparent 29px),
    linear-gradient(90deg, transparent 0 8%, rgba(214, 166, 87, 0.28) 9% 48%, transparent 49% 100%),
    linear-gradient(90deg, transparent 0 30%, rgba(214, 166, 87, 0.28) 31% 72%, transparent 73% 100%);
  border-radius: 999px;
}

.phone-frame::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -58px;
  height: 150px;
  background:
    radial-gradient(circle at 18px 142px, transparent 0 18px, rgba(255, 255, 255, 0.08) 19px 21px, transparent 22px) 0 0 / 36px 36px,
    linear-gradient(165deg, rgba(255, 255, 255, 0.44) 0 18%, transparent 19% 100%),
    linear-gradient(180deg, #ff4a42 0%, #e7272d 78%);
  border-radius: 50% 50% 0 0 / 22% 22% 0 0;
  z-index: 0;
}

.phone-frame > * {
  position: relative;
  z-index: 1;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--brand);
  font-weight: 800;
}

.brand-logo-wrap {
  flex-direction: column;
  gap: 7px;
}

.brand-logo {
  display: block;
  max-width: 235px;
  width: 76%;
  height: auto;
  object-fit: contain;
}

.brand-system {
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.22em;
  margin-top: 8px;
}

.brand-system::before,
.brand-system::after {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
  opacity: 0.82;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(145deg, #f44a42, #c91820);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 12px 28px rgba(230, 41, 47, 0.18);
}

.brand-icon::before {
  content: "+";
  font-size: 35px;
  font-weight: 800;
  line-height: 1;
}

.welcome-title {
  margin: 38px 0 12px;
  text-align: center;
  font-size: 28px;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0;
}

.welcome-subtitle,
.small-copy {
  color: var(--muted);
  line-height: 1.55;
}

.welcome-subtitle {
  margin: 0 0 28px;
  text-align: center;
  font-size: 16px;
  font-weight: 650;
}

.language-actions,
.stack {
  display: grid;
  gap: 14px;
}

.primary-btn {
  width: 100%;
  color: white;
  background: linear-gradient(135deg, #ff4945 0%, #e6292f 52%, #cf171f 100%);
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(230, 41, 47, 0.24);
}

.primary-btn:hover {
  background: linear-gradient(135deg, #f83f3d 0%, #d91f27 100%);
  box-shadow: 0 14px 28px rgba(230, 41, 47, 0.28);
}

.secondary-btn {
  width: 100%;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.86);
  border: 1.5px solid var(--brand);
  font-weight: 850;
}

.ghost-btn {
  color: var(--brand-dark);
  background: linear-gradient(180deg, #fff9ed, #fff1db);
  border: 1px solid #f1d5ae;
  padding: 0 14px;
  min-height: 38px;
  font-weight: 850;
}

.lang-choice {
  min-height: 62px;
  display: grid;
  grid-template-columns: 54px 1fr 28px;
  align-items: center;
  padding: 0 22px;
  font-size: 18px;
}

.lang-choice::before {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 950;
}

.lang-choice::after {
  content: "›";
  font-size: 38px;
  line-height: 1;
}

.lang-choice-cn::before {
  content: "中";
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
}

.lang-choice-en::before {
  content: "EN";
  color: var(--brand);
  border: 1.5px solid var(--brand);
}

.staff-entry-btn {
  width: 70%;
  margin: 0 auto;
  min-height: 54px;
  font-size: 17px;
}

.danger-btn {
  width: 100%;
  color: var(--danger);
  background: #fff7f7;
  border: 1px solid #efb8b8;
  font-weight: 700;
}

.warning-btn {
  width: 100%;
  color: #9b5a05;
  background: #fff8ee;
  border: 1px solid #f3c177;
  font-weight: 700;
}

.privacy-copy {
  margin-top: 68px;
  text-align: center;
  font-size: 12px;
}

.topbar {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.icon-btn {
  width: 38px;
  min-height: 38px;
  border-radius: 50%;
  color: var(--ink);
  background: #fff0e9;
  font-size: 20px;
}

.page-title {
  text-align: center;
}

.page-title strong {
  display: block;
  font-size: 18px;
}

.page-title span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.lang-toggle {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.74);
  min-height: 36px;
  font-weight: 700;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: var(--brand-soft);
  border: 1px solid #ffd5ca;
  border-radius: 12px;
  margin-bottom: 20px;
}

.notice-symbol {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: white;
  color: var(--brand);
  font-weight: 900;
}

.notice strong,
.notice span {
  display: block;
}

.notice span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

.field label {
  font-size: 13px;
  font-weight: 750;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #ead7c4;
  border-radius: var(--radius-input);
  background: white;
  color: var(--ink);
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.error-text {
  min-height: 18px;
  color: var(--danger);
  font-size: 12px;
}

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

.segment {
  min-height: 54px;
  padding: 7px 6px;
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 13px;
}

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

.segment.active {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: var(--brand);
  font-weight: 800;
}

.phone-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
}

.check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  align-items: start;
  margin: 8px 0 16px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.success-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px;
  color: var(--success);
  background: linear-gradient(135deg, #fff7ed, var(--brand-soft));
  border-radius: 12px;
  font-weight: 800;
}

.number-card {
  margin: 14px 0;
  padding: 22px 16px 20px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-state);
  background: linear-gradient(180deg, #ffffff, #fffaf2);
  box-shadow: var(--shadow);
}

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

.queue-number {
  margin: 8px 0 6px;
  color: var(--brand);
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

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

.status-tile {
  min-height: 96px;
  padding: 12px 7px;
  text-align: center;
  background: var(--brand-soft);
  border: 1px solid #ffd5ca;
  border-radius: 12px;
}

.status-tile span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.status-tile strong {
  display: block;
  margin-top: 8px;
  color: var(--brand);
  font-size: 23px;
}

.progress-note {
  margin: 12px 0;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: 12px;
  background: #fff8e8;
  color: #8a4f0f;
  line-height: 1.35;
  font-size: 13px;
}

.status-footer {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}

.status-footer .small-copy {
  font-size: 12px;
}

.terminal-state {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

#join-form.phone-frame::after,
.auth-page .phone-frame::after {
  height: 92px;
  bottom: -46px;
  opacity: 0.92;
}

#join-form .brand-logo,
.auth-page .brand-logo {
  max-width: 190px;
}

#join-form .brand-system,
.auth-page .brand-system {
  font-size: 13px;
  letter-spacing: 0.16em;
}

.terminal-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 36px;
  font-weight: 900;
}

.terminal-icon.warning {
  color: white;
  background: #fb9413;
  box-shadow: 0 0 0 11px #fff0d9;
}

.terminal-icon.success {
  color: white;
  background: var(--success);
  box-shadow: 0 0 0 11px #eaf7ee;
}

.terminal-icon.neutral {
  color: white;
  background: #7d8993;
  box-shadow: 0 0 0 11px #eef1f3;
}

.terminal-state h1 {
  margin: 0 0 10px;
  font-size: 24px;
}

.terminal-state p {
  margin: 0 auto 26px;
  max-width: 290px;
  color: var(--muted);
  line-height: 1.55;
}

.staff-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr;
  background: linear-gradient(135deg, #fffaf3, #fff2e6);
}

.sidebar {
  padding: 20px 14px;
  background: linear-gradient(180deg, #fffdf9, #fff0e4);
  border-right: 1px solid var(--line);
}

.side-brand {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--brand);
  font-weight: 850;
}

.side-brand .brand-logo {
  width: 160px;
  max-width: 160px;
}

.side-brand .brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.side-brand .brand-icon::before {
  font-size: 28px;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav button {
  justify-content: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  border-radius: 10px;
}

.side-nav button.active {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 800;
}

.staff-main {
  padding: 20px;
}

.staff-header {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.staff-header h1 {
  margin: 0;
  font-size: 22px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.summary-card {
  min-height: 82px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #fffaf2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

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

.summary-card strong {
  display: block;
  margin-top: 6px;
  color: var(--brand);
  font-size: 29px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
}

.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.panel.pad {
  padding: 16px;
}

.queue-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.queue-toolbar input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
}

.filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.chip {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  background: #fff1e7;
  font-size: 12px;
  font-weight: 700;
}

.chip.active {
  color: white;
  background: var(--brand);
}

.queue-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.queue-table th,
.queue-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf1f2;
  text-align: left;
  vertical-align: middle;
}

.queue-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  background: #fff4eb;
}

.queue-table td {
  word-break: break-word;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.notification-line {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  line-height: 1.3;
}

.status-waiting {
  color: var(--brand);
  background: var(--brand-soft);
}

.status-serving,
.status-called {
  color: var(--success);
  background: #eaf7ee;
}

.status-missed {
  color: var(--warning);
  background: #fff4df;
}

.status-completed {
  color: #59636b;
  background: #edf0f2;
}

.status-cancelled {
  color: #6d747a;
  background: #f1f2f3;
}

.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-btn {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  background: #fff0e8;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}

.serving-panel h2 {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.serving-number {
  color: var(--brand);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.1;
}

.details-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.detail-row strong {
  color: var(--ink);
  text-align: right;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 24, 30, 0.36);
  z-index: 10;
}

.modal {
  width: min(100%, 430px);
  background: white;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.modal h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.display-page {
  min-height: 100vh;
  padding: 28px;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.13), transparent 28%),
    linear-gradient(145deg, #b9171e, #e6292f);
  color: white;
}

.display-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 22px;
}

.display-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  font-size: 20px;
}

.display-time {
  font-size: 34px;
  font-weight: 850;
}

.display-center {
  min-height: 54vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.display-center span {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
}

.display-number {
  margin: 12px 0 18px;
  font-size: clamp(92px, 14vw, 170px);
  font-weight: 950;
  line-height: 0.9;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.counter-copy {
  font-size: 26px;
  font-weight: 800;
}

.next-strip {
  margin-top: 10px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.next-strip h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.next-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.next-number {
  min-height: 108px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 42px;
  font-weight: 900;
}

.empty {
  padding: 36px 18px;
  text-align: center;
  color: var(--muted);
}

.alert-enable {
  margin: 0 0 12px;
}

.alert-enabled {
  margin: 0 0 12px;
  padding: 11px 12px;
  color: var(--success);
  background: #eaf7ee;
  border: 1px solid #bfe3ca;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.alert-help {
  margin: 0 0 12px;
  text-align: center;
  font-size: 12px;
}

.install-alert-help {
  margin: 0 0 12px;
  padding: 12px;
  color: #8a4f0f;
  background: #fff8e8;
  border: 1px solid #f0d39d;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.turn-alert {
  margin: 14px 0;
  padding: 16px;
  color: white;
  background: linear-gradient(135deg, #d71820, #ff5147);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 14px 30px rgba(215, 24, 32, 0.28);
  animation: arrival-pulse 1s ease-in-out infinite alternate;
}

.turn-alert strong,
.turn-alert span {
  display: block;
}

.turn-alert strong {
  font-size: 21px;
  letter-spacing: 0.05em;
}

.turn-alert span {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 750;
}

@keyframes arrival-pulse {
  from { transform: scale(1); box-shadow: 0 14px 30px rgba(215, 24, 32, 0.24); }
  to { transform: scale(1.025); box-shadow: 0 18px 38px rgba(215, 24, 32, 0.42); }
}

@media (prefers-reduced-motion: reduce) {
  .turn-alert { animation: none; }
}

.qr-page {
  min-height: 100vh;
  padding: 32px 20px;
  display: grid;
  place-items: center;
}

.qr-sheet {
  width: min(100%, 940px);
  padding: 32px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.qr-header {
  text-align: center;
  margin-bottom: 26px;
}

.qr-header .brand-logo {
  width: 210px;
}

.qr-header h1 {
  margin: 22px 0 4px;
  font-size: 30px;
}

.qr-header p {
  margin: 0;
  color: var(--muted);
}

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

.qr-card {
  padding: 24px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #fff9f0);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.qr-card h2 {
  margin: 14px 0 10px;
}

.qr-card img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin: 0 auto 14px;
}

.qr-card a {
  color: var(--brand-dark);
  font-size: 13px;
  word-break: break-all;
}

.qr-label {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.qr-label.customer {
  color: var(--success);
  background: #eaf7ee;
}

.qr-label.staff {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.qr-print {
  width: 220px;
  display: block;
  margin: 24px auto 0;
}

@media print {
  body,
  .qr-page {
    background: white;
  }

  .qr-page {
    padding: 0;
  }

  .qr-sheet {
    width: 100%;
    box-shadow: none;
    border: 0;
  }

  .qr-print {
    display: none;
  }
}

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-nav {
    display: flex;
    overflow-x: auto;
  }

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

@media (max-width: 720px) {
  .qr-sheet {
    padding: 22px 16px;
  }

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

  .staff-main {
    padding: 14px;
  }

  .staff-header,
  .queue-toolbar {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .queue-table,
  .queue-table tbody,
  .queue-table tr,
  .queue-table td {
    display: block;
    width: 100%;
  }

  .queue-table thead {
    display: none;
  }

  .queue-table tr {
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
  }

  .queue-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 0;
    padding: 7px 0;
  }

  .queue-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 800;
    font-size: 12px;
  }

  .status-footer {
    grid-template-columns: 1fr;
  }

  .display-page {
    padding: 18px;
  }

  .display-header,
  .next-list {
    grid-template-columns: 1fr;
    display: grid;
  }

  .display-time {
    font-size: 24px;
  }
}
