:root {
  --bg: #0f1419;
  --panel: #171d24;
  --text: #e8eef4;
  --muted: #93a0ae;
  --line: #2a333d;
  --succeeded: #3d9a64;
  --progress: #c4922a;
  --failed: #c45454;
  --pending: #5b6773;
  --accent: #4c8dff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
}
.wordmark { height: 36px; }
.header-actions { display: flex; gap: 16px; align-items: center; }
main { padding: 24px; display: grid; gap: 24px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.muted { color: var(--muted); }
table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
tr.succeeded { background: rgba(61, 154, 100, 0.12); }
tr.progress { background: rgba(196, 146, 42, 0.12); }
tr.failed { background: rgba(196, 84, 84, 0.12); }
button, select {
  background: #243040;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
a.room {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.chart-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#range-pills { display: flex; gap: 8px; }
.diagram { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.stage {
  min-width: 140px;
  border: 2px solid var(--pending);
  border-radius: 10px;
  padding: 10px;
}
.stage.succeeded { border-color: var(--succeeded); }
.stage.progress { border-color: var(--progress); }
.stage.failed { border-color: var(--failed); }
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pill { border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.pill.succeeded { background: var(--succeeded); }
.pill.progress { background: var(--progress); color: #111; }
.pill.failed { background: var(--failed); }
.pill.pending { background: var(--pending); }
.detail-head { display: flex; justify-content: space-between; align-items: center; }
.custom-range { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 12px 0; }
.custom-range input[type="date"] { background: #243040; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 420px; }
.calendar span { padding: 8px; text-align: center; border-radius: 6px; }
.calendar .edge { background: var(--accent); }
.calendar .mid { background: #2c3c54; }
