:root {
  --bg: #0f1216; --card: #171c22; --line: #2a333d; --fg: #e6e9ee;
  --mut: #8a97a5; --acc: #4f9cf0; --err: #ff6b6b;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 14px/1.55 system-ui, "Segoe UI", Roboto, sans-serif; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 600; font-size: 16px; }
.spacer { flex: 1; }
.inline { display: inline; }

main { max-width: 960px; margin: 24px auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 18px 20px; margin-bottom: 20px; }
h1 { font-size: 20px; }
h2 { margin: 0 0 14px; font-size: 16px; }
h3 { font-size: 14px; margin: 20px 0 8px; }

label { display: block; margin: 12px 0; font-size: 13px; color: var(--mut); }
input, select, button { font: inherit; }
input[type=file], select, input[type=password] {
  display: block; margin-top: 6px; background: #0e1319; color: var(--fg);
  border: 1px solid var(--line); border-radius: 7px; padding: 8px; width: 100%;
  max-width: 440px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.row > label { flex: 1; min-width: 190px; }

button { background: var(--acc); color: #04121f; border: 0; border-radius: 7px;
  padding: 9px 16px; font-weight: 600; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
button.link { background: none; color: var(--mut); font-weight: 400; padding: 4px; }
.btn { display: inline-block; background: #232c36; color: var(--fg);
  border: 1px solid var(--line); padding: 6px 11px; border-radius: 6px; font-weight: 500; }
.btn.sm { font-size: 12px; padding: 4px 9px; margin: 0 5px 4px 0; }
.btn:hover { text-decoration: none; border-color: var(--acc); }

.muted { color: var(--mut); }
.error { color: var(--err); white-space: pre-wrap; font-size: 12px; margin: 8px 0; }
.hidden { display: none; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line);
  font-size: 13px; vertical-align: middle; }
th { color: var(--mut); font-weight: 500; }

.progress { background: #0e1319; border: 1px solid var(--line); border-radius: 6px;
  height: 10px; overflow: hidden; margin: 10px 0; }
.progress.mini { height: 6px; width: 90px; display: inline-block; margin: 0 6px 0 0;
  vertical-align: middle; }
.bar { height: 100%; background: var(--acc); width: 0; transition: width .3s ease; }

.badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: #232c36;
  text-transform: uppercase; letter-spacing: .03em; }
.b-done { background: #12351f; color: #5fd08a; }
.b-error { background: #3a1a1a; color: #ff8a8a; }
.b-running { background: #123049; color: #6bb8ff; }
.b-queued { background: #2a2a12; color: #d6c95f; }
.b-canceled { background: #2b2b2b; color: #aaa; }

.transcript { white-space: pre-wrap; word-break: break-word; background: #0e1319;
  border: 1px solid var(--line); border-radius: 8px; padding: 14px;
  max-height: 60vh; overflow: auto; font-size: 13px; }

.centered { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.login { width: 320px; text-align: center; }
.login h1 { font-size: 20px; margin: 0 0 6px; }
.login input { margin: 14px auto; }
.login button { width: 100%; }
