/* ── RE Pipeline UI — Industrial Technical Dashboard ── */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #1A1A1A;
  --bg-header: #212121;
  --bg-card: #252525;
  --bg-panel: #1E1E1E;
  --bg-tag: #333333;
  --bg-button: #2A2A2A;
  --bg-hover: #2E2E2E;

  --accent-orange: #FF6B35;
  --accent-teal: #00D4AA;

  --text-white: #FFFFFF;
  --text-light: #999999;
  --text-mid: #777777;
  --text-dim: #555555;
  --text-dark: #444444;
  --text-muted: #333333;

  --border-light: #333333;
  --border-dark: #252525;
  --border-subtle: #2A2A2A;

  --font-heading: 'Oswald', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
}

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

html, body {
  height: 100%;
  background: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  overflow: hidden;
}

/* ── Header ── */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 32px;
  background: var(--bg-header);
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-left .logo {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: 2px;
  text-decoration: none;
}

.header-left .version {
  color: var(--text-mid);
  font-size: 11px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-right .mini-stats {
  color: var(--text-dim);
  font-size: 10px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--accent-teal);
}

.status-text {
  color: var(--accent-teal);
  font-size: 11px;
  font-weight: 600;
}

/* ── Nav Links ── */

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  font-size: 9px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.nav-link:hover {
  background: var(--bg-tag);
  color: var(--text-light);
}

.nav-link.active {
  background: var(--bg-tag);
  color: var(--text-white);
}

/* ── Layout ── */

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.main-content {
  flex: 1;
  overflow: auto;
}

/* ── Focus Mode ── */

.focus-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 32px;
}

.queue-counter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.queue-counter .num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-orange);
}

.queue-counter .slash {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 300;
  color: var(--text-dark);
}

.queue-counter .total {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dim);
}

.queue-counter .label {
  color: var(--text-dark);
  font-size: 11px;
}

/* ── Focus Card ── */

.focus-card {
  width: 520px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.card-top .service-name {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-white);
}

.cat-tag {
  padding: 4px 10px;
  background: var(--bg-tag);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-mid);
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border-light);
}

.metrics-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.metric-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.metric-block .value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
}

.metric-block .value.orange { color: var(--accent-orange); }
.metric-block .value.teal { color: var(--accent-teal); }

.metric-block .metric-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 2px;
}

.detail-toggle {
  text-align: center;
  padding: 8px 0;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  user-select: none;
}

.detail-toggle:hover { color: var(--text-mid); }

.detail-panel {
  background: var(--bg-panel);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-panel .summary-text {
  color: #888;
  font-size: 11px;
  line-height: 1.6;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.detail-col .col-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.detail-col .col-value {
  font-size: 11px;
  color: var(--text-light);
}

.spec-link {
  color: var(--text-dim);
  font-size: 10px;
  text-decoration: none;
}

.spec-link:hover { color: var(--accent-teal); }

/* ── Action Buttons ── */

.action-buttons {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 2px;
  transition: all 0.15s;
}

.btn-skip {
  width: 160px;
  height: 52px;
  background: var(--bg-button);
  color: var(--text-mid);
  border-radius: var(--radius-lg);
  font-size: 14px;
}

.btn-skip:hover {
  background: var(--bg-hover);
  color: var(--text-light);
}

.btn-approve {
  width: 200px;
  height: 52px;
  background: var(--accent-teal);
  color: var(--bg-primary);
  border-radius: var(--radius-lg);
  font-size: 14px;
}

.btn-approve:hover {
  filter: brightness(1.1);
}

.hint-text {
  color: var(--text-muted);
  font-size: 9px;
  text-align: center;
}

/* ── Empty State ── */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px;
}

.empty-state .empty-icon {
  font-size: 48px;
  color: var(--text-dark);
}

.empty-state .empty-text {
  color: var(--text-dim);
  font-size: 13px;
}

/* ── Scan Button ── */

.scan-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--accent-orange);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent-orange);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.scan-btn:hover {
  background: rgba(255, 107, 53, 0.1);
}

.scan-btn.scanning {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  cursor: not-allowed;
}

.scan-btn.done {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

.scan-btn.error {
  border-color: #EF4444;
  color: #EF4444;
}

.scan-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--accent-teal);
}

.scan-dot.pulse {
  animation: scanPulse 1s ease-in-out infinite;
}

@keyframes scanPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Scan Modal (Cosmic) ── */

.scan-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scan-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 48px 56px;
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #0d0d1a 70%);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: 20px;
  min-width: 500px;
  box-shadow:
    0 0 60px rgba(255, 107, 53, 0.08),
    0 0 120px rgba(0, 212, 170, 0.05),
    inset 0 0 60px rgba(0, 0, 0, 0.3);
}

/* ── Orbit Animation ── */

.orbit-container {
  position: relative;
  width: 160px;
  height: 160px;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 50%;
  animation: orbitSpin 8s linear infinite;
}

