/* Local emoji catalogue and profile avatar controls. */
.avatar>img{width:100%;height:100%;border-radius:inherit;object-fit:cover;display:block}
.composer{position:relative}
.emoji-picker{position:absolute;left:20px;bottom:calc(100% - 4px);z-index:12;display:flex;flex-direction:column;flex-wrap:nowrap;gap:0;width:min(450px,calc(100% - 40px));max-width:none;height:440px;max-height:calc(var(--vv-height,100dvh) - 220px);min-height:150px;margin:0;padding:0;overflow:hidden;border:1px solid #e5e5e5;border-radius:15px;background:#ffffff;box-shadow:0 12px 40px #44444420}
.emoji-head{position:absolute;right:8px;top:6px;display:flex;align-items:center;gap:6px;padding:10px 10px 7px;flex:none}
.emoji-search{min-width:0;width:100%;padding:8px 10px;border:1px solid #eaeaea;border-radius:8px;background:#f9f9f9;font:inherit;font-size:12px;color:#555555;outline:none}
.emoji-search:focus{border-color:#b2b2b2}
.emoji-picker .emoji-head>button{width:28px;height:30px;font:22px/1 sans-serif;color:#969696;flex:none}
.emoji-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;flex:1;padding:6px 10px 10px;touch-action:pan-y}
.emoji-section h3{margin:11px 4px 7px;font-size:11px;font-weight:400;color:#9c9c9c}
.emoji-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:2px}
.emoji-picker .emoji-choice{font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif;font-size:24px;width:100%;height:38px;padding:6px;line-height:1.2;display:flex;align-items:center;justify-content:center}
.emoji-picker button:focus-visible{outline:2px solid #909090;outline-offset:-2px;background:#f2f2f2}
.emoji-empty{font-size:12px;color:#9c9c9c;line-height:1.8;padding:12px 5px}
.emoji-tabs{display:flex;overflow-x:auto;gap:2px;flex:none;align-items:center;padding:6px 72px 6px 8px;background:#f9f9f9;border-bottom:1px solid #ececec;scrollbar-width:none}
.emoji-picker .emoji-tabs>button{width:40px;height:30px;flex:none;font-size:19px;padding:0;color:#878787}
.emoji-tabs>button[aria-selected=true]{background:#ebebeb;color:#686868}
.profile-avatar-editor{margin-bottom:24px}
.profile-avatar-editor h3{font-size:12px;font-weight:400;color:#7f7f7f;margin:0 0 12px}
.profile-avatar-summary{display:flex;gap:20px;align-items:center}
.profile-avatar-summary>.avatar{width:80px;height:80px;border-radius:24px;font-size:29px}
.profile-avatar-summary>div{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.profile-avatar-summary .text-button{border:0;background:none;color:#9f9f9f;font-size:12px;padding:8px 0}
.avatar-crop{margin:12px 0;padding:12px;border:1px solid #e6e6e6;border-radius:12px;background:#fcfcfc}
.avatar-crop canvas{display:block;width:min(100%,240px);height:auto;margin:0 auto;border-radius:12px;touch-action:none;cursor:grab;box-shadow:0 0 0 1px #e2e2e2}
.avatar-crop canvas:active{cursor:grabbing}
.avatar-range{display:flex;align-items:center;gap:14px;font-size:12px;color:#7f7f7f;margin:12px 0}
.avatar-range>input{flex:1;min-width:0;accent-color:#929292;cursor:pointer}
@media(max-width:759px), (max-height:500px) and (pointer:coarse){
 .emoji-picker{left:8px;width:min(450px,calc(100% - 16px));height:400px;max-height:calc(var(--vv-height,100dvh) - 205px)}
 .emoji-search{font-size:16px;padding:7px 8px}
 .emoji-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:2px}
 .profile-avatar-summary{gap:14px}
 .avatar-crop canvas{width:min(100%,220px)}
}

.emoji-head.is-searching{position:static;padding-bottom:0}
.emoji-head:not(.is-searching){padding:0;background:#ffffff;border-radius:6px}
.emoji-head:not(.is-searching)>button{font-size:18px;width:23px;height:23px}
.emoji-section h3{margin:16px 8px 12px;font-size:11px;color:#989898}
.emoji-recents{padding-bottom:0}
.emoji-recents .emoji-empty{margin:0;padding:0 8px 3px;font-size:11px}
.emoji-picker .emoji-tabs svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1;stroke-linecap:round;stroke-linejoin:round}
.emoji-choice>img.chat-emoji{display:block;width:24px;height:24px;max-width:none;object-fit:contain}
.message-text img.chat-emoji{display:inline-block!important;width:24px!important;height:24px!important;max-width:none!important;max-height:none!important;margin:0 2px!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;object-fit:contain;vertical-align:-6px;cursor:default!important}
.conversation-copy small img.chat-emoji{display:inline-block;width:16px;height:16px;vertical-align:-3px;margin:0 1px;object-fit:contain}
.avatar-fit-actions{margin:12px 0;flex-wrap:wrap;gap:8px}.avatar-fit-actions button[aria-pressed=true]{border-color:#727d8e;background:#edf0f5;color:#343b47}.avatar-zoom-label{white-space:nowrap}.avatar-zoom-value{min-width:48px;text-align:right;font-variant-numeric:tabular-nums}.profile-avatar-preview>canvas{display:block;border-radius:inherit}.sound-actions{flex-wrap:wrap}.sound-play-status{min-height:20px}
