.avatar.avatar-photo{position:relative;overflow:hidden;background-color:var(--theme-surface-muted,#e1e7e0);background-repeat:no-repeat;flex-shrink:0;box-shadow:inset 0 0 0 1px #0000000b}
.avatar-photo>img{display:block;width:100%;height:100%;max-width:none;object-fit:cover}
.avatar.avatar-group{border-radius:30%}
.chat-workspace .thread>.avatar{width:46px;height:46px}
.chat-workspace .conversation-header>.avatar{width:44px;height:44px}
.chat-message .chat-sender{display:flex;align-items:center;gap:8px}
.chat-sender .avatar.sender-avatar{width:24px;height:24px;font-size:var(--text-caption)}
.header-avatar{border-radius:50%;display:grid;place-items:center;min-width:44px;min-height:44px}
.mobile-rail-profile .avatar{width:100%;height:100%}
.profile-photo-edit{margin:16px auto 0;min-height:42px}
.avatar-preview-note{display:block;color:var(--muted);font-size:var(--text-small);margin-top:10px}
.avatar-editor{display:flex;flex-direction:column;gap:20px}
.avatar-editor-heading{text-align:center}
.avatar-editor-heading>strong{font-size:1.1333rem}
.avatar-editor-heading>p{font-size:var(--text-small);line-height:1.65;color:var(--muted);margin-top:8px}
.avatar-current{display:flex;justify-content:center;padding:14px}
.avatar.avatar-profile-preview{width:160px;height:160px;font-size:2.6667rem;box-shadow:0 0 0 6px var(--theme-surface-muted,#f0f4ef)}
.avatar-crop{text-align:center}
.avatar-crop>canvas{display:block;width:256px;height:256px;max-width:100%;aspect-ratio:1;margin:auto;border-radius:50%;box-shadow:0 0 0 6px var(--theme-surface-muted,#f0f4ef);cursor:grab;touch-action:none}
.avatar-crop>canvas:active{cursor:grabbing}
.avatar-crop>p{margin:18px 0 0;font-size:var(--text-small);color:var(--muted)}
.avatar-adjustments{padding:15px 18px;border:1px solid var(--line);border-radius:14px;background:var(--theme-surface-muted,#f7f9f5)}
.avatar-adjustments label{display:block;font-size:var(--text-small);color:var(--theme-text,#344b3f);font-weight:550}
.avatar-adjustments output{float:right;color:var(--muted);font-variant-numeric:tabular-nums}
.avatar-adjustments input[type=range]{display:block;width:100%;height:30px;padding:0;accent-color:var(--green);cursor:pointer}
.avatar-adjustments input[type=range]:disabled{opacity:.4;cursor:default}
.avatar-position{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:7px}
.avatar-adjustments .text-button{font-size:var(--text-small);min-height:34px;margin-top:3px}
.avatar-select{display:flex;align-items:center;flex-direction:column;gap:9px}
.avatar-select>small{color:var(--muted);font-size:var(--text-small)}
.avatar-editor .form-error:empty,.avatar-save-status:empty{display:none}
.avatar-save-status{text-align:center;color:var(--muted);font-size:var(--text-small)}
.avatar-editor .modal-footer{margin-top:0;flex-wrap:wrap;gap:10px}
.avatar-editor .avatar-remove{margin-right:auto;font-size:var(--text-small);min-height:42px}
.avatar-editor [hidden]{display:none!important}
@media(max-width:540px){.avatar-crop>canvas{width:216px;height:216px}.avatar-editor{gap:16px}.avatar-adjustments{padding:12px}.avatar-editor .modal-footer{justify-content:center}.avatar-editor .avatar-remove{flex-basis:100%;justify-content:center;margin-right:0}}