.orbit-ring.ring-2 {
  inset: 15px;
  border-color: rgba(0, 212, 170, 0.15);
  animation-duration: 12s;
  animation-direction: reverse;
}

.orbit-ring.ring-3 {
  inset: 30px;
  border-color: rgba(255, 107, 53, 0.1);
  animation-duration: 6s;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 12px var(--accent-orange), 0 0 24px rgba(255, 107, 53, 0.3);
}

.orbit-particle.p1 {
  top: 0; left: 50%;
  transform: translateX(-50%);
  animation: orbitSpin 8s linear infinite;
  transform-origin: 50% 80px;
}

.orbit-particle.p2 {
  top: 15px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent-teal);
  box-shadow: 0 0 12px var(--accent-teal), 0 0 24px rgba(0, 212, 170, 0.3);
  animation: orbitSpin 12s linear infinite reverse;
  transform-origin: 50% 65px;
  width: 4px;
  height: 4px;
}

.orbit-particle.p3 {
  top: 30px; left: 50%;
  transform: translateX(-50%);
  background: #5B8DEF;
  box-shadow: 0 0 12px #5B8DEF;
  animation: orbitSpin 6s linear infinite;
  transform-origin: 50% 50px;
  width: 3px;
  height: 3px;
}

.orbit-core {
  position: absolute;
  inset: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
}

.orbit-pct {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-orange);
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* ── Stage Pipeline ── */

.scan-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  text-align: center;
}

.scan-title.done { color: var(--accent-teal); }
.scan-title.error { color: #EF4444; }

.scan-detail {
  font-size: 11px;
  color: var(--text-mid);
  text-align: center;
  max-width: 400px;
}

.stage-pipeline {
  display: flex;
  align-items: center;
  gap: 0;
}

.stage-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.stage-node.active {
  opacity: 1;
}

.stage-node.done {
  opacity: 0.7;
}

.stage-icon {
  font-size: 20px;
  transition: transform 0.3s;
}

.stage-node.active .stage-icon {
  transform: scale(1.3);
  filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.5));
}

.stage-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.stage-node.active .stage-label {
  color: var(--accent-orange);
}

.stage-node.done .stage-label {
  color: var(--accent-teal);
}

.stage-pulse {
  position: absolute;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.2);
  animation: stagePulse 1.5s ease-in-out infinite;
}

@keyframes stagePulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.8); opacity: 0; }
}

.stage-connector {
  width: 32px;
  height: 1px;
  background: var(--border-light);
  margin: 0 4px;
  margin-bottom: 20px;
  transition: background 0.5s;
}

.stage-connector.done {
  background: var(--accent-teal);
  box-shadow: 0 0 6px rgba(0, 212, 170, 0.3);
}

/* ── Progress Bar ── */

.scan-progress-track {
  width: 100%;
  height: 3px;
  background: var(--bg-tag);
  border-radius: 2px;
  overflow: hidden;
}

.scan-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-teal));
  border-radius: 2px;
  transition: width 0.8s ease;
  box-shadow: 0 0 8px rgba(255, 107, 53, 0.4);
}

/* ── Counts ── */

.scan-counts {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.count-item {
  font-size: 11px;
  color: var(--text-mid);
}

/* ── Close Button ── */

.scan-close-btn {
  padding: 10px 24px;
  background: var(--accent-teal);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s;
}

.scan-close-btn:hover {
  filter: brightness(1.15);
}

/* ── Toast ── */

.toast {
  position: fixed;
  top: 72px;
  right: 32px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 600;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 1.7s forwards;
  z-index: 100;
}

.toast.approved {
  background: var(--accent-teal);
  color: var(--bg-primary);
}

.toast.skipped {
  background: var(--bg-tag);
  color: var(--text-mid);
}

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

@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ── Kanban Board ── */

.kanban-board {
  display: flex;
  gap: 16px;
  height: 100%;
  padding: 24px 32px;
  overflow-x: auto;
}

.kanban-column {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  padding: 0 12px;
}

.col-header .col-title {
  font-size: 12px;
  font-weight: 600;
}

.col-header .col-title.orange { color: var(--accent-orange); }
.col-header .col-title.teal { color: var(--accent-teal); }
.col-header .col-title.blue { color: #5B8DEF; }
.col-header .col-title.green { color: #4CAF50; }

.col-header .col-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
}

.col-divider {
  height: 1px;
  width: 100%;
}

.col-divider.orange { background: var(--accent-orange); }
.col-divider.teal { background: var(--accent-teal); }
.col-divider.blue { background: #5B8DEF; }
.col-divider.green { background: #4CAF50; }

.col-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
}

/* ── Kanban Card ── */

.kanban-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kanban-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kanban-card .card-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
}

.kanban-card .card-mrr {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-orange);
}

.kanban-card .card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-card .meta-tag {
  padding: 2px 8px;
  background: var(--bg-tag);
  border-radius: var(--radius-sm);
  font-size: 9px;
  color: var(--text-mid);
}

.kanban-card .card-summary {
  font-size: 10px;
  color: var(--text-light);
  line-height: 1.5;
}

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

.btn-sm {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-sm.ghost {
  background: transparent;
  color: var(--text-dim);
}

.btn-sm.ghost:hover {
  background: var(--bg-tag);
  color: var(--text-mid);
}

.btn-sm.teal {
  background: transparent;
  color: var(--accent-teal);
}

.btn-sm.teal:hover {
  background: rgba(0, 212, 170, 0.1);
}

.btn-sm.orange {
  background: transparent;
  color: var(--accent-orange);
}

.btn-sm.orange:hover {
  background: rgba(255, 107, 53, 0.1);
}

/* ── Spec Viewer ── */

.tab-bar {
  display: flex;
  padding: 0 32px;
  background: var(--bg-panel);
  height: 44px;
  flex-shrink: 0;
}

.tab-item {
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}

.tab-item:hover {
  color: var(--text-mid);
}

.tab-item.active {
  background: var(--bg-primary);
  color: var(--text-white);
  border-radius: 6px 6px 0 0;
}

.spec-content-area {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

.spec-markdown {
  max-width: 800px;
  color: var(--text-light);
  font-size: 12px;
  line-height: 1.8;
}

.spec-markdown h1 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
}

.spec-markdown h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-markdown h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-orange);
  margin: 16px 0 8px;
}

