.profile-modal{width:480px;max-width:100%;border-radius:18px;background:#fff}
.profile-modal .modal-header{padding:23px 24px 17px;align-items:center;border-bottom:1px solid #edf1f7}
.profile-modal .modal-header h2{font-size:21px;line-height:1.5;font-weight:650;color:#294566;letter-spacing:-.035em}
.profile-modal .modal-header>.icon-button{width:44px;height:44px;min-width:44px;min-height:44px;color:#7388a4}
.profile-modal .modal-content{padding:22px 24px;overflow-y:auto;min-height:0}
.profile-identity{display:flex;align-items:center;gap:14px;margin-bottom:20px;min-width:0}
.profile-initials{display:grid;place-items:center;width:52px;height:52px;flex:none;border-radius:17px;background:#edf3ff;color:#6285c4;font-size:19px;font-weight:600;line-height:1.3}
.profile-identity>div{min-width:0}
.profile-identity strong{display:block;font-size:18px;font-weight:600;line-height:1.5;color:#365274;overflow-wrap:anywhere}
.profile-identity p{font-size:12px;color:#8293ab;line-height:1.6;margin-top:4px}
.profile-intro{font-size:14px;line-height:1.8;color:#72859e;margin:0 0 23px;word-break:keep-all}
.profile-field{display:flex;flex-direction:column;gap:8px;margin-bottom:19px;min-width:0}
.profile-field label,.profile-field-label{font-size:14px;line-height:1.5;font-weight:550;color:#58708f}
.profile-field label span,.profile-field-label span{font-size:12px;font-weight:400;color:#91a0b6;margin-left:6px}
.profile-field input{display:block;width:100%;min-width:0;min-height:48px;padding:11px 13px;border:1px solid #dfe7f3;border-radius:9px;background:#fff;color:#375273;font-size:16px;line-height:1.5;box-sizing:border-box}
.profile-field-hint{font-size:12px;line-height:1.6;color:#64717e}
.profile-field input::placeholder{color:#a0aec1}
.profile-field input:disabled{background:#f8fafd;color:#8292a9;opacity:1;-webkit-text-fill-color:#8292a9}
.profile-field input:focus-visible{outline:3px solid #dce8ff;outline-offset:1px;border-color:#8daff2}
.profile-email{background:#f5f8fc;color:#6f829f;border:1px solid #edf1f7;border-radius:9px;padding:12px 13px;margin:0;font-size:14px;line-height:1.7;overflow-wrap:anywhere;word-break:break-word}
.profile-error{padding:11px 13px;margin:5px 0 12px;border-radius:8px;background:#fff4f5;color:#ad6571;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.profile-error[hidden],.profile-reload[hidden]{display:none}
.profile-reload{padding:0 0 12px}
.profile-reload p{font-size:14px;color:#7d8da4;line-height:1.75;margin:0 0 9px}
.profile-reload .btn{min-height:44px;font-size:14px;white-space:normal;text-align:left}
.profile-status{font-size:14px;line-height:1.7;color:#557daa;margin:0 0 14px;overflow-wrap:anywhere}
.profile-status:empty{display:none}
.profile-loading{display:flex;align-items:center;gap:9px;font-size:14px;line-height:1.7;color:#718bb2;margin:0 0 17px}
.profile-loading>span{width:15px;height:15px;flex:none;border:2px solid #e3ebf9;border-top-color:#7e9fdf;border-radius:50%;animation:profileSpin .8s linear infinite}
.profile-session{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:19px;margin-top:22px;border-top:1px solid #e9eef6}
.profile-session>div{min-width:0}
.profile-session strong{display:block;font-size:14px;font-weight:550;color:#59718f;line-height:1.6}
.profile-session p{font-size:12px;color:#8a9ab1;line-height:1.6;margin-top:3px;word-break:keep-all}
.profile-logout{min-height:44px;font-size:14px;color:#a2707a;border-color:#eee0e4;background:#fff;white-space:nowrap;flex:none;text-decoration:none}
.profile-logout:hover{background:#fff7f8;border-color:#e7cbd2;color:#955c69}
.profile-logout[aria-disabled=true]{opacity:.5;pointer-events:none}
.profile-modal .modal-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 24px;border-top:1px solid #edf1f7;background:#fff}
.profile-footer-secondary{display:flex;align-items:center;gap:7px;min-width:0}
.profile-modal .modal-footer .btn{font-size:14px;min-height:44px;padding:10px 14px;line-height:1.5;white-space:nowrap}
.profile-modal .profile-reset{border-color:transparent;background:transparent;color:#7c8fa9}
.profile-modal .profile-save{background:#5d87ff;border-color:#5d87ff;color:#fff}
.profile-modal .profile-save:hover{background:#527cf0;border-color:#527cf0}
.profile-modal button:disabled{opacity:.5;cursor:not-allowed}
.profile-modal .btn:focus-visible,.profile-modal .icon-button:focus-visible{outline:3px solid #cadcff;outline-offset:2px}
@keyframes profileSpin{to{transform:rotate(360deg)}}
@media(max-width:600px){
 .profile-overlay{align-items:flex-end;padding:12px}
 .profile-modal{width:100%;max-height:calc(var(--app-viewport-height,100dvh) - 24px);border-radius:20px;display:flex;flex-direction:column}
 .profile-modal .modal-header{padding:15px 19px 12px;flex:none}
 .profile-modal .modal-header h2{font-size:20px}
 .profile-modal .modal-content{padding:18px 20px;flex:1}
 .profile-identity{gap:12px;margin-bottom:17px}
 .profile-initials{width:48px;height:48px;border-radius:15px;font-size:18px}
 .profile-intro{margin-bottom:20px;font-size:14px}
 .profile-field{margin-bottom:17px}
 .profile-field input{font-size:16px;min-height:48px}
 .profile-session{margin-top:20px;padding-top:17px;gap:12px}
 .profile-modal .modal-footer{padding:13px 16px;gap:8px;flex:none;flex-wrap:nowrap}
 .profile-footer-secondary{gap:3px}
 .profile-modal .modal-footer .btn{padding:10px 11px}
}
@media(max-width:350px){.profile-modal .modal-footer{flex-wrap:wrap}.profile-footer-secondary{width:100%;justify-content:space-between}.profile-modal .profile-save{width:100%}}
@media(prefers-reduced-motion:reduce){.profile-loading>span{animation:none}}
