/* Smart Diff Navigator — Wave 4 (Projection consumer) */
.sg-sd-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sg-sd-nav__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.sg-sd-nav__actions {
  display: flex;
  gap: 0.35rem;
}
.sg-sd-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 11px;
  color: #475569;
}
.sg-sd-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 16rem;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.35rem;
  background: #fff;
}
.sg-sd-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  color: #0f172a;
}
.sg-sd-item:hover {
  background: #f8fafc;
}
.sg-sd-item.is-selected {
  border-color: #93c5fd;
  background: #eff6ff;
}
.sg-sd-item[hidden] {
  display: none !important;
}
.sg-sd-item__num {
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.sg-sd-item__label {
  flex: 1;
  min-width: 8rem;
  font-weight: 600;
}
.sg-sd-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
}
.sg-sd-badge--added {
  background: #dcfce7;
  color: #166534;
}
.sg-sd-badge--deleted {
  background: #fee2e2;
  color: #991b1b;
}
.sg-sd-badge--modified {
  background: #dbeafe;
  color: #1e40af;
}
.sg-sd-badge--candidate {
  background: #fef3c7;
  color: #92400e;
}
.sg-sd-cand,
.sg-sd-cand-note {
  font-size: 11px;
  color: #a16207;
}
.sg-sd-review-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .sg-sd-review-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.sg-sd-pane-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.25rem;
}
.sg-sd-pre {
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 0.5rem;
  padding: 0.6rem 0.7rem;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid #e2e8f0;
  min-height: 4rem;
  margin: 0;
}
.sg-sd-pre--before {
  background: #f8fafc;
  color: #334155;
}
.sg-sd-pre--after {
  background: #f0fdf4;
  color: #14532d;
  border-color: #bbf7d0;
}
.sg-sd-table-note {
  font-size: 13px;
  font-weight: 600;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}
