:root {
  --bg: #0f1419; --panel: #1a2029; --fg: #e6edf3; --muted: #8b98a5;
  --accent: #2f81f7; --ok: #2ea043; --warn: #d29922; --err: #f85149;
  --border: #30363d;
}
* { box-sizing: border-box; }
body {
  margin: 0; font: 14px/1.5 -apple-system, system-ui, sans-serif;
  background: var(--bg); color: var(--fg);
}
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--panel);
}
header h1 { font-size: 18px; margin: 0; }
#auth-box { display: flex; gap: 10px; align-items: center; color: var(--muted); }
main { max-width: 1000px; margin: 0 auto; padding: 20px; }
nav { display: flex; gap: 6px; margin-bottom: 20px; }
nav button {
  background: var(--panel); color: var(--muted); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 6px; cursor: pointer;
}
nav button.active { color: var(--fg); border-color: var(--accent); }
.tab { display: none; } .tab.active { display: block; }
h2 { font-size: 15px; margin: 24px 0 10px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.row { display: flex; gap: 10px; align-items: flex-end; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
label.chk { flex-direction: row; align-items: center; gap: 6px; }
input, select {
  background: var(--bg); color: var(--fg); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px;
}
button {
  background: var(--accent); color: #fff; border: 0; border-radius: 6px;
  padding: 9px 16px; cursor: pointer; font-weight: 600;
}
button:disabled { opacity: .5; cursor: not-allowed; }
button.secondary { background: var(--panel); border: 1px solid var(--border); color: var(--fg); }
table { width: 100%; border-collapse: collapse; margin: 10px 0; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--border); font-size: 13px; }
th { color: var(--muted); font-weight: 600; }
td.path { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg { min-height: 18px; } .msg.ok { color: var(--ok); } .msg.err { color: var(--err); }
.muted { color: var(--muted); margin: 0 0 12px; }
.warn { color: var(--warn); background: rgba(210,153,34,.1); border: 1px solid var(--warn); border-radius: 6px; padding: 8px 12px; margin: 8px 0; }
.status { font-weight: 600; }
.status.SUCCEEDED { color: var(--ok); } .status.FAILED, .status.FAULT, .status.STOPPED, .status.TIMED_OUT { color: var(--err); }
.status.IN_PROGRESS { color: var(--accent); }
pre#log-view {
  background: #000; border: 1px solid var(--border); border-radius: 6px;
  padding: 12px; max-height: 480px; overflow: auto; font-size: 12px; white-space: pre-wrap;
}
