:root {
  --bg: #fafafa;
  --top: #ffffff;
  --text: #2d3748;
  --muted: #718096;
  --border: #e2e8f0;
  --user-bubble: #e2e8f0;
  --ai-bubble: #f1f5f9;
  --accent: #e87722;
  --accent-dark: #c45f12;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  background: var(--top);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  font-size: 1rem;
  font-weight: 600;
  color: #1a202c;
}

.icon-btn {
  border: none;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.icon-btn:hover {
  color: var(--text);
}

.layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  /* fill whatever height the tab-pane gives it */
  height: 100%;
  overflow: hidden;
}

@media (max-width: 840px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

/* Left panel — always visible, scrolls internally if content overflows */
.panel {
  padding: 1rem 1.25rem;
  background: var(--panel);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  height: 100%;
}

/* Right chat panel — flex column, never scrolls as a whole */
.chat-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  border-right: none;
}

.panel-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.hint {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin: 0.75rem 0 0.35rem;
}

.label-icon {
  width: 13px;
  height: 13px;
  stroke: var(--accent);
  flex-shrink: 0;
}

.req {
  color: var(--accent-dark);
}

.input {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  background: #fff;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text);
}

.pill:hover {
  border-color: #cbd5e0;
}

.pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.tpl-mode {
  border: none;
  padding: 0;
  margin: 1rem 0 0.5rem;
}

.tpl-mode .radio {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 1rem;
  font-size: 0.88rem;
  cursor: pointer;
}

.chips {
  font-size: 0.82rem;
  line-height: 1.5;
  word-break: break-word;
}

.chips.muted {
  color: var(--muted);
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Every button inside a panel action row stretches to equal width */
.actions-row .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}

/* Full-width standalone actions (Load, Translate) */
#btn-load-docs,
#btn-translate,
#btn-build {
  width: 100%;
  flex: none;
  text-align: center;
}

.btn {
  border-radius: 6px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: background 0.14s, border-color 0.14s, color 0.14s;
  white-space: nowrap;
}

