flowchart TD
%% Nodes (IDs kept as single letters for color classes)
A(["Start: SIR#"]):::start
B(["Discuss in Daily Stand-Up & SRM Assignment"]):::process
C{"Is it a True Incident?"}:::decision
D{"Is it a Risk?"}:::decision
E(["Register Risk & Close Incident"]):::risk
F(["Register Incident & Close/Transfer"]):::action
G(["Document in Incident Register"]):::process
H(["Analyze and Classify"]):::process
I(["Prioritize Based on Impact"]):::process
J{"Is it a Major Incident?"}:::decision
K(["Report in Parallel to MT"]):::action
L(["Proceed for Containment"]):::action
N{"Containment Needed?"}:::decision
O(["Involve Stakeholders & Action Owners"]):::action
P(["Already Contained"]):::action
Q{"Is there Residual Risk?"}:::decision
R(["Register Risk in Risk Register"]):::risk
S(["No Residual Risk Noted"]):::process
T(["Update Register & Close Incident"]):::process
U{"Are Lessons Learned?"}:::decision
V(["Conduct Lessons Learned Session"]):::lessons
Y(["Skip Session"]):::action
Z{"Improvement Opportunity?"}:::decision
AA(["Plan Feature / Demand"]):::improve
AB(["End of Process"]):::end_node
%% Edges
A --> B
B --> C
C -- No --> D
D -- Yes --> E
D -- No --> F
C -- Yes --> G
G --> H
H --> I
I --> J
J -- Yes --> K
J -- Yes or No --> L
L --> N
N -- Yes --> O
N -- No --> P
O --> Q
P --> Q
Q -- Yes --> R
Q -- No --> S
R --> T
S --> T
T --> U
U -- Yes --> V
U -- No --> Y
V --> Z
Y --> Z
Z -- Yes --> AA
Z -- No --> AB
%% Color Classes
classDef start fill:#b2f2bb,stroke:#2b8a3e,stroke-width:2px,color:#1b4332;
classDef end_node fill:#ffa8a8,stroke:#c92a2a,stroke-width:2px,color:#fff;
classDef decision fill:#fff3bf,stroke:#fab005,stroke-width:2px,color:#7c4700;
classDef process fill:#d0ebff,stroke:#1864ab,stroke-width:2px;
classDef risk fill:#f8bbd0,stroke:#c2255c,stroke-width:2px;
classDef action fill:#c3fae8,stroke:#15aabf,stroke-width:2px;
classDef lessons fill:#d0bfff,stroke:#845ef7,stroke-width:2px;
classDef improve fill:#b197fc,stroke:#5f3dc4,stroke-width:2px;
%% Apply classes
class A start;
class AB end_node;
class C,D,J,N,Q,U,Z decision;
class E,R risk;
class B,G,H,I,S,T process;
class L,O,P,K,F,Y action;
class V lessons;
class AA improve;