/* Keeps the original editor coordinates. Only the outer scene is scaled. */
.about-flow-hero {
  height: 50vh;
  min-height: 360px;
  width: 100%;
  margin: 0 0 28px;
  overflow: hidden;
  background-image: radial-gradient(circle, rgba(0,0,0,0.18) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0;
  background-color: #f3f3f3;
  border: 1px solid #d8dee8;
  box-shadow: 0 18px 45px rgba(15,23,42,.10);
  position: relative;
}

.about-editor-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.about-editor-scene {
  position: absolute;
  width: 1182px;
  height: 803px;
  transform-origin: 0 0;
}

.about-editor-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 1182px;
  height: 803px;
  pointer-events: none;
  overflow: visible;
  z-index: 7;
}

.about-line {
  stroke-width: 4px;
  stroke: rgb(0,0,0);
  pointer-events: none;
  fill: none;
}

.about-line.is-running,
.blink-active-stroke {
  stroke: #000000;
  stroke-width: 4;
  stroke-dasharray: 8 8;
  stroke-linecap: round;
  animation: aboutDashMove 1s linear infinite;
}

.about-line.is-done {
  #stroke: #4CAF50;
}

@keyframes aboutDashMove {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -16; }
}

.about-node.point {
  z-index: 8;
  width: 200px;
  height: auto;
  background: white;
  position: absolute;
  border: 1px solid #c5c5c5;
  border-radius: 10px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-family: Arial, "Segoe UI Symbol", "Noto Sans Symbols", "Arial Unicode MS", sans-serif;
}

.about-node .header {
  padding: 4px;
  cursor: default;
  z-index: 10;
  background-color: #2196F3;
  color: #fff;
  text-align: center;
  font-size: 14px;
  transition: background-color 0.6s ease;
  position: relative;
  overflow: hidden;
}

.about-node .headfunction {
  float: right;
  cursor: default;
  color: #fff;
  margin-top: -3px;
  margin-right: 2px;
}

.about-node .text {
  width: 100%;
  height: 100px;
}

.about-node .connector,
.about-node .connectorin {
  position: relative;
  width: 10px;
  height: 10px;
  color: #346;
  border: 1px solid #000;
  border-radius: 5px;
  float: left;
}

.about-node .connectorin {
  margin-left: 9px;
  z-index: 1;
  margin-right: 5px;
  margin-top: 4px;
}

.about-node .connector {
  margin-top: 5px;
  margin-left: 5px;
  z-index: 1;
}

.about-node .connectorinframe,
.about-node .connectoroutframe {
  float: left;
  width: 50%;
  border: none;
  margin-top: 0px;
  margin-left: 0%;
  height: inherit;
  position: relative;
}

.about-node .connectoroutframe {
  margin-left: 50%;
  width: 50%;
}

.about-node .connectoroutframeonly {
  margin-left: 15%;
  width: 100%;
}

.about-node .connectorcenter {
  margin: 0;
  position: absolute;
  transform: translateY(-50%);
  width: 100%;
}

.about-node .spancon,
.about-node .spanconr {
  float: left;
  width: 70%;
  font-size: 13px;
  margin-top: 2px;
}

.about-node .spanconr {
  text-align: right;
}

.about-node .black {
  background: #000 !important;
}

.about-node .cl {
  clear: none;
}

.about-file-input {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 4px 4px;
  width: calc(100% - 8px);
  box-sizing: border-box;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.2);
  font-size: 11px;
  color: #64748b;
  background: #fff;
}

.about-node.is-running .header {
  background-color: #2196F3;
}

.about-node.is-running .header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    45deg,
    rgba(255,255,255,0.3) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0.3) 75%,
    transparent 75%,
    transparent
  ) !important;
  background-size: 20px 20px;
  animation: aboutMoveStripes 1s linear infinite;
  opacity: 1;
  transition: opacity 0.6s ease;
}

@keyframes aboutMoveStripes {
  0% { background-position: 0 0; }
  100% { background-position: 20px 0; }
}

.about-node.is-done .header {
  background-color: #4CAF50 !important;
}

.about-node.is-done .header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 1;
  animation: aboutDoneGlow 2s ease-out forwards;
}