/* ── Primary: solid orange fill + white text (myneva "+ Dashboard" style) ── */
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.btn.primary:hover:not(:disabled) {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

/* ── Secondary: ghost / outlined ─────────────────────────────────────────── */
.btn.secondary {
  background: #fff;
  border-color: #cbd5e0;
  color: var(--text);
}

.btn.secondary:hover:not(:disabled) {
  background: #f7fafc;
  border-color: #a0aec0;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.error-inline {
  color: #c53030;
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
}

.messages {
  flex: 1;
  min-height: 0;        /* allow flex shrinking below content size */
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.row {
  display: flex;
  gap: 0.65rem;
  max-width: 100%;
}

.row.user {
  flex-direction: row-reverse;
}

/* wrapper that holds meta label + bubble in a column. */
.msg-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  max-width: min(88%, 760px);
  flex-shrink: 1;
}

/* AI messages fill the full cap width for comfortable reading */
.row.assistant .msg-wrap {
  width: min(88%, 760px);
}

/* User messages: right-aligned, bubble shrinks to text content */
.row.user .msg-wrap {
  align-items: flex-end;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: #718096;
  margin-top: 1.25rem; /* align avatar with bubble, not label */
}

.row.user .avatar {
  background: #4a5568;
}

.row.assistant .avatar {
  background: #fff;
  border: 1.5px solid #e2e8f0;
}

.avatar-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.meta {
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0 0.25rem;
}

.row.assistant .meta {
  color: var(--accent);
}

.row.user .meta {
  color: #4a5568;
}

.bubble {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* AI bubble always fills the full msg-wrap width */
.row.assistant .bubble {
  width: 100%;
}

/* User bubble shrinks to fit the text — no wider than the msg-wrap cap */
.row.user .bubble {
  width: fit-content;
  max-width: 100%;
}

.bubble:has(.welcome-card) {
  white-space: normal;
}

.row.user .bubble {
  background: var(--user-bubble);
  border-radius: 12px 2px 12px 12px;
}

.row.assistant .bubble {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px 12px 12px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.composer {
  flex-shrink: 0;       /* always pinned at the bottom of chat */
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem 1rem;
  background: var(--top);
}

#input-msg,
#ask-input,
#build-input {
  width: 100%;
  resize: vertical;
  min-height: 3.8rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.93rem;
  box-sizing: border-box;
}

.composer-actions {
  margin-top: 0.5rem;
}

/* ── Tab bar ────────────────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  flex-shrink: 0;
  gap: 0;
  background: var(--top);
  border-bottom: 2px solid var(--border);
  padding: 0 1rem;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 0.65rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.tab-btn:hover {
  color: var(--accent);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* Each tab pane fills the remaining vertical space exactly */
.tab-pane {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.tab-pane[hidden] {
  display: none;
}

/* ── Ask Document panel ─────────────────────────────────────────────────── */
.ask-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Upload drop zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.upload-zone:hover,
.upload-zone:focus,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: #fff8f3;
  outline: none;
}

.upload-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.upload-label {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.upload-label u {
  color: var(--accent);
}

/* File list */
.file-list {
  list-style: none;
  margin: 0.25rem 0 0.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 180px;
  overflow-y: auto;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.5rem;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.85rem;
}

.file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-remove {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.2rem;
  flex-shrink: 0;
}

.file-remove:hover {
  color: #c53030;
}

/* Status badge */
.status-badge {
  font-size: 0.82rem;
  padding: 0.4rem 0.65rem;
  border-radius: 5px;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.status-idle { background: #f7fafc; color: var(--muted); }
.status-loading { background: #ebf8ff; color: #2b6cb0; }
.status-ready { background: #f0fff4; color: #276749; }
.status-error { background: #fff5f5; color: #c53030; }

/* Inline code rendered from markdown */
.bubble code {
  background: #f0f4f8;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  padding: 0.1em 0.35em;
  font-family: "Consolas", "Menlo", monospace;
  font-size: 0.86em;
  color: #2d3748;
}

/* Thinking indicator */
.bubble.thinking {
  color: var(--muted);
  font-style: italic;
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.thinking-label {
  color: var(--muted);
}

.thinking-dots {
  display: inline-flex;
  gap: 0.05rem;
}

.thinking-dots span {
  font-weight: 700;
  font-size: 1.15em;
  line-height: 1;
  opacity: 0;
  animation: dot-appear 1.4s infinite both;
}

.thinking-dots span:nth-child(2) { animation-delay: 0.22s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.44s; }

@keyframes dot-appear {
  0%, 60%, 100% { opacity: 0; }
  30% { opacity: 1; }
}

/* ── Demo scenario chips ────────────────────────────────────────────────── */
.scenario-bubble {
  white-space: normal;
  max-width: min(96%, 680px);
  /* Match the AI response bubble styling */
  background: #fff !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}

.scenario-title {
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0 0 0.6rem;
  color: var(--text);
}

.scenario-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.scenario-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.12s, border-color 0.12s;
}

.scenario-chip:hover {
  background: #fff8f3;
  border-color: var(--accent);
  color: var(--accent-dark);
}

.scenario-lang {
  font-size: 0.7rem;
  font-weight: 700;
  background: #fed7aa;
  color: #7b341e;
  border-radius: 3px;
  padding: 0.05rem 0.3rem;
}

/* ── Translate section ──────────────────────────────────────────────────── */
.translate-divider {
  height: 1px;
  background: var(--border);
  margin: 1.1rem 0 0;
}

.translate-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  width: 100%;
  text-align: center;
  padding: 0.5rem 0.9rem;
}

.translate-btn:hover:not(:disabled) {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.translate-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Demo guide in left panel ───────────────────────────────────────────── */
.demo-guide {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem 0.75rem;
  background: #f7fafc;
}

.demo-guide summary {
  margin-bottom: 0.5rem;
  user-select: none;
}

.demo-steps {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.45;
}

.demo-steps em {
  display: inline-block;
  margin-top: 0.15rem;
  color: var(--accent-dark);
  font-style: italic;
}

/* ── Welcome capability card ────────────────────────────────────────────── */
.bubble:has(.welcome-card) {
  white-space: normal;
  max-width: min(96%, 680px);
}

.welcome-card {
  font-size: 0.91rem;
  line-height: 1.5;
}

.welcome-card .welcome-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.55rem;
  color: var(--text);
}

.welcome-card .welcome-sub {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.welcome-card table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}

.welcome-card table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.2rem 0.5rem 0.3rem;
  border-bottom: 1px solid var(--border);
}

.welcome-card table td {
  padding: 0.35rem 0.5rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.welcome-card table tr:last-child td {
  border-bottom: none;
}

.welcome-card .cap-icon {
  width: 2rem;
  text-align: center;
  vertical-align: middle;
  flex-shrink: 0;
  padding-top: 0.3rem;
}

.cap-svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent);
  vertical-align: middle;
  flex-shrink: 0;
}

.welcome-card .cap-title {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.welcome-card .cap-desc {
  color: var(--muted);
  font-size: 0.84rem;
}

.welcome-card .welcome-note {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

/* Welcome capability card */
.welcome-card {
  font-size: 0.91rem;
  line-height: 1.5;
}

.welcome-card .welcome-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.55rem;
  color: var(--text);
}

.welcome-card .welcome-sub {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.welcome-card table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}

.welcome-card table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.2rem 0.5rem 0.3rem;
  border-bottom: 1px solid var(--border);
}

.welcome-card table td {
  padding: 0.35rem 0.5rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.welcome-card table tr:last-child td {
  border-bottom: none;
}

.welcome-card .cap-icon {
  font-size: 1.1rem;
  padding-right: 0.25rem;
  width: 2rem;
  text-align: center;
}

.welcome-card .cap-title {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.welcome-card .cap-desc {
  color: var(--muted);
  font-size: 0.84rem;
}

.welcome-card .welcome-note {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

/* =============================================================================
   Document comparison result
   ============================================================================= */

/* The bubble that holds the entire compare result */
.compare-bubble {
  white-space: normal !important;
  padding: 0 !important;
  overflow: hidden;
}

/* -- Document header bar -- */
.compare-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f7fafc;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.compare-doc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
}

.compare-doc.doc-a {
  background: #ebf4ff;
  color: #2b6cb0;
  border: 1px solid #bee3f8;
}

.compare-doc.doc-b {
  background: #f0fff4;
  color: #276749;
  border: 1px solid #c6f6d5;
}

.compare-vs {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.cmp-doc-name {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmp-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
}

/* -- Shared section wrapper -- */
.cmp-section {
  padding: 0.85rem 1rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.cmp-section:last-child {
  border-bottom: none;
}

.cmp-section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

/* -- Diff line-change block -- */
.diff-section .cmp-section-title { color: #4a5568; }

.diff-block {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  border-radius: 6px;
  border: 1px solid var(--border);
  overflow-x: auto;
  max-height: 340px;
  overflow-y: auto;
  background: #fafafa;
}

.dl {
  display: flex;
  align-items: baseline;
  padding: 0 0.75rem;
  min-height: 1.45em;
  white-space: pre;
}

.dm {
  width: 1.1em;
  flex-shrink: 0;
  font-weight: 700;
  user-select: none;
}

.dl-add    { background: #f0fff4; color: #276749; }
.dl-add .dm { color: #38a169; }
.dl-remove { background: #fff5f5; color: #c53030; }
.dl-remove .dm { color: #e53e3e; }
.dl-ctx    { background: #fff; color: #4a5568; }
.dl-ctx .dm { color: #cbd5e0; }
.dl-chunk  { background: #ebf8ff; color: #2b6cb0; padding: 0.15rem 0.75rem; font-style: italic; }
.dl-file   { background: #f7fafc; color: #718096; padding: 0.15rem 0.75rem; font-weight: 600; }

.diff-truncated {
  font-size: 0.76rem;
  color: var(--muted);
  padding: 0.35rem 0.1rem 0;
  font-style: italic;
}

/* -- Similarities section -- */
.sim-section .cmp-section-title { color: #276749; }
.sim-section .cmp-ico           { stroke: #38a169; }

/* -- Differences section -- */
.dif-section .cmp-section-title { color: #c53030; }
.dif-section .cmp-ico           { stroke: #e53e3e; }

/* -- Conclusion section -- */
.con-section .cmp-section-title { color: var(--accent-dark); }
.con-section .cmp-ico           { stroke: var(--accent); }

/* -- Shared summary list -- */
.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.summary-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--text);
  padding-left: 0.2rem;
}

.summary-list li::before {
  content: " B7";
  flex-shrink: 0;
  font-weight: 700;
  color: var(--muted);
}

.summary-para {
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

/* ── Compare bubble: numbered bullets, count badges, third-doc pill ──────── */
.summary-list {
  margin-top: 0.4rem;
  gap: 0.5rem;
}

.summary-list li {
  align-items: flex-start;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  background: rgba(0,0,0,0.02);
}

.summary-list li::before { content: none; }

.sim-section  .summary-list li { background: rgba(56,161,105,0.05); }
.dif-section  .summary-list li { background: rgba(229,62,62,0.05);  }

.cmp-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
  background: var(--muted);
  color: #fff;
}
.sim-section .cmp-num { background: #38a169; }
.dif-section .cmp-num { background: #e53e3e; }

.cmp-li-body { flex: 1; }
.cmp-li-body strong { color: var(--text); }
.dif-section .cmp-li-body strong { color: #c53030; }
.sim-section .cmp-li-body strong { color: #276749; }

.cmp-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0 0.35rem;
  background: #e2e8f0;
  color: var(--text);
  margin-left: auto;
}
.diff-count { background: #fed7d7; color: #c53030; }

.compare-doc.doc-c {
  background: rgba(116,99,205,0.08);
  color: #553c9a;
}
.compare-doc.doc-c .cmp-ico { stroke: #805ad5; }

/* Build-tab scenario chips inside welcome card */
.build-scenario-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0 0.8rem;
}
