/* ---------- BMS: status bar (top-left) ---------- */
.status-bar {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  max-width: min(520px, calc(100% - 32px));
}
.chip {
  white-space: nowrap;
  padding: 5px 10px;
  border: 1px solid var(--hud-border);
  border-radius: 999px;
  background: var(--hud-bg);
  backdrop-filter: blur(6px);
  font:
    600 12px/1.2 system-ui,
    sans-serif;
  color: var(--hud-text);
}
.chip.running::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #2fbf71;
}
.chip.source {
  font-weight: 500;
  color: var(--hud-muted);
}
button.chip {
  cursor: pointer;
}
button.chip.active {
  border-color: #e5393a;
  color: #b3201f;
}
.condition-list {
  flex-basis: 100%;
  max-height: 50vh;
  overflow: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  background: var(--hud-bg);
  backdrop-filter: blur(6px);
}
.condition-list button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font:
    12px/1.3 system-ui,
    sans-serif;
  text-align: left;
  cursor: pointer;
}
.condition-list button:hover {
  background: rgb(0 0 0 / 0.05);
}
.condition-list small,
.condition-list .empty {
  color: var(--hud-muted);
}
.sev-critical b {
  color: #b3201f;
}
.sev-warning b {
  color: #9a6a00;
}
