.bec { --bec-f: #3b82f6; --bec-c: #10b981; width: 100%; color: hsl(var(--foreground)); }
.dark .bec { --bec-f: #58a6ff; --bec-c: #34d399; }
.bec-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: 8px; font-size: 11px; }
.bec-leg { display: flex; gap: 14px; flex-wrap: wrap; }
.bec-leg-i { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.bec-tot { display: flex; gap: 4px 14px; flex-wrap: wrap; color: hsl(var(--muted-foreground)); }
.bec-tot b { color: hsl(var(--foreground)); font-variant-numeric: tabular-nums; }
.bec-wrap { position: relative; width: 100%; touch-action: pan-y; outline: none; border-radius: 12px; cursor: crosshair; }
.bec-wrap:focus-visible { box-shadow: 0 0 0 2px hsl(var(--primary) / 0.6); }
.bec-wrap svg { display: block; overflow: visible; }
.bec-grid { stroke: hsl(var(--border)); stroke-opacity: .55; stroke-dasharray: 3 4; }
.bec-axis { stroke: hsl(var(--border)); }
.bec-cross { stroke: hsl(var(--muted-foreground)); stroke-opacity: .6; stroke-dasharray: 2 3; }
.bec-yt, .bec-xt { fill: hsl(var(--muted-foreground)); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.bec-xt { font-weight: 600; font-size: 11px; }
.bec-xy { fill: hsl(var(--muted-foreground)); font-size: 9.5px; opacity: .85; }
.bec-line { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.bec-l-f { stroke: var(--bec-f); stroke-width: 2.25; }
.bec-l-c { stroke: var(--bec-c); stroke-width: 2.25; }
.bec-dash { stroke-dasharray: 6 4; }
.bec-d-f { fill: var(--bec-f); stroke: hsl(var(--card)); stroke-width: 1.5; }
.bec-d-c { fill: var(--bec-c); stroke: hsl(var(--card)); stroke-width: 1.5; }
.bec-miss { stroke: hsl(var(--muted-foreground)); stroke-width: 2; stroke-linecap: round; }
.bec-vl { font-size: 10px; font-weight: 700; }
.bec-vl-f { fill: var(--bec-f); }
.bec-tip { position: absolute; top: 4px; transform: translateX(-50%); min-width: 230px; max-width: calc(100% - 8px); pointer-events: none; z-index: 5;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 14px; padding: 10px 12px; font-size: 11px;
  box-shadow: 0 8px 24px hsl(var(--foreground) / 0.18); }
.bec-tip-t { font-weight: 700; text-transform: capitalize; margin-bottom: 6px; }
.bec-tip-r { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 2px; }
.bec-tip-r span { display: inline-flex; align-items: center; gap: 6px; color: hsl(var(--muted-foreground)); }
.bec-tip-r b { font-variant-numeric: tabular-nums; }
.bec-tip-p { font-size: 10px; text-align: right; margin-bottom: 4px; }
.bec-tip-d { border-top: 1px solid hsl(var(--border)); padding-top: 5px; margin-top: 4px; }
.bec-sw { width: 9px; height: 9px; display: inline-block; }
.bec-sw-f { background: var(--bec-f); border-radius: 50%; }
.bec-sw-c { background: var(--bec-c); transform: rotate(45deg) scale(.85); }
.bec-up { color: #10b981; font-weight: 600; }
.bec-down { color: #ef4444; font-weight: 600; }
.bec-muted { color: hsl(var(--muted-foreground)); }
.bec-note { font-size: 10px; color: hsl(var(--muted-foreground)); margin: 6px 0 0; }
.bec-empty { min-height: 200px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: hsl(var(--muted-foreground)); text-align: center; }
@media (prefers-reduced-motion: no-preference) { .bec-line { animation: bec-in .5s ease-out; } }
@keyframes bec-in { from { opacity: 0; } to { opacity: 1; } }
