/* service-schematic */
.estate .service-schematic {
  margin: 40px 0;
  padding: 32px;
  min-width: 0;
  background: #05080e;
  color: #f6f7fa;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

.estate .service-schematic figcaption {
  font-size: 24px;
  font-weight: 600;
  color: #f6f7fa;
  margin-bottom: 16px;
}

.estate .service-schematic .sg-key {
  font-size: 16px;
  color: #acbdc9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

.estate .service-schematic .sg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "input rules result"
    "direct review branch";
  gap: 28px;
  position: relative;
  min-height: 300px;
}

.estate .service-schematic .sg-paths {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.estate .service-schematic .sg-paths path {
  stroke: #00ffd1;
  stroke-width: 1.5;
  fill: none;
}

.estate .service-schematic .sg-paths circle {
  fill: #00ffd1;
}

.estate .service-schematic .sg-node {
  position: relative;
  z-index: 1;
  background: rgba(5, 8, 14, 0.85);
  padding: 16px;
  border: 1px solid #acbdc9;
}

.estate .service-schematic .sg-input {
  grid-area: input;
}

.estate .service-schematic .sg-rules {
  grid-area: rules;
}

.estate .service-schematic .sg-result {
  grid-area: result;
}

.estate .service-schematic .sg-review {
  grid-area: review;
}

.estate .service-schematic .sg-direct {
  grid-area: direct;
  font-size: 16px;
  color: #acbdc9;
  align-self: center;
  justify-self: center;
  text-align: center;
}

.estate .service-schematic .sg-branch {
  grid-area: branch;
  font-size: 16px;
  color: #00ffd1;
  align-self: center;
  justify-self: center;
  text-align: center;
}

.estate .service-schematic .sg-index {
  display: block;
  font-size: 16px;
  color: #00ffd1;
  margin-bottom: 8px;
}

.estate .service-schematic h3 {
  font-size: 24px;
  font-weight: 600;
  color: #f6f7fa;
  margin: 0 0 8px 0;
}

.estate .service-schematic p {
  font-size: 16px;
  color: #acbdc9;
  margin: 0;
}

.estate .service-schematic .sg-note {
  font-size: 16px;
  color: #acbdc9;
  margin-top: 28px;
  border-top: 1px solid #acbdc9;
  padding-top: 16px;
}

@media (max-width: 1000px) {
  .estate .service-schematic {
    padding: 20px;
  }

  .estate .service-schematic .sg-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "input"
      "rules"
      "direct"
      "review"
      "branch"
      "result";
    gap: 20px;
  }

  .estate .service-schematic .sg-paths {
    display: none;
  }

  .estate .service-schematic .sg-node {
    border-left: 3px solid #00ffd1;
    padding-left: 20px;
  }

  .estate .service-schematic .sg-node::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 9px;
    height: 9px;
    background: #00ffd1;
    border-radius: 50%;
  }

  .estate .service-schematic .sg-direct,
  .estate .service-schematic .sg-branch {
    justify-self: start;
    text-align: left;
    padding-left: 20px;
  }
}

/* Controller composition refinement: open engineering stations, not a four-card wall. */
.estate .service-schematic .sg-node{border:0;border-top:1px solid #00ffd1;border-radius:0;background:#05080e}
.estate .service-schematic .sg-review{border-top:1px dashed #00ffd1}
.estate .service-schematic .sg-paths{filter:drop-shadow(0 0 3px #00ffd1)}
.estate .service-schematic .sg-note{max-width:70ch}
