/* ===== Profile Filter Bar (gender/governorate — Task 7.2) ===== */
.filter-select {
  padding: var(--space-2) var(--space-3);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--text-xs);
  cursor: pointer;
  flex-shrink: 0;
}
.filter-select:focus { outline: none; border-color: var(--border-focus); }
.filter-select option { background: var(--bg-elevated); color: var(--text-primary); }

/* ===== Derived-info card (Task 7.2) ===== */
.profile-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.enrichment-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
/* "Derived, not checksum-verified" — a warning-tinted advisory badge. */
.enrichment-badge {
  display: inline-block;
  font-size: var(--text-xs);
  color: var(--warning);
  background: var(--warning-bg);
  padding: var(--space-1) var(--space-3);
  border-radius: 12px;
  margin-bottom: var(--space-3);
}
.enrichment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-2);
}
.enrichment-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: var(--text-xs);
}
.enrichment-label { color: var(--text-secondary); }
.enrichment-value { color: var(--text-primary); font-weight: 600; }

/* ===== Linked-targets badge (Task 7.2) ===== */
.linked-targets { display: flex; flex-direction: column; gap: var(--space-2); }
.linked-targets-badge {
  align-self: flex-start;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  cursor: pointer;
  font-family: inherit;
}
.linked-targets-badge:hover { border-color: var(--accent-hover); color: var(--accent-hover); }
.linked-targets-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.linked-target-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
}
.linked-target-types { color: var(--text-secondary); font-size: var(--text-xs); }

/* ===== Live duplicate warning banner (Task 7.2) ===== */
.dup-warning-banner {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  z-index: 400;
  max-width: 90vw;
  box-shadow: var(--shadow-overlay);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.dup-warning-line {
  font-size: var(--text-xs);
  color: var(--warning);
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.dup-warning-line a { color: var(--accent); }
.dup-warning-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--text-base);
  line-height: 1;
}
