/* Live Markets: overlay + full-height chart */

html, body { height: 100%; margin: 0; }

.chart-shell { min-height: 100vh; }
.wrap { max-width: none; width: 100%; }

.panel {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
}

#chartBox {
  flex: 1;
  min-height: 0;
  position: relative;   /* REQUIRED for overlay positioning */
}

/* Chart image fills the box */
#chartImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain; /* change to 'cover' if you want it to fill even if it crops */
  z-index: 1;
}

/* Overlay canvas sits ON TOP and receives pointer events */
#chartOverlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  pointer-events: auto;
}
