/* Business content only: C02 owns dialog geometry, C01 actions, C08 zoom. */
.profile-avatar-action{display:grid;justify-items:center;gap:4px}
.profile-avatar-action #changeAvatar{border:0;background:none;color:var(--gold);min-height:44px;padding:0 8px;font:600 14px/1.4 'Noto Serif SC','Songti SC',serif;cursor:pointer}
.avatar-editor{display:grid;grid-template-columns:minmax(180px,1fr) minmax(240px,1fr);gap:24px;align-items:start}
.avatar-editor__preview{display:grid;justify-items:center;gap:8px;min-width:0}
.avatar-editor canvas{display:block;width:192px;height:192px;max-width:100%;border-radius:50%;border:1px solid var(--gold,#d8ba78);background:#171923;touch-action:none;outline-offset:4px}
.avatar-editor canvas[data-editable="true"]{cursor:grab}
.avatar-editor canvas:active{cursor:grabbing}
.avatar-editor p{margin:0;color:#c6c0b8;font:400 11px/1.5 'PingFang SC',sans-serif}
.avatar-editor__preview wqxt-range-control{width:100%}
.avatar-editor__choices{display:grid;gap:12px;min-width:0}
.avatar-editor__choices h3{margin:0;color:#f2eee7;font:600 14px/1.4 'Noto Serif SC','Songti SC',serif}
.avatar-editor__grid{display:grid;grid-template-columns:repeat(3,minmax(64px,1fr));gap:8px}
.avatar-editor__grid button{display:grid;justify-items:center;gap:4px;min-width:44px;min-height:44px;padding:8px 4px;border:1px solid transparent;border-radius:6px;background:transparent;color:#eee8dd;font:400 12px/1.4 'Noto Serif SC','Songti SC',serif;cursor:pointer}
.avatar-editor__grid button[aria-pressed="true"]{border-color:#d8ba78;background:#d8ba781a}
.avatar-editor__grid img{width:48px;height:48px;object-fit:cover;border-radius:50%}
.avatar-editor__reset{justify-self:start;min-height:44px;border:0;background:transparent;color:#d8ba78;font:600 14px/1.4 'Noto Serif SC','Songti SC',serif;cursor:pointer;padding:0 8px}
.avatar-editor #avatarError{color:#f2a7a1}
.avatar-editor :is(button,canvas):focus-visible,.profile-avatar-action button:focus-visible{outline:2px solid #d8ba78;outline-offset:2px}
@media(max-width:1000px),(max-height:560px){
 .profile-avatar-action #changeAvatar{font-size:13px}
 .avatar-editor{grid-template-columns:minmax(160px,.8fr) minmax(240px,1.2fr);gap:16px}
 .avatar-editor canvas{width:112px;height:112px}
 .avatar-editor__grid img{width:44px;height:44px}
 .avatar-editor__grid button{padding:4px}
 .avatar-editor__choices{gap:8px}
 .avatar-editor__choices h3,.avatar-editor__reset{font-size:13px}
 .avatar-editor p{font-size:10px}
}

.avatar-editor__tools{display:grid;grid-template-columns:minmax(136px,1fr) auto;gap:8px;align-items:center}
.avatar-editor__reset{justify-self:stretch;padding:0 4px;white-space:nowrap}
@media(max-width:1000px),(max-height:560px){
 .avatar-editor__choices h3{display:none}
}

@media(max-width:1000px),(max-height:560px){
 .avatar-editor__grid button{padding:0;gap:0}
 .avatar-editor__preview{gap:4px}
}
/* Portrait builtins use the same circular bounds as uploaded square crops. */
.home--psd .profile-avatar{overflow:hidden}
.home--psd .profile-avatar>img{position:absolute;inset:2px;width:calc(100% - 4px);height:calc(100% - 4px);min-width:0;min-height:0;object-fit:cover;object-position:50% 25%}
