/* ==========================================================================
   Meta Ads Creative Analytics — Core Styles
   Aesthetic: Dark analytical dashboard with warm accent tones
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #0c0e14;
  --bg-secondary: #13161f;
  --bg-card: #181c27;
  --bg-card-hover: #1e2330;
  --bg-elevated: #222739;
  --border: #2a2f42;
  --border-light: #353b52;
  --text-primary: #e8eaf0;
  --text-secondary: #8b90a5;
  --text-muted: #5c6079;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-subtle: rgba(245, 158, 11, 0.12);
  --green: #22c55e;
  --green-subtle: rgba(34, 197, 94, 0.12);
  --red: #ef4444;
  --red-subtle: rgba(239, 68, 68, 0.12);
  --blue: #3b82f6;
  --blue-subtle: rgba(59, 130, 246, 0.12);
  --purple: #a855f7;
  --purple-subtle: rgba(168, 85, 247, 0.12);
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { font-size: 14px; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ==========================================================================
   Layout
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 56px;
  gap: 32px;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.app-logo .logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent), #f97316);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #000;
  font-weight: 800;
}

.nav-tabs {
  display: flex;
  gap: 4px;
  height: 100%;
  align-items: stretch;
}

.nav-tab {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

.nav-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.main-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ==========================================================================
   Onboarding Banner
   ========================================================================== */
.onboarding-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(249, 115, 22, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: none;
}

.onboarding-banner.show { display: block; }

.onboarding-banner h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.onboarding-banner p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.onboarding-steps {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.onboarding-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
}

.onboarding-step .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--border);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.onboarding-step.done .step-num {
  background: var(--green);
  color: #fff;
}

.onboarding-step.done { opacity: 0.6; }

/* ==========================================================================
   Cards & Panels
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: var(--transition);
}

.card:hover { border-color: var(--border-light); }

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

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:hover { background: var(--bg-card-hover); border-color: var(--border-light); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
}

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

.btn-danger {
  background: var(--red-subtle);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--red);
}

.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.btn-sm { padding: 5px 10px; font-size: 0.8rem; }

.btn:disabled, .btn.loading {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 4px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group .helper {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

input[type="text"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b90a5' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

/* ==========================================================================
   Pill / Tag
   ========================================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.pill-active { background: var(--green-subtle); color: var(--green); }
.pill-inactive { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.pill-active:hover { background: rgba(34, 197, 94, 0.2); }
.pill-inactive:hover { background: rgba(255,255,255,0.1); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.tag-accent { background: var(--accent-subtle); color: var(--accent); border-color: rgba(245,158,11,0.2); }
.tag-green { background: var(--green-subtle); color: var(--green); border-color: rgba(34,197,94,0.2); }
.tag-red { background: var(--red-subtle); color: var(--red); border-color: rgba(239,68,68,0.2); }
.tag-blue { background: var(--blue-subtle); color: var(--blue); border-color: rgba(59,130,246,0.2); }
.tag-purple { background: var(--purple-subtle); color: var(--purple); border-color: rgba(168,85,247,0.2); }

/* ==========================================================================
   Table
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

thead th {
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

thead th:hover { color: var(--text-secondary); }

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

tbody tr:hover { background: rgba(255,255,255,0.02); }
tbody tr:last-child { border-bottom: none; }

td {
  padding: 10px 14px;
  white-space: nowrap;
  color: var(--text-secondary);
}

td.text-right, th.text-right { text-align: right; }

.table-name-cell {
  color: var(--text-primary);
  font-weight: 500;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.table-name-cell:hover { color: var(--accent); }

/* ==========================================================================
   Filters Bar
   ========================================================================== */
.filters-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.filters-bar select {
  width: auto;
  min-width: 140px;
  padding: 7px 30px 7px 10px;
  font-size: 0.82rem;
}

.filters-bar .btn { height: 34px; }

.view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-left: auto;
}

.view-toggle button {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}

.view-toggle button.active {
  background: var(--accent-subtle);
  color: var(--accent);
}

.view-toggle button:hover:not(.active) {
  background: rgba(255,255,255,0.03);
}

/* ==========================================================================
   Creative Cards Grid
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.creative-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.creative-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.creative-card .card-thumb {
  width: 100%;
  height: 160px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  overflow: hidden;
}

.creative-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creative-card .card-body {
  padding: 14px;
}

.creative-card .card-title {
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creative-card .card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.creative-card .metric {
  display: flex;
  flex-direction: column;
}

.creative-card .metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.creative-card .metric-value {
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Stat Cards
   ========================================================================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.stat-card .stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.stat-positive { color: var(--green); }
.stat-negative { color: var(--red); }

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-lg { max-width: 900px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }

.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 68px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  animation: toastIn 0.3s ease;
  max-width: 400px;
}

.toast-success { border-left: 3px solid var(--green); }
.toast-error { border-left: 3px solid var(--red); }
.toast-info { border-left: 3px solid var(--blue); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   Recommendations Cards
   ========================================================================== */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.rec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.rec-card.scale { border-left: 3px solid var(--green); }
.rec-card.watch { border-left: 3px solid var(--accent); }
.rec-card.kill { border-left: 3px solid var(--red); }

.rec-card .rec-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rec-card .rec-rationale {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.rec-card .rec-metrics {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.rec-card .rec-metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   Analytics Funnel Bars
   ========================================================================== */
.funnel-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.funnel-bar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.funnel-bar-card .funnel-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.funnel-bar-card .funnel-rate {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.funnel-bar-card .funnel-detail {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.progress-bar {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
}

.progress-bar .fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
  background: var(--accent);
}

/* ==========================================================================
   Priority Items
   ========================================================================== */
.priority-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
}

.priority-item .priority-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.priority-item .priority-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.priority-item .priority-score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-subtle);
  color: var(--accent);
}

.priority-item .suggestion {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 4px 0 4px 14px;
  border-left: 2px solid var(--border-light);
  margin-top: 4px;
}

/* ==========================================================================
   Detail Modal Specifics
   ========================================================================== */
.detail-media {
  width: 100%;
  height: 240px;
  background: var(--bg-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 20px;
}

.detail-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.detail-metric {
  padding: 10px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.detail-metric .dm-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.detail-metric .dm-value {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.ai-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 12px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

/* ==========================================================================
   Empty State
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state h4 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 0.88rem;
  max-width: 400px;
  margin: 0 auto;
}

/* ==========================================================================
   Reports
   ========================================================================== */
.report-list .report-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.report-list .report-item:hover { border-color: var(--border-light); }

.report-item .report-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Settings Layout
   ========================================================================== */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .settings-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .nav-tabs { overflow-x: auto; }
}

.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.settings-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Loading Spinner
   ========================================================================== */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   Comparison
   ========================================================================== */
.comparison-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comparison-delta {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 500;
}

.delta-up { color: var(--green); }
.delta-down { color: var(--red); }
.delta-neutral { color: var(--text-muted); }

/* ==========================================================================
   Inline token field
   ========================================================================== */
.token-field {
  display: flex;
  gap: 8px;
}

.token-field input { flex: 1; }
