:root { color-scheme: light dark; --paper: #f6f8fb; --surface: #fff; --ink: #203044; --muted: #63758a; --rule: #dce3ed; --blue: #285b8c; --soft: #e7eff9; --danger: #a62c3a; --good: #276744; font-family: 'Avenir Next', 'Segoe UI', sans-serif; font-size: 14px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
header { min-height: 76px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--surface); border-bottom: 1px solid var(--rule); }
.wordmark { font-size: 23px; font-weight: 650; color: var(--ink); text-decoration: none; letter-spacing: -.7px; }
.wordmark span { color: var(--muted); font-weight: 400; }
.connection, .controls, .input-row, nav { display: flex; align-items: center; gap: 12px; }
.connection { color: var(--muted); font-size: 12px; flex-wrap: wrap; }
main { margin: 30px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { border: 1px solid var(--rule); border-radius: 5px; background: var(--surface); min-height: 34px; padding: 6px 11px; cursor: pointer; }
button:hover { border-color: var(--blue); color: var(--blue); }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
input, textarea { background: var(--surface); border: 1px solid var(--rule); border-radius: 5px; padding: 10px; min-width: 0; }
.connect { max-width: 500px; margin: 12vh auto; }
.connect h1 { font-size: 25px; font-weight: 550; line-height: 1.4; margin-bottom: 26px; }
.connect label { display: block; margin-bottom: 8px; }
.connect input { flex: 1; }
.connect p { color: var(--muted); line-height: 1.6; }
.toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
nav { gap: 4px; flex-wrap: wrap; }
nav button { background: transparent; border-color: transparent; padding: 9px 14px; }
nav button[aria-current] { background: var(--soft); color: var(--blue); }
.controls { font-size: 12px; }
.workspace { display: flex; align-items: start; gap: 24px; }
.listing { flex: 1; min-width: 0; }
.context { color: var(--muted); font-size: 12px; min-height: 18px; margin: 0 0 14px; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 7px; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th { padding: 12px 16px; font-size: 12px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--rule); white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.5; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--paper); }
tr.selected { background: var(--soft); }
td .task-link { border: 0; padding: 0; min-height: 0; background: none; color: var(--blue); text-align: left; line-height: 1.5; font-weight: 550; }
.subline { color: var(--muted); font-size: 12px; display: block; margin-top: 5px; max-width: 45ch; overflow-wrap: anywhere; }
.state { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; }
.state::before { content: ''; width: 6px; height: 6px; background: var(--muted); border-radius: 50%; }
.state[data-state="completed"]::before, .state[data-state="ready"]::before { background: var(--good); }
.state[data-state="needs_operator"]::before, .state[data-state="missing"]::before { background: var(--danger); }
.state[data-state="running"]::before, .state[data-state="reviewing"]::before, .state[data-state="verifying"]::before { background: var(--blue); }
aside { width: min(42%, 570px); flex-shrink: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 7px; padding: 22px; max-height: calc(100vh - 180px); overflow: auto; position: sticky; top: 20px; }
.detail-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
h2 { font-size: 18px; font-weight: 550; margin: 0; overflow-wrap: anywhere; }
h3 { font-size: 13px; font-weight: 600; margin: 23px 0 8px; }
dl { display: grid; grid-template-columns: 80px 1fr; gap: 9px 14px; margin: 0; font-size: 12px; }
dt { color: var(--muted); } dd { margin: 0; overflow-wrap: anywhere; }
pre { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; font-size: 12px; }
aside form { margin-top: 14px; } aside label { display: block; margin-bottom: 7px; font-size: 12px; } aside textarea { width: 100%; min-height: 110px; resize: vertical; } aside form button { margin-top: 10px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.events { list-style: none; padding: 0; font-size: 12px; }
.events li { border-top: 1px solid var(--rule); padding: 12px 0; }
.events time { display: block; color: var(--muted); margin-bottom: 4px; }
.events pre { margin: 6px 0 0; color: var(--muted); }
#error { border-left: 3px solid var(--danger); padding: 12px 16px; color: var(--danger); background: var(--surface); }
.empty { color: var(--muted); padding: 30px 16px; }
footer { margin: 36px 30px 20px; font-size: 11px; display: flex; justify-content: space-between; color: var(--muted); gap: 16px; }
[hidden] { display: none !important; }
@media (max-width: 1050px) { .workspace { flex-direction: column; } .listing, aside { width: 100%; } aside { max-height: none; position: static; } }
@media (max-width: 640px) { header { padding: 16px; align-items: start; } main { margin: 20px 12px; } .connection { justify-content: end; } .controls { flex-wrap: wrap; gap: 8px; } th, td { padding: 12px; } footer { margin: 30px 12px 16px; } nav button { padding: 8px; } }
@media (prefers-color-scheme: dark) { :root { --paper: #17222f; --surface: #1d2b3b; --ink: #dee8f3; --muted: #a3b5c9; --rule: #34475c; --blue: #91c4f3; --soft: #2a425c; --danger: #f397a1; --good: #8fcbac; } }
