body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #0b1221;
  border-bottom: 1px solid #1f2937;
}

.topbar a {
  color: #93c5fd;
  margin-right: 12px;
  text-decoration: none;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.user-pill {
  background: #1f2937;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 14px;
}

.page {
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

h1, h2, h3 {
  margin-top: 0;
  color: #f8fafc;
}

.form label {
  display: block;
  margin: 8px 0 4px;
  font-weight: 600;
}

.form input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background: #0b1221;
  color: #e2e8f0;
}

.form button, .btn, .inline-form button {
  margin-top: 10px;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}

.inline-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-right: 8px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
}

.inline-form input {
  width: auto;
  min-width: 140px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 10px;
  border-bottom: 1px solid #1f2937;
}

.table a {
  color: #7dd3fc;
  text-decoration: underline;
}

.table a:hover {
  color: #bae6fd;
}

.table th {
  text-align: left;
  color: #cbd5e1;
}

.badge {
  padding: 4px 10px;
  border-radius: 10px;
  background: #1f2937;
  text-transform: capitalize;
  font-size: 12px;
}

.badge.running { background: #1e3a8a; }
.badge.queued { background: #334155; }
.badge.finished { background: #166534; }
.badge.failed { background: #991b1b; }

.alert {
  background: #991b1b;
  padding: 10px;
  border-radius: 8px;
  color: #fff;
  margin-bottom: 12px;
}

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: radial-gradient(circle at 10% 20%, #1e3a8a, transparent 25%), #0f172a;
}

.login-card {
  width: 360px;
}

.wrap {
  white-space: normal;
  word-break: break-all;
}

a.btn {
  background: #0ea5e9;
  text-decoration: none;
  padding: 8px 12px;
  display: inline-block;
}

.actions form {
  margin-bottom: 6px;
}
