:root {
  --bg: #0d0e10; --surface: #16181b; --sunken: #1e2125; --ink: #ece9e1; --muted: #a5a49c; --line: #2e3136;
  --accent: #d9c08a; --accent-wash: #2b2515; --go: #7fd09d; --go-wash: #13291c; --wait: #e6c05a; --wait-wash: #2f2609;
  --stop: #f18c82; --stop-wash: #341715;
  color-scheme: dark;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); min-height: 100dvh; display: flex; flex-direction: column; }
h1, h2, h3, p, ul { margin: 0; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
a { color: inherit; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px max(16px, calc((100% - 1080px) / 2)); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-weight: 600; text-decoration: none; color: var(--accent); }
nav { display: flex; gap: 18px; }
nav a { text-decoration: none; color: var(--muted); padding: 6px 0; }
nav a[aria-current] { color: var(--ink); border-bottom: 1px solid var(--accent); }
main { flex: 1; width: 100%; max-width: 1112px; margin: 0 auto; padding: 36px 16px 56px; display: flex; flex-direction: column; gap: 24px; }
.foot { color: var(--muted); font-size: 0.85rem; padding: 18px max(16px, calc((100% - 1080px) / 2)); border-top: 1px solid var(--line); }
.sub { color: var(--muted); max-width: 44rem; }
.small { color: var(--muted); font-size: 0.88rem; }
.err { color: var(--stop); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.narrow { max-width: 26rem; }
.canvas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.field { background: var(--surface); padding: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.num { color: var(--accent); margin-right: 8px; font-variant-numeric: tabular-nums; }
.band { grid-column: 1 / -1; background: var(--sunken); }
textarea, input { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; resize: vertical; }
textarea:focus-visible, input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { font: inherit; font-weight: 600; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 10px 18px; cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--accent); }
button.main { background: var(--accent); color: #17130a; border-color: var(--accent); }
button.on { background: var(--accent-wash); border-color: var(--accent); color: var(--accent); }
button:disabled { opacity: 0.5; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lamp { font-weight: 600; font-size: 0.88rem; padding: 3px 12px; border-radius: 5px; display: inline-block; }
.lamp.gruen, .lamp.done { color: var(--go); background: var(--go-wash); }
.lamp.gelb, .lamp.exception { color: var(--wait); background: var(--wait-wash); }
.lamp.rot, .lamp.bad { color: var(--stop); background: var(--stop-wash); }
.lamp.running { color: var(--muted); background: var(--sunken); }
.verdict { font-size: 1.5rem; font-weight: 600; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 0.9rem/1.5 ui-monospace, Menlo, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.agents { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; max-width: 44rem; }
.agents li { color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 10px; }
@media (prefers-reduced-motion: no-preference) { .dot { animation: pulse 1.4s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: 0.25; } }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; background: var(--surface); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
td:nth-child(2) { min-width: 15rem; }
th { color: var(--muted); font-weight: 500; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stats b { display: block; font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .canvas { grid-template-columns: minmax(0, 1fr); } }
