/* Private self-profile controls; never display another user's uploaded avatar. */
.wg-profile-editor{display:grid;gap:16px}
.wg-profile-media{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.wg-profile-avatar,.wg-profile-sidebar-avatar,.wg-sender-avatar-user{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden;border:1.5px solid rgba(255,72,107,.62);background:linear-gradient(145deg,#720013,#170609);color:#fff;box-shadow:0 0 16px rgba(255,0,51,.16);font-weight:900;text-align:center}
.wg-profile-avatar{width:76px;height:76px;border-radius:23px;font-size:1.8rem}
.wg-profile-sidebar-avatar{width:40px;height:40px;border-radius:13px;font-size:1.1rem;margin-inline-end:9px}
.wg-sender-avatar-user{width:27px;height:27px;border-radius:9px;font-size:.72rem;margin-inline-end:5px}
.wg-profile-avatar img,.wg-profile-sidebar-avatar img,.wg-sender-avatar-user img{width:100%;height:100%;display:block;object-fit:cover;border:0;border-radius:inherit}
.wg-profile-avatar img[hidden],.wg-profile-sidebar-avatar img[hidden],.wg-sender-avatar-user img[hidden]{display:none!important}
.wg-profile-avatar:has(img:not([hidden]))>.wg-avatar-letter,.wg-profile-sidebar-avatar:has(img:not([hidden]))>.wg-avatar-letter,.wg-sender-avatar-user:has(img:not([hidden]))>.wg-avatar-letter{display:none!important}
.wg-profile-help{font-size:.77rem;line-height:1.7;color:#bfaeb5;margin:5px 0 0}
.wg-profile-form{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap}
.wg-profile-field{display:grid;gap:6px;flex:1 1 215px;font-size:.84rem;color:#f4e8ed;font-weight:800}
.wg-profile-field input:not([type=file]){width:100%;min-height:44px;border:1px solid rgba(255,90,119,.38);border-radius:10px;padding:10px 12px;color:#fff;background:#17070d;font:inherit}
.wg-profile-field input:focus-visible{outline:2px solid #ff5d7c;outline-offset:2px}
.wg-profile-action{min-height:43px;padding:9px 15px;border:1px solid rgba(255,79,114,.54);border-radius:10px;background:linear-gradient(135deg,#d90035,#75001d);color:#fff;font-family:inherit;font-size:.84rem;font-weight:900;cursor:pointer}
.wg-profile-action:disabled{opacity:.55;cursor:wait}
.wg-profile-upload-input{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.wg-profile-upload-label{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:9px 15px;border:1px solid rgba(255,79,114,.54);border-radius:10px;background:rgba(204,0,41,.13);color:#fff;font-weight:900;cursor:pointer}
.wg-profile-id{display:inline-block;direction:ltr;font:900 1rem ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.06em;color:#ffd3dc;user-select:all}
.wg-profile-status{min-height:1.6em;color:#e1cdd5;font-size:.84rem;line-height:1.7}
.wg-profile-status.ok{color:#91e8b6}.wg-profile-status.error{color:#ffabb9}
@media(max-width:520px){.wg-profile-media{align-items:flex-start}.wg-profile-avatar{width:64px;height:64px;border-radius:18px}.wg-profile-form{display:grid;grid-template-columns:1fr}.wg-profile-action{width:100%}}
