/* chart crosshair (js/cx-cross.js): its own layer over the chart box, never takes the pointer */
.xh { --xh-ln: rgba(214,232,255,.34); --xh-band: linear-gradient(180deg, rgba(201,220,242,.07), rgba(201,220,242,.035) 70%, rgba(201,220,242,0));
  --xh-pill: rgba(22,28,38,.95); --xh-pill-tx: #eef4fb; --xh-pill-sh: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(201,220,242,.22), 0 6px 18px -6px rgba(0,0,0,.7);
  position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .12s ease; contain: layout style; }
.xh.on { opacity: 1; }
.xh > * { position: absolute; left: 0; top: 0; will-change: transform; }
.xh-v { width: 1px; height: var(--xh-hgt, 100%); background: repeating-linear-gradient(180deg, var(--xh-ln) 0 3px, transparent 3px 6px);
  -webkit-mask: linear-gradient(180deg, transparent, #000 18px, #000 calc(100% - 10px), transparent); mask: linear-gradient(180deg, transparent, #000 18px, #000 calc(100% - 10px), transparent);
  filter: drop-shadow(0 0 2px rgba(201,220,242,.18)); transition: transform 70ms cubic-bezier(.2,.7,.3,1); }
.xh-h { height: 1px; width: var(--xh-w, 100%); background: repeating-linear-gradient(90deg, var(--xh-ln) 0 3px, transparent 3px 6px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 24px, #000); mask: linear-gradient(90deg, transparent, #000 24px, #000); filter: drop-shadow(0 0 2px rgba(201,220,242,.18)); }
.xh-band { height: var(--xh-hgt, 100%); background: var(--xh-band); border-radius: 3px; transition: transform 70ms cubic-bezier(.2,.7,.3,1), opacity .12s; }
.xh-band.off { opacity: 0; }
.xh-py, .xh-tx { height: 18px; box-sizing: border-box; display: flex; align-items: center; padding: 0 6px; border-radius: 5px; white-space: nowrap;
  font: 600 10.5px/1 var(--fm); font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--xh-pill-tx);
  background: var(--xh-pill); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); box-shadow: var(--xh-pill-sh); }
.xh-py { justify-content: flex-end; padding: 0 4px; }
.xh-tx { transition: transform 70ms cubic-bezier(.2,.7,.3,1); }
.xh.touch .xh-v, .xh.touch .xh-band, .xh.touch .xh-tx, .xh.jump .xh-v, .xh.jump .xh-band, .xh.jump .xh-tx { transition: none; }

/* the OHLC readout while it shows the hovered candle */
.cx .cx-chart .cx-ohlc.xh-hov { color: var(--tx2); }

/* light theme */
html[data-theme="light"] .xh { --xh-ln: rgba(30,60,100,.38); --xh-band: linear-gradient(180deg, rgba(40,90,150,.075), rgba(40,90,150,.035) 70%, rgba(40,90,150,0));
  --xh-pill: rgba(255,255,255,.96); --xh-pill-tx: #142033; --xh-pill-sh: inset 0 1px 0 rgba(255,255,255,.9), inset 0 0 0 1px rgba(30,60,100,.16), 0 6px 16px -8px rgba(20,40,70,.35); }
html[data-theme="light"] .xh-v, html[data-theme="light"] .xh-h { filter: none; }

/* reduced motion: lines and pills jump straight to the pointer */
@media (prefers-reduced-motion: reduce) { .xh, .xh > * { transition: none !important; } }

/* Nov 5: no shaded column band behind the vertical line — just the clean dashed crosshair */
.xh .xh-band, html[data-theme="light"] .xh .xh-band { display: none !important; }
