.review-history-panel {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card-bg);
  margin: 18px 0;
  padding: 16px;
}

.review-history-panel.empty-state {
  background: transparent;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-item {
  border: 1px solid var(--border);
  border-radius: 4px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 190px);
  padding: 12px;
}

.history-status-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compact-history-row {
  margin-top: 6px;
}

.history-arrow {
  color: var(--muted);
  font-weight: 950;
}

.history-badge {
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--primary-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 9px;
}

.history-badge-success {
  background: var(--success-bg);
  color: var(--success-text);
}

.history-badge-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.history-badge-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.history-badge-info {
  background: var(--info-bg);
  color: var(--info-text);
}

.history-notes {
  color: var(--text);
  line-height: 1.5;
  margin: 10px 0 0;
  white-space: pre-wrap;
}

.history-meta {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .history-item {
    grid-template-columns: 1fr;
  }
}
