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
S207["섹션 1: 당뇨 상태<br/>(3)"]:::process
START --> S207
S208["섹션 2: 시력 증상<br/>(5)"]:::process
S207 --> S208
S209["섹션 3: 검진<br/>(2)"]:::process
S208 --> S209
S344["섹션 4: 시각 증상<br/>(9)"]:::process
S209 --> S344
S345["섹션 5: 당뇨 상세<br/>(8)"]:::process
S344 --> S345
S346["섹션 6: 검진<br/>(4)"]:::process
S345 --> S346
S346 --> RESULT