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(["🟢 문진 시작: 폐렴구균 예방 문진"]):::terminator
RESULT(["🏁 결과 산출"]):::terminator
S518["섹션 1: 기본 정보<br/>(4)"]:::process
START --> S518
S519["섹션 2: 과거 예방접종력<br/>(7)"]:::process
S518 --> S519
S520["섹션 3: 만성질환 여부 (위험군)<br/>(8)"]:::process
S519 --> S520
S521["섹션 4: 면역저하 및 고위험 상태<br/>(11)"]:::process
S520 --> S521
S522["섹션 5: 특수 위험 요인<br/>(3)"]:::process
S521 --> S522
S523["섹션 6: 현재 건강 상태<br/>(4)"]:::process
S522 --> S523
S524["섹션 7: 생활습관 및 기타 요인<br/>(4)"]:::process
S523 --> S524
S524 --> RESULT