%%{init: {'flowchart': {'nodeSpacing': 5, 'rankSpacing': 20}}}%%
flowchart TD
Start([🟢 Start]) --> T1[📋 Task 1<br/>n₁ ways]
T1 --> C1[Choice 1]
T1 --> C2[Choice 2]
T1 --> Cn1[Choice n₁]
C1 --> T2[📋 Task 2<br/>n₂ ways]
C2 --> T2
Cn1 --> T2
T2 --> C21[Choice 1]
T2 --> C22[Choice 2]
T2 --> C2n[Choice n₂]
C21 --> Total[🎯 Total ways<br/>n₁ × n₂ × ... × nₖ]
C22 --> Total
C2n --> Total
classDef start fill:#d4edda,stroke:#155724,stroke-width:3px
classDef task fill:#d1ecf1,stroke:#0c5460,stroke-width:2px
classDef choice fill:#fff3cd,stroke:#856404,stroke-width:1px
classDef total fill:#f8d7da,stroke:#721c24,stroke-width:3px
class Start start
class T1,T2 task
class C1,C2,Cn1,C21,C22,C2n choice
class Total total