@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --tiktok: #fe2c55;
  --tiktok-dark: #d91b42;
  --tiktok-soft: #fff1f3;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --amber: #f59e0b;
  --red: #ef4444;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --transition: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

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

button {
  cursor: pointer;
}

.mono, .clock {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--tiktok);
  outline-offset: 2px;
}

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

/* ======================== THEME: CUSTOMER (LIGHT TIKTOK LIVE) ======================== */
body.theme-customer {
  background: #f4f5f7;
  color: #0f172a;
  padding-bottom: 112px;
}

.cust-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}

.cust-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tiktok);
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

.cust-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Voucher Strip */
.voucher-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}

.voucher-ticket {
  background: #ffffff;
  border: 1.5px solid #fecdd3;
  border-left: 5px solid var(--tiktok);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.voucher-ticket:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(254, 44, 85, 0.1);
}

.voucher-ticket.is-out {
  opacity: 0.68;
  border-color: #cbd5e1;
  border-left-color: #94a3b8;
  background: #f8fafc;
}

.voucher-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.voucher-code-badge {
  display: inline-block;
  background: var(--tiktok-soft);
  color: var(--tiktok-dark);
  border: 1px dashed #fda4af;
  font-weight: 700;
  font-size: 13px;
  padding: 3px 9px;
  border-radius: 6px;
}

.voucher-ticket.is-out .voucher-code-badge {
  background: #e2e8f0;
  color: #475569;
  border-color: #cbd5e1;
}

.voucher-clock {
  font-size: 12px;
  font-weight: 700;
  color: var(--tiktok-dark);
  background: #fff1f2;
  padding: 3px 8px;
  border-radius: 6px;
}

.progress-track {
  width: 100%;
  height: 7px;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #ff5b79, var(--tiktok));
  transition: width 260ms ease;
}

.progress-fill.is-low {
  background: linear-gradient(90deg, #f97316, #dc2626);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-badge-tl {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: var(--tiktok);
  box-shadow: 0 4px 10px rgba(254, 44, 85, 0.35);
}

.media-badge-tl.is-voucher {
  background: #0f172a;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.28);
}

.media-timer-br {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.soldout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.product-desc {
  margin: 0;
  font-size: 12.5px;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.price-now {
  font-size: 20px;
  font-weight: 800;
  color: var(--tiktok-dark);
}

.price-old {
  font-size: 13px;
  color: #64748b;
  text-decoration: line-through;
}

.discount-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--tiktok-dark);
  background: var(--tiktok-soft);
  padding: 2px 7px;
  border-radius: 6px;
}

.variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.variant-pill {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  transition: all var(--transition);
}

.variant-pill:hover:not(:disabled) {
  border-color: var(--tiktok);
}

.variant-pill.is-selected {
  border-color: var(--tiktok);
  background: var(--tiktok-soft);
  color: var(--tiktok-dark);
}

.variant-pill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 14px;
  transition: all var(--transition);
}

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

.btn-tiktok {
  background: var(--tiktok);
  color: #ffffff;
}

.btn-tiktok:hover:not(:disabled) {
  background: var(--tiktok-dark);
}

.btn-outline-light {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.btn-outline-light:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f8fafc;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}

/* Sticky Bottom Cart Bar (Customer) */
.sticky-cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.sticky-cart-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Drawer / Modal */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.58);
  display: flex;
  justify-content: flex-end;
}

.backdrop.is-center {
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.backdrop.hidden {
  display: none;
}

.drawer {
  width: 100%;
  max-width: 460px;
  height: 100%;
  background: #ffffff;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 36px rgba(15, 23, 42, 0.22);
}

.drawer-header {
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-footer {
  padding: 14px 18px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 12.5px;
  font-weight: 700;
}

.input, .select, .textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 9px 12px;
  font-size: 13.5px;
  background: #ffffff;
  color: #0f172a;
}

/* ======================== THEME: DARK STUDIO (STAFF & ADMIN) ======================== */
body.theme-studio {
  background: #0b1120;
  color: #f1f5f9;
  min-height: 100vh;
}

.studio-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e293b;
}

.studio-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.studio-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.studio-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

body.theme-studio .input,
body.theme-studio .select,
body.theme-studio .textarea {
  background: #0f172a;
  color: #f8fafc;
  border-color: #334155;
}

body.theme-studio .input:focus,
body.theme-studio .select:focus,
body.theme-studio .textarea:focus {
  border-color: #38bdf8;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.kpi-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.kpi-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.kpi-value {
  font-size: 24px;
  font-weight: 800;
  margin-top: 4px;
}

/* Studio Buttons & Badges */
.btn-studio {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
}

.btn-studio:hover:not(:disabled) {
  background: #334155;
}

.btn-emerald {
  background: var(--emerald-dark);
  color: #ffffff;
}

.btn-emerald:hover:not(:disabled) {
  background: var(--emerald);
}

.btn-amber {
  background: #d97706;
  color: #ffffff;
}

.btn-amber:hover:not(:disabled) {
  background: var(--amber);
}

.btn-danger {
  background: #dc2626;
  color: #ffffff;
}

.btn-danger:hover:not(:disabled) {
  background: #b91c1c;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-active {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-scheduled {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-paused {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.badge-ended {
  background: rgba(71, 85, 105, 0.25);
  color: #94a3b8;
  border: 1px solid rgba(71, 85, 105, 0.4);
}

