body {
  font-family: system-ui, sans-serif;
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: #1a1a1a;
}

h1 {
  font-size: 1.5rem;
}

.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.card h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.warning {
  color: #8a5300;
  background: #fff4e0;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

button {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.6;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.75rem;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: #3b82f6;
  border-radius: 4px;
}

.progress-track.running .progress-fill {
  width: 40%;
  animation: progress-indeterminate 1.2s ease-in-out infinite;
}

.progress-track.done .progress-fill {
  width: 100%;
  margin-left: 0;
  background: #16a34a;
}

.progress-track.error .progress-fill {
  width: 100%;
  margin-left: 0;
  background: #dc2626;
}

@keyframes progress-indeterminate {
  0% {
    margin-left: -40%;
  }
  100% {
    margin-left: 100%;
  }
}

.log {
  background: #111;
  color: #ddd;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.result a {
  font-weight: 600;
}

table.failures,
table.preview {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

table.failures th,
table.failures td,
table.preview th,
table.preview td {
  border: 1px solid #ddd;
  padding: 0.3rem 0.5rem;
  text-align: left;
}

.preview-wrap {
  margin-top: 0.75rem;
  max-height: 260px;
  overflow-y: auto;
}

table.preview th {
  background: #f5f5f5;
}
