:root{--green:#087b6c;--deep:#064f4b;--dark:#172e33;--muted:#5e7174;--bg:#f1f6f5;--line:#dce8e5;--soft:#eaf6f2;--orange:#e97927;--white:#fff;--shadow:0 7px 27px rgba(19,62,58,.06)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--dark);font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:15px;line-height:1.45}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}input,select,textarea{min-width:0;width:100%;border:1px solid #cbdcd8;border-radius:12px;padding:12px 13px;background:white;color:#203b3b;outline-color:var(--green);min-height:47px}input[type="checkbox"],input[type="radio"]{min-height:0;width:auto;accent-color:var(--green)}label{font-size:13px;font-weight:730;display:block;margin-bottom:6px;color:#345556}em{color:#bf4e31;font-style:normal}small,.muted,.helper{color:var(--muted)}.helper{font-size:12px;line-height:1.5;margin:9px 0 0}.centered{text-align:center}.app-shell{max-width:760px;min-height:100dvh;margin:auto}.brandbar{background:linear-gradient(112deg,#076f64,#064e53);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:22px 20px 28px;border-radius:0 0 22px 22px}.brand-left{display:flex;align-items:center;gap:11px}.brandicon{width:45px;height:45px;background:#fff;color:#098a69;display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:900;border-radius:12px;line-height:1}.brandname{font-size:19px;font-weight:900;letter-spacing:.04em;line-height:1}.brandname span{font-size:9px;font-weight:750;white-space:nowrap;letter-spacing:.01em}.brand-sub{font-size:10px;letter-spacing:.09em;margin-top:6px;opacity:.89;font-weight:700}.brand-status{font-size:9px;border:1px solid #79b8ad;border-radius:18px;padding:5px 7px;letter-spacing:.03em;white-space:nowrap}.summary{display:grid;grid-template-columns:repeat(3,1fr);margin:-12px 13px 12px;position:relative;background:white;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);overflow:hidden}.summary>div{padding:13px 8px;text-align:center;border-right:1px solid var(--line)}.summary>div:last-child{border-right:0}.summary strong{font-size:25px;font-weight:900;color:var(--deep);display:block;line-height:1.1}.summary span{font-size:10px;color:var(--muted);font-weight:680}.tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:12px 13px 13px;background:#e2eeeb;padding:5px;border-radius:13px}.tab{border:0;background:transparent;color:#5e7777;border-radius:9px;padding:10px 2px;font-size:12px;font-weight:800;white-space:nowrap}.tab.current{color:var(--deep);background:#fff;box-shadow:0 2px 6px #174d491a}.pane{display:none;padding:0 13px}.pane.current{display:block}.card{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:17px;padding:19px;margin-bottom:14px}.section-eyebrow{color:var(--green);font-size:10px;font-weight:900;letter-spacing:.12em}.section-title{font-size:19px;font-weight:850;letter-spacing:-.035em;margin:4px 0 15px}.consultant-card .section-title{font-size:16px}.selectline{display:grid;grid-template-columns:1fr auto;gap:8px}.selectline select{width:100%}.consultant-locked{background:#e8f5f1;border:1px solid #c2dfd6;border-radius:12px;display:flex;align-items:center;gap:9px;padding:12px}.consultant-locked[hidden]{display:none}.consultant-locked>div{flex:1;min-width:0}.consultant-locked strong,.consultant-locked small{display:block}.consultant-locked strong{font-size:16px}.consultant-locked small{font-size:9px;color:var(--muted);font-weight:850;letter-spacing:.04em}.consultant-check{border-radius:100%;background:var(--green);color:white;width:25px;height:25px;display:grid;place-items:center;font-weight:900}.textbtn{background:transparent;color:var(--deep);font-weight:800;border:0;padding:9px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.full{grid-column:1/-1}.field small{display:block;font-size:11px;margin-top:6px}.divider{height:1px;background:var(--line);margin:22px 0 19px}.question{border:0;padding:13px 0;margin:0;border-bottom:1px solid #edf0ee;min-width:0}.question legend{display:contents;font-weight:750;font-size:14px}.choicegroup{display:flex;gap:8px;margin-top:10px}.choicegroup label{margin:0;flex:0 0 92px;cursor:pointer}.choicegroup input{position:absolute;opacity:0;width:1px}.choicegroup span{display:block;background:#f7faf9;border:1px solid #d8e4e1;border-radius:10px;min-height:37px;padding:8px;text-align:center;color:#526b6b;font-size:13px;font-weight:750}.choicegroup input:checked+span{background:#ddf3eb;border-color:#1d9883;color:#075a4d;box-shadow:0 0 0 1px #1d9883 inset}.choicegroup input:focus-visible+span{outline:3px solid #b6dfcf}.conditional{margin-top:12px}.conditional[hidden]{display:none}.conditional label{margin-bottom:6px}.consent{background:#f2f8f5;border:1px solid #d8e9e0;border-radius:12px;padding:12px;margin:18px 0 13px}.checkline{display:flex;gap:9px;align-items:flex-start;font-weight:600;font-size:12px;line-height:1.55;cursor:pointer;margin:0 0 11px}.checkline:last-child{margin-bottom:0}.checkline input{height:19px;width:19px;flex:0 0 19px;margin:1px 0}.consent details{font-size:12px;color:var(--muted);border-top:1px solid #d8e9e0;margin-top:10px;padding-top:9px}.consent details summary{cursor:pointer;font-weight:730;color:var(--deep)}.consent details p{margin:8px 0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;min-height:47px;border-radius:11px;border:1px solid transparent;padding:11px 16px;font-weight:820;text-decoration:none;font-size:13px}.btn-full{width:100%;margin-top:9px}.btn-primary{color:#fff;background:var(--orange);border-color:#d76b23;box-shadow:0 4px 9px #d66d201c}.btn-secondary{background:var(--green);border-color:var(--green);color:#fff}.btn-quiet{background:#eaf5f2;border-color:#cce8df;color:#10685f}.btn-small{background:var(--green);border-color:var(--green);color:#fff;min-height:46px;padding:10px 12px}.saved-title{font-size:17px;font-weight:850;color:#087b6c}.after-save{border-color:#98d0bc}.after-save[hidden]{display:none}.after-save p{margin:7px 0}.notice{background:#e3f4eb;color:#125b47;padding:12px;border:1px solid #bfe4d3;border-radius:12px;margin:0 13px 12px;font-size:13px}.notice.error{background:#fff0eb;border-color:#f1bcb4;color:#993e29}.notice[hidden]{display:none}.record-list{display:flex;flex-direction:column;gap:11px}.record{border:1px solid #dbe8e4;border-radius:13px;padding:12px;background:#fbfefd}.record-top{display:flex;justify-content:space-between;gap:8px;align-items:start}.record-top strong{font-size:15px;line-height:1.25}.pill{display:inline-block;border-radius:30px;padding:4px 7px;font-size:10px;font-weight:850;background:#f6e9d9;color:#9c6519;white-space:nowrap}.pill.sent{background:#e3f4e7;color:#236d4a}.pill.open{background:#eaf0fa;color:#3d6a9b}.record-meta{color:var(--muted);font-size:11px;margin:7px 0}.record-data{font-size:12px;line-height:1.65;overflow-wrap:anywhere}.record-data b{color:#35575a}.record-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.record-actions .mini{border-radius:8px;padding:8px 10px;border:1px solid #ccdfd9;background:white;color:#0c685e;font-size:11px;font-weight:800;min-height:35px}.record-actions .mini.danger{border-color:#edcbc7;color:#ac4f47}.record-actions .mini.highlight{background:#e4f3ea}.empty{padding:20px 13px;text-align:center;border:1px dashed #cddbd5;border-radius:12px;color:var(--muted);font-size:13px}.report-check{margin:17px 0}.report-result{background:#eaf5f1;color:#195e56;border-radius:10px;padding:11px;font-size:13px;font-weight:800}.privacy-card{border-left:4px solid #8ac2b6}.file-action{cursor:pointer}.rowactions{display:flex;flex-wrap:wrap;gap:8px}.rowactions .btn{flex:1}textarea{resize:vertical}footer{color:#849693;text-align:center;font-size:11px;padding:10px 15px 30px}dialog{padding:17px;border:0;border-radius:17px;width:min(94vw,470px);box-shadow:0 16px 90px #082e3480;max-height:90vh}dialog::backdrop{background:#062222aa}.dialog-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.dialog-close{background:#f0f6f3;border:0;border-radius:8px;padding:3px 10px;font-size:22px}.edit-scroll{overflow-y:auto;max-height:65vh;padding-right:4px}.edit-scroll label{margin-top:13px}.edit-scroll input,.edit-scroll select{margin-bottom:3px}@media(max-width:490px){.brandbar{padding:19px 13px 26px}.brandicon{width:40px;height:40px}.brandname{font-size:16px}.brandname span{font-size:8px}.brand-sub{font-size:8.5px}.brand-status{font-size:8px;padding:4px 5px}.card{padding:15px}.fields{grid-template-columns:1fr}.tab{font-size:11px}.summary strong{font-size:23px}.section-title{font-size:18px}.record-actions .mini{flex:1}.rowactions{flex-direction:column}}

/* V2: identidade Disque Saúde e ficha única de captação */
.mascot-header{width:56px;height:56px;flex:0 0 56px;object-fit:cover;border-radius:50%;border:2px solid #fff;background:#fff;box-shadow:0 2px 9px #022e2c55}
.brand-left{min-width:0}.brand-status{font-weight:800}.brandname{white-space:nowrap}
#leadForm[hidden]{display:none}.after-save[hidden]{display:none}.saved-lead{color:#235b52;font-size:16px;font-weight:750;margin:13px 0}
.flow-instruction{background:#f0f7f4;border:1px solid #d0e5db;border-radius:10px;padding:10px;line-height:1.55;margin:11px 0 15px !important}
#afterConfirm{border-color:#a8d5c7;font-weight:800}
@media(max-width:490px){.mascot-header{width:49px;height:49px;flex-basis:49px}.brandbar{gap:5px}.brandname{font-size:15px}.brand-status{font-size:7.5px;letter-spacing:0}.brand-left{gap:7px}}
@media(max-width:380px){.brand-status{display:none}}

/* V3: WhatsApp específico do cliente, links públicos e envio opcional como anexo. */
.attachments-alternative{background:#f8fbfa;border:1px solid #dcebe5;border-radius:11px;padding:11px 12px;margin:15px 0 4px;color:#426763;font-size:12px}
.attachments-alternative summary{cursor:pointer;font-size:12px;font-weight:780;color:#075c52}
.attachments-alternative p{margin:10px 0}
.attachments-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}
.attachments-actions .btn{padding:9px;font-size:12px;min-height:50px}
@media(max-width:480px){.attachments-actions{grid-template-columns:1fr}}

/* V4: etapas visíveis e site mantido após abrir WhatsApp em outra aba. */
.btn.stage-visited{background:#eb851e!important;color:#fff!important;border-color:#ce6814!important;box-shadow:0 2px 9px #a85b1f18!important}
.step-confirm{margin:4px 0 11px!important;padding:9px 12px;border-radius:9px;background:#fff2e5;color:#8e4b09;font-size:12px;line-height:1.45;font-weight:760;border-left:3px solid #ec8d23}
.step-confirm[hidden]{display:none}
.keep-tab{background:#eaf6fd;border:1px solid #c7e3f0;padding:9px 12px;border-radius:9px;color:#215365;margin:11px 0!important}
.completed-count{background:#f5f7f6;border-radius:8px;padding:8px 10px;color:#476c65;font-weight:680}

.material-check-result{font-size:12px;color:#285f5b;line-height:1.6;padding:2px 0 5px}
