:root {
  --bg: #0f1115;
  --panel: #171a21;
  --border: #2a2e38;
  --text: #e6e8ec;
  --muted: #8a8f9c;
  --accent: #d84a6f;
  --accent2: #4ad8b8;
  --ok: #4ad88a;
  --warn: #d8c04a;
  --fail: #d84a4a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
.topbar {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}
.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}
h1 { font-size: 1.4rem; margin: 0 0 16px; }
h2 { font-size: 1.1rem; margin: 24px 0 12px; }
h3 { font-size: 0.95rem; margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
a { color: var(--accent2); }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--border);
  color: var(--text);
}
.badge.status-DONE, .badge.status-SUCCEEDED, .badge.status-VERIFIED, .badge.status-UPLOADED,
.badge.status-ACTIVE { background: var(--ok); color: #0f1115; }
.badge.status-FAILED, .badge.status-CANCELLED, .badge.status-REVOKED { background: var(--fail); color: #0f1115; }
.badge.status-RUNNING, .badge.status-QUEUED, .badge.status-RETRYING, .badge.status-UPLOADING,
.badge.status-RECONCILING, .badge.status-PENDING, .badge.status-COOLDOWN { background: var(--warn); color: #0f1115; }
form.inline { display: inline; }
input, select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
}
button {
  background: var(--accent);
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}
button:hover { opacity: 0.9; }
button.secondary { background: var(--border); }
.stage-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.stage-list li { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--bg); border-radius: 4px; }
.muted { color: var(--muted); font-size: 0.85rem; }
table { width: 100%; border-collapse: collapse; }
table td, table th { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.9rem; }
