%% Branch model — render PNG via mermaid-cli (Chromium). Do not rasterize SVG with rsvg.
flowchart TB
  M["master\n(always green, tagged releases)"]
  N["next\n(integration / release candidate)"]
  F["feature/*  fix/*\n(fork next)"]
  H["hotfix/*\n(fork master)"]

  F -->|"merge + CI green"| N
  N -->|"release: merge + CI green"| M
  H -->|"urgent patch + CI green"| M
  M -->|"sync after release or hotfix"| N

  style M fill:#c8e6c9,stroke:#2e7d32
  style N fill:#bbdefb,stroke:#1565c0
  style F fill:#fff9c4,stroke:#f9a825
  style H fill:#ffccbc,stroke:#e64a19