@keyframes aboutDoneGlow {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.about-editor-scene.is-paused .about-line,
.about-editor-scene.is-paused .header::before {
  animation-play-state: paused;
}

@media (max-width: 760px) {
  .about-flow-hero {
    height: 50vh;
    min-height: 320px;
  }
}


/* =========================================================
   Visibility fallback/fix
   Ensures the animation is visible even before JS has calculated scale.
   ========================================================= */
.about-flow-hero {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  isolation: isolate !important;
}

.about-editor-viewport {
  display: block !important;
  min-height: 100% !important;
}

.about-editor-scene {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  left: 0;
  top: 0;
  transform: scale(.46);
  transform-origin: 0 0;
}

.about-editor-svg,
.about-node {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.about-editor-svg {
  overflow: visible !important;
}

.about-node {
  pointer-events: none;
}

.about-flow-svg-debug-bg {
  display: none;
}

@media (max-width: 760px) {
  .about-editor-scene {
    transform: scale(.32);
  }
}


/* =========================================================
   SVG line front layer
   Lines stay on original coordinates but render in front of boxes.
   ========================================================= */
.about-editor-svg {
  z-index: 30 !important;
  pointer-events: none !important;
}

.about-line {
  position: relative;
  z-index: 31 !important;
  pointer-events: none !important;
}

.about-node.point {
  z-index: 8 !important;
}

.about-node .connector,
.about-node .connectorin {
  z-index: 32 !important;
}

#about-el2{height:180px !important}

/* =========================================================
   Content-page layering + mobile hero height repair
   - Keep the info/menu dropdown above the animated about hero.
   - Keep the about hero in the normal page layer.
   - Reduce the hero on mobile to roughly one third of the screen.
   ========================================================= */
body.content-page .top-bar.content-top-bar {
  position: fixed !important;
  z-index: 2147483450 !important;
  overflow: visible !important;
  isolation: isolate !important;
}

body.content-page .content-menu-host,
body.content-page .content-menu-host .aiigle-info-menu-wrap {
  position: relative !important;
  z-index: 2147483451 !important;
  overflow: visible !important;
}

body.content-page .content-menu-host .aiigle-info-menu,
body.content-page.aiigle-info-open .content-menu-host .aiigle-info-menu {
  position: fixed !important;
  z-index: 2147483452 !important;
}

body.content-page .content-shell,
body.content-page .about-flow-hero {
  position: relative !important;
  z-index: 0 !important;
}

body.content-page .about-flow-hero {
  overflow: hidden !important;
}

@media (max-width: 760px) {
  body.content-page .about-flow-hero {
    height: 33vh !important;
    min-height: 190px !important;
    max-height: 240px !important;
    margin-bottom: 18px !important;
  }

  body.content-page .content-menu-host .aiigle-info-menu,
  body.content-page.aiigle-info-open .content-menu-host .aiigle-info-menu {
    top: 50px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    z-index: 2147483452 !important;
  }
}

/* =========================================================
   Content-page logo centering
   - Center Aiigle horizontally in the fixed top bar.
   - Keep it vertically centered regardless of desktop/mobile layout rules.
   - Leave the menu anchored on the right and above the hero.
   ========================================================= */
body.content-page .top-bar.content-top-bar {
  justify-content: center !important;
}

body.content-page .top-bar.content-top-bar .logo-wrap {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  max-width: calc(100vw - 120px) !important;
  z-index: 2147483450 !important;
}

body.content-page .top-bar.content-top-bar .content-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.content-page .top-bar.content-top-bar .content-menu-host {
  margin-left: auto !important;
  position: relative !important;
  z-index: 2147483451 !important;
}

@media (max-width: 760px) {
  body.content-page .top-bar.content-top-bar .logo-wrap {
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: auto !important;
    align-self: auto !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
}

/* =========================================================
   Content-page button style
   - Rounded blue buttons matching the provided reference.
   - Hover uses a slightly darker blue.
   ========================================================= */
body.content-page {
  --aiigle-button-blue: #2196F3;
  --aiigle-button-blue-hover: #1E88E5;
}

body.content-page .content-link,
body.content-page .content-button,
body.content-page main button,
body.content-page main input[type="button"],
body.content-page main input[type="submit"],
body.content-page main input[type="reset"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 52px !important;
  min-width: 116px !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: var(--aiigle-button-blue) !important;
  color: #fff !important;
  font-size: 24px;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background-color .16s ease, transform .16s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

body.content-page .content-link:hover,
body.content-page .content-link:focus,
body.content-page .content-button:hover,
body.content-page .content-button:focus,
body.content-page main button:hover,
body.content-page main button:focus,
body.content-page main input[type="button"]:hover,
body.content-page main input[type="button"]:focus,
body.content-page main input[type="submit"]:hover,
body.content-page main input[type="submit"]:focus,
body.content-page main input[type="reset"]:hover,
body.content-page main input[type="reset"]:focus {
  background: var(--aiigle-button-blue-hover) !important;
  color: #fff !important;
  text-decoration: none !important;
}

body.content-page .content-link:active,
body.content-page .content-button:active,
body.content-page main button:active,
body.content-page main input[type="button"]:active,
body.content-page main input[type="submit"]:active,
body.content-page main input[type="reset"]:active {
  transform: translateY(1px) !important;
}


/* =========================================================
   Final content-page refinements
   - Use 16px button text.
   - Let the about flow hero sit transparently on the page without its own
     grid, border, background panel, or shadow.
   ========================================================= */
body.content-page .content-link,
body.content-page .content-button,
body.content-page main button,
body.content-page main input[type="button"],
body.content-page main input[type="submit"],
body.content-page main input[type="reset"] {
  font-size: 16px;
}

body.content-page .about-flow-hero,
.about-flow-hero {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}


/* =========================================================
   Restore active flowing line animation
   - Keep line movement running even when the pointer is over the hero.
   - Override previous performance/static rules if cached CSS is merged.
   ========================================================= */
.about-line.is-running,
.blink-active-stroke {
  stroke: #000000 !important;
  stroke-width: 4 !important;
  stroke-dasharray: 8 8 !important;
  stroke-linecap: round !important;
  animation: aboutDashMove 1s linear infinite !important;
}

.about-node.is-running .header::before {
  animation: aboutMoveStripes 1s linear infinite !important;
}

.about-editor-scene.is-paused .about-line,
.about-editor-scene.is-paused .header::before {
  animation-play-state: running !important;
}
