/* ═══════════════════════════════════════════════════════
   Performance Marketing Copilot — Design System
   ═══════════════════════════════════════════════════════ */

:root {
  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --border: #F1F2F4;
  --border-md: #E5E7EB;
  --primary: #4F46E5;
  --primary-light: #EEF2FF;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.07);
  --nav-h: 64px;
  --sidebar-w: 280px;
}

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

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; }
input { font-family: inherit; }

/* ═══ SCROLLBARS ═══ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 200;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--primary-light);
  flex-shrink: 0;
}

.nav-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.nav-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  transition: background 0.15s;
  position: relative;
}

.nav-icon-btn:hover { background: var(--bg); }

.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: #EF4444;
  border-radius: 50%;
  border: 1.5px solid white;
}

.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: white;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}

.nav-caret { font-size: 9px; opacity: 0.7; }

/* ═══════════════════════════════════════════════════════
   APP LAYOUT
   ═══════════════════════════════════════════════════════ */
.app-layout {
  display: flex;
  margin-top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
}

/* ═══════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border-md);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 16px 16px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 10;
}

.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.reset-btn {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.reset-btn:hover { background: var(--primary-light); }

/* Filter groups */
.filter-group {
  margin-bottom: 14px;
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.fi-icon { font-size: 13px; }

/* Custom filter select */
.filter-select-wrap { position: relative; }

.fs-trigger {
  background: #F9FAFB;
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  min-height: 38px;
  gap: 6px;
  transition: border-color 0.15s;
}

.fs-trigger:hover { border-color: #D1D5DB; }
.filter-select-wrap.open .fs-trigger { border-color: var(--primary); }

.fs-chips {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-height: 22px;
}

.fs-chip {
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
}

.fs-chip-x {
  font-weight: 700;
  opacity: 0.6;
  cursor: pointer;
  line-height: 1;
}

.fs-chip-x:hover { opacity: 1; }

.fs-placeholder {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 22px;
}

.fs-caret {
  color: var(--text-muted);
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 5px;
  transition: transform 0.15s;
}

.filter-select-wrap.open .fs-caret { transform: rotate(180deg); }

.fs-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
}

.fs-option {
  padding: 9px 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.1s;
}

.fs-option:hover { background: var(--bg); }

.fs-option::before {
  content: '';
  width: 15px; height: 15px;
  border: 1.5px solid #D1D5DB;
  border-radius: 4px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.fs-option.selected { color: var(--primary); font-weight: 500; }

.fs-option.selected::before {
  background: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════ */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* ═══ PAGE HEADER ═══ */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  line-height: 1.3;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.date-badge {
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ═══ METRIC CARDS ═══ */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.metric-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.metric-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.mi-purple { background: #EDE9FE; }
.mi-blue   { background: #DBEAFE; }
.mi-green  { background: #D1FAE5; }
.mi-yellow { background: #FEF3C7; }
.mi-pink   { background: #FCE7F3; }
.mi-violet { background: #F5F3FF; }

.metric-body { flex: 1; min-width: 0; }

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.metric-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ═══════════════════════════════════════════════════════
   CONTENT GRID
   ═══════════════════════════════════════════════════════ */
.content-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

/* ═══════════════════════════════════════════════════════
   CHAT PANEL
   ═══════════════════════════════════════════════════════ */
.chat-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  box-shadow: var(--shadow-sm);
}

/* Welcome state */
.welcome-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 20px;
  text-align: center;
  overflow-y: auto;
}

.robot-wrap {
  margin-bottom: 20px;
}

.robot-svg {
  width: 160px;
  height: 180px;
  filter: drop-shadow(0 8px 24px rgba(79, 70, 229, 0.18));
}

.speech-bubble {
  position: absolute;
  top: 18px;
  right: -14px;
  background: #6366F1;
  color: white;
  padding: 7px 14px;
  border-radius: 18px 18px 18px 4px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

.welcome-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.welcome-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Suggested chips */
.chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 480px;
}

.s-chip {
  background: #F9FAFB;
  border: 1px solid var(--border-md);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
  line-height: 1.4;
}

.s-chip:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #C7D2FE;
}

/* Chat messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Message bubbles */
.msg-user {
  display: flex;
  justify-content: flex-end;
}

.msg-user .bubble {
  background: var(--primary);
  color: white;
  border-radius: 16px 16px 4px 16px;
  padding: 10px 16px;
  font-size: 14px;
  max-width: 80%;
  line-height: 1.5;
}

.msg-ai {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.msg-ai .avatar {
  width: 32px; height: 32px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.answer-card {
  background: #F9FAFB;
  border: 1px solid var(--border-md);
  border-radius: 4px 16px 16px 16px;
  padding: 14px 16px;
  flex: 1;
  min-width: 0;
}

.answer-section-head {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.answer-decision {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.answer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.answer-body {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
}

.action-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.action-Scale      { background: #D1FAE5; color: #065F46; }
.action-Pause      { background: #FEE2E2; color: #991B1B; }
.action-Test       { background: #FEF3C7; color: #92400E; }
.action-Investigate{ background: var(--primary-light); color: #3730A3; }

.confidence-bar-bg {
  height: 6px;
  background: #E5E7EB;
  border-radius: 3px;
  flex: 1;
  overflow: hidden;
}

.confidence-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.typing-dots {
  background: #F9FAFB;
  border: 1px solid var(--border-md);
  border-radius: 4px 16px 16px 16px;
  padding: 12px 16px;
  display: flex;
  gap: 5px;
  align-items: center;
}

.typing-dot {
  width: 7px; height: 7px;
  background: #9CA3AF;
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}

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

@keyframes pulse {
  0%, 60%, 100% { transform: scale(1); opacity: 0.5; }
  30% { transform: scale(1.3); opacity: 1; }
}

/* Agent trace expander */
.trace-expander {
  margin-top: 10px;
}

.trace-toggle {
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
}

.trace-toggle:hover { opacity: 0.8; }

.trace-body {
  background: #F9FAFB;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-top: 6px;
  font-size: 12px;
}

.trace-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin: 2px 2px 2px 0;
}

.trace-agent { background: var(--primary-light); color: var(--primary); }
.trace-tool  { background: #FEF3C7; color: #92400E; }
.trace-table { background: #D1FAE5; color: #065F46; }

/* Chat input area */
.chat-input-area {
  padding: 14px 16px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chat-input-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-input-inner {
  flex: 1;
  background: #F9FAFB;
  border: 1px solid var(--border-md);
  border-radius: 12px;
  padding: 10px 14px 8px;
  transition: border-color 0.15s;
}

.chat-input-inner:focus-within { border-color: var(--primary); background: white; }

.chat-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

.chat-input::placeholder { color: var(--text-muted); }

.chat-input-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.input-action-btn {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.input-action-btn:hover {
  background: var(--border);
  color: var(--text-secondary);
}

.send-btn {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}

.send-btn:hover { background: #4338CA; }
.send-btn:active { transform: scale(0.94); }
.send-btn:disabled { background: #C7D2FE; cursor: not-allowed; }

.disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════
   RIGHT PANEL
   ═══════════════════════════════════════════════════════ */
.right-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
}

/* Help card */
.help-card {
  background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 100%);
  border: 1px solid #C7D2FE;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.help-card-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.help-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #3730A3;
  margin-bottom: 12px;
}

.help-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

.help-check {
  width: 18px; height: 18px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.help-robot-wrap {
  position: relative;
  flex-shrink: 0;
}

/* Insights card */
.insights-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  flex: 1;
  box-shadow: var(--shadow-sm);
}

.insights-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.insights-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.insights-view-all {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #F9FAFB;
  border-radius: 10px;
  margin-bottom: 8px;
}

.insight-item:last-child { margin-bottom: 0; }

.insight-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ii-green  { background: #D1FAE5; }
.ii-yellow { background: #FEF3C7; }
.ii-blue   { background: #DBEAFE; }

.insight-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
}

.insight-empty {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0;
}

/* ═══════════════════════════════════════════════════════
   EVIDENCE PANEL
   ═══════════════════════════════════════════════════════ */
#evidence-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
}

.evidence-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.evidence-dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
}

.evidence-content {
  font-size: 13px;
}

/* Evidence table */
.ev-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ev-table th {
  background: #F9FAFB;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 11px;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-md);
  white-space: nowrap;
}

.ev-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: #374151;
  vertical-align: middle;
}

.ev-table tr:last-child td { border-bottom: none; }
.ev-table tr:hover td { background: #F9FAFB; }

.score-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.score-high { background: #D1FAE5; color: #065F46; }
.score-mid  { background: #FEF3C7; color: #92400E; }
.score-low  { background: #FEE2E2; color: #991B1B; }

/* Plotly chart containers */
.plotly-chart { width: 100%; min-height: 300px; }

/* Copy gen output */
.copy-gen-section { margin-bottom: 16px; }

.copy-gen-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.copy-variant {
  background: #F9FAFB;
  border: 1px solid var(--border-md);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
}

/* Platform comparison */
.platform-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.platform-card {
  background: #F9FAFB;
  border: 1px solid var(--border-md);
  border-radius: 10px;
  padding: 14px;
}

.platform-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.platform-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}

.platform-stat:last-child { border-bottom: none; }
.platform-stat-label { color: var(--text-muted); }
.platform-stat-value { font-weight: 600; color: var(--text-primary); }

/* Utility */
.hidden { display: none !important; }

.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.markdown-body p { margin-top: 0; margin-bottom: 0.5em; } 
.markdown-body p:last-child { margin-bottom: 0; }
.markdown-body ul, .markdown-body ol { margin-top: 0; margin-bottom: 0.5em; padding-left: 1.5em; }
.markdown-body table { border-collapse: collapse; width: 100%; margin-bottom: 0.5em; }
.markdown-body th, .markdown-body td { border: 1px solid #E5E7EB; padding: 6px; text-align: left; }
