/* Bolmart Customer Chatbot & YourDataCorp Lakeflow Backend Interactive Demo */
:root {
  /* Bolmart Brand Colors */
  --wm-blue: #0071dc;
  --wm-blue-dark: #004f9a;
  --wm-blue-light: #e6f1fc;
  --wm-spark-yellow: #ffc220;
  --wm-spark-orange: #f47321;
  --wm-gray-bg: #c2cddb;
  --wm-card-bg: #ffffff;
  --wm-text-dark: #1e293b;
  --wm-text-muted: #475569;
  --wm-border: #b2c1d3;

  /* YourDataCorp Brand Colors (Slate Engine) */
  --db-bg: #3d4b60;
  --db-surface: #334155;
  --db-surface-elevated: #1e293b;
  --db-border: #4f5f78;
  --db-text: #ffffff;
  --db-text-muted: #e2e8f0;
  --db-orange: #ff7a59;
  --db-orange-soft: rgba(255, 122, 89, 0.15);
  --db-blue: #38bdf8;
  --db-emerald: #34d399;
  --db-warning: #fbbf24;
  --db-error: #ef4444;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: #dce3ed;
  color: var(--wm-text-dark);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Master Header & Player Control Bar */
.master-header {
  background: #edf2f7;
  border-bottom: 1px solid #cbd5e1;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
}

.header-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-combo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-pill-wm {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0071dc;
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}

.brand-pill-wm svg {
  fill: #ffc220;
}

.brand-divider {
  color: #64748b;
  font-weight: 300;
  font-size: 0.85rem;
}

.brand-pill-db {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.78rem;
}

.brand-pill-db span.db-tag {
  color: var(--db-orange);
  font-weight: 700;
}

/* Player Controls Bar */
.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.btn-player {
  background: transparent;
  border: none;
  color: #334155;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-player:hover {
  background: #e2e8f0;
  color: #0071dc;
}

.btn-player.primary-play {
  background: linear-gradient(135deg, #7C3AED 0%, #9333EA 45%, #DB2777 100%) !important;
  color: #ffffff !important;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px rgba(147, 51, 234, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  font-weight: 700;
}

.btn-player.primary-play *,
.btn-player.primary-play span {
  color: #ffffff !important;
}

.btn-player.primary-play:hover {
  background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 45%, #EC4899 100%) !important;
  box-shadow: 0 6px 26px rgba(168, 85, 247, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  color: #ffffff !important;
}

/* ANIMATED SHEEN ON START DEMO BUTTON */
.btn-player.start-sheen {
  background: linear-gradient(135deg, #7C3AED 0%, #9333EA 45%, #DB2777 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: pulse-start-btn 2s infinite ease-in-out;
  color: #ffffff !important;
}

.btn-player.start-sheen::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: rotate(25deg);
  animation: sheen-sweep 2.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes sheen-sweep {
  0% { left: -100%; }
  60%, 100% { left: 180%; }
}

@keyframes pulse-start-btn {
  0%, 100% { transform: scale(1); box-shadow: 0 0 14px rgba(147, 51, 234, 0.45); }
  50% { transform: scale(1.04); box-shadow: 0 0 24px rgba(219, 39, 119, 0.75); }
}

.step-indicator-pills {
  display: flex;
  gap: 4px;
  align-items: center;
  margin: 0 6px;
}

.step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.step-dot:hover {
  border-color: #0071dc;
  color: #0071dc;
}

.step-dot.active {
  background: #0071dc;
  color: #ffffff;
  border-color: #0071dc;
  box-shadow: 0 0 10px rgba(0, 113, 220, 0.4);
}

.step-dot.completed {
  background: #e2e8f0;
  color: #059669;
  border-color: #10b981;
}

.speed-select {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  cursor: pointer;
}

/* Main Split Viewport */
.split-viewport {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* LEFT HALF: Walmart Customer Chatbot (Consumer Product) */
.walmart-panel {
  width: 48%;
  background: #c2cddb;
  border-right: 2px solid #a8b8cc;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.wm-chat-header {
  background: #d8e1ec;
  border-bottom: 1px solid #b2c1d3;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  z-index: 10;
}

.wm-assistant-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wm-avatar-spark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0071dc;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 113, 220, 0.3);
}

.wm-avatar-spark svg {
  fill: #ffc220;
}

.wm-title-group {
  display: flex;
  flex-direction: column;
}

.wm-bot-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wm-plus-badge {
  background: #ffc220;
  color: #000;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.wm-sub-status {
  font-size: 0.74rem;
  color: #475569;
}

.wm-user-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* Chat Messages Container */
.wm-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

/* Standby Greeting Card on initial load */
.wm-standby-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px dashed #94a3b8;
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  margin: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  text-align: center;
  animation: fadeInMsg 0.4s ease-out;
}

.wm-msg-row {
  display: flex;
  gap: 10px;
  max-width: 90%;
  animation: slideIn 0.25s ease-out;
}

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

.wm-msg-row.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.wm-msg-bubble {
  background: #ffffff;
  border: 1px solid #b2c1d3;
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #1e293b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.wm-msg-row.user .wm-msg-bubble {
  background: #0071dc;
  color: #ffffff;
  border-color: #0071dc;
  border-bottom-right-radius: 4px;
}

.wm-msg-row.assistant .wm-msg-bubble {
  border-bottom-left-radius: 4px;
}

/* Typewriter Cursor */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #ffffff;
  margin-left: 2px;
  animation: blink-cursor 0.7s infinite;
  vertical-align: text-bottom;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Walmart Thinking Bar */
.wm-thinking-row {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 90%;
  animation: slideIn 0.2s ease-out;
}

.wm-thinking-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #b2c1d3;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 10px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.wm-thinking-spark {
  animation: spin-spark 2.5s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes spin-spark {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.wm-thinking-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.wm-thinking-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wm-blue);
  animation: bounce-dot 1.2s infinite ease-in-out;
}

.wm-thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.wm-thinking-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce-dot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

.wm-thinking-text {
  font-size: 0.78rem;
  color: #475569;
  font-weight: 500;
  font-style: italic;
}

/* Product Cards Grid */
.wm-product-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.wm-product-card {
  background: #ffffff;
  border: 1px solid #b2c1d3;
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.wm-product-card:hover {
  border-color: var(--wm-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.product-img-box {
  font-size: 2rem;
  background: #d4dfec;
  border-radius: var(--radius-sm);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.product-stock-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.product-title {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
  height: 32px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-allergens {
  font-size: 0.68rem;
  color: #475569;
}

.btn-add-cart {
  background: var(--wm-spark-yellow);
  color: #1e293b;
  border: 1px solid #eab308;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-add-cart:hover {
  background: #f59e0b;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(255, 194, 32, 0.45);
}

/* Cart Summary Card */
.wm-cart-summary-card {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #1e293b;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  border-top: 1px dashed #86efac;
  padding-top: 4px;
  color: #15803d;
}

/* Walmart Input Box */
.wm-chat-input-bar {
  padding: 12px 18px;
  background: #d8e1ec;
  border-top: 1px solid #b2c1d3;
  display: flex;
  gap: 8px;
  align-items: center;
}

.wm-input-field {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #b2c1d3;
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-size: 0.85rem;
  outline: none;
  font-family: var(--font-sans);
  color: #1e293b;
}

.wm-input-field:focus {
  border-color: var(--wm-blue);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 113, 220, 0.15);
}

.wm-input-field:disabled {
  background: #eef2f7;
  color: #64748b;
  border-color: #cbd5e1;
  cursor: not-allowed;
  font-style: italic;
  box-shadow: none;
}

.btn-player:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  background: #64748b !important;
}

/* RIGHT HALF: Behind-The-Scenes YourDataCorp Lakeflow Engine */
.backend-panel {
  width: 52%;
  background: #3d4b60;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 12px 16px;
  gap: 10px;
}

/* Top Active Step Header */
.backend-step-header {
  background: #334155;
  border: 1px solid #4f5f78;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.backend-header-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ff7a59;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.backend-step-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.pipeline-stage-badge {
  background: #1e293b;
  border: 1px solid #475569;
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* PERSISTENT CONSOLE (THE HERO COMPONENT) */
.console-hero-card {
  background: #1e293b;
  border: 1px solid #4f5f78;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 220px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.console-header-bar {
  background: #334155;
  border-bottom: 1px solid #4f5f78;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.console-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--db-emerald);
  box-shadow: 0 0 8px var(--db-emerald);
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.console-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.console-badge-count {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-console-clear {
  background: transparent;
  border: 1px solid #64748b;
  color: #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-console-clear:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Console Stream Output */
.console-stream {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.5;
}

/* Section Header in Console matching Step Title */
.console-section-header {
  margin: 10px 0 4px 0;
  padding: 6px 12px;
  background: #0f172a;
  border: 1px solid #334155;
  border-left: 4px solid #38bdf8;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.02em;
  animation: logSlide 0.2s ease-out;
}

.console-section-header.anomaly {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  border-left-color: #ef4444;
  color: #fee2e2;
}

.telemetry-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  animation: logSlide 0.15s ease-out;
}

@keyframes logSlide {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}

.telemetry-time {
  color: #94a3b8;
  flex-shrink: 0;
  font-size: 0.7rem;
}

.telemetry-stage {
  color: #38bdf8;
  font-weight: 700;
  flex-shrink: 0;
}

.telemetry-msg {
  color: #f8fafc;
  word-break: break-word;
}

/* Standard Status Modifiers */
.telemetry-line.INFO .telemetry-stage { color: #38bdf8; }
.telemetry-line.EXEC .telemetry-stage { color: #c084fc; }
.telemetry-line.EXEC .telemetry-msg { color: #f3e8ff; }
.telemetry-line.SUCCESS .telemetry-stage { color: #34d399; }
.telemetry-line.SUCCESS .telemetry-msg { color: #a7f3d0; }
.telemetry-line.WARN .telemetry-stage { color: #fbbf24; }
.telemetry-line.WARN .telemetry-msg { color: #fef3c7; }

/* PROMINENT RED FLAGGING FOR ERRORS */
.telemetry-line.ERROR {
  background: rgba(239, 68, 68, 0.25);
  border-left: 4px solid #ef4444;
  padding: 6px 10px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
  animation: pulse-error 1.5s infinite;
}

@keyframes pulse-error {
  0%, 100% { border-color: #ef4444; }
  50% { border-color: #ff8585; }
}

.telemetry-line.ERROR .telemetry-stage {
  color: #ff4d4f;
  font-weight: 800;
  text-shadow: 0 0 6px rgba(255, 77, 79, 0.5);
}

.telemetry-line.ERROR .telemetry-msg {
  color: #ff8585;
  font-weight: 700;
}

/* Bottom Split: Lakeflow Code & Delta Grid */
.backend-bottom-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  height: 200px;
  flex-shrink: 0;
}

/* Lakeflow Code Card */
.code-card {
  background: #1e293b;
  border: 1px solid #4f5f78;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.code-card-header {
  background: #334155;
  border-bottom: 1px solid #4f5f78;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #e2e8f0;
}

.code-view-pre {
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  color: #f1f5f9;
  overflow: auto;
  flex: 1;
}

/* Live Delta Grid Card */
.delta-grid-card {
  background: #1e293b;
  border: 1px solid #4f5f78;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.grid-card-header {
  padding: 6px 10px;
  background: #334155;
  border-bottom: 1px solid #4f5f78;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
}

.delta-table-wrap {
  overflow: auto;
  flex: 1;
}

.delta-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.delta-table th {
  background: #0f172a;
  color: #e2e8f0;
  text-align: left;
  padding: 5px 8px;
  border-bottom: 1px solid #334155;
  font-weight: 600;
  white-space: nowrap;
}

.delta-table td {
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .split-viewport {
    flex-direction: column;
  }
  .walmart-panel, .backend-panel {
    width: 100%;
    height: 50vh;
  }
  .backend-bottom-split {
    grid-template-columns: 1fr;
    height: auto;
  }
}
