body {
  background: #f5f7fb;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Cards */
.card {
  border-radius: 14px;
}

/* Graph */
.cy {
  height: 420px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

/* Suggestions */
.suggestionsWrap {
  max-height: 260px;
  overflow-y: auto;
}

#suggestionsTable tbody tr {
  cursor: pointer;
}

#suggestionsTable tbody tr.selected {
  background: #eef2ff;
  box-shadow: inset 3px 0 0 #6366f1;
}

/* Detail panel */
.detail-panel {
  position: sticky;
  top: 90px;
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader.hidden {
  display: none;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  font-weight: 500;
  color: #374151;
}
/* Detail panel metrics */
.detail-panel .metric {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.detail-panel .metric i {
  font-size: 1.1rem;
  color: #6366f1;
  margin-top: 2px;
}

.detail-panel .metric .label {
  font-size: 11px;
  color: #6b7280;
}

.detail-panel .metric .value {
  font-weight: 600;
  color: #111827;
}

.detail-panel hr {
  margin: 14px 0;
  border-color: #e5e7eb;
}
/* =========================
   Graph legend
========================= */

.graph-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #374151;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.target {
  background: #f59e0b;
}

.legend-dot.known {
  background: #10b981;
}

.legend-dot.recommended {
  background: #6366f1;
}

.legend-dot.evidence {
  background: #c4b5fd;
}
/* =========================
   Evidence Highlighting
========================= */

.evidence-block {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #6366f1;
  border-radius: 10px;
  padding: 14px;
}

.evidence-header {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.evidence-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.evidence-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
}

.evidence-main {
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.evidence-meta {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.evidence-purpose {
  font-size: 12px;
  color: #4b5563;
}
