.avatar-image { display:inline-block; padding:0; object-fit:cover; vertical-align:middle; background:#18223a; }
.profile-avatar-picker { min-width:0; margin:20px 0; padding:0; border:0; }
.profile-avatar-picker>legend { padding:0; color:#c2c8dc; font-size:13px; }
.profile-avatar-current { display:flex; align-items:center; gap:15px; margin:13px 0 16px; }
.profile-avatar-current>.avatar { flex:0 0 auto; width:68px; height:68px; border-radius:50%; font-size:24px; }
.profile-avatar-current>span:last-child { color:#8f9bb8; font-size:12px; }
.profile-avatar-options { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; max-width:370px; }
.profile-avatar-options>button { display:block; min-width:0; min-height:0; width:100%; aspect-ratio:1; padding:4px; border:2px solid #b7c0fa24; border-radius:50%; background:#141d32; overflow:hidden; }
.profile-avatar-options>button:hover { border-color:#c6abe77a; }
.profile-avatar-options>button[aria-pressed="true"] { border-color:#ff9bc5; background:#ff8db12b; box-shadow:0 0 0 2px #ff8db11c; }
.profile-avatar-options img { display:block; width:100%; height:100%; border-radius:50%; object-fit:cover; }
.profile-avatar-picker>label { margin-top:18px; color:#93a2c1; font-size:11px; }
.profile-avatar-picker>input[type="file"] { font-size:11px; }
.community-comment-author>a { display:inline-flex; align-items:center; gap:7px; }
.community-comment-author>a>.avatar { width:25px; height:25px; border-radius:50%; font-size:10px; }
@media(max-width:380px) { .profile-avatar-options { gap:7px; } .profile-avatar-current { gap:11px; } .profile-avatar-current>span:last-child { font-size:11px; } }

/* Keep all ten choices visible in a shorter profile editor. */
.profile-avatar-picker { margin:14px 0 12px; }
.profile-avatar-current { gap:11px; margin:9px 0 12px; }
.profile-avatar-current>.avatar { width:52px; height:52px; font-size:21px; }
.profile-avatar-options { grid-template-columns:repeat(10,minmax(0,1fr)); gap:7px; max-width:520px; }
.profile-avatar-options>button { min-height:40px; padding:3px; }
.profile-avatar-picker>label { margin-top:12px; margin-bottom:5px; line-height:1.6; }
.profile-avatar-picker>input[type="file"] { min-height:38px; padding:7px 9px; }
.profile-avatar-picker>input[type="file"]::file-selector-button { min-height:28px; margin-right:9px; padding:4px 9px; border:1px solid #b7c0fa32; border-radius:6px; background:#1b2540; color:#c6c8e3; font:inherit; cursor:pointer; }
@media(max-width:1100px) {
  .profile-avatar-options { grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; max-width:290px; }
}
@media(max-width:600px) {
  .profile-avatar-picker { margin:12px 0 10px; }
  .profile-avatar-current { gap:10px; margin:8px 0 10px; }
  .profile-avatar-current>.avatar { width:44px; height:44px; font-size:18px; }
  .profile-avatar-options { gap:7px; max-width:270px; }
  .profile-avatar-picker>label { margin-top:10px; }
}