.spec-markdown ul, .spec-markdown ol {
  padding-left: 20px;
  margin: 8px 0;
}

.spec-markdown li {
  margin: 4px 0;
}

.spec-markdown strong {
  color: var(--text-white);
}

.spec-markdown code {
  background: var(--bg-tag);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
}

.spec-markdown pre {
  background: var(--bg-header);
  padding: 16px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 12px 0;
}

.spec-markdown table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.spec-markdown th, .spec-markdown td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-dark);
}

.spec-markdown th {
  font-weight: 600;
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 1px;
}

/* ── History Table ── */

.history-area {
  padding: 24px 32px;
  overflow-y: auto;
  flex: 1;
}

.history-table {
  width: 100%;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  padding: 0 16px;
}

.table-header .th {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.table-divider {
  height: 1px;
  width: 100%;
  background: var(--border-light);
}

.table-row-divider {
  height: 1px;
  width: 100%;
  background: var(--border-dark);
}

.table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  padding: 0 16px;
  transition: background 0.15s;
}

.table-row:hover {
  background: var(--bg-card);
}

.table-row .td {
  font-size: 11px;
}

.table-row .td.name {
  color: var(--text-white);
  font-weight: 500;
}

.table-row .td.mrr {
  color: var(--accent-orange);
  font-weight: 700;
}

.table-row .td.growth {
  color: var(--accent-teal);
}

.table-row .td.cat {
  color: var(--text-mid);
}

.table-row .td.date {
  color: var(--text-dim);
}

/* ── Grid Layout for History ── */

.table-header, .table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1.5fr 1fr;
  align-items: center;
  padding: 0 16px;
}

/* ── Scrollbar ── */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dark);
}

/* ── Analyses View ── */

.analyses-area {
  padding: 24px 32px;
  overflow-y: auto;
  flex: 1;
}

.analyses-header, .analyses-row {
  display: grid;
  grid-template-columns: 1.5fr 2.5fr 0.8fr 0.6fr 1.2fr;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.analyses-header {
  height: 40px;
}

.analyses-header .th {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.analyses-row {
  min-height: 52px;
  padding-top: 8px;
  padding-bottom: 8px;
  transition: background 0.15s;
}

.analyses-row:hover {
  background: var(--bg-card);
}

.analyses-row .td {
  font-size: 11px;
}

.analyses-row .td.name-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.startup-link {
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.startup-link:hover {
  color: var(--accent-teal);
  text-decoration: underline;
}

.startup-mrr {
  font-size: 11px;
  color: var(--accent-orange);
  font-weight: 700;
}

.td.desc-col .startup-desc {
  color: var(--text-white);
  font-size: 11px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.td.mrr-col {
  color: var(--accent-orange);
  font-weight: 700;
}

.td.score-col {
  color: var(--text-light);
  font-weight: 600;
}

/* ── Generate Button ── */

.generate-btn {
  background: transparent;
  color: var(--accent-teal);
  border: 1px solid var(--accent-teal);
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.generate-btn:hover {
  background: rgba(0, 212, 170, 0.1);
}

.generating {
  color: var(--accent-orange);
  font-size: 11px;
  font-weight: 600;
  animation: scanPulse 1.5s ease-in-out infinite;
}

/* ── Transition for HTMX ── */

.htmx-swapping {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.htmx-settling {
  opacity: 1;
  transition: opacity 0.3s ease;
}
