.profile-header .profile-cover{position:relative}
.header-image-edit{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#fff;color:#34354a;border:1px solid #dce1e8;box-shadow:0 2px 8px #17233524;z-index:4;pointer-events:auto;cursor:pointer}
.header-image-edit:hover{background:#f1f4f8}.header-image-edit .icon{width:18px;height:18px}
.header-image-edit.cover-edit{position:absolute;top:16px;right:16px;padding:8px 11px;border-radius:7px;font-size:11px;font-weight:700}
.profile-header .header-image-edit.avatar-edit{position:absolute;left:calc(50% + 35px);top:4px;width:34px;height:34px;border-radius:50%}
.identity-edit{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;width:27px;height:27px;margin-left:6px;border-radius:50%;background:#eef1f5;color:#596478;pointer-events:auto}
.identity-edit .icon{width:14px;height:14px}.identity-edit:hover{background:#dfe9f5}
.profile-header.community-identity .profile-body{height:125px;padding:0!important}
.profile-header.community-identity .profile-body .profile-heading{margin-top:44px;max-width:360px}
.profile-header.community-identity .profile-body .profile-heading>.row{top:-30px}
.profile-header.community-identity .profile-body .profile-heading p{font-size:11px}
/* Community tabs stay in normal flow as forums add another navigation item. */
.profile-header.community-identity .profile-tabs{display:flex;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:0;margin:0;height:auto;min-height:52px;padding:0 16px;border-top:1px solid #e6ecf5;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.profile-header.community-identity .profile-tabs a{display:flex;align-items:center;justify-content:center;flex:1 0 auto;min-width:88px;padding:17px 14px;line-height:18px}
.profile-header.community-identity .profile-tabs a.active{box-shadow:inset 0 -2px var(--orange)}
@media(max-width:760px){.profile-header.community-identity .profile-tabs{padding:0 6px;scrollbar-width:none}.profile-header.community-identity .profile-tabs a{padding:16px 12px}.portal-layout .profile-header.community-identity .profile-body[style]{height:175px}.portal-layout .profile-header.community-identity .profile-body .profile-heading{margin-top:44px}}
.image-source-tabs{display:flex;gap:6px;margin-bottom:20px;border-bottom:1px solid #e6ecf5;padding-bottom:12px}
.image-source-tabs button{display:flex;gap:6px;align-items:center;justify-content:center;flex:1;padding:10px 6px;border-radius:6px;font-size:12px;background:#f4f6f9}
.image-source-tabs button[aria-selected=true]{background:#fff0eb;color:#df4c2d}.image-source-tabs .icon{width:17px;height:17px}
[data-image-form] [hidden]{display:none!important}
.image-upload-zone{display:flex;flex-direction:column;align-items:center;gap:10px;padding:24px 16px;border:1px dashed #b6c2d4;border-radius:8px;background:#fafbfd;text-align:center}
.image-upload-zone>.icon{width:32px;height:32px;color:#7c5ac2}.image-upload-zone span{font-size:12px;color:#858b9c}.image-upload-zone input{max-width:100%;margin-top:6px;background:#fff}
.image-file-preview{display:block;width:100%;max-height:260px;object-fit:contain;margin-top:16px;border-radius:6px;background:#f4f6f9}
.image-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:340px;overflow-y:auto;padding:3px}
.gallery-pick{position:relative;border:3px solid transparent;border-radius:7px;padding:0;overflow:hidden;aspect-ratio:1;background:#f0f2f5}.gallery-pick img{width:100%;height:100%;object-fit:cover;display:block}.gallery-pick.selected{border-color:#ff5e3a}.gallery-pick>.icon{display:none;position:absolute;bottom:5px;right:5px;background:#ff5e3a;color:white;border-radius:50%;padding:3px;width:24px;height:24px}.gallery-pick.selected>.icon{display:block}
.image-empty{grid-column:1/-1;padding:20px;text-align:center}.image-public-note,.identity-url-hint{font-size:12px;color:#7b8292;margin:16px 0;overflow-wrap:anywhere}.identity-all-settings{display:block;margin:16px 0;color:#378ccd;font-size:13px}
@media(max-width:760px){.header-image-edit.cover-edit{top:10px;right:10px;padding:7px}.profile-header .header-image-edit.avatar-edit{left:calc(50% + 27px);top:1px;width:32px;height:32px}.image-source-tabs button{flex-direction:column;font-size:11px}.profile-header.community-identity .profile-body{height:175px}.profile-header.community-identity .profile-body .profile-heading{margin-top:44px;max-width:96%}.profile-header.community-identity .profile-body .profile-heading>.row{position:static}.profile-header.community-identity .profile-body .profile-heading>.row .btn{height:auto;width:auto;border-radius:5px}}
