.chart-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .92);
  color: #f6f8fb;
  padding: 58px 14px 54px;
}
.chart-viewer-overlay.is-open { display: flex; }
.chart-viewer-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: pan-y;
}
.chart-viewer-image {
  display: block;
  max-width: 96vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  transition: transform .16s ease;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 18px 46px rgba(0,0,0,.45);
  cursor: zoom-in;
}
.chart-viewer-overlay.is-wide .chart-viewer-image {
  max-width: 98vw;
  max-height: 90vh;
}
.chart-viewer-image.is-landscape {
  max-width: 84vh;
  max-height: 96vw;
}
.chart-viewer-image.is-zoomed {
  cursor: zoom-out;
}
.chart-viewer-caption {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 12px;
  color: #dce6ee;
  font: 13px/1.6 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  text-align: center;
  text-shadow: 0 1px 2px #000;
}
.chart-viewer-toolbar {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  pointer-events: none;
}
.chart-viewer-button {
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(19, 26, 33, .9);
  color: #fff;
  border-radius: 8px;
  min-height: 38px;
  padding: 6px 11px;
  font: 700 13px/1 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  cursor: pointer;
}
.chart-viewer-button:hover { background: rgba(42, 53, 64, .96); }
.chart-viewer-nav {
  position: fixed;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border-radius: 999px;
  padding: 0;
  font-size: 30px;
}
.chart-viewer-prev { left: 16px; }
.chart-viewer-next { right: 16px; }
img[data-chart-viewer-ready="true"] { cursor: zoom-in; }
@media (max-width: 700px) {
  .chart-viewer-overlay { padding: 56px 8px 58px; }
  .chart-viewer-toolbar { justify-content: center; flex-wrap: wrap; }
  .chart-viewer-button { min-height: 34px; padding: 5px 9px; font-size: 12px; }
  .chart-viewer-nav { width: 40px; height: 40px; font-size: 26px; }
  .chart-viewer-caption { font-size: 12px; }
}
