@charset "UTF-8";

/* AUTOMATION: a quiet, illustrative workflow rather than a technical network. */
.scene-automation {
  --au-blue: #1e6fe8;
  --au-deep: #185bbb;
  --au-navy: #0a1628;
  --au-line: #c9dbf3;
  --au-soft: #f4f8fe;
  min-height: 300px;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 51% 49%, rgba(217, 233, 255, .58) 0, rgba(247, 251, 255, .32) 29%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(135deg, #fff 0%, #f7faff 100%);
}
.scene-automation .sv-stage { background: transparent; }
.scene-automation .sv-stage::before {
  inset: 7%;
  border-color: rgba(24, 91, 187, .09);
  border-radius: 9px;
}
.scene-automation .au-art {
  position: absolute;
  inset: 7% 5% 8%;
  overflow: hidden;
}
.scene-automation .au-grid {
  position: absolute;
  inset: 9% 4%;
  opacity: .62;
  background-image:
    linear-gradient(rgba(121, 161, 218, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 161, 218, .1) 1px, transparent 1px);
  background-size: 12% 22%;
  mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%);
}
.scene-automation .au-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.scene-automation .au-route {
  fill: none;
  stroke: url(#au-route-gradient);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: .75;
}
.scene-automation .au-route::after { content: none; }
.scene-automation .au-junction {
  fill: #fff;
  stroke: var(--au-blue);
  stroke-width: 3;
}
.scene-automation .au-endpoint {
  fill: #fff;
  stroke: #8fb5ed;
  stroke-width: 2;
}
.scene-automation .au-pulse {
  fill: var(--au-blue);
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(30, 111, 232, .45));
  transform-box: fill-box;
  transform-origin: center;
  animation-duration: 6.2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.scene-automation .au-pulse--input { animation-name: au-pulse-input; }
.scene-automation .au-pulse--main { animation-name: au-pulse-main; animation-delay: 1.2s; }
.scene-automation .au-pulse--upper { animation-name: au-pulse-upper; animation-delay: 2.2s; }
.scene-automation .au-pulse--lower { animation-name: au-pulse-lower; animation-delay: 3.35s; }
.scene-automation .au-node,
.scene-automation .au-output {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c7d9f1;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 24px rgba(31, 81, 143, .1);
}
.scene-automation .au-node {
  width: 76px;
  height: 76px;
  border-radius: 16px;
}
.scene-automation .au-node--input { left: 8%; top: calc(50% - 38px); }
.scene-automation .au-node--ai {
  left: 36.5%;
  top: calc(50% - 48px);
  width: 96px;
  height: 96px;
  border-color: #9ec0f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 15px 30px rgba(24, 91, 187, .14);
}
.scene-automation .au-node--validation { left: 64%; top: calc(50% - 38px); }
.scene-automation .au-pill {
  position: absolute;
  top: -11px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 4px 8px;
  border: 1px solid #c9dbf2;
  border-radius: 999px;
  background: #fff;
  color: var(--au-deep);
  font: 700 10px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .055em;
  transform: translateX(-50%);
  white-space: nowrap;
}
.scene-automation .au-node-icon,
.scene-automation .au-output-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d6e4f6;
  border-radius: 11px;
  background: #f3f7fd;
  color: var(--au-blue);
}
.scene-automation .au-node-icon svg,
.scene-automation .au-output-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scene-automation .au-node-icon--ai {
  width: 45px;
  height: 45px;
  border-color: #c2d8f4;
  border-radius: 14px;
  background: #eaf3ff;
  color: var(--au-deep);
}
.scene-automation .au-node-icon--ai svg { width: 27px; height: 27px; }
.scene-automation .au-node-icon--check {
  border-color: #b8d2f3;
  background: #eef5ff;
  color: var(--au-deep);
}
.scene-automation .au-node-icon--check svg { width: 24px; height: 24px; stroke-width: 2.4; }
.scene-automation .au-ai-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 125%;
  height: 125%;
  border: 1px solid rgba(30, 111, 232, .27);
  border-radius: 24px;
  opacity: .5;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.92);
  animation: au-ai-halo 5.8s ease-in-out infinite;
}
.scene-automation .au-action-label {
  position: absolute;
  left: 78%;
  top: calc(50% - 11px);
  z-index: 2;
}
.scene-automation .au-action-label .au-pill { position: static; transform: none; }
.scene-automation .au-output {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  box-shadow: 0 8px 17px rgba(31, 81, 143, .09);
}
.scene-automation .au-output--notification { left: 84%; top: calc(50% - 83px); }
.scene-automation .au-output--sync { left: 84%; top: calc(50% + 58px); }
.scene-automation .au-output-icon {
  width: 30px;
  height: 30px;
  border: 0;
  background: #eef5ff;
}
.scene-automation .au-output-icon svg { width: 18px; height: 18px; }
.scene-automation .au-output--sync .au-output-icon { color: var(--au-deep); background: #f1f6fc; }
.scene-automation .au-decoration {
  position: absolute;
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8bb6f2;
}
.scene-automation .au-decoration--one { left: 17%; top: 14%; }
.scene-automation .au-decoration--two { right: 14%; top: 16%; width: 7px; height: 7px; background: #c1d9f8; }
.scene-automation .au-decoration--three { left: 48%; bottom: 10%; width: 4px; height: 4px; background: #a8c8f3; }

@keyframes au-pulse-input {
  0%, 7% { opacity: 0; transform: translate(0, 0) scale(.55); }
  16% { opacity: 1; }
  62% { opacity: .9; transform: translate(112px, 0) scale(1); }
  76%, 100% { opacity: 0; transform: translate(170px, 0) scale(.65); }
}
@keyframes au-pulse-main {
  0%, 7% { opacity: 0; transform: translate(0, 0) scale(.55); }
  17% { opacity: 1; }
  64% { opacity: .9; transform: translate(60px, 0) scale(1); }
  78%, 100% { opacity: 0; transform: translate(74px, 0) scale(.65); }
}
@keyframes au-pulse-upper {
  0%, 7% { opacity: 0; transform: translate(0, 0) scale(.55); }
  16% { opacity: 1; }
  62% { opacity: .9; transform: translate(35px, -35px) scale(1); }
  77%, 100% { opacity: 0; transform: translate(115px, -69px) scale(.65); }
}
@keyframes au-pulse-lower {
  0%, 7% { opacity: 0; transform: translate(0, 0) scale(.55); }
  16% { opacity: 1; }
  62% { opacity: .9; transform: translate(35px, 35px) scale(1); }
  77%, 100% { opacity: 0; transform: translate(115px, 69px) scale(.65); }
}
@keyframes au-ai-halo {
  0%, 100% { opacity: .35; transform: translate(-50%, -50%) scale(.92); }
  48% { opacity: .78; transform: translate(-50%, -50%) scale(1.03); }
}

@media (max-width: 520px) {
  .scene-automation .au-art { inset-inline: 2%; }
  .scene-automation .au-node { width: 65px; height: 65px; border-radius: 14px; }
  .scene-automation .au-node--input { left: 5%; top: calc(50% - 33px); }
  .scene-automation .au-node--ai { left: 34%; top: calc(50% - 42px); width: 84px; height: 84px; }
  .scene-automation .au-node--validation { left: 62%; top: calc(50% - 33px); }
  .scene-automation .au-output--notification { left: 84%; top: calc(50% - 73px); }
  .scene-automation .au-output--sync { left: 84%; top: calc(50% + 48px); }
  .scene-automation .au-output { width: 44px; height: 44px; }
  .scene-automation .au-action-label { left: 75%; }
  .scene-automation .au-pill { font-size: 9px; padding-inline: 7px; }
  .scene-automation .au-node-icon { width: 31px; height: 31px; }
  .scene-automation .au-node-icon--ai { width: 39px; height: 39px; }
  .scene-automation .au-flow { transform: scaleX(.98); transform-origin: center; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-automation *,
  .scene-automation *::before,
  .scene-automation *::after { animation: none !important; transition: none !important; }
  .scene-automation .au-pulse { opacity: 0; transform: none; }
  .scene-automation .au-ai-halo { opacity: .5; transform: translate(-50%, -50%) scale(1); }
}

/* Keep the shared scene controller authoritative after every animation shorthand. */
.scene-automation .sv-motion { animation-play-state: paused; }
.scene-automation.is-visible .sv-motion { animation-play-state: running; }
.scene-automation.is-paused .sv-motion { animation-play-state: paused; }

@media (max-width: 380px) {
  .scene-automation .au-node { width: 56px; height: 56px; }
  .scene-automation .au-node--input, .scene-automation .au-node--validation { top: calc(50% - 28px); }
  .scene-automation .au-node--ai { width: 68px; height: 68px; top: calc(50% - 34px); }
  .scene-automation .au-node--validation { left: 64%; }
}
