.cmp-section[data-cmp-curve-state="waiting"] :is(#cmp-lines, #cmp-points, #cmp-focus, .cmp-end-value) {
  visibility: hidden;
}

.cmp-capital-metric .cmp-sr-only {
  /* The surrounding metric styles normally put a margin above direct children. */
  margin: -1px;
}

.cmp-plot-wrap {
  isolation: isolate;
}

.cmp-end-value {
  paint-order: stroke fill;
  stroke: #0c0b09;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.cmp-plot-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 78% 30%, rgba(194, 152, 76, .045), transparent 60%);
  opacity: .55;
}

@media (min-width: 681px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  html[data-motion="running"] .cmp-plot-visible::before {
    animation: cmp-ambient-breath 12s ease-in-out infinite alternate;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html[data-motion="running"] #compound[data-cmp-animating="transition"] :is(#cmp-grid, #cmp-stage-boundary, .cmp-x-label) {
    animation: cmp-axis-change 380ms ease-out both;
  }

  html[data-motion="running"] #compound[data-cmp-animating="transition"] .cmp-end-value {
    animation: cmp-value-settle 380ms ease-out both;
  }
}

@keyframes cmp-axis-change {
  from { opacity: .45; }
  to { opacity: 1; }
}

@keyframes cmp-value-settle {
  0%, 50% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes cmp-ambient-breath {
  from { opacity: .45; }
  to { opacity: .85; }
}
