/* Traffic: page-specific styles. Prefix classes with .xr-traffic- . */
.xr-traffic-chart-card { padding: var(--sp-4); }
.xr-traffic-chart { position: relative; }
.xr-traffic-svg { width: 100%; height: auto; display: block; }
.xr-traffic-grid { stroke: var(--border-default); stroke-width: 1; }
.xr-traffic-axisline { stroke: var(--border-strong); stroke-width: 1; }
.xr-traffic-cross { stroke: var(--text-secondary); stroke-width: 1; stroke-dasharray: 3 3; }
.xr-traffic-axis { fill: var(--text-secondary); font-size: 11px; font-weight: 700; }
.xr-traffic-tip {
  position: absolute; top: 8px; max-height: 260px; overflow: auto; pointer-events: none; z-index: 2;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); font-size: var(--fs-body);
  background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-strong);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.xr-traffic-tip-row { display: flex; align-items: center; gap: var(--sp-2); white-space: nowrap; }
.xr-traffic-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; }
.xr-traffic-group { display: inline-flex; align-items: center; gap: var(--sp-2); }
.xr-traffic-cohort { display: inline-flex; align-items: center; gap: var(--sp-2); }
.xr-traffic-info {
  display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px;
  border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text-secondary);
  font-size: 10px; font-weight: 700; cursor: help;
}
