:root {
  --admin-sidebar: 280px;
  --admin-topbar: 76px;
}

:root[data-theme="dark"] {
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.34);
}

body.admin-body {
  min-height: 100vh;
  background: var(--surface-muted);
  color: var(--on-surface);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  font-weight: 800;
}

.admin-brand span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--brand-contrast);
  box-shadow: var(--shadow-sm);
}

.admin-brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--admin-sidebar);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--surface);
  border-right: 1px solid var(--surface-border);
  box-shadow: var(--shadow-sm);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.admin-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-5);
}

.nav-group {
  display: grid;
  gap: var(--space-2);
}

.nav-group small {
  padding: 0 var(--space-3);
  color: var(--on-surface-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-bottom {
  margin-top: auto;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 42px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--on-surface-muted);
  font-weight: 800;
  transition: color var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}

.admin-nav-link i {
  font-size: 20px;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: color-mix(in srgb, var(--brand), transparent 90%);
  color: var(--brand);
}

.admin-frame {
  min-height: 100vh;
  padding-left: var(--admin-sidebar);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--admin-topbar);
  padding: var(--space-4) var(--space-6);
  background: color-mix(in srgb, var(--surface), transparent 10%);
  border-bottom: 1px solid var(--surface-border);
  backdrop-filter: blur(18px);
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.topbar-title span {
  display: block;
  color: var(--on-surface-muted);
  font-size: 12px;
  font-weight: 800;
}

.topbar-title h1 {
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 22px;
  font-weight: 800;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

.admin-main {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: var(--space-6);
}

.icon-btn,
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--on-surface);
}

.theme-toggle {
  position: relative;
}

.theme-toggle .ph-moon,
:root[data-theme="dark"] .theme-toggle .ph-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .ph-moon {
  display: block;
}

.restaurant-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 0 var(--space-3);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--on-surface-muted);
}

.restaurant-switch select {
  width: 190px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--on-surface);
  font-weight: 700;
}

.user-menu {
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 0 var(--space-3);
}

.user-menu span {
  overflow: hidden;
  color: var(--on-surface);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu small {
  color: var(--on-surface-muted);
  font-size: 12px;
}

.panel,
.auth {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.panel {
  padding: var(--space-5);
}

.panel.narrow {
  max-width: 720px;
}

.panel h1,
.auth h1 {
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 var(--space-4);
}

.hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-sm);
}

.hero-panel h1 {
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 var(--space-2);
}

.hero-panel p {
  max-width: 720px;
  margin: 0;
  color: var(--on-surface-muted);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: var(--space-2);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.stat-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat-card i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--brand), transparent 90%);
  color: var(--brand);
  font-size: 22px;
}

.stat-card small {
  display: block;
  color: var(--on-surface-muted);
  font-weight: 800;
}

.stat-card strong {
  display: block;
  color: var(--on-surface);
  font-size: 30px;
  line-height: 1.1;
}

.stat-card span {
  color: var(--on-surface-muted);
  font-size: 13px;
}

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

.toolbar h1 {
  margin: 0;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.search-box {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 260px;
  min-height: 42px;
  padding: 0 var(--space-3);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--on-surface-muted);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--on-surface);
}

.data-table {
  overflow: hidden;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.table-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 1fr) minmax(120px, .7fr) auto;
  align-items: center;
  gap: var(--space-3);
  min-height: 58px;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--surface-border);
}

.table-row:first-child {
  border-top: 0;
}

.table-row.table-head {
  min-height: 46px;
  background: var(--surface-muted);
  color: var(--on-surface-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.table-row strong {
  color: var(--on-surface);
}

.table-row span,
.muted {
  color: var(--on-surface-muted);
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

.sortable-list .table-row:not(.table-head) {
  cursor: grab;
}

.sortable-ghost {
  opacity: .45;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--brand), transparent 90%);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.badge.muted {
  background: var(--surface-muted);
  color: var(--on-surface-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 0 var(--space-4);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--on-surface);
  cursor: pointer;
  font-weight: 900;
}

.btn.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-contrast);
}

