:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --text: #1f2937;
  --muted: #64748b;
  --line: #d8dee8;
  --panel: #ffffff;
  --primary: #146c5c;
  --primary-dark: #0f4f44;
  --warn: #a15c05;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
.topbar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: #10231f;
  color: #fff;
}
.brand { font-weight: 700; }
.topbar nav { display: flex; gap: 18px; font-size: 14px; color: #d8e7e2; }
.page { max-width: 1180px; margin: 0 auto; padding: 28px; }
.band { margin-bottom: 24px; }
.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 34px; margin-bottom: 8px; }
h2 { font-size: 20px; margin-bottom: 14px; }
h3 { font-size: 17px; margin-bottom: 8px; }
p, small, .muted { color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; }
.stack, .inline-form { display: flex; gap: 12px; }
.stack { flex-direction: column; max-width: 520px; }
.inline-form { align-items: end; flex-wrap: wrap; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input {
  height: 42px;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
}
button, .button {
  height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.secondary { background: #e7efed; color: var(--primary-dark); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.card, .row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 120ms ease, transform 120ms ease;
}
.card { padding: 16px; min-height: 126px; display: block; }
.card:hover, .row:hover { border-color: #9bb8b1; transform: translateY(-1px); }
.list { display: grid; gap: 10px; }
.row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 14px;
}
.row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row small { grid-column: 1 / -1; }
.status {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  background: #e8edf3;
  color: #475569;
}
.status.running, .status.queued { background: #fff4d6; color: var(--warn); }
.status.completed, .status.ok { background: #dff4ec; color: var(--primary-dark); }
.status.failed { background: #fde8e6; color: var(--danger); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.stats strong { display: block; font-size: 28px; }
.stats span { color: var(--muted); }
.events { display: grid; gap: 8px; }
.event {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.event time { color: var(--muted); font-size: 13px; }
.event.error span { color: var(--danger); }
.event.warning span { color: var(--warn); }
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  line-height: 1.55;
}
.transcript pre { font-size: 15px; }

@media (max-width: 760px) {
  .topbar { padding: 0 18px; }
  .page { padding: 20px; }
  .intro, .split { display: block; }
  .inline-form { align-items: stretch; }
  input, button, .button { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .event { grid-template-columns: 1fr; }
}
