.profile-avatar-editor{display:flex;align-items:center;gap:20px;min-width:0;padding:20px;border:1px solid #dce6f4;border-radius:16px;background:linear-gradient(120deg,#f7faff,#fff);box-shadow:0 8px 24px rgba(31,73,130,.05)}
.profile-avatar-current{display:grid;place-items:center;flex:0 0 84px;width:84px;height:84px;overflow:hidden;border:3px solid #fff;border-radius:50%;background:#eaf2ff;color:#245b9d;font-size:1.6rem;font-weight:800;box-shadow:0 0 0 1px #d7e5ff,0 7px 20px rgba(31,73,130,.12)}
.profile-avatar-current img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.profile-avatar-copy{display:grid;gap:6px;min-width:0;flex:1}
.profile-avatar-status{margin:2px 0 0;padding:9px 12px;border:1px solid #d7e5fa;border-radius:9px;background:#f4f8ff;color:#385780;font-size:.8rem;line-height:1.5}
.profile-avatar-status[hidden]{display:none}
.profile-avatar-copy strong{color:#19365f;font-size:.98rem}
.profile-avatar-copy p,.profile-avatar-copy small{margin:0;color:#71839d;font-size:.8rem;line-height:1.5}
.profile-avatar-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:5px}
.profile-avatar-choose,.profile-avatar-submit,.profile-avatar-modal button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 15px;border:1px solid #cbd9eb;border-radius:10px;background:#fff;color:#294363;font-family:inherit;font-size:.84rem;font-weight:700;line-height:1.2;cursor:pointer;text-decoration:none;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,color .16s ease}
.profile-avatar-choose:hover,.profile-avatar-modal .is-secondary:hover{background:#f2f7ff;border-color:#9bb9e7}
.profile-avatar-submit,.profile-avatar-modal .is-primary{border-color:#2563eb;background:#2563eb;color:#fff;box-shadow:0 6px 15px rgba(37,99,235,.16)}
.profile-avatar-submit:hover,.profile-avatar-modal .is-primary:hover{background:#1e54cf}
.profile-avatar-submit[hidden]{display:none}
.profile-avatar-submit:disabled{opacity:.7;cursor:wait}
.profile-avatar-file{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.profile-avatar-dialog{width:min(94vw,560px);max-width:560px;max-height:min(90vh,760px);padding:0;overflow:auto;border:1px solid #dce6f4;border-radius:20px;background:#fff;color:#19365f;box-shadow:0 24px 80px rgba(13,34,67,.28)}
.profile-avatar-dialog::backdrop{background:rgba(19,37,66,.58);backdrop-filter:blur(4px)}
.profile-avatar-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:22px 24px;border-bottom:1px solid #e7eef8}
.profile-avatar-modal-head .eyebrow{margin:0 0 6px;color:#2563eb;font-size:.68rem;font-weight:800;letter-spacing:.1em}
.profile-avatar-modal-head h2{margin:0;color:#142d52;font-size:1.25rem;line-height:1.25}
.profile-avatar-modal-head p{margin:6px 0 0;color:#71839d;font-size:.82rem;line-height:1.45}
.profile-avatar-modal-close{flex:0 0 38px;width:38px;min-height:38px!important;padding:0!important;border-radius:50%!important;font-size:1.25rem!important}
.profile-avatar-crop-area{display:grid;place-items:center;padding:24px;background:#f4f7fc}
.profile-avatar-canvas-frame{position:relative;width:min(68vw,320px);aspect-ratio:1;overflow:hidden;border-radius:50%;background:#fff;box-shadow:0 0 0 1px #d5e1f1,0 12px 30px rgba(31,67,104,.12);touch-action:none}
.profile-avatar-canvas-frame::after{position:absolute;inset:0;border:1px solid rgba(255,255,255,.75);border-radius:50%;content:"";pointer-events:none}
.profile-avatar-canvas-frame canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none}
.profile-avatar-canvas-frame canvas:active{cursor:grabbing}
.profile-avatar-zoom{display:grid;gap:8px;width:min(100%,360px);margin:0 auto;padding:0 24px 20px;color:#526b8b;font-size:.8rem;font-weight:700}
.profile-avatar-zoom input{width:100%;accent-color:#2563eb}
.profile-avatar-modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:16px 22px;border-top:1px solid #e7eef8}
.profile-avatar-modal-actions button{min-width:112px}
.admin-avatar-photo{display:block;width:32px;height:32px;flex:none;border-radius:50%;object-fit:cover;box-shadow:0 0 0 1px #dbe7f6}
.admin-mobile-account-head{display:flex;align-items:center;gap:11px;padding:0 8px 9px}
.admin-mobile-account-head .admin-avatar-photo{width:38px;height:38px}
.admin-mobile-account-head>span:last-child{display:grid;gap:2px;min-width:0}
.admin-mobile-account-head strong,.admin-mobile-account-head small{overflow-wrap:anywhere}
.admin-mobile-account-head strong{color:#263a5d;font-size:.9rem}
.admin-mobile-account-head small{color:#73849a;font-size:.75rem}
.webapp-account-link{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:3px 9px 3px 4px;border:1px solid #dce6f2;border-radius:999px;background:#fff;color:#334b68!important;font-size:.86rem;font-weight:700;text-decoration:none}
.webapp-account-link:hover,.webapp-account-link[aria-current=page]{border-color:#aec8ef;background:#f4f8ff;color:#1d4ed8!important}
.webapp-account-avatar{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;overflow:hidden;border-radius:50%;background:#edf4ff;color:#245b9d;font-size:.72rem;font-weight:800}
.webapp-account-avatar img{width:100%;height:100%;object-fit:cover}
.webapp-profile-avatar-panel{display:grid;gap:15px}
@media(max-width:640px){.profile-avatar-editor{align-items:flex-start;gap:14px;padding:16px}.profile-avatar-current{flex-basis:66px;width:66px;height:66px;font-size:1.25rem}.profile-avatar-actions{align-items:stretch;flex-direction:column}.profile-avatar-choose,.profile-avatar-submit{width:100%}.profile-avatar-modal-head{padding:18px}.profile-avatar-modal-actions{flex-direction:column-reverse;padding:14px}.profile-avatar-modal-actions button{width:100%}.webapp-account-link{gap:5px;padding-right:7px;font-size:.78rem}.webapp-account-avatar{flex-basis:26px;width:26px;height:26px}}
@media(prefers-reduced-motion:reduce){.profile-avatar-choose,.profile-avatar-submit,.profile-avatar-modal button{transition:none}}
.profile-avatar-choose:focus-visible,.profile-avatar-submit:focus-visible,.profile-avatar-modal button:focus-visible,.profile-avatar-zoom input:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
.profile-avatar-modal-close{display:grid!important;place-items:center;line-height:1!important}
@media(max-width:380px){.profile-avatar-editor{gap:12px;padding:14px}.profile-avatar-current{flex-basis:58px;width:58px;height:58px}.profile-avatar-modal-head h2{font-size:1.1rem}.profile-avatar-crop-area{padding:18px 12px}.profile-avatar-canvas-frame{width:min(72vw,280px)}.profile-avatar-zoom{padding-right:18px;padding-left:18px}}
