/* Hallmark · Silicon studio · semantic live diagrams · overlay only, no layout motion */
:root {
  --live-diagram-ink: var(--studio-ink, #08131f);
  --live-diagram-paper: var(--studio-paper, #f4f5f2);
  --live-diagram-mint: var(--studio-signal, #75dfcc);
  --live-diagram-teal: var(--bright-teal, #087f7b);
  --live-diagram-trace: rgb(8 127 123 / .24);
  --live-diagram-dark-trace: rgb(117 223 204 / .24);
  --live-diagram-glow: rgb(117 223 204 / .22);
  --live-diagram-control-line: #3e5962;
  --live-diagram-control-shadow: rgb(8 19 31 / .16);
  --live-diagram-control-space: 16px;
  --live-diagram-control-radius: 6px;
}

/* Only these injected descendants receive Motion transforms and opacity. */
.live-diagram-host > .live-diagram-overlay {
  --live-signal: var(--live-diagram-teal);
  --live-trace: var(--live-diagram-trace);
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit;
  background: none !important;
  box-shadow: none !important;
  overflow: hidden;
  pointer-events: none !important;
  user-select: none;
  z-index: 2;
  isolation: isolate;
  contain: paint;
}
.live-diagram-host > .live-diagram-overlay-dark {
  --live-signal: var(--live-diagram-mint);
  --live-trace: var(--live-diagram-dark-trace);
}
/* These two mixed/light stages become ice-silver in the bright colour layer. */
.lab-hero-band .architecture-preview > .live-diagram-overlay,
.eng-hero .eng-lifecycle > .live-diagram-overlay,
.lab-hero-band .inference-flow-art > .live-diagram-overlay {
  --live-signal: var(--bright-teal, var(--live-diagram-mint));
  --live-trace: var(--live-diagram-trace);
}
.live-diagram-svg {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  overflow: visible;
  pointer-events: none !important;
  fill: none;
}
.live-diagram-trace { fill: none; stroke: var(--live-trace); stroke-width: 1; vector-effect: non-scaling-stroke; }
.live-diagram-node { fill: none; stroke: var(--live-signal); stroke-width: 1.5; opacity: .08; vector-effect: non-scaling-stroke; }
.live-diagram-overlay > .live-diagram-particle {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 6px !important;
  height: 6px !important;
  margin: 0 !important;
  translate: -50% -50%;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  background: var(--live-signal) !important;
  box-shadow: 0 0 0 4px var(--live-diagram-glow);
  opacity: 0;
  pointer-events: none !important;
  will-change: transform, opacity;
}
.live-diagram-overlay > .live-diagram-beam { width: 24px !important; height: 3px !important; margin-top: -1.5px !important; border-radius: 2px; box-shadow: none; }
.live-diagram-host[data-live-running="false"] > .live-diagram-overlay { visibility: hidden; }
html[data-diagram-motion="paused"] .live-diagram-overlay { visibility: hidden; }
html[data-diagram-motion="reduced"] .live-diagram-overlay { display: none !important; }
/* Freeze pre-existing CSS-only illustration loops under the same preference. */
.live-diagram-host[data-live-running="false"] *,
.live-diagram-host[data-live-running="false"] *::before,
.live-diagram-host[data-live-running="false"] *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html:not([data-diagram-motion-preference="on"]) .live-diagram-overlay { display: none !important; }
  html:not([data-diagram-motion-preference="on"]) .live-diagram-host *,
  html:not([data-diagram-motion-preference="on"]) .live-diagram-host *::before,
  html:not([data-diagram-motion-preference="on"]) .live-diagram-host *::after { animation-play-state: paused !important; }
}
