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
S21["섹션 1: 기본 정보<br/>(4)"]:::process
START --> S21
S22["섹션 2: 월경·배란력<br/>(3)"]:::process
S21 --> S22
S23["섹션 3: 임신·시도력<br/>(6)"]:::process
S22 --> S23
S24["섹션 4: 부인과·내과 병력<br/>(3)"]:::process
S23 --> S24
S25["섹션 5: 배우자(남성) 요인<br/>(3)"]:::process
S24 --> S25
S26["섹션 6: 생활습관<br/>(4)"]:::process
S25 --> S26
S27["섹션 7: 심리·스트레스<br/>(3)"]:::process
S26 --> S27
S71["섹션 8: 월경·배란 상세<br/>(8)"]:::process
S27 --> S71
S72["섹션 9: 부인과 병력 상세<br/>(7)"]:::process
S71 --> S72
S73["섹션 10: 호르몬·검사 이력<br/>(8)"]:::process
S72 --> S73
S74["섹션 11: 배우자(남성) 상세<br/>(8)"]:::process
S73 --> S74
S75["섹션 12: 생활·환경 상세<br/>(7)"]:::process
S74 --> S75
S76["섹션 13: 정서·관계·치료력<br/>(8)"]:::process
S75 --> S76
S77["섹션 14: 가족력<br/>(7)"]:::process
S76 --> S77
S113["섹션 15: 추가 평가<br/>(4)"]:::process
S77 --> S113
S420["섹션 16: 추가 심화<br/>(10)"]:::process
S113 --> S420
S420 --> RESULT