.panel-app {
  min-height: 100dvh;
  background: var(--bg);
  font-family: var(--font);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  position: relative;
}

.panel-app--desktop {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
}

.panel-expired {
  background: var(--warning-soft);
  color: #92400e;
  padding: var(--space-3) var(--space-4);
  font-size: 14px;
  font-weight: 600;
  flex: 0 0 auto;
  width: 100%;
}

.panel-mobile-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.panel-app--desktop .panel-mobile-head,
.panel-app--desktop .panel-mobile-nav {
  display: none;
}

.panel-mobile-head__logo,
.panel-sidebar__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.panel-mobile-head__logo--ph,
.panel-sidebar__logo--ph {
  background: var(--surface-2);
}

.panel-mobile-head__body {
  flex: 1;
  min-width: 0;
}

.panel-mobile-head__name,
.panel-sidebar__name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.panel-mobile-head__tariff,
.panel-sidebar__tariff {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.panel-open-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-width: 44px;
}

.panel-open-btn--on {
  background: var(--success-soft);
  color: var(--success);
}

.panel-open-btn--off {
  background: var(--danger-soft);
  color: #b91c1c;
}

.panel-open-btn__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.panel-open-btn--on .panel-open-btn__dot {
  background: #16a34a;
}

.panel-open-btn--off .panel-open-btn__dot {
  background: var(--danger);
}

.panel-open-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.panel-sidebar {
  display: none;
}

.panel-app--desktop .panel-sidebar {
  display: flex;
  flex-direction: column;
  width: 256px;
  flex-shrink: 0;
  background: var(--nav-bg);
  padding: 20px var(--space-4);
  min-height: 100dvh;
  box-sizing: border-box;
}

.panel-sidebar__brand {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-6);
}

.panel-sidebar__brand span {
  color: var(--brand);
}

.panel-sidebar__card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.panel-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.panel-nav__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  color: var(--nav-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  position: relative;
}

.panel-mobile-nav .panel-nav__item {
  flex-direction: column;
  justify-content: center;
  flex: 1;
  gap: 4px;
  font-size: 11px;
  padding: 8px 4px;
  min-height: 64px;
}

.panel-nav__item--active {
  color: var(--brand);
}

.panel-app--desktop .panel-nav__item--active {
  background: rgba(246, 110, 22, 0.16);
  color: #fff;
}

.panel-app--desktop .panel-nav__item--active .panel-nav__icon {
  color: var(--brand);
}

.panel-nav__badge {
  position: absolute;
  top: 4px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.panel-app--desktop .panel-nav__badge {
  position: static;
  margin-left: auto;
}

.panel-sidebar__customer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-top: var(--space-4);
}

.panel-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.panel-main {
  flex: 1;
  padding: var(--space-4);
  padding-bottom: calc(var(--nav-h) + var(--space-6));
}

.panel-app--desktop .panel-main {
  padding: var(--space-6) var(--space-8);
  padding-bottom: var(--space-8);
  max-height: 100dvh;
  overflow: auto;
}

.panel-mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--nav-h);
  background: var(--nav-bg);
  display: flex;
  z-index: 20;
}

.panel-menu__head,
.panel-orders__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.panel-menu__title,
.panel-orders__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.panel-app--desktop .panel-menu__title {
  font-size: 26px;
}

.panel-menu__sub,
.panel-orders__sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.panel-menu__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.panel-btn-ghost {
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.panel-btn-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: var(--brand-ink);
  color: var(--on-brand);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.panel-cats {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin-bottom: var(--space-4);
  padding-bottom: 4px;
}

.panel-app--desktop .panel-cats {
  flex-wrap: wrap;
  overflow: visible;
}

.panel-cat {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.panel-cat--on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.panel-dish-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel-dish-card__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  min-height: 72px;
}

.panel-dish-card__row:last-child {
  border-bottom: none;
}

.panel-dish-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  flex-shrink: 0;
}

.panel-dish-card__row--off .panel-dish-thumb {
  opacity: 0.45;
}

.panel-dish-card__row--off .panel-dish-name {
  color: var(--muted);
}

.panel-dish-card__body {
  flex: 1;
  min-width: 0;
}

.panel-dish-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.panel-dish-portion {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-toggle {
  width: 48px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: #cbd5e1;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.panel-toggle[aria-pressed='true'] {
  background: #16a34a;
}

.panel-toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.panel-toggle[aria-pressed='true'] .panel-toggle__knob {
  transform: translateX(20px);
}

.panel-fab {
  position: fixed;
  right: var(--space-4);
  bottom: calc(var(--nav-h) + var(--space-4));
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--brand-ink);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-strong);
}

