/* ─── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-lighter: #60a5fa;
  --primary-dark: #1e40af;
  --primary-darker: #1e3a8a;
  --bg: #f1f5f9;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f8fafc;
  --bg-muted: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  --green: #10b981;
  --green-light: #34d399;
  --green-bg: #d1fae5;
  --red: #ef4444;
  --red-light: #f87171;
  --red-bg: #fee2e2;
  --amber: #f59e0b;
  --amber-bg: #fef3c7;
  --purple: #8b5cf6;
  --purple-bg: #ede9fe;
  --cyan: #06b6d4;
  --cyan-bg: #cffafe;
  --orange: #f97316;
  --orange-bg: #ffedd5;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --sidebar-w: 280px;
  --transition: 0.2s ease;
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

#app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ─── Sidebar ──────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-light);
}

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

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.sidebar-nav {
  padding: 12px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  font-family: inherit;
  text-align: left;
}

.nav-item:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.nav-item.active {
  background: var(--primary);
  color: white;
}

.nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.sidebar-section {
  padding: 8px 12px;
  flex: 1;
  overflow-y: auto;
  border-top: 1px solid var(--border-light);
  margin-top: 4px;
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 12px 12px 6px;
}

.usecase-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.usecase-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  color: var(--text-secondary);
}

.usecase-nav-item:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.usecase-nav-stage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-light);
}

.status-dot.active {
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-bg);
}

.version-tag {
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Main Content ─────────────────────────────────────────────── */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
}

.view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Page Header ──────────────────────────────────────────────── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

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

.header-stats {
  display: flex;
  gap: 24px;
}

.header-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.header-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

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

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.card-badge {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-muted);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.card-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chart-container {
  position: relative;
  width: 100%;
  min-height: 320px;
}

