:root {
  color-scheme: light dark;
  --border: color-mix(in srgb, currentColor 15%, transparent);
  --muted: color-mix(in srgb, currentColor 55%, transparent);
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.4;
}

h1 {
  font-size: 1.4rem;
}

h2 {
  font-size: 1.05rem;
  margin-top: 0;
}

.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: -0.25rem;
}

textarea {
  width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  resize: vertical;
}

.row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

label.checkbox-label {
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
}

label.checkbox-label input {
  width: auto;
}

input {
  font: inherit;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
}

button {
  font: inherit;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, currentColor 10%, transparent);
  color: inherit;
  cursor: pointer;
}

button.secondary {
  background: transparent;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status {
  font-size: 0.85rem;
  color: var(--muted);
}

pre#job-log {
  max-height: 280px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-size: 0.8rem;
  background: color-mix(in srgb, currentColor 6%, transparent);
  border-radius: 6px;
  padding: 0.6rem;
}

#job-results ul {
  padding-left: 1.1rem;
}

#job-results a {
  color: inherit;
}

video {
  display: block;
  max-width: 100%;
  max-height: 480px;
  border-radius: 6px;
  margin-top: 0.5rem;
}

#job-results li {
  margin-bottom: 1rem;
}