.badge-out {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-voucher {
  background: rgba(6, 182, 212, 0.16);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.studio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.studio-table th {
  text-align: left;
  padding: 10px 12px;
  color: #94a3b8;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #1f2937;
  white-space: nowrap;
}

.studio-table td {
  padding: 12px;
  border-bottom: 1px solid #1e293b;
  vertical-align: middle;
}

.studio-table tr:hover td {
  background: rgba(30, 41, 59, 0.35);
}

.studio-table tr.is-flash-new {
  animation: flashRow 2.5s ease-out;
}

@keyframes flashRow {
  0% { background: rgba(16, 185, 129, 0.35); }
  100% { background: transparent; }
}

.tabs {
  display: inline-flex;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 3px;
  gap: 4px;
  flex-wrap: wrap;
}

.tab-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
}

.tab-btn.is-active {
  background: #1e293b;
  color: #ffffff;
}

.modal-panel {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: #111827;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
}

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

@media (max-width: 700px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Toast */
.toast-stack {
  position: fixed;
  top: 14px;
  left: 12px;
  right: 12px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  max-width: min(380px, 100%);
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #334155;
  border-left: 4px solid #38bdf8;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.toast.is-success { border-left-color: var(--emerald); }
.toast.is-error { border-left-color: var(--red); }
.toast.is-warn { border-left-color: var(--amber); }

.empty-state {
  text-align: center;
  padding: 36px 16px;
  color: #64748b;
}

/* ======================== ADMIN RESPONSIVE (MOBILE-FIRST FULL CONTROLS) ======================== */
html:has(body.admin-page) {
  overflow-x: clip;
}

body.admin-page {
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

body.admin-modal-open {
  overflow: hidden;
}

.admin-page button,
.admin-page .btn {
  touch-action: manipulation;
}

.admin-page .field,
.admin-page .grid-2 > *,
.admin-inline-edit-grid > div {
  min-width: 0;
}

.admin-session-bar,
.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-session-select {
  width: auto;
  min-width: 250px;
  font-weight: 700;
}

.admin-quick-add-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.admin-inline-edit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-end;
}

.admin-inline-field-price {
  width: 108px;
}

.admin-inline-field-stock {
  width: 76px;
}

.admin-ctrl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-voucher-qty-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-var-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 90px auto;
  gap: 8px;
  align-items: center;
}

.admin-search-input {
  width: 230px;
}

.admin-log-url {
  font-size: 11.5px;
  color: #94a3b8;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .admin-quick-add-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-quick-add-grid .admin-span-full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .admin-page .studio-header {
    position: static;
  }
  .admin-page .studio-header-inner {
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .admin-page .studio-container {
    padding: 12px;
    gap: 14px;
    max-width: 100%;
  }
  .admin-page .studio-card {
    padding: 14px;
    border-radius: 14px;
    max-width: 100%;
    overflow-x: clip;
  }
  .admin-session-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .admin-session-select {
    min-width: 0;
    flex: 1 1 180px;
    width: 100%;
  }
  .admin-session-bar > button {
    flex: 1 1 calc(33.33% - 6px);
    min-height: 36px;
    padding: 6px 8px;
  }
  .admin-top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
  .admin-top-actions .btn {
    flex: 1 1 auto;
    min-height: 36px;
    padding: 6px 10px;
    font-size: 12px;
    text-align: center;
  }
  .admin-tabs-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
  }
  .admin-tabs-scroll::-webkit-scrollbar {
    display: none;
  }
  .admin-tabs-scroll .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 12px;
  }
  .admin-page .input,
  .admin-page .select,
  .admin-page .textarea {
    font-size: 16px;
    min-width: 0;
    max-width: 100%;
  }
  .admin-page input[type="datetime-local"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: block;
  }
  .admin-search-input {
    width: 100%;
  }
  .admin-page .table-wrap {
    overflow-x: visible;
  }
  .admin-responsive-table,
  .admin-responsive-table tbody,
  .admin-responsive-table tr,
  .admin-responsive-table td {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .admin-responsive-table thead {
    display: none;
  }
  .admin-responsive-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .admin-responsive-table tr {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 12px;
    overflow-x: clip;
  }
  .admin-responsive-table td {
    padding: 9px 0;
    border-bottom: 1px dashed #1e293b;
  }
  .admin-responsive-table td:first-child {
    padding-top: 2px;
  }
  .admin-responsive-table td:last-child {
    border-bottom: none;
    padding-bottom: 2px;
  }
  .admin-responsive-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 6px;
  }
  .admin-responsive-table td.empty-state::before {
    display: none;
  }
  .admin-inline-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .admin-inline-field-price,
  .admin-inline-field-stock {
    width: 100% !important;
  }
  .admin-inline-edit-grid [data-save-inline-item] {
    margin-top: 0 !important;
    min-height: 38px;
    align-self: end;
  }
  .admin-ctrl-actions .btn {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12.5px;
    flex: 1 1 auto;
  }
  .admin-log-url {
    max-width: 100%;
    white-space: normal;
    word-break: break-all;
  }
  .admin-voucher-qty-row .input {
    flex: 1 1 80px;
    width: auto !important;
    min-width: 0;
  }
  .admin-page .backdrop.is-center {
    padding: 10px;
  }
  .modal-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding: 16px;
    max-height: 92dvh;
    border-radius: 14px;
  }
  .admin-var-row {
    grid-template-columns: 1fr 90px;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 10px;
  }
  .admin-var-row .var-name {
    grid-column: 1 / -1;
    order: -1;
  }
  .admin-var-row .remove-var-row {
    grid-column: 1 / -1;
  }
}
