:root {
  --bg: #12141c;
  --panel: #1b1f2b;
  --line: #2c3246;
  --text: #e6e8ef;
  --muted: #97a0b8;
  --good: #5fd38a;
  --bad: #f0706a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 16px;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
header, main, footer { max-width: 1100px; margin: 0 auto; }
h1 { margin: 0; font-size: 22px; letter-spacing: 1px; }
h2 { margin: 0 0 12px; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.tagline, .note, footer { color: var(--muted); }
.tagline { margin: 4px 0 16px; }
main { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px; min-width: 0; }
.state { font-size: 18px; margin: 0 0 12px; }
.state.running { color: var(--good); }
.state.stopped { color: var(--bad); }
.facts { margin: 0; display: grid; gap: 8px 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { margin: 0; font-size: 16px; font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 4px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-weight: normal; font-size: 12px; }
.panel { overflow-x: auto; }
.panel.wide { grid-column: 1 / -1; }
.note { margin: 0 0 12px; font-size: 13px; }
#floor-wrap { position: relative; max-width: 960px; margin: 0 auto 12px; }
#floor {
  display: block;
  width: 100%;
  aspect-ratio: 320 / 200;
  border: 1px solid var(--line);
  image-rendering: pixelated;
}
#floor-tip {
  position: absolute;
  z-index: 1;
  width: max-content;
  max-width: min(280px, 100%);
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--muted);
  border-radius: 4px;
  font-size: 13px;
  pointer-events: none;
}
#floor-tip strong { display: block; margin-bottom: 2px; }
#floor-tip span { color: var(--muted); }
summary { cursor: pointer; color: var(--muted); font-size: 13px; }
#floor-legend { margin: 8px 0 0; font-size: 13px; }
#floor-legend dt { margin-top: 8px; }
#floor-legend dd { margin: 0; color: var(--muted); }
footer { margin-top: 16px; font-size: 12px; }