.panel-fab[aria-disabled='true'] {
  opacity: 0.5;
  pointer-events: none;
}

.panel-menu-desktop-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 1024px) {
  .panel-menu-desktop-grid {
    grid-template-columns: 1fr;
  }
}

.panel-table-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.panel-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.panel-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
}

.panel-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 14px;
}

.panel-dish-row--off .panel-dish-thumb {
  opacity: 0.45;
}

.panel-dish-row--off .panel-dish-name {
  color: var(--muted);
}

.panel-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-btn);
  height: var(--icon-btn);
  border-radius: var(--radius-md);
  color: var(--muted);
}

.panel-menu-aside {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.panel-menu-aside__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.panel-menu-aside__head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.panel-menu-aside__count {
  color: var(--danger);
}

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

.panel-mini-order {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}

.panel-mini-order__num {
  margin: 0;
  font-weight: 700;
}

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

.panel-order-tabs {
  display: flex;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
  margin-bottom: var(--space-4);
}

.panel-order-tab {
  flex: 1;
  height: 40px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.panel-order-tab--on {
  background: var(--ink);
  color: #fff;
}

.panel-order-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.panel-order-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.panel-order-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.panel-order-card__num {
  font-size: 20px;
  font-weight: 800;
}

.panel-order-card__time {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.panel-order-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.panel-order-badge--prep {
  background: var(--warning-soft);
  color: #92400e;
}

.panel-order-badge--now {
  background: #dbeafe;
  color: #1e3a8a;
}

.panel-order-card__customer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.panel-order-card__customer p {
  margin: 0;
  font-size: 14px;
}

.panel-call-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.panel-order-item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 14px;
  margin-bottom: 6px;
}

.panel-order-item__price {
  color: var(--muted);
}

.panel-order-card__foot {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
}

.panel-order-note {
  margin: var(--space-2) 0 0;
  font-size: 13px;
  color: var(--muted);
}

.panel-order-actions--split {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.panel-order-btn {
  height: 44px;
  border-radius: var(--radius-md);
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.panel-order-actions--split .panel-order-btn--ghost {
  flex: 1;
  background: var(--surface);
  color: var(--danger);
  border: 1px solid var(--line);
}

.panel-order-actions--split .panel-order-btn--brand {
  flex: 2;
  background: var(--brand-ink);
  color: var(--on-brand);
}

.panel-order-btn--full {
  width: 100%;
  margin-top: var(--space-3);
}

.panel-order-btn--brand.panel-order-btn--full {
  background: var(--brand-ink);
  color: var(--on-brand);
}

.panel-order-btn--success {
  background: #16a34a;
  color: #fff;
}

.panel-order-wait {
  margin: var(--space-3) 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.panel-order-empty {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--muted);
}

.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}

.panel-overlay[hidden] {
  display: none;
}

.panel-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-6) var(--space-4);
}

.panel-sheet__title {
  margin: 0 0 var(--space-2);
  font-size: 18px;
  font-weight: 700;
}

.panel-sheet__text {
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-size: 14px;
}

.panel-sheet__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.panel-sheet-btn {
  height: 44px;
  border-radius: var(--radius-md);
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.panel-sheet-btn--danger {
  background: var(--danger);
  color: #fff;
}

.panel-sheet-btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.panel-sheet-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.panel-cancel-caps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.panel-cancel-cap {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.panel-cancel-cap--on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.panel-cancel-other {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  font-family: var(--font);
  font-size: 16px;
  resize: vertical;
}

.panel-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--space-4));
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 60;
}

.panel-app--desktop .panel-toast {
  bottom: var(--space-6);
}

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

.panel-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.panel-soon__msg {
  color: var(--muted);
  font-size: 16px;
}

/* ===== 2-tarif ===== */
.panel-sound-banner {
  width: 100%;
  border: none;
  background: #dbeafe;
  color: #1e3a8a;
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
}

