/* Pantheon-Core UI — dark, classical, no framework. */
:root {
  --bg: #0d0e12;
  --panel: #16181f;
  --panel-2: #1e212b;
  --line: #2c2f3a;
  --text: #e8e9ee;
  --muted: #8b8f9e;
  --gold: #e0b341;
  --gold-dim: #a8852f;
  --blue: #5b8def;
  --green: #4caf7d;
  --red: #e0564b;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
}

.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 14px; }
.error { color: var(--red); font-size: 14px; margin: 8px 0; }

/* --- Top bar --- */
#topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.brand { display: flex; align-items: center; gap: 14px; }
.mark {
  font-size: 34px;
  color: var(--gold);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#topbar h1 { font-size: 18px; letter-spacing: 2px; }
.tagline { color: var(--muted); font-size: 12px; letter-spacing: 1px; }
.runbar { display: flex; align-items: center; gap: 10px; }

/* --- Layout --- */
main { max-width: 880px; margin: 0 auto; padding: 28px; }
.view-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
h2 { font-size: 20px; margin-bottom: 4px; }
h3 { font-size: 15px; margin: 20px 0 8px; color: var(--gold); letter-spacing: 0.5px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card.narrow { max-width: 380px; margin: 60px auto; }

/* --- Forms --- */
label { display: block; margin: 14px 0 4px; font-size: 13px; color: var(--muted); }
input, textarea, select {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 7px;
  padding: 10px 12px;
  font: inherit;
}
input:focus, textarea:focus, select:focus { outline: 1px solid var(--gold-dim); }
textarea { resize: vertical; }

/* --- Buttons --- */
.btn {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 16px;
  font: inherit;
  cursor: pointer;
  transition: filter 0.15s;
}
.btn:hover { filter: brightness(1.25); }
.btn-primary { background: var(--gold); color: #1a1a1a; border-color: var(--gold); font-weight: 600; }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red); }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* --- Pills & lists --- */
.pill {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--muted);
}
.list { display: flex; flex-direction: column; gap: 8px; }
.row {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: default;
}
.row.clickable { cursor: pointer; }
.row.clickable:hover { border-color: var(--gold-dim); }
.row-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.row-title { font-weight: 600; }
.row-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* --- Status colours --- */
.s-queued { color: var(--muted); }
.s-in_progress { color: var(--blue); }
.s-running { color: var(--blue); }
.s-done, .s-complete { color: var(--green); }
.s-failed, .s-cancelled { color: var(--red); }
.s-skipped { color: var(--gold-dim); }
.tag {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  border: 1px solid currentColor; border-radius: 4px; padding: 2px 7px;
}

/* --- Estimate & code --- */
.estimate {
  background: var(--panel-2);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
}
.estimate strong { color: var(--gold); }
.code {
  background: #0a0b0e;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace;
  color: #c8cad6;
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
}

/* --- Progress --- */
.progress { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.progress .pill { background: var(--panel-2); }

/* --- Question blocks --- */
.question { margin: 16px 0; }
.question p { margin-bottom: 6px; }

/* --- Banner --- */
.banner {
  background: #2a2018;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.banner h3 { color: var(--gold); margin-top: 0; }
.banner .actions { justify-content: flex-start; }
