:root {
    --bg: #12151a;
    --panel: #1a1f27;
    --line: #2a313c;
    --text: #e6e9ee;
    --muted: #93a0b0;
    --accent: #4da3ff;
    --ok: #57c98a;
    --bad: #e2686b;
    --warn: #e0b256;
}


* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 "Segoe UI", system-ui, sans-serif;
}

.shell { max-width: 1000px; margin: 0 auto; padding: 0 16px 48px; }

header {
    display: flex; align-items: center; gap: 20px;
    padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 24px;
}

.brand { font-weight: 700; letter-spacing: 3px; color: var(--accent); }

nav { display: flex; gap: 16px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }
nav a.active { color: var(--text); border-bottom: 2px solid var(--accent); }

.right { margin-left: auto; }

h1 { font-size: 20px; font-weight: 600; margin: 0 0 16px; }
h2 { font-size: 15px; font-weight: 600; margin: 28px 0 8px; color: var(--muted); }

.muted { color: var(--muted); }
.warn  { color: var(--warn); }

.run {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 6px; padding: 14px 16px; margin-bottom: 12px;
}
.run.stalled { border-color: var(--warn); }

.runhead { display: flex; align-items: baseline; gap: 12px; }
.label { font-weight: 600; }
.runid { color: var(--muted); font-family: Consolas, monospace; font-size: 12px; }
.pct { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }

.bar { height: 6px; background: #0e1116; border-radius: 3px; margin: 10px 0; overflow: hidden; }
.fill { height: 100%; background: var(--accent); transition: width .4s ease; }

.meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.phase { color: var(--accent); font-family: Consolas, monospace; }
.msg { margin-top: 8px; font-size: 13px; color: var(--text); }

.badge {
    background: var(--warn); color: #12151a; border-radius: 3px;
    padding: 0 6px; font-size: 11px; font-weight: 700;
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }

.state { font-size: 12px; font-weight: 600; }
.state.ok  { color: var(--ok); }
.state.bad { color: var(--bad); }

.stack { display: flex; flex-direction: column; gap: 8px; max-width: 360px; margin-top: 16px; }
label { color: var(--muted); font-size: 13px; }
input {
    background: #0e1116; border: 1px solid var(--line); color: var(--text);
    border-radius: 4px; padding: 8px 10px; font: inherit;
}
button {
    background: var(--accent); color: #0b0e12; border: 0; border-radius: 4px;
    padding: 9px 14px; font: inherit; font-weight: 600; cursor: pointer;
    align-self: flex-start; margin-top: 6px;
}
button.linkish {
    background: none; color: var(--muted); padding: 0; font-weight: 400; margin: 0;
}
button.linkish:hover { color: var(--text); }

@media (max-width: 600px) {
    header { flex-wrap: wrap; gap: 12px; }
    .meta { gap: 10px; }
}
