:root {
  --bg: #000;
  --fg: #ececec;
  --muted: #6f6f6f;
  --faint: #2a2a2a;
  --line: #141414;
  --de: #5ea1ff;
  --en: #ffa14a;
  --ok: #34d399;
  --warn: #f59e0b;
  --bad: #ef4444;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
header.top { display: flex; align-items: baseline; gap: 18px; padding: 26px 32px 14px; border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--mono); font-weight: 600; letter-spacing: .34em; font-size: 15px; }
.model { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.live { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.live.on .dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 1.6s ease-out infinite; }
.live.paused .dot { background: var(--warn); }
.live.off .dot { background: var(--muted); }
.live.bad .dot { background: var(--bad); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }
main { padding: 0 32px 40px; max-width: 1400px; }
h2 { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 34px 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; border-bottom: 1px solid var(--line); }
.tile { padding: 18px 16px 16px 0; }
.tile .label { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tile .value { font-family: var(--mono); font-size: 22px; font-weight: 500; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .sub { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .value.de { color: var(--de); } .tile .value.en { color: var(--en); }
.tile .value.status-running { color: var(--ok); } .tile .value.status-paused { color: var(--warn); } .tile .value.status-failed, .tile .value.status-crashed { color: var(--bad); }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 28px 40px; margin-top: 28px; }
.chart { position: relative; }
.chart .title { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.chart .legend { display: flex; gap: 14px; font-family: var(--mono); font-size: 11px; text-transform: none; letter-spacing: 0; }
.chart .legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.chart canvas { width: 100%; height: 200px; display: block; }
.chart .tip { position: absolute; pointer-events: none; font-family: var(--mono); font-size: 11px; line-height: 1.5; background: rgba(0, 0, 0, .92); border: 1px solid var(--faint); padding: 6px 8px; white-space: nowrap; display: none; z-index: 2; }
.chart .empty { position: absolute; inset: 24px 0 0; display: flex; align-items: center; justify-content: center; color: var(--faint); font-family: var(--mono); font-size: 12px; }
.samples .latest { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 24px 40px; }
.sample { border-top: 1px solid var(--line); padding-top: 14px; }
.sample-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pill { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sample.de .pill { color: var(--de); } .sample.en .pill { color: var(--en); }
.sample .meta { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.text { margin-top: 8px; font-size: 17px; line-height: 1.55; }
.text .prompt { color: var(--muted); }
.text .arrow { color: var(--faint); }
.text .completion { color: var(--fg); }
.history { margin-top: 22px; }
.hrow { display: grid; grid-template-columns: 96px 1fr 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); align-items: start; }
.hstep { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; white-space: nowrap; }
.hcell { min-width: 0; }
.hlang { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hcell.de .hlang { color: var(--de); } .hcell.en .hlang { color: var(--en); }
.hcell .text { margin-top: 2px; font-size: 14px; line-height: 1.5; }
.details { margin-top: 36px; }
details { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 12px 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); list-style: none; }
summary::-webkit-details-marker { display: none; }
pre.mono { font-size: 11.5px; line-height: 1.5; color: #bdbdbd; white-space: pre-wrap; word-break: break-word; margin: 0 0 16px; }
footer { padding: 18px 32px 36px; border-top: 1px solid var(--line); display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--muted); }
footer a { color: var(--muted); } footer a.current { color: var(--fg); }
footer a + a { margin-left: 12px; }
body.login { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-box { display: flex; flex-direction: column; gap: 14px; width: 260px; }
.login-box input, .login-box button { font: 14px var(--mono); background: #000; color: var(--fg); border: 1px solid var(--faint); padding: 10px 12px; }
.login-box button { cursor: pointer; } .login-box button:hover { border-color: var(--muted); }
.login-error { color: var(--bad); font-family: var(--mono); font-size: 12px; }
@media (max-width: 720px) {
  header.top { padding: 20px 16px 12px; gap: 12px; flex-wrap: wrap; }
  main { padding: 0 16px 32px; }
  .charts { grid-template-columns: 1fr; gap: 22px; }
  .samples .latest { grid-template-columns: 1fr; }
  .hrow { grid-template-columns: 1fr; gap: 8px; }
  .tile .value { font-size: 19px; }
  footer { padding: 16px; }
}
