/* ═══════════════════════════════════════
   WORKBENCH STATS — players, health, log, DB latency (WorkbenchStatsTemplates.js)
   ═══════════════════════════════════════ */

.wbst-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.wbst-tile {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-primary);
}

.wbst-label {
  font-size: 11px;
  color: var(--text-muted);
}

.wbst-val {
  margin-top: 4px;
  font: 600 18px var(--font-mono);
  color: var(--text-primary);
}

.wbst-val.ok {
  color: var(--green);
}

.wbst-val.warn {
  color: var(--amber);
}

.wbst-val.err {
  color: var(--red);
}

.wbst-note {
  margin-top: 2px;
  font-size: 11px;
}

.wbst-logbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.wbst-logbar .wb-in {
  width: auto;
}

/* The log keeps its own scroll, so the side cards stay in view. */
.wbst-logscroll {
  max-height: 420px;
  overflow-y: auto;
}

.wbst-msg {
  font: 12px var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wbst-probe {
  margin-top: 8px;
}

.wbst-probe th,
.wbst-probe td {
  padding: 5px 6px;
}
