.metrics {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.exploration-panel .status {
  margin: 0;
}

.status-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.freshness {
  color: var(--muted);
  font-size: .88rem;
  margin: 0;
}

.live-run {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.live-run[hidden] {
  display: none;
}

.live-run span {
  background: #f0f5f2;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 10px;
}

.live-run progress,
.run-history progress {
  accent-color: var(--green);
  height: 12px;
  width: 100%;
}

.automation-policy {
  background: #f4f7f5;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin: 0 0 14px;
  padding: 10px 12px;
}

.automation-policy.diversified {
  background: #fff8e8;
  border-left-color: #b7791f;
}

.automation-policy > span {
  color: var(--muted);
}

.run-state {
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  padding: 3px 8px;
  white-space: nowrap;
}

.run-state.running { background: #e9f7ef; color: #17624f; }
.run-state.finished { background: #eef4fb; color: #24527a; }
.run-state.failed { background: #fff0f0; color: #a12a2a; }
.run-state.interrupted { background: #fff8e8; color: #8a5a12; }

.run-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-bottom: 5px;
}

.technical-stats {
  margin-top: 6px;
}

.technical-stats summary {
  color: var(--muted);
  cursor: pointer;
  font-size: .84rem;
}

.technical-stats code {
  display: block;
  margin-top: 5px;
  max-width: 720px;
  overflow-wrap: anywhere;
  white-space: normal;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
