.pn-canvas-wrap {
  position: relative;
  height: min(42vh, 340px);
  min-height: 240px;
  border-radius: 1rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 40% at 12% 50%, rgba(153, 27, 27, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 50%, rgba(2, 132, 199, 0.16), transparent 55%),
    #0b1220;
}

#pn-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.pn-tip {
  position: absolute;
  z-index: 4;
  max-width: 260px;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(125, 211, 252, 0.28);
  color: #e2e8f0;
  font-size: 0.72rem;
  line-height: 1.45;
  pointer-events: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.pn-plot {
  width: 100%;
  height: 260px;
}

.bias-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.2rem 0.7rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.bias-badge.eq { border-color: rgba(251, 191, 36, 0.45); color: #fde68a; }
.bias-badge.forward { border-color: rgba(52, 211, 153, 0.45); color: #a7f3d0; }
.bias-badge.reverse { border-color: rgba(248, 113, 113, 0.45); color: #fecaca; }
.bias-badge.is-warn { border-color: rgba(251, 146, 60, 0.7); color: #fdba74; }

.pn-eq { min-height: 2.6rem; overflow-x: auto; }

.legend-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
}

.legend-ring {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  border: 2px solid #f87171;
}
