.portrait img,.avatar-fallback{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}.avatar-fallback[hidden]{display:none}.profile-preview{display:flex;flex-direction:column;align-items:center;gap:10px;padding:12px;background:#f0f1e6;border-radius:18px;margin-bottom:14px;font-weight:900;overflow-wrap:anywhere}.profile-preview .avatar{width:80px;height:80px}.avatar-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.avatar-choice{border:2px solid transparent;border-radius:15px;padding:7px 3px;background:#f3f3ec;min-width:0;min-height:78px}.avatar-choice svg{width:44px;height:44px;border-radius:50%;display:block;margin:auto auto 4px}.avatar-choice span{font-size:11px}.avatar-choice[aria-pressed=true]{border-color:#456943;background:#e2ead8;box-shadow:0 0 0 1px #456943}.avatar-choice[aria-pressed=true] span:before{content:'✓ '}.profile-identity{display:inline-flex;gap:7px;align-items:center;min-width:0}.profile-identity>span:last-child{overflow-wrap:anywhere}.listbtn>span:first-child{min-width:0;overflow-wrap:anywhere}#profileForm fieldset{border:1px solid var(--line);border-radius:15px;padding:10px;margin:14px 0}#profileForm legend{font-weight:800;padding:0 5px}#profileForm input{max-width:100%;min-width:0}#profileForm input[type=file]{font-size:12px;padding:10px 4px;width:100%}#profileForm [role=alert]{color:#9b4236;font-size:13px}.ranking-row b:first-child,.period-results th,.entry small,.challenge-card h3{overflow-wrap:anywhere}.period-results th .avatar{width:25px;height:25px;vertical-align:middle}.duel-score .avatar{margin-bottom:5px}.duel-score>span{min-width:0;overflow-wrap:anywhere}.duel-score .profile-identity{display:flex;flex-direction:column}.duel-score .profile-identity>span{display:block}.profile-preview>span:last-child{max-width:100%}

.portrait img[hidden]{display:none}#profileForm label{display:block;margin-top:12px}#profileForm input[name=name]{display:block;width:100%;margin-top:6px}
