.graph-motion .ai-math-art { touch-action: pan-y; }
.graph-animation { display: none; pointer-events: none; }
.graph-motion[data-motion-ready] .graph-animation { display: block; }
.graph-light-pass { mix-blend-mode: screen; opacity: .58; }
.graph-route { fill: none; stroke: none; }
.graph-trail {
  fill: none;
  stroke: #f6d294;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.graph-glow { fill: url(#graph-node-light); }
.graph-node { fill: #ffe5b4; }
.graph-node-ring { fill: none; stroke: #f6d294; stroke-width: 1.8; }
.graph-convergence { fill: none; stroke: #e4c58e; stroke-width: 1.4; }
.graph-motion figcaption {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-right: 0;
}
.graph-motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 5px 0 5px 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .6875rem;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.graph-motion-toggle:hover { color: var(--blue); }
.graph-motion-toggle:focus-visible { outline: 1px solid var(--blue); outline-offset: 4px; }
.graph-motion-toggle[hidden] { display: none; }
.graph-toggle-icon { width: 10px; color: var(--blue); text-align: center; }
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .graph-motion[data-motion-ready] .graph-animation { display: none; }
  .graph-motion .graph-scene { transform: none; }
  .graph-motion-toggle { display: none; }
}
@media (max-width: 540px) {
  .graph-motion figcaption { justify-content: center; gap: 0 12px; }
  .graph-motion-toggle { min-height: 44px; padding: 0 5px; font-size: .625rem; }
}
@media print {
  .graph-motion .graph-animation, .graph-motion-toggle { display: none; }
  .graph-motion .graph-scene { transform: none; }
}