/* ─── Source Grid ──────────────────────────────────────────────── */
.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.source-card {
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.source-card:hover {
  border-color: var(--primary-lighter);
  box-shadow: var(--shadow-sm);
}

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

.source-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.source-type-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.source-type-badge.p0 { background: var(--primary-bg, #dbeafe); color: var(--primary); }
.source-type-badge.p1 { background: var(--amber-bg); color: var(--amber); }
.source-type-badge.p2 { background: var(--bg-muted); color: var(--text-muted); }

.source-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.source-status {
  display: flex;
  align-items: center;
  gap: 5px;
}

.source-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.source-status-dot.active { background: var(--green); }
.source-status-dot.planned { background: var(--text-light); }

.source-events {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 11px;
}

.source-event-stat {
  display: flex;
  flex-direction: column;
}

.source-event-stat strong {
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
}

.source-event-stat span {
  color: var(--text-muted);
}

/* ─── Maturity Matrix (SVG Bubble Chart) ───────────────────────── */
#maturity-matrix {
  height: 420px;
}

/* ─── Grid Layouts ─────────────────────────────────────────────── */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ─── Event Stream ─────────────────────────────────────────────── */
.event-stream {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-item {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.event-item:hover {
  border-color: var(--primary-lighter);
  background: white;
  box-shadow: var(--shadow-sm);
}

.event-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: white;
}

.event-content {
  flex: 1;
  min-width: 0;
}

.event-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.event-polarity {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
  align-self: center;
}

.event-polarity.positive { background: var(--green-bg); color: var(--green); }
.event-polarity.negative { background: var(--red-bg); color: var(--red); }
.event-polarity.mixed { background: var(--amber-bg); color: var(--amber); }

/* ─── Use Case Grid ────────────────────────────────────────────── */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
}

.usecase-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.usecase-card:hover {
  border-color: var(--primary-lighter);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.usecase-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.usecase-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.usecase-card-domain {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  flex-shrink: 0;
}

.usecase-card-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.score-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.score-change {
  font-size: 13px;
  font-weight: 600;
}

.score-change.up { color: var(--green); }
.score-change.down { color: var(--red); }
.score-change.flat { color: var(--text-muted); }

.usecase-card-dims {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.dim-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dim-bar-track {
  width: 100%;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.dim-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

.dim-bar-label {
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.usecase-card-bottleneck {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}

/* ─── Use Case Detail ──────────────────────────────────────────── */
.detail-back {
  margin-bottom: 16px;
}

.btn-back {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  font-family: inherit;
  transition: var(--transition);
}

.btn-back:hover {
  color: var(--primary-dark);
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.detail-title-block h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.detail-meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.detail-score-block {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  box-shadow: var(--shadow-sm);
}

.detail-score {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-score-value {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.detail-score-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.detail-score-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
}

.detail-score-change {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-score-change-value {
  font-size: 24px;
  font-weight: 700;
}

.detail-score-change-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── Detail Grid ──────────────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-grid-full {
  grid-column: 1 / -1;
}

/* ─── Radar Chart Container ────────────────────────────────────── */
.radar-container {
  height: 320px;
  position: relative;
}

/* ─── Timeline ─────────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 24px;
  max-height: 360px;
  overflow-y: auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 8px 0 12px 20px;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 1px var(--border);
}

.timeline-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.timeline-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-top: 2px;
}

.timeline-detail {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.timeline-type-icon {
  display: inline-block;
  margin-right: 4px;
}

/* ─── Evidence Cards ───────────────────────────────────────────── */
.evidence-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.evidence-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-muted);
  cursor: pointer;
  transition: var(--transition);
}

.evidence-item:hover {
  border-color: var(--primary-lighter);
  background: white;
  box-shadow: var(--shadow-sm);
}

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

.evidence-type {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.evidence-date {
  font-size: 11px;
  color: var(--text-muted);
}

.evidence-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.evidence-summary {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}

.evidence-source {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Bottleneck Explanation ───────────────────────────────────── */
.bottleneck-card {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
}

.bottleneck-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bottleneck-icon {
  font-size: 20px;
}

.bottleneck-title {
  font-size: 15px;
  font-weight: 700;
}

.bottleneck-explanation {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.bottleneck-next {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-muted);
}

.bottleneck-next strong {
  color: var(--text-secondary);
}

/* ─── Product List in Use Case Detail ──────────────────────────── */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-muted);
  cursor: pointer;
  transition: var(--transition);
}

.product-item:hover {
  border-color: var(--primary-lighter);
  background: white;
  box-shadow: var(--shadow-sm);
}

.product-item-info {
  display: flex;
  flex-direction: column;
}

.product-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.product-item-vendor {
  font-size: 12px;
  color: var(--text-muted);
}

.product-item-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
}

/* ─── Product Detail ───────────────────────────────────────────── */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.info-label {
  color: var(--text-muted);
  font-weight: 500;
}

.info-value {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.version-list, .safety-list, .deployment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.version-item, .safety-item, .deployment-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-muted);
}

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

.version-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.version-date {
  font-size: 11px;
  color: var(--text-muted);
}

.version-note {
  font-size: 12px;
  color: var(--text-secondary);
}

.safety-item {
  border-left: 3px solid var(--red);
}

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

.severity-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.severity-badge.high { background: var(--red-bg); color: var(--red); }
.severity-badge.medium { background: var(--amber-bg); color: var(--amber); }
.severity-badge.low { background: var(--cyan-bg); color: var(--cyan); }

/* ─── Signal Table ─────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-group select {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: white;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  min-width: 120px;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg, #dbeafe);
}

.signal-table-wrapper {
  overflow-x: auto;
}

.signal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.signal-table thead {
  position: sticky;
  top: 0;
}

.signal-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.signal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: top;
}

.signal-table tbody tr {
  transition: var(--transition);
}

.signal-table tbody tr:hover {
  background: var(--bg-hover);
}

.signal-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.signal-title-cell {
  max-width: 400px;
}

.signal-title-cell strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}

.signal-title-cell span {
  font-size: 12px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.polarity-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.importance-stars {
  display: flex;
  gap: 1px;
}

.importance-star {
  color: var(--text-light);
  font-size: 12px;
}

.importance-star.filled {
  color: var(--amber);
}

.confidence-bar {
  width: 60px;
  height: 5px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--primary);
}

.confidence-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 6px;
}

/* ─── Schema / Architecture View ─────────────────────────────────── */
.schema-layer-diagram {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}

.schema-layer-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.schema-layer-label {
  width: 120px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  position: relative;
}

.schema-layer-label-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.schema-layer-label-name {
  font-size: 13px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.schema-layer-label-desc {
  font-size: 10px;
  color: rgba(255,255,255,0.8);
  margin-top: 2px;
}

.schema-layer-tables {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-height: 50px;
  padding: 8px 0;
  align-content: flex-start;
}

.schema-table-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid;
  white-space: nowrap;
}

.schema-table-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.schema-table-chip .chip-priority {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

.schema-flow-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 20px;
  margin-left: 60px;
}

.schema-flow-arrow svg {
  width: 24px;
  height: 20px;
}

/* ─── ER Diagram ──────────────────────────────────────────────── */
.schema-er-container {
  position: relative;
  overflow-x: auto;
  padding: 8px 0;
}

.schema-er-node {
  display: inline-flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-width: 160px;
  max-width: 220px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.schema-er-node:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.schema-er-node-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 4px;
}

.schema-er-node-fields {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.schema-er-node-fields .field-key {
  color: var(--amber);
  font-weight: 600;
}

.schema-er-node-fields .field-fk {
  color: var(--purple);
  font-weight: 500;
}

/* ─── Priority Content ────────────────────────────────────────── */
.schema-priority-tabs {
  display: flex;
  gap: 8px;
}

.schema-priority-tab {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  color: var(--text-secondary);
}

.schema-priority-tab:hover {
  border-color: var(--primary-lighter);
}

.schema-priority-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.schema-priority-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.schema-priority-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}

.schema-priority-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.schema-priority-table tbody tr {
  cursor: pointer;
  transition: var(--transition);
}

.schema-priority-table tbody tr:hover {
  background: var(--bg-hover);
}

.schema-priority-table .table-name {
  font-weight: 600;
  color: var(--text);
}

.schema-priority-table .priority-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.priority-badge.p0 { background: #dbeafe; color: #2563eb; }
.priority-badge.p1 { background: #fef3c7; color: #d97706; }
.priority-badge.p2 { background: #f1f5f9; color: #94a3b8; }

.schema-table-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.schema-field-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
}

.schema-field-row:hover {
  background: var(--bg-hover);
}

.schema-field-name {
  color: var(--text);
  font-weight: 600;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.schema-field-type {
  color: var(--text-muted);
  font-size: 11px;
  font-family: 'Courier New', monospace;
}

.schema-field-required {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  background: #dbeafe;
  color: #2563eb;
}

.schema-field-desc {
  color: var(--text-secondary);
  font-size: 12px;
  flex: 1;
  margin-left: 12px;
}

/* ─── ER Hub Diagram ─────────────────────────────────────────────── */
.er-hub-container {
  position: relative;
  min-height: 420px;
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.er-hub-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #2563eb;
  color: white;
  padding: 18px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
  z-index: 10;
  text-align: center;
}

.er-hub-center-sub {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

.er-hub-entity {
  position: absolute;
  background: white;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  min-width: 130px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.er-hub-entity:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(37,99,235,0.15);
}

.er-hub-entity .entity-label { color: var(--text); font-size: 13px; }
.er-hub-entity .entity-cardinality { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.er-hub-entity.ref-entity { border-color: #1e40af; background: #eff6ff; }
.er-hub-entity.ref-entity:hover { border-color: #1e40af; }

.er-hub-entity.gov-entity { border-color: #7c3aed; background: #f5f3ff; }

.er-hub-connector {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* ─── Ref Layer ER ──────────────────────────────────────────────── */
.ref-er-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ref-er-group {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.ref-er-group-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ref-er-group-title .group-icon {
  font-size: 18px;
}

.ref-er-entity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.ref-er-entity-row:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
}

.ref-er-entity-row .entity-icon { font-size: 16px; }
.ref-er-entity-row .entity-name { font-weight: 600; color: var(--text); }
.ref-er-entity-row .entity-desc { color: var(--text-muted); font-size: 11px; flex: 1; }

.ref-er-relation-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 8px 0;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.ref-er-relation-arrow .arrow-type {
  background: var(--primary-lighter);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

/* ─── Pipeline Flow ─────────────────────────────────────────────── */
.pipeline-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pipeline-card {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: white;
}

.pipeline-card-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pipeline-card-title .pipe-icon { font-size: 18px; }

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.pipeline-step-box {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  min-width: 140px;
  flex-shrink: 0;
}

.pipeline-step-box.raw-step { background: #f1f5f9; border-color: #94a3b8; color: #475569; }
.pipeline-step-box.norm-step { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.pipeline-step-box.ref-step { background: #fef3c7; border-color: #d97706; color: #92400e; }
.pipeline-step-box.event-step { background: #dbeafe; border-color: #2563eb; color: #1e3a8a; }
.pipeline-step-box.detail-step { background: #f0fdf4; border-color: #16a34a; color: #14532d; }

.pipeline-arrow {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
}

.pipeline-note {
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 12px;
  background: #fef9c3;
  border-radius: 6px;
  margin-top: 10px;
  border-left: 3px solid #d97706;
}

/* ─── Event Details Grouping ────────────────────────────────────── */
.event-group-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.event-group-card {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.event-group-card.evidence-group { background: #eff6ff; border-color: #93c5fd; }
.event-group-card.regulatory-group { background: #fef3c7; border-color: #fcd34d; }
.event-group-card.commercial-group { background: #f0fdf4; border-color: #86efac; }

.event-group-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-group-title .group-icon { font-size: 18px; }

.event-group-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: white;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.event-group-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.event-group-item .item-name { font-weight: 600; color: var(--text); }
.event-group-item .item-desc { color: var(--text-muted); font-size: 11px; }
.event-group-item .item-relation { font-size: 10px; background: #dbeafe; color: #1e40af; padding: 2px 6px; border-radius: 4px; font-weight: 700; }

/* ─── ER Summary ────────────────────────────────────────────────── */
.er-summary-box {
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 50%, #fef3c7 100%);
  border-radius: var(--radius-sm);
  padding: 24px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.er-summary-box strong { color: var(--text); }
.er-summary-box .summary-highlight { background: #dbeafe; color: #1e3a8a; padding: 2px 6px; border-radius: 4px; font-weight: 700; font-size: 13px; }
.er-summary-box .summary-layer-tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.er-summary-box .summary-raw { background: #f1f5f9; color: #64748b; }
.er-summary-box .summary-norm { background: #dbeafe; color: #1e40af; }
.er-summary-box .summary-event { background: #2563eb; color: white; }
.er-summary-box .summary-ref { background: #fef3c7; color: #92400e; }
.er-summary-box .summary-gov { background: #f5f3ff; color: #7c3aed; }

.er-summary-principles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.er-summary-principle {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.er-summary-principle .principle-icon { font-size: 24px; }
.er-summary-principle .principle-title { font-weight: 700; font-size: 13px; color: var(--text); margin-top: 6px; }
.er-summary-principle .principle-desc { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ─── Transformation Path ───────────────────────────────────────── */
.transformation-selector {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 0;
}
.transformation-uc-chip {
  padding: 6px 16px; border: 1.5px solid var(--border); border-radius: 20px;
  font-size: 13px; font-weight: 500; cursor: pointer; background: white;
  color: var(--text-secondary); transition: all 0.2s; white-space: nowrap;
}
.transformation-uc-chip:hover { border-color: var(--primary-lighter); color: var(--primary); background: #eff6ff; }
.transformation-uc-chip.active { border-color: var(--primary); background: var(--primary); color: white; }

/* Pipeline Flow */
.pipeline-flow { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 20px 12px 24px; position: relative; }
.pipeline-stage { flex: 1; min-width: 90px; text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; }
.pipeline-connector { flex: 0 0 36px; display: flex; align-items: center; justify-content: center; padding-bottom: 30px; }
.pipeline-connector svg { width: 32px; height: 24px; }
.pipeline-stage-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 8px; border: 2px solid var(--border); background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06); transition: all 0.2s;
}
.pipeline-stage-icon.active-stage { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.pipeline-stage-label { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.pipeline-stage-count { font-size: 11px; color: var(--text-muted); }
.pipeline-stage-count strong { color: var(--primary); font-size: 14px; }
.pipeline-legends {
  display: flex; gap: 16px; padding: 0 12px 8px; font-size: 11px; color: var(--text-muted);
  justify-content: center; flex-wrap: wrap;
}
.pipeline-legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }

/* Signal → Dimension mapping */
.signal-dim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; padding: 8px 0; }
.signal-dim-card {
  background: var(--bg-muted); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; text-align: center; transition: all 0.2s;
}
.signal-dim-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.signal-dim-card .dim-icon { font-size: 24px; margin-bottom: 4px; display: block; }
.signal-dim-card .dim-name { font-weight: 600; font-size: 13px; color: var(--text); margin-bottom: 6px; }
.signal-dim-card .dim-signals { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; line-height: 1.5; }
.signal-dim-card .dim-score-bar {
  height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; margin-bottom: 4px;
}
.signal-dim-card .dim-score-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; }
.signal-dim-card .dim-score-val { font-size: 20px; font-weight: 800; }
.signal-dim-card .dim-tag-list { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.signal-dim-card .dim-tag {
  font-size: 9px; padding: 1px 5px; border-radius: 3px; background: white; color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Signal Mapping Arrow */
.signal-mapping-arrows { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 0 16px; }
.signal-mapping-source {
  font-size: 11px; padding: 4px 10px; border-radius: 12px; font-weight: 600;
  white-space: nowrap;
}
.signal-mapping-arrow { font-size: 16px; color: var(--text-muted); margin: 0 2px; }
.signal-mapping-source.paper { background: #dbeafe; color: #1e40af; }
.signal-mapping-source.trial { background: #ede9fe; color: #7c3aed; }
.signal-mapping-source.regulatory { background: #fef3c7; color: #92400e; }
.signal-mapping-source.safety { background: #fee2e2; color: #991b1b; }
.signal-mapping-source.deploy { background: #d1fae5; color: #065f46; }
.signal-mapping-source.payment { background: #e0e7ff; color: #3730a3; }

/* Transformation Milestones */
.trans-milestone-timeline { position: relative; padding: 8px 0 0 28px; }
.trans-milestone-timeline::before {
  content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, #e2e8f0 0%, #2563eb 40%, #10b981 100%);
}
.trans-milestone-item { position: relative; padding-bottom: 20px; }
.trans-milestone-item:last-child { padding-bottom: 0; }
.trans-milestone-dot {
  position: absolute; left: -22px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid; background: white; z-index: 1;
}
.trans-milestone-dot.m0 { border-color: #94a3b8; }
.trans-milestone-dot.m1 { border-color: #f59e0b; }
.trans-milestone-dot.m2 { border-color: #2563eb; }
.trans-milestone-dot.m3 { border-color: #8b5cf6; }
.trans-milestone-dot.m4 { border-color: #10b981; }
.trans-milestone-dot.current { box-shadow: 0 0 0 4px rgba(37,99,235,0.2); }
.trans-milestone-header { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; flex-wrap: wrap; }
.trans-milestone-stage { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 700; color: white; }
.trans-milestone-date { font-size: 12px; color: var(--text-muted); }
.trans-milestone-title { font-size: 13px; font-weight: 600; color: var(--text); }
.trans-milestone-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* Transformation Summary */
.trans-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trans-summary-col { padding: 16px; border-radius: 10px; }
.trans-summary-col.achieved { background: #f0fdf4; border: 1px solid #d1fae5; }
.trans-summary-col.missing { background: #fefce8; border: 1px solid #fef08a; }
.trans-summary-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.trans-summary-item { font-size: 12px; color: var(--text-secondary); padding: 3px 0; padding-left: 14px; position: relative; }
.trans-summary-item::before { content: '•'; position: absolute; left: 0; font-weight: 700; }
.trans-summary-col.achieved .trans-summary-item::before { color: var(--green); }
.trans-summary-col.missing .trans-summary-item::before { color: var(--amber); }
.trans-summary-stats { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.trans-summary-stat { text-align: center; padding: 8px 16px; background: white; border-radius: 8px; border: 1px solid var(--border); }
.trans-summary-stat .stat-val { font-size: 18px; font-weight: 800; }
.trans-summary-stat .stat-lbl { font-size: 10px; color: var(--text-muted); }

@media (max-width: 900px) {
  .pipeline-flow { gap: 4px; }
  .pipeline-stage { min-width: 60px; }
  .pipeline-stage-icon { width: 40px; height: 40px; font-size: 16px; }
  .trans-summary-grid { grid-template-columns: 1fr; }
  .signal-dim-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

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

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

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .grid-2col, .detail-grid, .product-detail-grid {
    grid-template-columns: 1fr;
  }
  .header-stats {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .sidebar { width: 60px; }
  .logo-text, .nav-label, .sidebar-section, .sidebar-footer { display: none; }
  .main-content { padding: 20px; }
  .header-stats { flex-wrap: wrap; }
  .usecase-grid { grid-template-columns: 1fr; }
}

/* ═══ V2: Agent-in-the-Loop Styles ═══════════════════════════════ */

/* ─── Nav Section Labels & Badges ─────────────────────────────── */
.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 16px 20px 6px;
  display: block;
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-muted);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}
.nav-badge.alert {
  background: #fef2f2;
  color: #ef4444;
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ─── Agent Hub ───────────────────────────────────────────────── */
.agent-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.agent-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}
.agent-summary-card:hover {
  border-color: var(--primary-lighter);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}
.agent-summary-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.agent-summary-card.upgrade::before { background: linear-gradient(90deg, #10b981, #34d399); }
.agent-summary-card.risk::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.agent-summary-card.sparse::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.agent-summary-card.review::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.agent-summary-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.agent-summary-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.agent-summary-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.agent-summary-detail {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

/* ─── Agent Health Grid ───────────────────────────────────────── */
.agent-health-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.agent-health-card {
  background: var(--bg-muted);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  border: 1px solid var(--border-light);
}
.agent-health-icon {
  font-size: 24px;
  margin-bottom: 6px;
}
.agent-health-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.agent-health-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #10b981;
  margin-bottom: 6px;
}
.agent-health-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
}
.agent-health-metric {
  font-size: 10px;
  color: var(--text-muted);
}
.agent-health-click-hint {
  font-size: 10px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}
.agent-health-card:hover .agent-health-click-hint {
  opacity: 1;
}

/* ─── Agent Detail Page (二级页面) ───────────────────────────── */
.agent-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 20px;
}
.agent-detail-icon {
  font-size: 48px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  border-radius: 16px;
  flex-shrink: 0;
}
.agent-detail-info {
  flex: 1;
}
.agent-detail-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px 0;
}
.agent-detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}
.agent-detail-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #d1fae5;
  color: #059669;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.agent-detail-metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.agent-detail-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
}
.agent-detail-metric-card .metric-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.agent-detail-metric-card .metric-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.agent-detail-section {
  margin-bottom: 20px;
}

/* Agent Output Content */
.agent-output-stats {
  display: flex;
  gap: 24px;
  padding: 16px 20px;
  background: var(--bg-muted);
  border-radius: 10px;
  margin-bottom: 16px;
}
.agent-output-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.agent-output-stat .stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}
.agent-output-stat .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.agent-output-dim-dist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px 16px;
}
.dim-dist-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dim-dist-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  width: 100px;
  flex-shrink: 0;
}
.dim-dist-track {
  flex: 1;
  height: 8px;
  background: var(--bg-muted);
  border-radius: 4px;
  overflow: hidden;
}
.dim-dist-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  border-radius: 4px;
  transition: width 0.3s;
}
.dim-dist-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  width: 24px;
  text-align: right;
}
.agent-output-list {
  margin-top: 8px;
}
.agent-output-list-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.agent-output-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}
.agent-output-item:hover {
  background: var(--bg-muted);
}
.agent-output-item.compact {
  align-items: center;
  padding: 8px;
}
.agent-output-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 16px;
  flex-shrink: 0;
}
.agent-output-body {
  flex: 1;
  min-width: 0;
}
.agent-output-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.agent-output-meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.agent-output-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.agent-output-confidence {
  flex-shrink: 0;
}
.agent-output-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.agent-output-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.agent-output-type-dist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 4px 16px;
}
.type-dist-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
}
.agent-output-transitions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 4px;
}
.transition-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #4f46e5;
}
.transition-count {
  background: #4f46e5;
  color: white;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
}

/* Agent Activity Log Timeline */
.agent-log-timeline {
  padding: 8px 4px;
}
.agent-log-entry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.agent-log-entry:last-child {
  border-bottom: none;
}
.agent-log-entry::before {
  content: '';
  position: absolute;
  left: 73px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.agent-log-entry:last-child::before {
  bottom: 50%;
}
.agent-log-time {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  width: 60px;
  flex-shrink: 0;
  text-align: right;
  padding-top: 2px;
}
.agent-log-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  font-size: 12px;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}
.agent-log-entry.warning .agent-log-icon {
  border-color: #f59e0b;
  background: #fef3c7;
}
.agent-log-entry.success .agent-log-icon {
  border-color: #10b981;
}
.agent-log-body {
  flex: 1;
  min-width: 0;
}
.agent-log-action {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.agent-log-target {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.agent-log-detail {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.agent-log-result {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--bg-muted);
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}
.agent-log-entry.warning .agent-log-result {
  background: #fef3c7;
  color: #92400e;
}

@media (max-width: 1200px) {
  .agent-detail-metrics { grid-template-columns: repeat(3, 1fr); }
  .agent-output-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .agent-detail-metrics { grid-template-columns: repeat(2, 1fr); }
  .agent-output-stats { flex-wrap: wrap; gap: 16px; }
}

/* ─── Proposal Cards ──────────────────────────────────────────── */
.proposal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s;
}
.proposal-card:hover {
  border-color: var(--primary-lighter);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.proposal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.proposal-uc-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.proposal-uc-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.proposal-type-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.proposal-type-badge.upgrade { background: #d1fae5; color: #065f46; }
.proposal-type-badge.downgrade { background: #fee2e2; color: #991b1b; }
.proposal-type-badge.keep { background: #e0e7ff; color: #3730a3; }
.proposal-type-badge.observe_only { background: #fef3c7; color: #92400e; }

.proposal-level-change {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.proposal-level-change .arrow { color: var(--text-muted); font-size: 18px; }
.proposal-level-current { color: var(--text-secondary); }
.proposal-level-proposed.upgrade { color: #10b981; }
.proposal-level-proposed.downgrade { color: #ef4444; }

.proposal-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}
.proposal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.proposal-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.proposal-confidence {
  font-weight: 700;
}
.proposal-confidence.high { color: #10b981; }
.proposal-confidence.medium { color: #f59e0b; }
.proposal-confidence.low { color: #ef4444; }

.proposal-evidence {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.proposal-evidence-col {
  flex: 1;
}
.proposal-evidence-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.proposal-evidence-label.support { color: #10b981; }
.proposal-evidence-label.counter { color: #ef4444; }
.proposal-evidence-item {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 10px;
  background: var(--bg-muted);
  border-radius: 6px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.proposal-evidence-item:hover {
  background: var(--border-light);
}

.proposal-dimension-impacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.dim-impact-chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}
.dim-impact-chip.positive { background: #d1fae5; color: #065f46; }
.dim-impact-chip.negative { background: #fee2e2; color: #991b1b; }
.dim-impact-chip.neutral { background: #f1f5f9; color: #64748b; }

.proposal-review-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.proposal-review-status.pending { background: #fef3c7; color: #92400e; }
.proposal-review-status.approved { background: #d1fae5; color: #065f46; }
.proposal-review-status.rejected { background: #fee2e2; color: #991b1b; }

/* ─── Question Cards ──────────────────────────────────────────── */
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  border-left: 4px solid var(--primary);
  transition: all 0.2s;
}
.question-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.question-card.gap { border-left-color: #f59e0b; }
.question-card.conflict { border-left-color: #ef4444; }
.question-card.forecast { border-left-color: #3b82f6; }
.question-card.decision { border-left-color: #8b5cf6; }
.question-card.risk { border-left-color: #dc2626; }

.question-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}
.question-type-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.question-type-badge.gap { background: #fef3c7; color: #92400e; }
.question-type-badge.conflict { background: #fee2e2; color: #991b1b; }
.question-type-badge.forecast { background: #dbeafe; color: #1e40af; }
.question-type-badge.decision { background: #ede9fe; color: #5b21b6; }
.question-type-badge.risk { background: #fee2e2; color: #991b1b; }

.question-priority {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.question-priority-score {
  font-size: 20px;
  font-weight: 800;
}
.question-priority-score.high { color: #ef4444; }
.question-priority-score.medium { color: #f59e0b; }
.question-priority-score.low { color: #64748b; }

.question-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
}
.question-trigger {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.question-action-text {
  font-style: italic;
}

/* ─── Watchlist Cards ─────────────────────────────────────────── */
.watchlist-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.2s;
}
.watchlist-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.watchlist-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.watchlist-icon.upgrade { background: #d1fae5; }
.watchlist-icon.risk { background: #fee2e2; }
.watchlist-icon.sparse_evidence { background: #fef3c7; }
.watchlist-body {
  flex: 1;
}
.watchlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.watchlist-uc-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.watchlist-type-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}
.watchlist-type-badge.upgrade { background: #d1fae5; color: #065f46; }
.watchlist-type-badge.risk { background: #fee2e2; color: #991b1b; }
.watchlist-type-badge.sparse_evidence { background: #fef3c7; color: #92400e; }
.watchlist-reason {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}
.watchlist-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: var(--text-muted);
}
.watchlist-horizon {
  font-weight: 700;
  color: var(--primary);
}
.watchlist-sources {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.watchlist-source-chip {
  font-size: 10px;
  padding: 2px 8px;
  background: var(--bg-muted);
  border-radius: 10px;
  color: var(--text-secondary);
}

/* ─── Review Queue Cards ──────────────────────────────────────── */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s;
}
.review-card.pending {
  border-left: 4px solid #f59e0b;
}
.review-card.approved {
  border-left: 4px solid #10b981;
  opacity: 0.85;
}
.review-card.rejected {
  border-left: 4px solid #ef4444;
  opacity: 0.85;
}
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.review-target-type {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.review-target-type.maturity_proposal { background: #dbeafe; color: #1e40af; }
.review-target-type.event_mapping { background: #e0e7ff; color: #3730a3; }
.review-target-type.conflict_observation { background: #fee2e2; color: #991b1b; }
.review-target-type.high_priority_question { background: #fef3c7; color: #92400e; }
.review-target-type.risk_alert { background: #fee2e2; color: #991b1b; }

.review-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.review-status-badge.pending { background: #fef3c7; color: #92400e; }
.review-status-badge.approved { background: #d1fae5; color: #065f46; }
.review-status-badge.rejected { background: #fee2e2; color: #991b1b; }
.review-status-badge.deferred { background: #e0e7ff; color: #3730a3; }

.review-body {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
}
.review-evidence-section {
  margin-bottom: 12px;
}
.review-evidence-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.review-actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.review-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.review-btn:hover { border-color: var(--primary-lighter); }
.review-btn.approve { background: #10b981; color: white; border-color: #10b981; }
.review-btn.reject { background: #ef4444; color: white; border-color: #ef4444; }
.review-btn.defer { background: var(--bg-muted); }
.review-btn.more-evidence { background: #f59e0b; color: white; border-color: #f59e0b; }

.review-feedback {
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--bg-muted);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.review-feedback-author {
  font-weight: 700;
  color: var(--text);
}

/* ─── Use Case Copilot (V2 upgrade) ──────────────────────────── */
.copilot-section {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f7ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.copilot-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #1e40af;
}
.copilot-diagnosis {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.copilot-missing-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.missing-evidence-chip {
  font-size: 11px;
  padding: 4px 10px;
  background: white;
  border: 1px solid #fbbf24;
  border-radius: 12px;
  color: #92400e;
}

/* ─── Signal Triage (V2 upgrade) ─────────────────────────────── */
.triage-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.triage-badge.relevant { background: #d1fae5; color: #065f46; }
.triage-badge.not_relevant { background: #f1f5f9; color: #64748b; }
.triage-badge.needs_review { background: #fef3c7; color: #92400e; }

.triage-action-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.triage-action-tag.flag_milestone { background: #dbeafe; color: #1e40af; }
.triage-action-tag.monitor_only { background: #f1f5f9; color: #64748b; }
.triage-action-tag.needs_review { background: #fef3c7; color: #92400e; }
.triage-action-tag.flag_downgrade_risk { background: #fee2e2; color: #991b1b; }
.triage-action-tag.flag_risk { background: #fee2e2; color: #991b1b; }
.triage-action-tag.needs_evidence { background: #fef3c7; color: #92400e; }

/* ─── Compact List Items (for Agent Hub previews) ────────────── */
.compact-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.compact-list-item:last-child { border-bottom: none; }
.compact-item-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.compact-item-body {
  flex: 1;
  min-width: 0;
}
.compact-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compact-item-meta {
  font-size: 11px;
  color: var(--text-muted);
}
.compact-item-priority {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 800;
}

/* ─── Responsive for V2 ───────────────────────────────────────── */
@media (max-width: 1200px) {
  .agent-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-health-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .agent-summary-grid { grid-template-columns: 1fr; }
  .agent-health-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-section-label { display: none; }
  .nav-badge { display: none; }
}

/* ─── V2 Agent Layer Schema Styles ─────────────────────────────── */

/* Agent Layer Diagram */
.schema-agent-layer-overview {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.schema-agent-layer-stack {
  flex: 1;
  min-width: 320px;
}
.schema-agent-layer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-left: 4px solid;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  margin-bottom: 2px;
  transition: all 0.2s;
}
.schema-agent-layer-row.agent-highlight {
  background: #ecfdf5;
  border-left-width: 6px;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.12);
}
.schema-agent-layer-label {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  color: white;
  white-space: nowrap;
  min-width: 140px;
}
.schema-agent-layer-info {
  display: flex;
  align-items: center;
  flex: 1;
}
.schema-agent-tables {
  flex: 1;
  min-width: 300px;
  padding: 16px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
}
.schema-agent-table-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
}
.schema-agent-table-chip:hover {
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
  transform: translateY(-1px);
}

/* Agent Workflow */
.agent-workflow-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px;
  justify-content: center;
}
.agent-workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px;
  border: 1px solid;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  min-width: 100px;
  max-width: 130px;
  transition: all 0.2s;
}
.agent-workflow-step.agent-step {
  background: #f0fdf4;
}
.agent-workflow-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.workflow-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 6px;
}
.workflow-step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}
.workflow-step-desc {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.workflow-step-agent {
  font-size: 9px;
  font-weight: 700;
  margin-top: 4px;
  padding: 1px 6px;
  background: white;
  border-radius: 8px;
}
.agent-workflow-arrow {
  display: flex;
  align-items: center;
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 700;
}

/* Agent ER Diagram */
.agent-er-container {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.agent-er-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.v1-column { max-width: 200px; flex-shrink: 0; }
.v2-column { flex: 1; }
.agent-er-column-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  margin-bottom: 4px;
}
.agent-er-entity-box {
  padding: 10px 14px;
  border: 2px solid;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
}
.agent-er-entity-box:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.v2-entity {
  font-size: 11px;
}
.agent-er-arrows {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 30px;
  min-width: 80px;
}
.agent-er-arrow-line {
  border-top: 2px dashed;
  text-align: center;
  position: relative;
}
.agent-er-arrow-line::after {
  content: '→';
  position: absolute;
  right: -4px;
  top: -10px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Agent Roles */
.agent-roles-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.agent-role-card {
  width: 100%;
  max-width: 700px;
  border: 1px solid;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.2s;
}
.agent-role-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.agent-role-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.agent-role-io {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.agent-role-io-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 12px;
}
.io-label {
  font-weight: 700;
  font-size: 11px;
  min-width: 60px;
}
.io-value {
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--text-secondary);
}
.agent-role-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
}
.highlight-chip {
  font-size: 11px;
  padding: 3px 10px;
  border: 1px solid;
  border-radius: 12px;
  background: white;
}
.agent-role-connector {
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 700;
  padding: 6px 0;
}

/* Feedback Loop */
.feedback-loop-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}
.feedback-loop-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 12px;
  border: 1px solid;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  min-width: 140px;
  max-width: 180px;
  transition: all 0.2s;
}
.feedback-loop-stage:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.loop-stage-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 8px;
}
.loop-stage-label {
  font-size: 13px;
  font-weight: 700;
}
.loop-stage-desc {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
  line-height: 1.4;
}
.loop-stage-tables {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 8px;
}
.loop-table-chip {
  font-size: 9px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  padding: 2px 6px;
  background: var(--bg-muted);
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.loop-table-chip:hover {
  background: var(--primary);
  color: white;
}
.feedback-loop-arrow {
  display: flex;
  align-items: center;
  padding-top: 30px;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 700;
}
.feedback-loop-circular {
  width: 100%;
  text-align: center;
  margin-top: 12px;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  border-radius: var(--radius-sm);
  border: 1px dashed #fca5a5;
}
.feedback-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.feedback-metric-card {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}
.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.metric-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.metric-desc {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Responsive for V2 Schema */
@media (max-width: 900px) {
  .agent-workflow-container { flex-direction: column; align-items: center; }
  .agent-workflow-arrow { transform: rotate(90deg); padding: 4px 0; }
  .agent-er-container { flex-direction: column; }
  .agent-er-arrows { display: none; }
  .v1-column { max-width: 100%; }
  .feedback-loop-container { flex-direction: column; align-items: center; }
  .feedback-loop-arrow { transform: rotate(90deg); padding: 4px 0; }
  .feedback-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .schema-agent-layer-overview { flex-direction: column; }
}

/* ─── Intro Page ─────────────────────────────────────────────────── */
.intro-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 64px 48px;
  margin-bottom: 40px;
  text-align: center;
}
.intro-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 40%, #7c3aed 100%);
  z-index: 0;
}
.intro-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 30%, rgba(255,255,255,0.08) 0%, transparent 40%);
}
.intro-hero-content {
  position: relative;
  z-index: 1;
  color: white;
}
.intro-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}
.intro-hero-title {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #bfdbfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.intro-hero-desc {
  font-size: 18px;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 32px;
  opacity: 0.92;
}
.intro-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.intro-btn-primary {
  background: white;
  color: #2563eb;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.intro-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.intro-btn-secondary {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.intro-btn-secondary:hover {
  background: rgba(255,255,255,0.2);
}

/* Sections */
.intro-section {
  max-width: 1000px;
  margin: 0 auto 56px;
  padding: 0 4px;
}
.intro-section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
  text-align: center;
}
.intro-section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 32px;
}

/* One liner */
.intro-one-liner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: 16px;
  padding: 28px 32px;
}
.intro-one-liner-icon {
  font-size: 36px;
  flex-shrink: 0;
}
.intro-one-liner-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-primary);
}
.intro-one-liner-text strong {
  color: #2563eb;
}

/* Problem grid */
.intro-problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.intro-problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}
.intro-problem-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.intro-problem-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.intro-problem-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* Flow */
.intro-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.intro-flow-step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.intro-flow-num {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.intro-flow-icon {
  font-size: 36px;
  margin-bottom: 8px;
  margin-top: 4px;
}
.intro-flow-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.intro-flow-step p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 12px;
  flex-grow: 1;
}
.intro-flow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}
.intro-flow-tags span {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-muted);
  color: var(--text-secondary);
}
.intro-flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 24px;
  color: var(--text-muted);
  font-weight: 300;
}

/* Maturity road */
.intro-maturity-road {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}
.intro-maturity-stage {
  flex: 1;
  max-width: 180px;
  text-align: center;
  padding: 0 8px;
}
.intro-maturity-marker {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: white;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.intro-maturity-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.intro-maturity-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}
.intro-maturity-desc small {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 11px;
}
.intro-maturity-line {
  width: 32px;
  height: 28px;
  border-top: 3px dashed var(--border);
  margin-top: 16px;
  flex-shrink: 0;
}
.intro-maturity-note {
  background: #fef9c3;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #92400e;
}
.intro-maturity-note strong {
  color: #78350f;
}

/* AITL grid */
.intro-aitl-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 32px;
}
.intro-aitl-card {
  flex: 1;
  border-radius: 16px;
  padding: 28px;
  position: relative;
}
.intro-aitl-card.traditional {
  background: #fef2f2;
  border: 2px solid #fecaca;
}
.intro-aitl-card.aitl {
  background: #eff6ff;
  border: 2px solid #bfdbfe;
}
.intro-aitl-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.intro-aitl-card.traditional .intro-aitl-badge {
  background: #fee2e2;
  color: #991b1b;
}
.intro-aitl-card.aitl .intro-aitl-badge {
  background: #dbeafe;
  color: #1e40af;
}
.intro-aitl-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  text-align: center;
}
.intro-aitl-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.intro-aitl-flow > div {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.7);
  text-align: center;
  min-width: 160px;
}
.intro-aitl-arrow {
  color: var(--text-muted);
  font-size: 18px;
}
.intro-aitl-problem {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
}
.intro-aitl-advantage {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
}
.intro-aitl-vs {
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-muted);
}
.intro-aitl-principle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.intro-aitl-principle-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.intro-aitl-principle-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.intro-aitl-principle-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.intro-aitl-principle-item p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* Value grid */
.intro-value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.intro-value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.intro-value-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.intro-value-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.intro-value-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.intro-value-action {
  font-size: 12px;
  color: #2563eb;
}
.intro-value-action a {
  cursor: pointer;
  color: #2563eb;
  text-decoration: underline;
  font-weight: 600;
}

/* Scenarios grid */
.intro-scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.intro-scenario-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.intro-scenario-chip:hover {
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37,99,235,0.1);
}
.intro-scenario-stage {
  font-size: 11px;
  font-weight: 700;
  color: white;
  padding: 2px 8px;
  border-radius: 6px;
}
.intro-scenario-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* CTA */
.intro-cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #7c3aed 100%);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  margin-bottom: 20px;
}
.intro-cta-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: white;
  margin: 0 0 8px;
}
.intro-cta-content p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 24px;
}
.intro-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px) {
  .intro-hero { padding: 40px 20px; }
  .intro-hero-title { font-size: 28px; }
  .intro-hero-desc { font-size: 15px; }
  .intro-problem-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-flow { flex-direction: column; }
  .intro-flow-arrow { transform: rotate(90deg); padding: 8px 0; }
  .intro-maturity-road { flex-direction: column; align-items: center; gap: 16px; }
  .intro-maturity-line { width: 3px; height: 24px; border-top: none; border-left: 3px dashed var(--border); }
  .intro-aitl-grid { flex-direction: column; }
  .intro-aitl-vs { padding: 16px 0; }
  .intro-aitl-principle { grid-template-columns: 1fr; }
  .intro-value-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-one-liner { flex-direction: column; text-align: center; }
}

/* ─── Password Gate Modal ─────────────────────────────────────────── */
.password-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pg-fade-in 0.2s ease;
}
@keyframes pg-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.password-gate-modal {
  background: white;
  border-radius: 16px;
  padding: 36px 32px 28px;
  width: 380px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: pg-slide-up 0.25s ease;
}
@keyframes pg-slide-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.password-gate-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.password-gate-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.password-gate-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}
.password-gate-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  text-align: center;
  letter-spacing: 2px;
}
.password-gate-input:focus {
  border-color: var(--primary);
}
.password-gate-error {
  color: #ef4444;
  font-size: 13px;
  margin-top: 10px;
}
.password-gate-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.password-gate-btn {
  flex: 1;
  padding: 11px 0;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}
.password-gate-cancel {
  background: var(--bg);
  color: var(--text-secondary);
}
.password-gate-cancel:hover {
  background: #e2e8f0;
}
.password-gate-confirm {
  background: var(--primary);
  color: white;
}
.password-gate-confirm:hover {
  background: var(--primary-dark);
}
