#modal:has(.ap-profile){width:540px;max-width:calc(100% - 24px);padding:30px 22px 20px;max-height:90dvh;overflow:auto;background:linear-gradient(125deg,#edf8ff,#fafbff 46%,#f2eeff);border:1px solid #d6def6;border-radius:20px}
.ap-profile{color:#162342;font-family:inherit}
.ap-hidden-title{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.ap-profile .ap-profile-head{position:static;display:flex;align-items:center;gap:18px;background:none;border:0;padding:0 12px;margin:0 0 24px;box-shadow:none}
.ap-profile .ap-portrait{position:relative;flex:none;width:66px;height:66px;display:grid;place-items:center;padding:0;border:3px solid #20dae5;border-radius:50%;background:linear-gradient(125deg,#bc39de,#8a28ba);color:white;font-family:inherit;line-height:1;font-size:28px;font-weight:700;box-shadow:0 2px 9px #614db430}
.ap-portrait img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.ap-portrait span{position:absolute;right:-3px;bottom:-2px;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:white;color:#253756;box-shadow:0 1px 6px #36477844}
.ap-profile svg{width:19px;height:19px;flex:none}.ap-portrait span svg,.ap-contact svg{width:15px;height:15px}
.ap-contact{border-left:1px solid #ccd7e9;padding-left:18px;min-width:0;overflow-wrap:anywhere;display:grid;gap:5px}.ap-contact strong{font-size:17px}.ap-contact small{display:flex;align-items:center;gap:7px;color:#374b69;font-size:13px}.ap-contact b{justify-self:start;background:#d2f9e2;color:#086339;border-radius:20px;font-size:12px;padding:3px 10px}
.ap-options,.ap-profile .ap-profile-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.ap-options button{display:flex;align-items:center;gap:9px;text-align:left;background:linear-gradient(155deg,#fff,#eff4ff);border:1px solid #c9d9ef;border-radius:12px;padding:8px;color:#142441;min-height:46px;font:inherit;font-size:13px;font-weight:700;line-height:1.2;box-shadow:0 2px 5px #43588817}
.ap-options i{display:grid;place-items:center;background:#dbf9e4;color:#099453;width:32px;height:32px;flex:none;border-radius:9px}.ap-options button:nth-child(2) i{background:#ffe3ed;color:#cb245c}.ap-options button:nth-child(3) i{background:#dbf2ff;color:#0575ba}.ap-options button:nth-child(4) i{background:#f1dfff;color:#8428b4}.ap-options button span{margin-left:auto;color:#667ba2}
.ap-profile .ap-profile-actions{position:static;margin:22px 0 0;padding:0;background:transparent;border:0}
.ap-profile-actions button{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 5px;min-height:44px;border:0;border-radius:10px;color:white;font:inherit;font-weight:700;font-size:14px;background:linear-gradient(#0c9852,#08763d)}.ap-profile-actions #logout{background:linear-gradient(#e92961,#bd104a)}
.ap-profile button:focus-visible{outline:3px solid #315fc8;outline-offset:2px}.ap-views{padding:0;list-style:none}.ap-views li{display:grid;padding:8px 0;border-bottom:1px solid #dee4ed}
@media(max-width:420px){#modal:has(.ap-profile){padding:27px 10px 14px}.ap-profile .ap-profile-head{gap:12px;padding:0 5px}.ap-contact{padding-left:12px}.ap-options button{font-size:12px;gap:5px}.ap-options,.ap-profile .ap-profile-actions{gap:6px}.ap-profile-actions button{font-size:13px}}

.ap-options button[data-option="edit"] i{background:#d9efff;color:#0879bd}

#modal:has(.ap-edit-name){box-sizing:border-box;width:510px;max-width:calc(100% - 24px);padding:22px clamp(16px,5vw,32px) 20px;border-radius:26px;background:#f9fafd;color:#102940}
.ap-edit-name{display:grid;gap:10px;font-family:inherit}
.ap-edit-name #modal-title{display:flex;align-items:center;gap:15px;margin:0 28px 10px 0;font-size:clamp(23px,5vw,30px);color:#102940;text-align:left}
.ap-edit-name h2 span{display:grid;place-items:center;width:46px;height:46px;background:#d8ecff;border-radius:12px;color:#087cce}
.ap-edit-name svg{width:24px;height:24px}
.ap-edit-name label{font-weight:700;color:#102940}
.ap-name-field{position:relative;display:block}
.ap-name-field svg{position:absolute;top:50%;left:16px;transform:translateY(-50%);color:#7e8d9c;pointer-events:none}
.ap-edit-name .ap-name-field input{box-sizing:border-box;width:100%;height:50px;padding:10px 14px 10px 54px;border:2px solid #c3ced8;border-radius:11px;background:white;color:#152941;font:inherit;font-weight:650}
.ap-name-field input:focus-visible{outline:2px solid #468ac2;outline-offset:1px}
.ap-save-status:not(:empty){display:flex;align-items:center;gap:10px;padding:8px 15px;border-radius:10px;background:#dcf4e5;color:#155c25;font-weight:700;font-size:16px;line-height:1.3}
.ap-save-status:not(:empty):not(.is-error)::before{content:"✓";display:grid;place-items:center;flex:none;width:24px;height:24px;color:white;background:#116424;border-radius:50%}
.ap-save-status:empty{display:none}
.ap-save-status.is-error:not(:empty){background:#ffedef;color:#90233a}
.ap-edit-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:2px}
.ap-edit-actions .button{width:min(37%,164px);min-width:0;min-height:46px;border:0;border-radius:12px;font-size:16px;background:#0085ea;color:white;box-shadow:none}
.ap-edit-actions .button.outline{background:#e9edf3;color:#102940}
