.sp-canvas {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  flex-shrink: 0;
}

.sp-tooltip {
  position: fixed;
  width: 340px;
  background: #131722;
  border: 1px solid #2a2e39;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  z-index: 99999;
  pointer-events: auto;
  transition: opacity 0.1s ease;
}

.sp-tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid #2a2e39;
  gap: 6px;
}

.sp-tv-link {
  pointer-events: auto;
  cursor: pointer;
  color: #2962ff;
  font-size: 11px;
  text-decoration: none;
  padding: 2px 6px;
  border: 1px solid #2962ff;
  border-radius: 3px;
  margin-left: auto;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.sp-tv-link:hover {
  background: #2962ff;
  color: #fff;
}

.sp-chart-container {
  width: 340px;
  height: 160px;
  overflow: hidden;
}

/* Control panel labels */
.cp-label {
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

/* Spark-style buttons (same look as cp-style-btn) */
.cp-spark-btn {
  background: #1e2535;
  color: #888;
  border: none;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.cp-spark-btn:hover { background: #2a3347; color: #fff; }
.cp-spark-btn.cp-active { background: #2962ff; color: #fff; }

/* Compact style-group buttons */
.cp-style-group { gap: 2px; }
.cp-spark-group { display: flex; gap: 2px; }

@media (max-width: 600px) {
  .sp-canvas { display: none; }
  .sp-tooltip { display: none !important; }
}
