/* ── CSS Variables ──────────────────────────────────────────────────────── */
:root {
  --bg:         #0f1117;
  --bg-card:    #1a1d27;
  --bg-hover:   #22263a;
  --border:     #2d3148;
  --border-light: #3a3f60;
  --text:       #e2e8f0;
  --text-muted: #8892a4;
  --text-dim:   #555e78;
  --primary:    #6366f1;
  --primary-hover: #5254cc;
  --primary-light: #818cf8;
  --success:    #22c55e;
  --warning:    #f59e0b;
  --error:      #ef4444;
  --radius:     8px;
  --radius-lg:  12px;
  --shadow:     0 2px 12px rgba(0,0,0,0.4);
  --font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:  "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }
input, button, select, textarea { font-family: inherit; }

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
}
.nav-logo { font-size: 1.2rem; }
.nav-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.nav-step {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius);
  transition: color 0.2s;
  text-decoration: none;
}
.nav-step.active { color: var(--primary-light); font-weight: 500; }
.nav-step:hover { color: var(--text); text-decoration: none; }
.step-num {
  width: 20px; height: 20px;
  background: var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}
.nav-step.active .step-num { background: var(--primary); color: #fff; }
.nav-arrow { color: var(--text-dim); }

/* ── Main content ───────────────────────────────────────────────────────── */
.main-content {
  flex: 1;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-secondary { background: var(--bg-hover); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled) { border-color: var(--border-light); background: #2a2f4a; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover:not(:disabled) { color: var(--text); background: var(--bg-hover); }
.btn-sm { padding: 5px 12px; font-size: 0.8rem; }
.btn-full { width: 100%; }

/* ── Form fields ────────────────────────────────────────────────────────── */
.field-group { display: flex; flex-direction: column; gap: 4px; }
.field-group label { font-size: 0.82rem; font-weight: 500; color: var(--text-muted); }
.field-hint { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }
.field-row { display: flex; gap: 10px; align-items: flex-start; }
.flex-1 { flex: 1; }

input[type="text"],
input[type="email"],
input[type="password"] {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  width: 100%;
  transition: border-color 0.15s;
}
input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
input::placeholder { color: var(--text-dim); }

/* ── Alert ──────────────────────────────────────────────────────────────── */
.alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-success { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: #4ade80; }
.alert-error   { background: rgba(239,68,68,0.1);  border-color: rgba(239,68,68,0.3);  color: #f87171; }
.alert-warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #fbbf24; }

/* ── Cards / sections ───────────────────────────────────────────────────── */
.sidebar-card, .preview-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.sidebar-card + .sidebar-card,
.preview-section + .preview-section { margin-top: 16px; }

/* ── Step 1: Auth page ──────────────────────────────────────────────────── */
.page-center {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 40px;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow);
}
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header h1 { font-size: 1.4rem; font-weight: 600; margin-bottom: 6px; }
.auth-header p { color: var(--text-muted); font-size: 0.875rem; }
.auth-header code { background: var(--bg-hover); padding: 1px 5px; border-radius: 4px; font-size: 0.8rem; }
.env-creds-display {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.env-cred-row { display: flex; align-items: center; gap: 12px; font-size: 0.875rem; }
.env-cred-label { color: var(--text-muted); width: 90px; flex-shrink: 0; }
.env-cred-value { color: var(--text); font-family: monospace; font-size: 0.82rem; word-break: break-all; }
.form-section { display: flex; flex-direction: column; gap: 16px; }
.form-section + .form-section {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
}
.form-section-title { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.form-section.validated { opacity: 0.7; pointer-events: none; }

/* Search results */
.results-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.results-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  gap: 12px;
}
.result-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.result-name { font-size: 0.875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-id { font-size: 0.75rem; color: var(--text-dim); font-family: var(--font-mono); }

/* Selected chip */
.selected-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.875rem;
}
.chip-id { font-size: 0.75rem; color: var(--primary-light); font-family: var(--font-mono); flex: 1; }
.chip-clear { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.9rem; padding: 0 4px; }

/* ── Step 2: Preview layout ─────────────────────────────────────────────── */
.preview-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: flex-start;
}
.preview-sidebar { display: flex; flex-direction: column; position: sticky; top: 76px; }
.preview-main { display: flex; flex-direction: column; gap: 16px; }

.sidebar-id { font-size: 0.72rem; color: var(--text-dim); font-family: var(--font-mono); margin-top: 4px; word-break: break-all; }
.sidebar-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 10px; line-height: 1.5; }

.stats-row { display: flex; gap: 12px; margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; }
.stat span { font-size: 1.4rem; font-weight: 600; color: var(--primary-light); }
.stat small { font-size: 0.72rem; color: var(--text-muted); }

.actions-card h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.action-hint { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.4; }
.convert-hint { font-size: 0.72rem; color: var(--text-muted); line-height: 1.3; text-align: center; }
.convert-btn-lg { padding: 12px 16px; font-size: 0.95rem; font-weight: 600; }
.btn-claude { background: #7c3aed; color: #fff; }
.btn-claude:hover:not(:disabled) { background: #6d28d9; }
.btn-claude:disabled { opacity: 0.45; cursor: not-allowed; }
.convert-status { font-size: 0.82rem; padding: 8px 10px; border-radius: var(--radius); }
.convert-status.loading { background: rgba(99,102,241,0.1); color: var(--primary-light); }
.convert-status.success { background: rgba(34,197,94,0.1); color: #4ade80; }
.convert-status.error   { background: rgba(239,68,68,0.1); color: #f87171; }

/* Section headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-header h2 { font-size: 1rem; font-weight: 600; }
.header-actions { display: flex; gap: 8px; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hover);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 99px;
  margin-left: 6px;
}

/* Description block */
.description-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  line-height: 1.65;
  font-size: 0.9rem;
}
.placeholder-text { color: var(--text-dim); font-style: italic; font-size: 0.875rem; }
.loading-pulse { animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Shapes list */
.shapes-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.shape-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
}
.shape-label { flex: 1; }
.shape-refs { font-size: 0.75rem; color: var(--text-dim); }
.shape-type-badge, .type-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-hover);
  color: var(--text-muted);
  white-space: nowrap;
  text-transform: lowercase;
}
/* Color-code common shape types */
.type-start     { background: rgba(34,197,94,0.15);  color: #4ade80; }
.type-stop      { background: rgba(239,68,68,0.15);  color: #f87171; }
.type-connector, .type-http_client { background: rgba(59,130,246,0.15); color: #60a5fa; }
.type-map       { background: rgba(245,158,11,0.15); color: #fbbf24; }
.type-decision  { background: rgba(168,85,247,0.15); color: #c084fc; }
.type-script, .type-groovy { background: rgba(20,184,166,0.15); color: #2dd4bf; }

/* Progress bar */
.progress-bar-track {
  height: 6px;
  background: var(--bg);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
  transition: width 0.3s ease;
}
.progress-text { font-size: 0.78rem; color: var(--text-muted); }

/* Sub-components */
.sub-component-row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 6px;
}
.sub-row-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--bg);
  cursor: pointer;
  font-size: 0.85rem;
  user-select: none;
}
.sub-row-header:hover { background: var(--bg-hover); }
.sub-name { flex: 1; font-weight: 500; }
.sub-id { font-size: 0.72rem; color: var(--text-dim); font-family: var(--font-mono); }
.error-badge { background: rgba(239,68,68,0.15); color: #f87171; font-size: 0.7rem; padding: 2px 7px; border-radius: 4px; }
.expand-icon { font-size: 0.65rem; color: var(--text-dim); }
.sub-row-body { padding: 12px; background: #0d0f1a; }
.sub-row-body pre { margin: 0; font-size: 0.78rem; overflow-x: hidden; }
.sub-row-body pre code {
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.error-text { color: #f87171; font-size: 0.82rem; }

/* XML block */
.xml-block { position: relative; }
.xml-block.collapsed { max-height: 180px; overflow: hidden; }
.xml-block.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--bg-card));
}
.xml-block pre { margin: 0; border-radius: var(--radius); overflow-x: hidden; }
.xml-block pre code {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* ── Step 3: Result layout ──────────────────────────────────────────────── */
.result-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: flex-start;
}
.result-sidebar { display: flex; flex-direction: column; position: sticky; top: 76px; }
.result-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.confidence-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.confidence-label { font-size: 0.8rem; color: var(--text-muted); }
.confidence-badge {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius);
}
.confidence-high { background: rgba(34,197,94,0.15);  color: #4ade80; }
.confidence-mid  { background: rgba(245,158,11,0.15); color: #fbbf24; }
.confidence-low  { background: rgba(239,68,68,0.15);  color: #f87171; }

.warnings-card h3, .manual-card h3 { font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }
.warning-list, .manual-list { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.warning-list li, .manual-list li { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }

.health-badge {
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 6px;
}
.health-badge::before { content: "●"; font-size: 0.6rem; }
.health-badge.checking { background: var(--bg); color: var(--text-dim); }
.health-badge.online  { background: rgba(34,197,94,0.1); color: #4ade80; }
.health-badge.offline { background: rgba(239,68,68,0.1); color: #f87171; }

.push-status { font-size: 0.82rem; padding: 8px 10px; border-radius: var(--radius); }
.push-status.success { background: rgba(34,197,94,0.1); color: #4ade80; }
.push-status.error   { background: rgba(239,68,68,0.1); color: #f87171; }

.sidebar-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* Result toolbar */
.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 14px 18px;
}
.result-toolbar h2 { font-size: 0.95rem; font-weight: 600; }
.toolbar-actions { display: flex; gap: 8px; }

.workflow-stats {
  display: flex;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.stat-chip {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--bg-hover);
  color: var(--text-muted);
  border-radius: 99px;
}
.inactive-chip { color: var(--warning); background: rgba(245,158,11,0.1); }

.json-block {
  background: #0d1117;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  max-height: calc(100vh - 220px);
  overflow-x: auto;
  overflow-y: auto;
}
.json-block pre { margin: 0; padding: 16px; white-space: pre; width: max-content; min-width: 100%; }
.json-block pre code { font-size: 0.78rem; font-family: var(--font-mono); white-space: pre; }

/* ── Status chips ───────────────────────────────────────────────────────── */
.status-chip {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
}
.status-chip.pending { background: rgba(99,102,241,0.12); color: var(--primary-light); }
.status-chip.done    { background: rgba(34,197,94,0.12);  color: #4ade80; }
.status-chip.error   { background: rgba(239,68,68,0.12);  color: #f87171; }

/* ── Sub-component config table ─────────────────────────────────────────── */
.cfg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  margin-bottom: 10px;
}
.cfg-table td { padding: 3px 8px; border-bottom: 1px solid var(--border); }
.cfg-key { color: var(--text-muted); font-family: var(--font-mono); white-space: nowrap; width: 35%; }
.cfg-val { color: var(--text); word-break: break-all; }

/* ── Sub-component group label ──────────────────────────────────────────── */
.sub-group-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 14px 0 6px;
}
.sub-group-label:first-child { margin-top: 0; }

/* ── Process Flow Diagram ────────────────────────────────────────────────── */
.flow-diagram-outer {
  position: relative;
  overflow: hidden;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 180px;
  max-height: 520px;
  cursor: grab;
  user-select: none;
}
.flow-diagram-outer:active { cursor: grabbing; }
.flow-diagram-wrap {
  padding: 20px;
  transform-origin: 0 0;
  will-change: transform;
  display: inline-block;
  min-width: 100%;
}
.flow-diagram-wrap svg { display: block; }
.flow-diagram-wrap [id^="flowchart-"] { cursor: pointer; }
.flow-diagram-wrap [id^="flowchart-"]:hover > rect,
.flow-diagram-wrap [id^="flowchart-"]:hover > polygon,
.flow-diagram-wrap [id^="flowchart-"]:hover > circle {
  filter: brightness(1.3);
}
.diagram-zoom-controls {
  display: flex;
  gap: 4px;
  align-items: center;
}
.zoom-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.zoom-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Mapped Connections ──────────────────────────────────────────────────── */
.mapped-connections { display: flex; flex-direction: column; gap: 12px; }

.conn-shape-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.conn-shape-card.highlighted {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(99,102,241,0.3);
}
.conn-shape-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border);
}
.conn-shape-label { font-weight: 600; font-size: 0.9rem; }
.conn-no-refs { padding: 8px 14px; color: var(--text-dim); font-size: 0.8rem; }

.conn-detail-row {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.conn-detail-row:last-child { border-bottom: none; }
.connector-detail { background: #1a1f35; }
.operation-detail { background: #1a2535; }
.map-detail       { background: #1a2530; }

.conn-detail-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.conn-detail-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.conn-detail-name { font-weight: 600; font-size: 0.875rem; }
.conn-detail-type {
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(99,102,241,0.12);
  padding: 1px 6px;
  border-radius: 4px;
  align-self: flex-start;
}
.conn-detail-url {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
}

.op-summary-row, .op-fields-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.op-key { color: var(--text-muted); flex-shrink: 0; }
.op-val { color: var(--text); }
.op-action-badge {
  background: rgba(99,102,241,0.2);
  padding: 1px 8px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--accent);
}
.op-sql-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-top: 4px;
}
.op-sql {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 0.78rem;
  overflow-x: auto;
}
.op-sql code { font-family: monospace; color: var(--text-muted); }

/* ── Field Mapping Table ─────────────────────────────────────────────────── */
.field-mapping-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-top: 6px;
}
.field-mapping-table th {
  text-align: left;
  color: var(--text-dim);
  font-weight: 500;
  padding: 3px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field-mapping-table td { padding: 4px 8px; }
.field-mapping-table tr:hover td { background: rgba(255,255,255,0.03); }
.map-from {
  font-family: monospace;
  color: #7dd3fc;
  cursor: default;
}
.map-arrow { color: var(--text-dim); text-align: center; font-size: 1rem; }
.map-to {
  font-family: monospace;
  color: #86efac;
  cursor: default;
}

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

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .preview-layout, .result-layout { grid-template-columns: 1fr; }
  .preview-sidebar, .result-sidebar { position: static; }
  .nav-steps { display: none; }
}
