/*!
 * chart.ohlc_legend.css
 * ---------------------
 * TradingView-style OHLC readout anchored to the top-left of the chart.
 * pointer-events:none keeps the chart fully interactive underneath.
 */

.chart-ohlc-legend {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  background: rgba(15, 15, 26, 0.72);
  border: 1px solid rgba(90, 90, 154, 0.35);
  border-radius: 6px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  color: #c0c0d8;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.chart-ohlc-legend[hidden] { display: none; }

.chart-ohlc-legend .ohlc-pair {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.chart-ohlc-legend .ohlc-k {
  color: #7a7aa8;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.chart-ohlc-legend .ohlc-line-note .ohlc-k {
  color: #9a9ac4;
}

.chart-ohlc-legend .ohlc-v {
  color: #e0e0f8;
  font-weight: 500;
}

.chart-ohlc-legend .ohlc-chg {
  font-weight: 600;
  padding-left: 4px;
  border-left: 1px solid rgba(90, 90, 154, 0.25);
}

@media (max-width: 640px) {
  .chart-ohlc-legend {
    gap: 6px;
    padding: 3px 8px;
    font-size: 0.68rem;
  }
  .chart-ohlc-legend .ohlc-k { font-size: 0.62rem; }
}
