:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e4e6f0;
  background: #0b0f19;
  --paper: #111627;
  --input: #0f1326;
  --border: #2a2f45;
  --text-muted: #9ca3af;
  --purple: #9b8fff;
  --danger: #fda4a4;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: .9375rem; line-height: 1.45; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--border); }
.topbar-content { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { color: inherit; text-decoration: none; font-weight: 700; font-size: 1.125rem; }
main { padding: 36px 0 56px; }
h1 { margin: 0 0 20px; font-size: 1.75rem; font-weight: 650; }
h2 { margin: 0; font-size: 1.125rem; font-weight: 650; }
.dashboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.panel { min-width: 0; padding: 24px; border: 1px solid var(--border); background: var(--paper); border-radius: 12px; }
.access { max-width: 520px; }
form { margin-top: 16px; display: grid; gap: 8px; }
label { font-size: .875rem; font-weight: 550; }
input, select, button { font: inherit; min-height: 42px; border-radius: 8px; }
input, select { width: 100%; color: inherit; border: 1px solid var(--border); background: var(--input); padding: 9px 12px; }
input::placeholder { color: var(--text-muted); opacity: .8; }
#start-form label:not(:first-child) { margin-top: 5px; }
#start-form button { margin-top: 10px; justify-self: start; }
#access-form button { margin-top: 10px; justify-self: start; }
button { padding: 8px 16px; cursor: pointer; font-weight: 650; color: inherit; border: 1px solid transparent; }
.primary { color: #fff; background: linear-gradient(135deg, #6c5ce7, #5b4dd4); box-shadow: 0 4px 12px #7c6af644; }
.primary:hover:not(:disabled) { background: linear-gradient(135deg, #5b4dd4, #5144bf); }
.outline { border-color: var(--border); background: transparent; }
.outline:hover:not(:disabled) { border-color: var(--purple); }
button.small { font-size: .8125rem; padding: 5px 11px; min-height: 34px; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.section-heading, .job-heading, .job-details { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.empty, time { color: var(--text-muted); font-size: .8125rem; }
.empty { margin: 16px 0 0; padding: 22px 12px; text-align: center; border: 1px dashed var(--border); border-radius: 8px; }
ul { padding: 0; margin: 0; list-style: none; }
.job { background: var(--input); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-top: 12px; }
.job-id { font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }
.job-details { margin-top: 7px; }
.status { white-space: nowrap; font-size: .75rem; font-weight: 650; color: #cbd0dc; background: #9ca3af20; border-radius: 4px; padding: 3px 8px; }
.status[data-state="running"] { color: #86efac; background: #22c55e21; }
.status[data-state="failed"] { color: var(--danger); background: #ef444422; }
.status[data-state="starting"], .status[data-state="stopping"], .status[data-state="reconnecting"] { color: #fcd34d; background: #f59e0b22; }
.error, .job-error { color: var(--danger); font-size: .8125rem; margin: 10px 0 0; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 28px); }
  .dashboard { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  main { padding-top: 24px; }
  .panel { padding: 16px; }
}
