.detection-ready-list .review-card:last-child {
  margin-bottom: 0;
}

.detection-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.detection-toolbar label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.75rem;
}

.detection-toolbar select,
.detection-toolbar input[type="number"] {
  min-width: 170px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #121820;
  color: var(--text);
}

.detection-toolbar input[type="number"] {
  width: 170px;
  box-sizing: border-box;
}

.detection-select-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.detection-source-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--accent-bright);
  font-size: 0.8rem;
}

.detection-run-history {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.detection-run {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(13, 19, 27, 0.72);
  color: var(--muted);
  font-size: 0.77rem;
}

.detection-run a {
  margin-left: auto;
}

.detection-run-progress {
  flex: 1 1 100%;
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.detection-run-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.detection-run-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f7fd4, #4ecdc4);
  transition: width 0.35s ease;
  min-width: 0;
}

.detection-run-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.detection-run-actions button.small {
  padding: 4px 8px;
  font-size: 0.72rem;
}

.badge.ingested {
  background: #143528;
  color: var(--ok);
  border-color: #1f5a3d;
}

.badge.queued {
  background: #182230;
  color: var(--accent);
  border-color: #2f6fad;
}

.badge.running {
  background: #3a2a14;
  color: var(--warn);
  border-color: #6a4a1e;
}

.badge.done {
  background: #143528;
  color: var(--ok);
  border-color: #1f5a3d;
}

.badge.failed {
  background: #3a1818;
  color: var(--bad);
  border-color: #6a2a2a;
}
