flowchart TD
classDef terminator fill:#4338ca,stroke:#312e81,stroke-width:2px,color:#fff,font-weight:700;
classDef decision fill:#fef3c7,stroke:#d97706,stroke-width:2.5px,color:#78350f,font-weight:700;
classDef process fill:#ffffff,stroke:#475569,stroke-width:1.5px,color:#0f172a;
classDef processReq fill:#ffffff,stroke:#475569,stroke-width:1.5px,color:#0f172a,font-weight:600;
classDef input fill:#cffafe,stroke:#0891b2,stroke-width:1.8px,color:#164e63;
classDef inputReq fill:#cffafe,stroke:#0891b2,stroke-width:1.8px,color:#164e63,font-weight:600;
classDef decisionReq fill:#fef3c7,stroke:#d97706,stroke-width:2.5px,color:#78350f,font-weight:700;
classDef chOk fill:#dcfce7,stroke:#16a34a,color:#14532d;
classDef chWarn fill:#fef3c7,stroke:#d97706,color:#78350f;
classDef chRisk fill:#fee2e2,stroke:#dc2626,color:#7f1d1d;
linkStyle default stroke:#94a3b8,stroke-width:1.6px;
START(["🟢 문진 시작: 역류성식도질환(GERD) 문진"]):::terminator
RESULT(["🏁 결과 산출"]):::terminator
S132["섹션 1: 역류 증상<br/>(8)"]:::process
START --> S132
S133["섹션 2: 경고 증상<br/>(4)"]:::process
S132 --> S133
S134["섹션 3: 생활요인<br/>(8)"]:::process
S133 --> S134
S271["섹션 4: 증상 상세<br/>(10)"]:::process
S134 --> S271
S272["섹션 5: 생활·병력<br/>(7)"]:::process
S271 --> S272
S273["섹션 6: 추가 경고<br/>(4)"]:::process
S272 --> S273
S436["섹션 7: 약물 반응 (해당 시)<br/>(3)"]:::process
S273 --> S436
S436 --> RESULT