.contact-editor-dialog{border:1px solid #dbe2ed;border-radius:18px;padding:0;width:min(880px,calc(100vw - 28px));max-height:calc(100dvh - 28px);margin:auto;color:#17233a;background:#f8fafc;box-shadow:0 28px 90px #0f172a45;overflow:hidden;font-family:Inter,'Segoe UI',Arial,sans-serif}
.contact-editor-dialog[open]{display:flex;flex-direction:column}.contact-editor-dialog::backdrop{background:#0f172a80;backdrop-filter:blur(3px)}
.ce-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px;background:linear-gradient(120deg,#302659,#5133a4);color:white;flex-shrink:0}.ce-header h2{font-size:19px;margin:0;font-weight:750}
.contact-editor-dialog button{min-height:44px;border:1px solid #d1dbea;border-radius:10px;padding:10px 18px;font:700 14px Inter,'Segoe UI',sans-serif;cursor:pointer;color:#233550;background:white}.contact-editor-dialog .ce-close{padding:0;width:40px;min-height:40px;color:white;border-color:#ffffff50;background:#ffffff15}.contact-editor-dialog button:disabled{opacity:.6;cursor:wait}
.ce-form{display:flex;flex-direction:column;min-height:0;overflow:hidden}.ce-body{padding:16px 22px;overflow:auto;min-height:0;overscroll-behavior:contain}.ce-status{font-size:13px;line-height:1.55;padding:11px 14px;border:1px solid #c7d7f4;background:#eff6ff;color:#214e8c;border-radius:10px;margin:0 0 16px;overflow-wrap:anywhere}
.ce-section{background:white;border:1px solid #e2e8f0;border-radius:12px;padding:16px;margin:0 0 14px}.ce-section h3{font-size:14px;margin:0 0 14px;color:#26324a}.ce-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ce-name{grid-template-columns:110px repeat(3,minmax(0,1fr))}.ce-wide{grid-column:1/-1}.ce-field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:650;line-height:1.5;color:#526178;min-width:0}
.ce-field input,.ce-field select,.ce-field textarea{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid #c7d2e4;border-radius:8px;background:white;color:#15233d;padding:10px 12px;font:500 15px Inter,'Segoe UI',sans-serif}.ce-field textarea{min-height:76px;resize:vertical}.ce-ledger-note{font-size:12px;color:#64748b;line-height:1.6;margin:10px 2px}
.contact-editor-dialog [hidden]{display:none!important}.ce-actions{display:flex;justify-content:flex-end;gap:10px;padding:14px 22px;border-top:1px solid #e2e8f0;background:white;flex-shrink:0}.contact-editor-dialog .ce-save{background:linear-gradient(120deg,#6d28d9,#7c3aed);border-color:#6d28d9;color:white;min-width:160px}.contact-editor-dialog :focus-visible{outline:3px solid #8b5cf6;outline-offset:2px}.btn-edit-customer{border:1px solid #cbd5e1;background:#f8fafc;color:#475569;border-radius:8px;min-width:38px;min-height:38px;font-size:18px;cursor:pointer;flex-shrink:0}
@media(max-width:620px){.contact-editor-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:14px}.ce-header{padding:14px}.ce-body{padding:12px}.ce-section{padding:12px}.ce-grid,.ce-name{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.ce-actions{padding:12px}.ce-actions button{flex:1;min-width:0!important}.ce-field{font-size:11px}.ce-field input,.ce-field select{font-size:14px}}
@media(max-width:390px){.ce-grid,.ce-name{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.contact-editor-dialog *{transition:none!important;animation:none!important}}
