.redundancy-panel {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.redundancy-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 6px;
}

.summary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  background: var(--bg-primary);
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.summary-card.essential {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.summary-card.redundant {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.summary-card.harmful {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.summary-card.unknown {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.05);
}

.summary-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.redundancy-scores {
  margin-bottom: 24px;
}

.redundancy-scores h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.scores-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.scores-table thead {
  background: var(--bg-secondary);
}

.scores-table th {
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.scores-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
}

.score-row--essential {
  background: rgba(16, 185, 129, 0.05);
}

.score-row--redundant {
  background: rgba(245, 158, 11, 0.05);
}

.score-row--harmful {
  background: rgba(239, 68, 68, 0.1);
}

.score-row--unknown {
  background: rgba(139, 92, 246, 0.05);
}

.step-id {
  font-family: monospace;
  color: var(--text-secondary);
}

.score-value {
  font-weight: 600;
  color: var(--text-primary);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge--essential {
  background: #10b981;
  color: white;
}

.badge--redundant {
  background: #f59e0b;
  color: white;
}

.badge--harmful {
  background: #ef4444;
  color: white;
}

.badge--unknown {
  background: #8b5cf6;
  color: white;
}

.reasoning {
  max-width: 300px;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.4;
}

.redundancy-insights,
.redundancy-alerts {
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 6px;
  margin-bottom: 16px;
}

.redundancy-alerts {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid #ef4444;
}

.redundancy-insights h4,
.redundancy-alerts h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.redundancy-insights ul,
.redundancy-alerts ul {
  margin: 0;
  padding-left: 20px;
}

.redundancy-insights li,
.redundancy-alerts li {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.redundancy-alerts li {
  color: var(--text-primary);
}

.redundancy-alerts strong {
  color: #ef4444;
}

.empty-state {
  text-align: center;
  padding: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

.error-message {
  padding: 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  border-radius: 6px;
  color: #ef4444;
  font-size: 14px;
}

.loading-skeleton {
  padding: 16px;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}