# Owner note: keep this handoff comment
canvas:
  background: "#FFFFFF"
  grid: none
  padding: 60
nodes:
  architecture:
    shape: composite
    layout:
      mode: auto
      gap: 2
    parts:
      - id: user
        shape: person
        label: User
        geom: {w: 100, d: 80, h: 80}
        style:
          palette: {top: "#60A5FA", left: "#1D4ED8", right: "#1E3A8A"}
          text: {color: "#111827", orient: screen, boxBg: "#FFFFFF"}
      - id: api
        shape: rectangle
        label: "Public API"
        geom: {w: 120, d: 90, h: 50}
        style:
          palette: {top: "#60A5FA", left: "#2563EB", right: "#1E40AF"}
          text: {color: "#111827", orient: screen, boxBg: "#FFFFFF"}
      - id: database
        shape: cylinder
        label: Database
        geom: {w: 120, d: 100, h: 65}
        style:
          palette: {top: "#34D399", left: "#047857", right: "#065F46"}
          text: {color: "#111827", orient: screen, boxBg: "#FFFFFF"}
      - id: cache
        shape: rectangle
        label: Cache
        geom: {w: 120, d: 90, h: 50}
        style:
          palette: {top: "#FBBF24", left: "#B45309", right: "#92400E"}
          text: {color: "#111827", orient: screen, boxBg: "#FFFFFF"}
      - id: worker
        shape: rectangle
        label: Worker
        geom: {w: 120, d: 90, h: 50}
        style:
          palette: {top: "#A78BFA", left: "#7C3AED", right: "#5B21B6"}
          text: {color: "#111827", orient: screen, boxBg: "#FFFFFF"}
    connectors:
      - {from: user, to: api, routing: orthogonal, arrow: triangle}
      - {from: api, to: database, routing: orthogonal, arrow: triangle}
      - {from: api, to: cache, routing: orthogonal, arrow: triangle}
      - {from: api, to: worker, routing: orthogonal, arrow: triangle}
