.plot-wrapper {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.axis-badge-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.plot-wrapper .plot {
  flex: 1 1 auto;
  min-height: 0;
}

.axis-badge {
  position: absolute;
  pointer-events: none;
  user-select: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  background: rgba(71, 85, 105, 0.92);
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.35);
  transform: translateX(-50%);
  display: none;
}

html[data-theme="light"] .axis-badge {
  background: rgba(248, 250, 252, 0.96);
  color: #0f172a;
  border-color: rgba(51, 65, 85, 0.22);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.14);
}

.axis-badge.is-active {
  filter: brightness(1.12);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.axis-badge.is-visible {
  display: inline-flex;
}