.btn.subtle {
  color: var(--brand);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.form-grid label {
  display: grid;
  gap: var(--space-2);
  color: var(--on-surface);
  font-size: 14px;
  font-weight: 800;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.inline-form input {
  width: 100%;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--on-surface);
  outline: 0;
  padding: 11px 12px;
}

.form-grid textarea,
.form-grid label:has(textarea),
.form-grid .full {
  grid-column: 1 / -1;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.inline-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand), transparent 86%);
}

.check {
  display: flex !important;
  align-items: center;
  gap: var(--space-2);
}

.check input {
  width: auto;
}

.slide-over-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, .46);
}

.slide-over {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 70;
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--surface-border);
  box-shadow: var(--shadow-lg);
}

.slide-over-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  border-bottom: 1px solid var(--surface-border);
}

.slide-over-head h2 {
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 20px;
  font-weight: 900;
}

.slide-over-body {
  overflow: auto;
  padding: var(--space-5);
}

.empty-state {
  display: grid;
  place-items: center;
  gap: var(--space-3);
  min-height: 220px;
  padding: var(--space-6);
  text-align: center;
  border: 1px dashed var(--surface-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.empty-state i {
  color: var(--brand);
  font-size: 36px;
}

.empty-state strong {
  color: var(--on-surface);
  font-size: 18px;
}

.empty-state span {
  max-width: 420px;
  color: var(--on-surface-muted);
}

.preview-card {
  display: grid;
  gap: var(--space-3);
  min-height: 220px;
  padding: var(--space-5);
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--primary), transparent 72%);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

.preview-card h3 {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 26px;
}

.preview-item {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg), #fff 72%);
  box-shadow: var(--shadow-sm);
}

.preview-item strong {
  color: var(--text);
}

.preview-item span {
  color: var(--accent);
  font-weight: 900;
}

.auth-frame {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-5);
}

.auth-shell {
  width: min(500px, 100%);
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.auth-header nav {
  display: flex;
  gap: var(--space-3);
  color: var(--on-surface-muted);
  font-weight: 800;
}

.auth {
  padding: var(--space-5);
}

.auth .form-grid,
.narrow .form-grid {
  grid-template-columns: 1fr;
}

.inline-form {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.mobile-only {
  display: none;
}

@media (max-width: 1180px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-row {
    grid-template-columns: minmax(180px, 1.3fr) minmax(140px, 1fr) auto;
  }

  .table-row > :nth-child(3):not(.row-actions) {
    display: none;
  }
}

@media (max-width: 860px) {
  .mobile-only {
    display: inline-grid;
  }

  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform var(--duration-base) var(--ease);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(15, 23, 42, .38);
  }

  .admin-frame {
    padding-left: 0;
  }

  .admin-topbar,
  .toolbar,
  .hero-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .toolbar-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .restaurant-switch,
  .restaurant-switch select,
  .search-box,
  .btn {
    width: 100%;
  }

  .admin-main {
    padding: var(--space-4);
  }

  .stats,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .table-row,
  .table-row.table-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .table-row.table-head {
    display: none;
  }

  .row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .user-menu {
    display: none;
  }
}

.upload-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 2px dashed var(--surface-border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--duration-base, .2s) var(--ease, ease), background var(--duration-base, .2s) var(--ease, ease);
}

.upload-dropzone.dragover {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand), transparent 92%);
}

.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}

.upload-dropzone img[data-upload-preview] {
  max-height: 110px;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.upload-dropzone img[data-upload-preview].hidden {
  display: none;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--on-surface-muted);
  font-size: 13px;
  pointer-events: none;
}

.upload-placeholder i {
  font-size: 22px;
}

.upload-placeholder.hidden {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, .45);
}

.modal {
  position: fixed;
  z-index: 61;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100vw - 32px));
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

.qr-print-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  width: 100%;
}

.qr-print-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0;
}

.qr-print-card p {
  margin: 0;
  font-size: 12px;
  color: var(--on-surface-muted);
  word-break: break-all;
}

