/* Local chart chrome only. Preset tokens and the host theme remain authoritative. */
.sc-host {
  position: relative;
  min-width: 0;
  min-height: 0;
  color: var(--ac-text, var(--text));
  font: 400 12px/1.45 var(--ac-font, var(--font));
  font-variant-numeric: var(--num-variant, tabular-nums lining-nums);
}
.sc-host, .sc-host * { box-sizing: border-box; }
.sc-host canvas { max-width: none; }
.sc-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  color: var(--ac-muted, var(--text-2));
  font-size: 12px;
  line-height: 16px;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.sc-warning {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 2px;
  z-index: 5;
  border-left: 2px solid var(--gold, #eda515);
  padding: 3px 8px;
  max-height: 42px;
  overflow: auto;
  background: var(--ac-elevated, var(--surface-2));
  color: var(--ac-text, var(--text));
  font-size: 12px;
  line-height: 17px;
}
.sc-thumb .sc-warning { top: auto; bottom: 2px; max-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
.sc-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  min-height: 80px;
  padding: 20px;
  text-align: center;
  color: var(--ac-muted, var(--text-2));
}
.sc-message strong { color: var(--ac-text, var(--text)); font-size: 14px; font-weight: 500; }
.sc-message span { max-width: 54ch; font-size: 12px; line-height: 1.5; }
.sc-thumb .sc-message { padding: 10px; gap: 4px; }
.sc-tooltip { max-width: 360px; font-variant-numeric: var(--num-variant, tabular-nums lining-nums); }
.sc-tooltip-title { display: block; margin-bottom: 8px; font-weight: 600; white-space: normal; }
.sc-tooltip-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 2px 0; }
.sc-tooltip-row span { max-width: 28ch; white-space: normal; }
.sc-tooltip-row b { font-weight: 500; text-align: right; white-space: nowrap; }
.sc-tooltip-note { margin-top: 8px; opacity: .72; font-size: 12px; line-height: 1.4; white-space: normal; max-width: 42ch; }
