/* Lead notes and follow-up completion use the shared native dialog lifecycle. */
#modal.nw-note .modal-head{min-height:104px;padding:25px 27px;border-bottom:1px solid #e0e8f3;align-items:flex-start}
#modal.nw-note .modal-head h2{font-size:25px;line-height:32px;letter-spacing:-.65px}
#modal.nw-note .modal-head p{font-size:12px;color:#7b8cb2;margin-top:3px;line-height:18px}
#modal.nw-note .modal-head>.btn,#modal.nw-complete .modal-head>.btn{width:35px;min-width:35px;height:39px;min-height:39px;padding:8px;border:1px solid #dae5f1;border-radius:11px;color:#4d65a0;background:#fff}
#modal.nw-note .modal-body{padding:0;display:flex;flex-direction:column;min-height:0;overflow:auto}
#modal.nw-note #modal-form{display:flex;flex-direction:column;flex:1;min-height:100%}
#modal.nw-note .nw-note-fields{padding:25px 27px}
#modal.nw-note .field,#modal.nw-complete .field{gap:0;margin:0 0 18px}
#modal.nw-note .field label,#modal.nw-complete .field label{font-size:13px;font-weight:500;line-height:20px;color:#38528f;margin:0 0 8px}
#modal.nw-note .field label span{color:#008b8d}
#modal.nw-note textarea,#modal.nw-complete textarea{height:98px;min-height:98px;resize:none;width:100%;padding:11px 13px;border:1px solid #d8e3f2;border-radius:11px;color:#38528f;font-size:14px;line-height:22px;background:#fff}
#modal.nw-note .nw-visibility{display:flex;align-items:center;min-height:46px;padding:11px 13px;border:1px solid #d8e3f2;border-radius:11px;font-size:14px;line-height:22px;color:#38528f;background:#fff}
#modal.nw-note .nw-visibility-field{margin:18px 0 0}
#modal.nw-note .nw-visibility-field small{font-size:10px;line-height:16px;color:#7b8cb2;margin-top:8px}
#modal.nw-note .nw-author{display:flex;align-items:center;gap:9px;padding-top:24px;margin-top:21px;border-top:1px solid #e0e8f3}
#modal.nw-note .nw-author .avatar{width:32px;height:32px;font-size:11px;background:#e1f8f4;color:#008b8d}
#modal.nw-note .nw-author b{display:block;font-size:12px;color:#080d40;line-height:18px}
#modal.nw-note .nw-author p{font-size:12px;line-height:18px;color:#6c7caf;margin:0}
#modal.nw-note .form-actions{margin: auto 0 0;padding:20px 27px 25px;position:sticky;bottom:0;flex-shrink:0;border-top:1px solid #e0e8f3;background:#fbfdff}
#modal.nw-note .form-error:not(:empty){margin:18px 27px 0}
#modal.nw-complete{position:fixed;inset:auto;left:50%;top:min(20.16vh,200px);transform:translateX(-50%);margin:0;padding:0;width:510px;max-width:calc(100vw - 32px);max-height:calc(100dvh - min(20.16vh,200px) - 20px);border:1px solid #dae5f1;border-radius:17px;background:#fff;color:#080d40;overflow:auto}
#modal.nw-complete .modal-head{padding:27px 28px 0;border:0;min-height:66px;align-items:center}
#modal.nw-complete .modal-head h2{font-size:24px;line-height:32px;letter-spacing:-.65px;font-weight:700}
#modal.nw-complete .modal-body{padding:0}
#modal.nw-complete .nw-completion-body{padding:20px 28px 29px}
#modal.nw-complete .nw-task-summary{font-size:14px;line-height:24px;color:#6c7caf;margin:0 0 20px}
#modal.nw-complete .nw-task-assignee{font-size:11px;line-height:18px;color:#7b8cb2;margin:0 0 2px}
#modal.nw-complete .check-field{display:flex;align-items:center;gap:9px;font-size:12px;color:#080d40;margin:18px 0 0}
#modal.nw-complete .check-field input{accent-color:#008b8d;width:13px;height:13px;margin:0}
#modal.nw-complete .form-actions{margin:0;padding:20px 23px;position:sticky;bottom:0;background:#fbfdff;border-top:1px solid #e0e8f3;gap:10px}
#modal.nw-note .form-actions .btn,#modal.nw-complete .form-actions .btn{min-height:39px;padding:8px 13px;border-radius:11px;font-size:14px;line-height:20px;gap:8px}
#modal.nw-complete .form-error:not(:empty){margin:18px 28px 0}
#modal.nw-note .form-error:empty,#modal.nw-complete .form-error:empty{display:none}
@media(max-width:600px){#modal.nw-note .modal-head{padding:22px}#modal.nw-note .nw-note-fields{padding:24px 22px}#modal.nw-note .form-actions{padding:18px 22px}#modal.nw-complete{top:min(9.72vh,82px);max-height:calc(100dvh - min(9.72vh,82px) - 16px)}#modal.nw-complete .modal-head{padding:20px 22px 0}#modal.nw-complete .modal-head h2{font-size:22px}#modal.nw-complete .nw-completion-body{padding:20px 22px 27px}#modal.nw-complete .form-actions{padding:18px 20px;flex-wrap:wrap}}

#modal.nw-complete .nw-next-fields{margin:22px 0 0;padding:18px 0 0;border:0;border-top:1px solid #e0e8f3;min-width:0}
#modal.nw-complete .nw-next-fields legend{padding:0 8px 0 0;font-weight:600;font-size:16px;color:#080d40}
#modal.nw-complete .nw-next-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#modal.nw-complete .nw-next-grid>.full{grid-column:1/-1}
#modal.nw-complete .nw-next-grid .field{margin:0;min-width:0}
#modal.nw-complete .nw-next-fields input,#modal.nw-complete .nw-next-fields select{width:100%;min-height:46px;border:1px solid #d8e3f2;border-radius:11px;padding:11px 13px;font-size:14px;background:#fff;color:#38528f}
#modal.nw-complete .nw-next-fields[hidden]{display:none}
@media(max-width:600px){#modal.nw-complete .nw-next-grid{grid-template-columns:1fr}}

#modal.nw-complete[open]{display:flex;flex-direction:column;overflow:hidden}
#modal.nw-complete .modal-head{flex-shrink:0}
#modal.nw-complete .modal-body{display:flex;flex-direction:column;min-height:0;overflow:hidden}
#modal.nw-complete #modal-form{display:flex;flex-direction:column;min-height:0}
#modal.nw-complete .nw-completion-body{min-height:0;overflow:auto}
#modal.nw-complete .form-actions{position:static;flex-shrink:0}
