/* Shared notes workspace for prospects and customers. */
.contact-notes-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.shell .contact-notes-editor{border:1px solid #decbb1;background:#fcf8f0;padding:22px;border-radius:16px}
.shell .contact-notes-editor textarea{min-height:210px;font-size:16px;line-height:1.85;cursor:text;background:#fff}
.shell .contact-notes-open{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:42px;margin:8px 0 12px 8px;background:#f5e8d1;border-color:#decaab;color:#725128;font-size:14px;font-weight:700}
.enigma-notes-dialog{box-sizing:border-box;width:min(880px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid #dcc9ad;border-radius:22px;box-shadow:0 30px 100px #30231455;background:#fff;color:#332a20;font-family:inherit;overflow:auto;overscroll-behavior:contain}
.enigma-notes-dialog::backdrop{background:#201a14bb;backdrop-filter:blur(5px)}
.enigma-notes-dialog[open]{display:flex;flex-direction:column}
.notes-modal-head{display:flex;justify-content:space-between;align-items:start;gap:20px;padding:28px 30px 24px;background:#25211c;color:white;border-bottom:3px solid #c49c62;flex-shrink:0}
.notes-eyebrow{display:block;font-size:12px;letter-spacing:1px;color:#e8c892;margin-bottom:8px}
.notes-modal-head h2{margin:0 0 8px;font-size:27px;font-weight:700;color:white}
.notes-person{margin:0;color:#e8dbca;font-size:15px;overflow-wrap:anywhere;line-height:1.6}
.enigma-notes-dialog button{font:inherit;cursor:pointer;min-height:44px;padding:10px 18px;border-radius:10px;border:1px solid #dac9b0;transition:background .15s}
.enigma-notes-dialog .notes-close{background:#ffffff0c;border-color:#ffffff30;color:#fff;font-size:18px;width:44px;padding:0;flex-shrink:0}
.notes-modal-body{padding:24px 30px 14px;overflow:auto;min-height:0}
.notes-date{display:inline-block;border-radius:7px;background:#f4ead9;color:#765b34;padding:7px 11px;margin:0 0 20px;font-size:13px;line-height:1.5}
.notes-modal-body label{display:block;font-size:16px;font-weight:700;margin-bottom:10px}
.enigma-notes-dialog textarea{box-sizing:border-box;width:100%;min-height:260px;height:38dvh;max-height:52dvh;padding:18px 20px;border:1px solid #d4c1a5;border-radius:12px;resize:vertical;background:#fffdf9;color:#3b3023;font:inherit;font-size:17px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}
.enigma-notes-dialog textarea:focus{outline:2px solid #a799ef;outline-offset:2px;background:#fff}
.enigma-notes-dialog textarea[readonly]{background:#f5efe5}
.notes-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:10px 0;color:#7b6a52;font-size:12px;line-height:1.5}
.notes-save-status{min-height:25px;margin:10px 0 0;font-size:14px;line-height:1.6;color:#176554}
.notes-save-status.notes-error{color:#a02c39;background:#fff1f2;padding:10px;border-radius:8px}
.notes-modal-foot{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 30px;border-top:1px solid #e7dac8;background:#f8f3eb;flex-shrink:0}
.notes-modal-foot>span{font-size:13px;color:#7b6a52;line-height:1.6}
.notes-modal-foot>div{display:flex;gap:10px;flex-shrink:0}
.enigma-notes-dialog .notes-save{background:#7057e8;border-color:#7057e8;color:white;font-weight:700}
.enigma-notes-dialog .notes-save:hover{background:#6045d4}
.enigma-notes-dialog .notes-done{background:white;color:#59452b}
.enigma-notes-dialog button:disabled{opacity:.5;cursor:default}
.enigma-notes-dialog button:focus-visible{outline:3px solid #a799ef;outline-offset:3px}
@media(max-width:600px){.enigma-notes-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}.notes-modal-head{padding:20px}.notes-modal-head h2{font-size:23px}.notes-modal-body{padding:18px 20px 10px}.enigma-notes-dialog textarea{min-height:180px;height:36dvh;font-size:16px;padding:14px}.notes-modal-foot{padding:14px 20px;display:block}.notes-modal-foot>span{display:block;margin-bottom:10px}.notes-modal-foot>div{display:flex}.notes-modal-foot button{flex:1}.shell .contact-notes-editor{padding:16px}.contact-notes-heading button{width:100%}}
@media(prefers-reduced-motion:reduce){.enigma-notes-dialog button{transition:none}}
