:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --panel: #12161b;
  --panel-2: #171c22;
  --line: #2a323c;
  --text: #ecf1f7;
  --muted: #8995a3;
  --accent: #6ee7b7;
  --accent-ink: #062b21;
  --danger: #fb7185;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 75% -20%, #173329 0, transparent 35%), var(--bg); color: var(--text); }
a { color: inherit; }
button, input { font: inherit; }
button { border: 0; border-radius: 8px; padding: .72rem 1rem; background: var(--accent); color: var(--accent-ink); font-weight: 750; cursor: pointer; }
button:disabled { opacity: .38; cursor: not-allowed; }
.topbar { height: 64px; padding: 0 clamp(1rem, 4vw, 3rem); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgb(11 13 16 / 82%); backdrop-filter: blur(14px); }
.top-actions { display: flex; align-items: center; gap: .35rem; }
.daemon-toggle { min-width: 5rem; padding: .5rem .8rem; }
.daemon-toggle.paused { color: #fcd34d; background: #3a2d0d; border: 1px solid #785f1d; }
.brand { display: flex; gap: .7rem; align-items: center; text-decoration: none; font-weight: 750; letter-spacing: -.02em; }
.mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: .85rem; font-weight: 900; letter-spacing: -.04em; }
.mark.small { width: 32px; height: 32px; border-radius: 8px; font-size: .68rem; }
.quiet { background: transparent; color: var(--muted); padding-inline: .5rem; }
.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) 0; }
.page-head, .run-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.eyebrow { margin: 0 0 .45rem; color: var(--accent); text-transform: uppercase; font-size: .72rem; font-weight: 850; letter-spacing: .14em; }
h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 3.25rem); letter-spacing: -.045em; line-height: 1.04; }
h2 { margin: 0 0 1rem; font-size: 1rem; }
.muted { color: var(--muted); }
.sort { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.sort a { padding: .55rem .75rem; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: .84rem; font-weight: 700; }
.sort a[aria-current="page"] { background: var(--panel-2); color: var(--text); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th { padding: .8rem 1rem; color: var(--muted); text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
td { padding: 1rem; border-top: 1px solid var(--line); font-size: .86rem; vertical-align: middle; }
tr:hover td { background: var(--panel-2); }
.clickable { cursor: pointer; }
.clickable:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.row-link { display: flex; flex-direction: column; gap: .28rem; text-decoration: none; }
.row-link strong { font-size: .95rem; }
.row-link span, .disposition { color: var(--muted); font-size: .76rem; }
.status { display: inline-block; width: max-content; padding: .26rem .48rem; margin-right: .45rem; border: 1px solid #3a4653; border-radius: 99px; color: #bdc7d2; font: 750 .68rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.status-completed { color: var(--accent); border-color: #25664f; background: #10281f; }
.status-failed, .status-timed-out, .status-cancelled { color: #fda4af; border-color: #713342; background: #2a141a; }
.status-running, .status-preparing, .status-validating, .status-queued { color: #93c5fd; border-color: #304e72; background: #101e30; }
.empty { padding: 4rem; text-align: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.login-body { display: grid; place-items: center; padding: 1rem; }
.login-card { width: min(430px, 100%); padding: 2.5rem; border: 1px solid var(--line); border-radius: 16px; background: rgb(18 22 27 / 92%); box-shadow: 0 28px 80px rgb(0 0 0 / 35%); }
.login-card .mark { margin-bottom: 2rem; }
.login-card h1 { font-size: 2rem; }
.login-form { display: grid; gap: .7rem; margin-top: 2rem; }
.login-form label { font-size: .8rem; font-weight: 750; }
.login-form input { width: 100%; padding: .78rem; color: var(--text); background: #0c0f13; border: 1px solid var(--line); border-radius: 8px; outline: none; }
.login-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(110 231 183 / 12%); }
.alert { margin: 1.2rem 0; padding: .8rem 1rem; color: #fecdd3; background: #30161d; border: 1px solid #713342; border-radius: 8px; font-size: .85rem; }
.back { display: inline-block; margin-bottom: 1.5rem; color: var(--muted); text-decoration: none; font-size: .84rem; }
.run-head { align-items: center; }
.run-head h1 { max-width: 850px; font-size: clamp(1.7rem, 3.5vw, 2.7rem); }
.run-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: 1rem; color: var(--muted); font-size: .8rem; }
.run-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.history { position: sticky; top: 1rem; }
.history nav { display: grid; gap: .45rem; }
.history a { display: grid; grid-template-columns: 1fr auto; gap: .35rem; padding: .75rem; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); text-decoration: none; font-size: .8rem; }
.history a[aria-current="page"] { border-color: #3b8068; background: #10251e; color: var(--text); }
.history small { grid-column: 1 / -1; color: var(--muted); }
.artifacts { min-width: 0; }
.artifact { margin-bottom: .65rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.artifact summary { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; cursor: pointer; font-weight: 750; }
.artifact summary a, .artifact summary .muted { font-size: .75rem; font-weight: 600; }
.artifact pre { max-height: 640px; margin: 0; padding: 1rem; overflow: auto; border-top: 1px solid var(--line); background: #090b0e; color: #cbd5e1; white-space: pre-wrap; word-break: break-word; font: .75rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.markdown { padding: 1rem 1.25rem; border-top: 1px solid var(--line); line-height: 1.65; }
.markdown h2 { margin-top: 1.8rem; font-size: 1.15rem; }
.markdown code { padding: .12rem .3rem; border-radius: 4px; background: #090b0e; }
.markdown pre { max-height: none; border: 0; }
.truncated { margin: 0; padding: .7rem 1rem; color: #fcd34d; border-top: 1px solid var(--line); font-size: .75rem; }
@media (max-width: 760px) {
  .page-head, .run-head { align-items: stretch; flex-direction: column; }
  .sort { width: max-content; }
  .run-grid { grid-template-columns: 1fr; }
  .history { position: static; }
  .history nav { display: flex; overflow-x: auto; }
  .history a { min-width: 170px; }
  .login-card { padding: 1.5rem; }
}
