direction: down

planner: "Planner Component" {
  style.font-size: 32

  inputs: {
    direction: right
    style.border-radius: 8

    mc: "Metric Collector\n(Prometheus)" {
      style.font-size: 24
      shape: rectangle
    }
    lp: "Load Predictor\n(ARIMA / Kalman / Prophet)" {
      style.font-size: 24
      shape: rectangle
    }
    pi: "Performance Interpolator\n(NPZ profiling data)" {
      style.font-size: 24
      shape: rectangle
    }
  }

  sa: "Scaling Algorithm" {
    style.font-size: 28
    shape: rectangle
    style.bold: true
  }

  connector: "Connector Layer" {
    style.font-size: 28
    direction: right

    kc: "KubernetesConnector\n(PATCH DGD)" {
      style.font-size: 24
      shape: rectangle
    }
    vc: "VirtualConnector\n(Runtime bridge)" {
      style.font-size: 24
      shape: rectangle
    }
  }

  inputs.mc -> sa
  inputs.lp -> sa
  inputs.pi -> sa
  sa -> connector
}