.qr-print-card small {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.modal-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

.notice {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid;
  margin: 0 0 var(--space-4);
  font-size: 14px;
}

.notice.success {
  background: color-mix(in srgb, #16a34a, transparent 92%);
  border-color: color-mix(in srgb, #16a34a, transparent 65%);
  color: #15803d;
}

.notice.danger {
  background: color-mix(in srgb, #dc2626, transparent 92%);
  border-color: color-mix(in srgb, #dc2626, transparent 65%);
  color: #b91c1c;
}

.user-row-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-muted);
  cursor: grab;
  touch-action: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.sortable-list .table-row {
  cursor: default;
  grid-template-columns: 28px minmax(220px, 1.4fr) minmax(150px, 1fr) minmax(120px, .7fr) auto;
}

.design-preview {
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--b, var(--gray-50));
  border: 1px solid var(--surface-border);
}

.design-preview-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--gray-0);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--p, var(--brand));
  color: var(--t, var(--on-surface));
}

.design-preview-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--p, var(--brand));
}

.design-preview-item {
  font-family: var(--font-display);
  font-size: 20px;
}

.design-preview-price {
  font-weight: 700;
  color: var(--a, var(--brand-dark));
}

/* 2026 editorial operations refresh — ui-ux-pro-max */
:root {
  --admin-sidebar: 248px;
  --admin-topbar: 72px;
}

body.admin-body {
  background: var(--surface-muted);
  font-size: 15px;
}

.admin-sidebar {
  gap: 30px;
  padding: 28px 18px 20px;
  background: #20251f;
  border-right: 0;
  box-shadow: none;
  color: #f5f2e8;
}

