.profile-avatar{overflow:hidden;isolation:isolate;position:relative;flex:none}
.profile-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.avatar-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.avatar-choices .avatar-choice{display:flex;align-items:center;flex-direction:column;gap:7px;padding:9px 5px;border:1px solid transparent;border-radius:13px;background:#a9cfff06;color:#b9cfe9;cursor:pointer;min-width:0}
.avatar-choices .avatar-choice-preview{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:linear-gradient(145deg,#bdd5f22e,#19334e);box-shadow:inset 0 0 0 1px #b8d8ff44;font-size:22px;color:#dceeff}
.avatar-choices .avatar-choice small{font-size:10px;line-height:1.4;white-space:nowrap}
.avatar-choices .avatar-choice[aria-pressed=true]{border-color:#b4d9ffb3;background:#bedcff18;color:#edf8ff}
.avatar-choices .avatar-choice:hover{background:#b2d5ff20}
.avatar-choices .avatar-choice:focus-visible{outline:2px solid #c9e6ff;outline-offset:2px}
.avatar-choices .avatar-choice:disabled{opacity:.5;cursor:wait}
.avatar-picker-panel{padding:14px 2px;border-bottom:1px solid #c7ddff25;margin-bottom:10px}
.avatar-picker-panel header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;color:#c8ddf7;font-size:12px}
.avatar-picker-panel header button{border:0;padding:2px 7px;font-size:19px}
.friendbook .friendbook-self{padding:0;cursor:pointer;outline-offset:4px}
.friendbook .friendbook-self:hover{box-shadow:0 0 0 2px #c7e5ff77}
.friendbook-avatar-hint{display:block;border:0!important;background:transparent!important;padding:0!important;margin-top:3px;font-size:10px!important;color:#94aed0!important}
.registration-avatar>p{display:flex;justify-content:space-between;gap:12px;color:#d2e3f7;font-size:13px;margin:4px 0 12px}.registration-avatar>p small{color:#91aac8;font-size:11px}
.registration-avatar .avatar-choices{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}
.registration-avatar .avatar-choice-preview{width:52px;height:52px}
@media(max-width:360px){.registration-avatar .avatar-choices{grid-template-columns:repeat(3,minmax(0,1fr));}.avatar-choices .avatar-choice-preview{width:50px;height:50px}}
/* Shared account avatar editor, above the nonmodal friends drawer. */
.avatar-editor{color:#dcecff;background:linear-gradient(145deg,#213654,#0d203c);border:1px solid #a6c7e75e;border-radius:24px;width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 28px);padding:24px;overflow:auto;box-sizing:border-box;box-shadow:0 24px 90px #020b20aa}
.avatar-editor::backdrop{background:#030d20a6;backdrop-filter:blur(5px)}.avatar-editor header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.avatar-editor header small{font-size:11px;letter-spacing:.15em;color:#a2bdd7}.avatar-editor h2{font-size:22px;margin:8px 0 0;font-weight:500}.avatar-editor header>button{border:1px solid #b5d1ef44;border-radius:50%;width:36px;height:36px;font-size:25px;color:#d5e8ff;background:transparent;cursor:pointer}.avatar-editor .avatar-choices{grid-template-columns:repeat(4,minmax(0,1fr))}.avatar-editor footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px}.avatar-editor footer span{font-size:11px;color:#9bb4ce}.avatar-editor [data-avatar-save]{padding:10px 18px;border:0;border-radius:22px;background:#cce5ff;color:#173451;cursor:pointer;white-space:nowrap}.avatar-editor button:disabled{opacity:.55;cursor:wait}.avatar-editor-status{font-size:12px;color:#edc99c;margin:10px 0 0;min-height:18px}.avatar-editor :focus-visible{outline:2px solid #d2eaff;outline-offset:3px}
#fanAccountButton.profile-avatar{width:34px;height:34px;border-radius:50%;padding:0;border:1px solid #c6deff66}.account-avatar-setting{display:flex;align-items:center;gap:15px;margin:10px 0 22px}.account-avatar-setting [data-own-avatar]{width:64px;height:64px;border-radius:50%;border:1px solid #bad6f366;background:#18334e;padding:0;cursor:pointer}.account-avatar-setting>button:last-child{background:none;border:0;color:#c7def4;font:inherit;font-size:14px;cursor:pointer}
.note-reader-avatar #noteReaderAvatar.profile-avatar{position:absolute;inset:17%;width:66%;height:66%;border-radius:50%;z-index:2;transform:none;display:block}.friendbook button.friendbook-self{padding:0;border-radius:50%}.friendbook .friendbook-avatar-hint{font-size:10px}
@media(max-width:380px){.avatar-editor{padding:18px}.avatar-editor .avatar-choice-preview{width:50px;height:50px}.avatar-editor .avatar-choices{gap:4px}.avatar-editor h2{font-size:20px}.avatar-editor footer span{font-size:10px}}

.avatar-preview{text-align:center;margin:0 auto 12px}.avatar-preview>button{display:block;padding:0;margin:auto;border:1px solid #bdd9f348;background:#0d2543;border-radius:18px;overflow:hidden;width:190px;height:190px;cursor:default}.avatar-preview-image{display:block;width:100%;height:100%;object-fit:contain}.avatar-preview p{display:flex;justify-content:center;gap:12px;margin:9px 0 12px;font-size:12px;color:#dbeeff}.avatar-preview small{color:#98b4cf;font-size:11px}.avatar-editor{width:min(520px,calc(100vw - 24px))}.avatar-editor .avatar-choice-preview{width:50px;height:50px}.avatar-editor .avatar-choice{padding:6px 4px;gap:4px}.avatar-editor header{margin-bottom:14px}.avatar-editor footer{position:sticky;bottom:-24px;background:#10213bf5;margin-inline:-24px;padding:15px 24px;margin-bottom:-24px;z-index:1;border-top:1px solid #c3ddff20}.avatar-editor-status{margin-bottom:8px}
.avatar-zoom{width:min(800px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:14px;box-sizing:border-box;background:#0d2039;border:1px solid #bddbff55;border-radius:20px;color:#deeeff;text-align:center;overflow:auto}.avatar-zoom::backdrop{background:#020918dd}.avatar-zoom img{display:block;max-width:100%;width:auto;height:auto;max-height:calc(100dvh - 115px);margin:auto;object-fit:contain;border-radius:12px}.avatar-zoom>button{position:sticky;float:right;top:0;z-index:2;width:38px;height:38px;margin-bottom:-38px;border:1px solid #bed9ff77;border-radius:50%;background:#0d2039db;color:#e7f3ff;font-size:26px;cursor:pointer}.avatar-zoom p{margin:12px 0 2px;font-size:14px}
@media(max-width:380px){.avatar-editor footer{bottom:-18px;margin-inline:-18px;padding:12px 18px;margin-bottom:-18px}.avatar-preview>button{width:165px;height:165px}.avatar-editor .avatar-choice-preview{width:45px;height:45px}}

.avatar-zoom{width:min(94vw,calc(94dvh + 16px));height:94dvh;max-height:94dvh;margin:auto;padding:12px;overflow:hidden}.avatar-zoom[open]{display:flex;flex-direction:column;gap:9px}.avatar-zoom header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;color:#d9ecff;font-size:14px}.avatar-zoom header>div{display:flex;gap:8px;align-items:center}.avatar-zoom header button{border:1px solid #bed9ff55;border-radius:18px;padding:6px 12px;background:#183650;color:#d9ecff;font:inherit;font-size:12px;cursor:pointer}.avatar-zoom header [data-zoom-close]{font-size:24px;width:34px;height:34px;padding:0;border-radius:50%}.avatar-zoom-stage{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;display:grid;place-items:center;border-radius:12px;background:#07172b}.avatar-zoom .avatar-zoom-stage img{width:100%;height:100%;max-height:100%;max-width:100%;object-fit:contain;margin:0;border-radius:0;cursor:default}.avatar-zoom>p{font-size:10px;color:#98b2cc;margin:0;flex:none}
.avatar-editor,.avatar-zoom{background:linear-gradient(135deg,#91b8e430,#10244088 60%,#427baf38);backdrop-filter:blur(22px) saturate(140%);-webkit-backdrop-filter:blur(22px) saturate(140%);box-shadow:inset 0 1px 0 #e3f5ff35,0 20px 80px #030e244d}.avatar-editor footer{background:#16304bd6;backdrop-filter:blur(12px)}.avatar-zoom::backdrop{background:#02091870;backdrop-filter:blur(4px)}.avatar-zoom-stage{background:transparent}.avatar-preview>button{cursor:zoom-in}
.avatar-zoom-stage{position:relative;display:block;overflow:hidden;flex:1 1 0;min-height:0}.avatar-zoom .avatar-zoom-stage img{position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}

/* Keep the album credit avatar inside its decorative record ring. */
#galleryLightbox .photographer-initial.profile-avatar{position:absolute;inset:9%;width:82%;height:82%;border-radius:50%;z-index:3;display:block;transform:none}