.panel-type--stol { background: #ede9fe; color: #5b21b6; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; }
.panel-type--take { background: #dbeafe; color: #1e3a8a; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; }
.panel-type--yetkaz { background: #d1fae5; color: #065f46; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; }
.panel-status--new { background: #dc2626; color: #fff; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; }
.panel-status--cook { background: #fef3c7; color: #92400e; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; }
.panel-status--way { background: #dbeafe; color: #1e3a8a; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; }
.panel-status--done { background: #dcfce7; color: #15803d; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; }
.panel-order-card--hot { border: 2px solid #f66e16; }
.panel-order-card__compact { font-size: 14px; color: var(--muted); margin: var(--space-2) 0; }
.panel-order-card__actions { display: flex; gap: var(--space-2); align-items: flex-start; margin-top: var(--space-3); }
.panel-order-card__btns { flex: 1; }
.panel-print-mini { width: var(--icon-btn); height: var(--icon-btn); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); flex-shrink: 0; }
.panel-order-btn--way { background: #1d4ed8; color: #fff; }

.panel-kassa__title { font-size: 22px; font-weight: 800; margin: 0; }
.panel-app--desktop .panel-kassa__title { font-size: 26px; }
.panel-kassa-stats, .panel-report-grid { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4); }
.panel-stat { flex: 1 1 140px; background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4); min-width: 140px; }
.panel-stat p { margin: 0; font-size: 12px; color: var(--muted); }
.panel-stat strong { font-size: 16px; }
.panel-stat--danger strong { color: #b91c1c; }
.panel-btn-cashback { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: var(--radius-md); background: var(--brand-ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.panel-kassa-grid--desk { display: grid; grid-template-columns: 1fr 340px; gap: var(--space-4); }
@media (max-width: 1024px) { .panel-kassa-grid--desk { grid-template-columns: 1fr; } }
.panel-kassa-list-card, .panel-kassa-aside { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-4); }
.panel-kassa-row { display: block; padding: var(--space-3); border-radius: var(--radius-md); text-decoration: none; color: inherit; margin-bottom: 6px; cursor: pointer; }
.panel-kassa-row--on { background: #fff7ed; }
.panel-kassa-row__meta { font-size: 13px; color: var(--muted); margin: 4px 0; }
.panel-pay-tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-pill); }
.panel-pay-tag--unpaid { background: #fee2e2; color: #b91c1c; }
.panel-pay-tag--paid { background: #dcfce7; color: #15803d; }
.panel-kassa-filters { display: flex; gap: 6px; }
.panel-kassa-filters button.on { font-weight: 700; text-decoration: underline; }
.panel-kassa-line { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #cbd5e1; font-size: 14px; }
.panel-kassa-bonus { background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius-md); padding: var(--space-3); margin: var(--space-3) 0; }
.panel-kassa-topay { font-size: 18px; margin: var(--space-3) 0; }
.panel-kassa-earn { color: #15803d; font-size: 13px; }
.panel-pay-caps { display: flex; gap: var(--space-2); margin: var(--space-3) 0; }
.panel-pay-cap { flex: 1; height: 44px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.panel-pay-cap--on { background: var(--ink); color: #fff; }
.panel-kassa-actions { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.panel-more__list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.panel-more__row { display: flex; align-items: center; gap: var(--space-3); min-height: 52px; padding: 0 var(--space-4); text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.panel-more__chev { margin-left: auto; color: var(--muted); }
.panel-report-types { color: var(--muted); margin: var(--space-3) 0; }
.panel-report-top { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-4); }
.panel-report-cashback { background: #fff7ed; padding: var(--space-3); border-radius: var(--radius-md); margin-top: var(--space-3); }
.panel-up { color: #15803d; }
.panel-down { color: #b91c1c; }
.panel-cashback-example { background: #fff7ed; border-radius: var(--radius-md); padding: var(--space-4); margin: var(--space-4) 0; }
.panel-save-bar { position: sticky; bottom: calc(var(--nav-h) + var(--space-2)); width: 100%; height: 48px; border: none; border-radius: var(--radius-md); background: var(--brand-ink); color: #fff; font-weight: 700; }
.panel-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: var(--space-2); text-decoration: none; color: var(--ink); }

/* ===== 3-tarif ===== */
.panel-role-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: #fff7ed;
  color: #c2410c;
  margin: 4px 0 0;
}
.panel-alert {
  background: #fee2e2;
  color: #991b1b;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  font-weight: 600;
  font-size: 14px;
}
.panel-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  margin: var(--space-3) 0;
  padding: var(--space-2);
  background: var(--surface);
  border-radius: var(--radius-lg);
}
.panel-chart__bar {
  flex: 1;
  min-width: 12px;
  min-height: 8px;
  border: none;
  border-radius: 4px 4px 0 0;
  background: #fdba74;
  cursor: pointer;
  padding: 0;
}
.panel-chart__bar--today { background: #ea580c; }
.panel-dash-list { list-style: none; margin: 0; padding: 0; }
.panel-dash-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.panel-dash__split { display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .panel-dash__split { grid-template-columns: 1fr 1fr; } }
.panel-shift-history { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-3); }
.panel-shift-history li { display: flex; justify-content: space-between; padding: 8px 0; }
.panel-btn-primary { min-height: 44px; padding: 0 16px; border: none; border-radius: var(--radius-md); background: var(--brand-ink); color: #fff; font-weight: 700; cursor: pointer; }
.panel-exp__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.panel-exp__totals { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: var(--space-3) 0; font-size: 14px; }
.panel-chip { min-height: 44px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); margin: 0 4px 8px 0; }
.panel-chip.on { background: #fff7ed; border-color: #fdba74; font-weight: 700; }
.panel-exp__list { list-style: none; margin: 0; padding: 0; }
.panel-exp__row { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.panel-exp__row strong { margin-left: auto; white-space: nowrap; }
.panel-field { display: block; margin: var(--space-3) 0; font-size: 14px; font-weight: 600; }
.panel-field input, .panel-field select, .panel-field textarea { width: 100%; margin-top: 6px; min-height: 44px; border-radius: var(--radius-md); border: 1px solid var(--line); padding: 8px 12px; font-size: 16px; }
.panel-input-lg { font-size: 28px; font-weight: 800; text-align: center; }
.panel-tables__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.panel-tables__col { display: flex; flex-direction: column; gap: var(--space-2); }
.panel-table { min-height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.panel-table--mine { background: #c2410c; color: #fff; border: none; cursor: pointer; width: 100%; }
.panel-table--busy { background: #fff; border: 1px solid var(--line); color: var(--muted); }
.panel-table--free { background: transparent; border: 2px dashed var(--line); cursor: pointer; width: 100%; }
.panel-table-dish { display: flex; justify-content: space-between; align-items: center; padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.panel-qty { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.panel-qty-btn { width: 44px; height: 44px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); font-size: 20px; cursor: pointer; }
.panel-send-kitchen { width: 100%; min-height: 48px; margin-top: var(--space-4); border: none; border-radius: var(--radius-md); background: var(--brand-ink); color: #fff; font-weight: 700; }
.panel-send-kitchen:disabled { opacity: 0.4; }
.panel-search { width: 100%; min-height: 44px; margin: var(--space-2) 0; border-radius: var(--radius-md); border: 1px solid var(--line); padding: 0 12px; }
.panel-shift-diff { font-size: 20px; font-weight: 800; margin: var(--space-2) 0; }
.panel-staff__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.panel-badge { font-size: 12px; padding: 4px 8px; border-radius: var(--radius-pill); background: #dcfce7; color: #15803d; }
.panel-badge--off { background: #f1f5f9; color: var(--muted); }
.panel-shift-row { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-3); border-bottom: 1px solid var(--line); }
.panel-shift-row__nums { text-align: right; display: flex; flex-direction: column; gap: 4px; }

@media print {
  body * { visibility: hidden; }
  #print-area, #print-area * { visibility: visible; }
  #print-area { position: absolute; left: 0; top: 0; width: 100%; display: block !important; }
  @page { size: 80mm auto; margin: 4mm; }
  .print-receipt { font-size: 12px; color: #000; width: 80mm; }
  .print-line { display: flex; justify-content: space-between; }
  .print-bold { font-weight: 700; }
  .print-small { font-size: 11px; }
  .print-foot { text-align: center; margin-top: 8px; }
}

/* ===== Demo ===== */
#app:has(.demo-page) {
  max-width: 720px;
}

.demo-page {
  padding: max(var(--space-6), env(safe-area-inset-top, 0px)) var(--space-4) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-height: 100dvh;
}

.demo-page__title {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
}

.demo-page__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.demo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.demo-card__head {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.demo-card__desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.demo-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  background: var(--brand-ink);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.demo-card__btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.demo-card__btns .demo-card__btn {
  flex: 1 1 88px;
}

.demo-page__client {
  align-self: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
}

.panel-demo-badge {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 30;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: #e2e8f0;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.panel-app:not(.panel-app--desktop) ~ .panel-demo-badge {
  bottom: calc(var(--nav-h) + var(--space-2));
}

.panel-app--desktop ~ .panel-demo-badge {
  bottom: var(--space-4);
}