.history-card {
  max-width: 920px;
}

.history-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.search-input {
  flex: 1 1 260px;
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink);
}

.search-input:focus,
.history-controls select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(109, 94, 248, 0.15);
}

.history-controls select {
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.history-row:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px -18px rgba(87, 69, 230, 0.5);
  transform: translateY(-1px);
}

.history-main {
  min-width: 0;
}

.history-title {
  font-weight: 700;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-meta {
  color: var(--ink-soft);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-tool {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: #f1efff;
  border-radius: 999px;
  padding: 2px 9px;
  margin-right: 8px;
}

.history-side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.history-date {
  color: var(--ink-soft);
  font-size: 0.82rem;
  white-space: nowrap;
}

.badge.in_progress {
  background: #eef0ff;
  color: var(--accent-dark);
}

.badge.failed {
  background: var(--fail-bg);
  color: var(--fail);
}

.badge.complete {
  background: var(--pass-bg);
  color: var(--pass);
}

.history-skeleton {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fafafe;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