.admin-brand { gap: 11px; letter-spacing: -.02em; }
.admin-brand span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8a94d;
  color: #20251f;
  box-shadow: none;
  font-size: 19px;
}
.admin-brand strong { color: #fffdf7; font-size: 15px; font-weight: 700; }
.sidebar-head .icon-btn { border-color: rgba(255,255,255,.14); background: transparent; color: #fff; }
.admin-nav { gap: 26px; }
.nav-group { gap: 3px; }
.nav-group small {
  padding: 0 12px 7px;
  color: #8e978b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}
.admin-nav-link {
  position: relative;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 5px;
  color: #bdc4ba;
  font-size: 14px;
  font-weight: 600;
}
.admin-nav-link i { width: 20px; font-size: 19px; }
.admin-nav-link:hover { background: rgba(255,255,255,.055); color: #fffdf7; }
.admin-nav-link.active { background: #f4f0e5; color: #20251f; }
.admin-nav-link.active::before {
  content: '';
  position: absolute;
  left: -18px;
  width: 3px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  background: #e8a94d;
}

.admin-topbar {
  min-height: var(--admin-topbar);
  padding: 13px clamp(20px, 3vw, 44px);
  background: color-mix(in srgb, var(--surface-muted), transparent 4%);
  border-bottom-color: var(--surface-border);
  backdrop-filter: blur(12px);
}
.topbar-title span { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.topbar-title h1 { margin-top: 2px; font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.admin-main { width: min(1260px, 100%); padding: 36px clamp(20px, 3vw, 44px) 64px; }
.icon-btn, .theme-toggle, .restaurant-switch { border-radius: 5px; box-shadow: none; }
.icon-btn, .theme-toggle { min-width: 44px; min-height: 44px; }
.restaurant-switch { min-height: 44px; background: transparent; }
.user-menu { min-width: 130px; border-left: 1px solid var(--surface-border); }
.user-menu span { font-size: 13px; font-weight: 700; }
.user-menu small { font-size: 11px; text-transform: capitalize; }

.hero-panel {
  position: relative;
  align-items: flex-end;
  margin-bottom: 0;
  padding: 14px 0 30px;
  border: 0;
  border-bottom: 1px solid var(--surface-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hero-panel h1 {
  max-width: 720px;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.025em;
}
.hero-panel p { max-width: 650px; font-size: 15px; line-height: 1.65; }
.eyebrow { margin-bottom: 12px; color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: .15em; }

.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--surface-border);
}
.stat-card {
  position: relative;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 24px 24px 25px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.stat-card + .stat-card { padding-left: 24px; border-left: 1px solid var(--surface-border); }
.stat-card i { grid-column: 2; grid-row: 1 / span 3; width: auto; height: auto; border-radius: 0; background: transparent; color: var(--gray-400); font-size: 22px; }
.stat-card small { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.stat-card strong { margin-top: 4px; font-family: var(--font-display); font-size: 35px; font-weight: 400; line-height: 1; }
.stat-card span { font-size: 12px; }

.panel, .auth { border-radius: var(--radius-md); box-shadow: none; }
.panel { padding: clamp(20px, 2.4vw, 30px); }
.panel h1, .auth h1 { font-family: var(--font); font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.toolbar { margin-bottom: 20px; }
.search-box { min-height: 44px; border-radius: 5px; background: var(--surface-muted); }
.data-table { border-radius: 5px; }
.table-row { min-height: 62px; }
.table-row.table-head { background: transparent; font-size: 10px; letter-spacing: .09em; }
.table-row:not(.table-head):hover { background: color-mix(in srgb, var(--brand), transparent 97%); }
.badge { min-height: 24px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.badge:not(.muted)::before { content: ''; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; }

.btn {
  min-height: 44px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  transition: background var(--duration-base) var(--ease), border-color var(--duration-base) var(--ease), color var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease);
}
.btn:hover { border-color: var(--gray-400); }
.btn:active { background: var(--gray-100); }
.btn.primary { border-color: var(--brand-dark); background: var(--brand); box-shadow: inset 0 -1px 0 rgba(0,0,0,.18); }
.btn.primary:hover { background: var(--brand-dark); }
.btn.subtle { color: var(--on-surface); font-weight: 600; }
.btn.subtle i { color: var(--on-surface-muted); }
.btn:focus-visible, .icon-btn:focus-visible, .theme-toggle:focus-visible, .admin-nav-link:focus-visible, .search-box:focus-within {
  outline: 3px solid color-mix(in srgb, var(--brand), transparent 72%);
  outline-offset: 2px;
}
.form-grid label { font-size: 13px; font-weight: 700; }
.form-grid input, .form-grid select, .form-grid textarea, .inline-form input { min-height: 44px; border-radius: 5px; }
.slide-over { width: min(680px, 100%); }
.slide-over-backdrop, .modal-backdrop { background: rgba(22, 26, 22, .58); }

:root[data-theme="dark"] .admin-sidebar { background: #111512; }
:root[data-theme="dark"] .admin-nav-link.active { background: #e9e5da; color: #171b18; }
:root[data-theme="dark"] .search-box { background: #1c211d; }
:root[data-theme="dark"] .btn:active { background: #2b312c; }

@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--surface-border); }
  .stat-card:nth-child(4) { border-top: 1px solid var(--surface-border); }
}

@media (max-width: 860px) {
  .admin-sidebar { width: min(286px, 88vw); }
  .admin-main { padding-top: 24px; }
  .admin-topbar { flex-direction: row; align-items: center; }
  .topbar-actions { justify-content: flex-end; }
  .restaurant-switch { width: auto; }
  .restaurant-switch select { width: 140px; }
  .hero-panel { align-items: stretch; padding-top: 8px; }
  .hero-panel .btn { width: 100%; margin-top: 8px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-card, .stat-card + .stat-card { padding: 20px 14px; border-left: 0; border-top: 1px solid var(--surface-border); }
  .stat-card:nth-child(odd) { padding-left: 0; }
  .stat-card:nth-child(even) { border-left: 1px solid var(--surface-border); }
}

@media (max-width: 520px) {
  .topbar-title span { display: none; }
  .topbar-title h1 { font-size: 17px; }
  .restaurant-switch { display: none; }
  .hero-panel h1 { font-size: 34px; }
  .stats { grid-template-columns: 1fr; }
  .stat-card, .stat-card + .stat-card { padding: 18px 0; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* Tasarım paketi palet özeti */
.design-list-name { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; min-width: 0; }
.design-list-name strong { align-self: end; }
.design-list-name small { grid-column: 2; color: var(--on-surface-muted); font-size: 11px; font-weight: 600; }
.design-swatches { grid-row: 1 / span 2; display: flex; align-items: center; }
.design-swatches i { width: 19px; height: 32px; margin-left: -4px; border: 2px solid var(--surface); border-radius: 4px; background: var(--swatch); box-shadow: 0 0 0 1px color-mix(in srgb, var(--on-surface), transparent 88%); }
.design-swatches i:first-child { margin-left: 0; }
.category-admin-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.category-admin-name img,
.category-admin-name > i { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 6px; }
.category-admin-name img { object-fit: cover; }
.category-admin-name > i { display: grid; place-items: center; background: var(--surface-muted); color: var(--on-surface-muted); font-size: 18px; }
.field-help { display: block; margin-top: 7px; color: var(--on-surface-muted); font-size: 11px; font-weight: 500; line-height: 1.45; }
.field-help.custom-active { color: var(--brand); }

.qr-loading { margin: 0; padding: 28px 0; color: var(--on-surface-muted); font-size: 12px; }

.filter-select { position: relative; display: flex; align-items: center; }
.filter-select > i { position: absolute; left: 13px; z-index: 1; color: var(--on-surface-muted); pointer-events: none; }
.filter-select select { min-width: 180px; height: 44px; padding: 0 36px 0 38px; border: 1px solid var(--surface-border); border-radius: var(--radius-sm); background: var(--surface); color: var(--on-surface); font: inherit; font-weight: 700; }
.list-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-4); color: var(--on-surface-muted); font-size: 12px; font-weight: 700; }
.pagination { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.page-btn { min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--surface-border); border-radius: var(--radius-sm); background: var(--surface); color: var(--on-surface); font: inherit; font-weight: 800; cursor: pointer; }
.page-btn:hover:not(:disabled), .page-btn.active { border-color: var(--brand); background: var(--brand); color: var(--brand-contrast); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.list-empty { display: grid; place-items: center; gap: 8px; min-height: 150px; color: var(--on-surface-muted); text-align: center; }
.list-empty[hidden] { display: none; }
.list-empty i { font-size: 28px; }
@media (max-width: 760px) { .filter-select, .filter-select select { width: 100%; } .list-footer { align-items: flex-start; flex-direction: column; } .pagination { justify-content: flex-start; } }
.product-admin-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.product-admin-name img,
.product-admin-name > i { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 8px; }
.product-admin-name img { border: 1px solid var(--surface-border); object-fit: cover; }
.product-admin-name > i { display: grid; place-items: center; background: var(--surface-muted); color: var(--on-surface-muted); font-size: 20px; }
.product-admin-name strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
[data-list-controller] [data-search-row][hidden] { display: none !important; }

.btn.is-saving,
button.is-saving { display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: wait; opacity: .82; }
.btn.is-saving:hover,
button.is-saving:hover { transform: none; }
.button-spinner { width: 16px; height: 16px; flex: 0 0 auto; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: button-spin .7s linear infinite; }
@keyframes button-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .button-spinner { animation-duration: 1.4s; } }
.page-size-select { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-surface-muted); font-size: 12px; font-weight: 700; }
.page-size-select select { height: 44px; padding: 0 32px 0 12px; border: 1px solid var(--surface-border); border-radius: var(--radius-sm); background: var(--surface); color: var(--on-surface); font: inherit; font-weight: 700; }
@media (max-width: 760px) { .page-size-select { width: 100%; } .page-size-select select { flex: 1; } }
.inline-action-form { display: inline-flex; margin: 0; }

.btn.danger { border-color: color-mix(in srgb, #b42318, transparent 68%); color: #b42318; }
.btn.danger:hover { border-color: #b42318; background: #b42318; color: #fff; }
