:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e7ecf3;
  --muted: #8b9cb3;
  --accent: #3d8bfd;
  --danger: #f85149;
  --ok: #3fb950;
  --border: #30363d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

header h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

main {
  padding: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 500;
}

.status-success {
  color: var(--ok);
}

.status-failed {
  color: var(--danger);
}

.status-running {
  color: var(--accent);
}

button,
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  cursor: pointer;
}

button.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  max-width: 320px;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-row {
  margin-bottom: 1rem;
}

.error {
  color: var(--danger);
  margin-bottom: 1rem;
}

pre.log {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.8rem;
  background: var(--bg);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  max-height: 70vh;
  overflow: auto;
}

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

.inline-form {
  display: inline;
}
