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
S144["섹션 1: 진단·복약<br/>(7)"]:::process
START --> S144
S145["섹션 2: 증상<br/>(5)"]:::process
S144 --> S145
S146["섹션 3: 동반 위험·합병증<br/>(9)"]:::process
S145 --> S146
S147["섹션 4: 생활습관<br/>(5)"]:::process
S146 --> S147
S281["섹션 5: 동반 증상<br/>(7)"]:::process
S147 --> S281
S282["섹션 6: 관리·복약 상세<br/>(7)"]:::process
S281 --> S282
S283["섹션 7: 생활습관 상세<br/>(6)"]:::process
S282 --> S283
S429["섹션 8: 전문 심화<br/>(10)"]:::process
S283 --> S429
S434["섹션 9: 고혈압 진료·복약 (해당 시)<br/>(4)"]:::process
S429 --> S434
S434 --> RESULT