* { box-sizing: border-box; }
body {
  font: 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0; color: #1a1a1a; background: #fafafa;
}
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: #1f2937; color: #f9fafb;
}
header h1 { margin: 0; font-size: 18px; }
header h1 a { color: inherit; text-decoration: none; }
header nav a { color: #cbd5e1; margin-left: 16px; text-decoration: none; }
header nav a:hover { color: #fff; }
main { padding: 20px; max-width: 1200px; margin: 0 auto; }
h2 { margin-top: 0; }
.toolbar { display: flex; gap: 12px; margin-bottom: 16px; }
.btn, button {
  background: #2563eb; color: #fff; border: 0; padding: 6px 12px;
  border-radius: 4px; cursor: pointer; font-size: 13px; text-decoration: none;
  display: inline-block;
}
.btn:hover, button:hover { background: #1d4ed8; }
button:disabled { background: #94a3b8; cursor: not-allowed; }
button.danger { background: #dc2626; }
.inline { display: inline; margin: 0; }
table.grid {
  width: 100%; border-collapse: collapse; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
table.grid th, table.grid td { padding: 8px 12px; border-bottom: 1px solid #e5e7eb; text-align: left; }
table.grid th { background: #f3f4f6; font-weight: 600; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
}
.badge.success { background: #d1fae5; color: #065f46; }
.badge.failed  { background: #fee2e2; color: #991b1b; }
.badge.running { background: #fef3c7; color: #92400e; }
.badge.never   { background: #e5e7eb; color: #374151; }
.err { color: #b91c1c; }
.danger-link { color: #b91c1c; margin-left: 8px; }
.danger-link:hover { color: #7f1d1d; }
button:disabled.danger { background: #fecaca; color: #7f1d1d; cursor: not-allowed; }
pre.err, pre.log {
  background: #1f2937; color: #e5e7eb; padding: 12px;
  border-radius: 4px; overflow: auto; max-height: 480px;
  font: 12px/1.45 ui-monospace, SF Mono, Menlo, monospace;
  white-space: pre-wrap;
}
form label { display: block; margin: 8px 0; }
form label.check { display: flex; align-items: center; gap: 8px; }
form input[type=text] {
  width: 100%; max-width: 480px; padding: 6px 8px;
  border: 1px solid #d1d5db; border-radius: 4px; font-size: 14px;
}
