/* Shared baseline-relative PassMark meter used by catalog and build views. */
.bm {
  --bm-accent: var(--primary-hover, #e58a3a);
  --bm-track: #2b2b30;
  --bm-muted: rgba(255, 255, 255, 0.55);
  width: min(100%, 280px);
  color: var(--text-light, #f5f5f5);
  font-variant-numeric: tabular-nums;
  display: block;
}

.bm__summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 11.5px;
  line-height: 1.2;
}
.bm__summary--missing { margin-bottom: 0; }

.bm__score { color: var(--bm-muted); white-space: nowrap; }
.bm__score b { color: var(--text-light, #f5f5f5); font-weight: 800; }
.bm__percent { color: var(--bm-accent); font-weight: 800; white-space: nowrap; }

.bm__track {
  display: block;
  position: relative;
  height: 6px;
  overflow: visible;
  border-radius: 999px;
  background: var(--bm-track);
  border: 1px solid #35353a;
  box-sizing: border-box;
}

.bm__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--bm-accent);
}

.bm__baseline {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.82);
  transform: translateX(-1px);
}

.bm__context {
  display: block;
  margin-top: 5px;
  color: var(--bm-muted);
  font-size: 10.5px;
  font-weight: 600;
}

.bm--compact { width: min(100%, 235px); }
.bm--full { width: min(100%, 440px); }
.bm--full .bm__track { height: 8px; }
.bm--overflow .bm__fill { border-radius: 999px 2px 2px 999px; }
.bm--overflow .bm__track::after {
  content: "+";
  position: absolute;
  right: -9px;
  top: 50%;
  color: var(--bm-accent);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-55%);
}
.bm--empty .bm__summary { margin-bottom: 0; }

@media (max-width: 620px) {
  .bm--compact, .bm--full { width: 100%; max-width: none; }
}
