.ef-profile-view{background:#111316;color:#d8dade;font-family:Inter,system-ui,sans-serif}
.ef-profile-view .ef-banner{display:none}
.ef-profile-view .ef-header{background:#272c33}
.ef-profile-view .ef-subbar{background:#353b44}
.ef-profile-view .ef-main{padding:16px 0 40px}
.ef-profile-view .ef-footer{background:transparent}
.profile-hero,.profile-card{background:#202329;border:1px solid #30343c;border-radius:5px;overflow:hidden}
.profile-hero{margin-bottom:16px;padding:7px 7px 0}
.profile-cover{position:relative;height:292px;background:#26354c;overflow:visible;border-radius:5px 5px 0 0}
.profile-cover>img,.profile-cover-default{display:block;width:100%;height:100%;object-fit:cover;border-radius:5px 5px 0 0}
.profile-cover-default{background:linear-gradient(0deg,rgba(13,20,36,.16),rgba(13,20,36,.06)),url('/assets/img/background.jpg') center 45%/cover}
.profile-edit{position:absolute;right:10px;top:10px;z-index:4;font-size:12px}
.profile-edit summary{cursor:pointer;display:flex;align-items:center;gap:7px;background:#253239dd;padding:8px 12px;border-radius:5px;font-weight:600;list-style:none;color:#fff}
.profile-edit>div{position:absolute;right:0;top:42px;width:210px;background:#272c34;border:1px solid #414751;box-shadow:0 10px 25px #0007;border-radius:5px;padding:7px}
.profile-edit>div a{display:block;padding:9px;color:#e6e8ed}
.profile-edit>div a:hover{background:#353b44}
.profile-icon{width:17px;height:17px;flex:0 0 auto;vertical-align:middle}
.profile-identity{position:relative;display:flex;align-items:center;gap:24px;padding:17px 16px 17px 112px;min-height:70px}
.profile-main-avatar{position:absolute;left:12px;top:-32px}
.profile-main-avatar .community-avatar{width:92px;height:92px;border-radius:50%;border:3px solid #202329;font-size:36px}
.profile-name{min-width:80px}
.profile-name h1{margin:0 0 1px;font:700 20px/1.3 Inter,system-ui,sans-serif;overflow-wrap:anywhere}
.profile-role{font-size:11px;color:#489bff}
.profile-meta{display:flex;flex:1;margin:0;min-width:0}
.profile-meta>div{padding:0 24px;border-left:1px solid #30353d;min-width:0}
.profile-meta dt{font-size:11px;font-weight:700;color:#f0f0f2;margin-bottom:4px}
.profile-meta dd{font-size:12px;margin:0;color:#a9afb8;white-space:nowrap}
.profile-online{display:inline-block;width:7px;height:7px;background:#35c879;border-radius:50%;margin-left:8px}
.profile-activity-button.ef-btn{font-size:12px;padding:0 13px;min-height:34px;white-space:nowrap;background:#1973ed;border:0;color:white;display:flex;gap:6px;align-items:center}
.profile-columns{display:grid;grid-template-columns:285px minmax(0,1fr);gap:12px;align-items:start}
.profile-sidebar{display:flex;flex-direction:column;gap:10px;min-width:0}
.profile-sidebar .profile-card{padding:17px 15px}
.profile-sidebar strong{font-size:12px;font-weight:650}
.profile-warning>a{color:#b9bdc5!important;font-size:14px}
.profile-warning p{font-size:11px;color:#9098a4;margin:12px 0 0}
.profile-rank{display:flex;justify-content:space-between;align-items:center}
.profile-rank strong{display:block}
.profile-rank span{display:block;color:#8d97a6;font-size:11px;margin-top:2px}
.profile-rank-symbol{color:#43c5b2;width:25px;height:25px;stroke-width:3}
.profile-progress{height:6px;background:#30363e;border-radius:5px;overflow:hidden;margin-top:13px}
.profile-progress>span{height:100%;display:block;background:#1d9b5d;border-radius:5px}
.profile-next-rank{font-size:10px;color:#949eac;margin:7px 0 18px}
.profile-badges-heading{display:flex;align-items:center;justify-content:space-between;padding-top:15px;border-top:1px solid #343942}
.profile-badges-heading a{font-size:10px;color:#9ba5b3!important}
.profile-badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
.profile-badge{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:2px solid #ffffff22;border-radius:50%;box-shadow:inset 0 1px 8px #ffffff38;color:white;background:#258eaa}
.profile-badge .profile-icon{width:16px;height:16px;stroke-width:2.4}
.profile-badge--blue{background:#3787c7}.profile-badge--purple{background:#9253d5}.profile-badge--green{background:#2f9f76}.profile-badge--pink{background:#c15eaa}.profile-badge--teal{background:#23a3a3}
.profile-sidebar .profile-counts{padding:0}
.profile-count-row{display:flex;align-items:center;gap:14px;padding:17px 15px;border-bottom:1px solid #343942;color:inherit!important}
.profile-count-row>.profile-icon{color:#5d626b;width:16px}
.profile-count-row>span{flex:1}
.profile-count-row strong,.profile-count-row small{display:block}
.profile-count-row small{font-size:11px;color:#9ba3af;margin-top:2px}
.profile-count-row>b{font-size:18px;color:#bbc0c9}
.profile-count-row>b.profile-reputation{color:#33b882}
.profile-follower-icons{display:flex;gap:3px;max-width:68px;overflow:hidden}
.profile-follower-icons .community-avatar{width:22px;height:22px;border-radius:50%;font-size:10px}
.profile-options{font-size:11px;color:#969fab;margin-top:3px}
.profile-options summary{cursor:pointer}
.profile-options .profile-form{margin:6px 0 0}
.profile-followers-more{display:block;font-size:11px;text-align:center;padding:8px}
.profile-form{display:flex;flex-direction:column;gap:12px;margin:18px 0;color:#d7dce5}
.profile-form>label{display:flex;gap:8px;align-items:center;font-size:13px}
.profile-form input:not([type=checkbox]):not([type=file]):not([type=hidden]),.profile-form textarea{border:1px solid #4a5262;background:#171b23;color:#edf0f7;border-radius:4px;padding:11px;font:14px Inter,system-ui,sans-serif;max-width:100%;width:100%;box-sizing:border-box}
.profile-form small{font-size:12px;color:#a1aab7;line-height:1.6}
.profile-form button.ef-btn{border:0;font-size:12px;min-height:34px;cursor:pointer;align-self:flex-start}
.profile-close.profile-form{display:inline-flex;margin:0}
.profile-close button.ef-btn{padding:0;background:none;color:#8f99a7;font-size:20px;min-height:20px}
.profile-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.profile-sidebar .profile-visitors{padding:14px 15px 0}
.profile-visitor{display:flex;gap:12px;padding:12px 0;border-top:1px solid #343942}
.profile-visitor .community-avatar{width:24px;height:24px;font-size:12px;border-radius:50%}
.profile-visitor a{font-size:12px;font-weight:600}
.profile-visitor small{display:block;font-size:10px;color:#919ba9;margin-top:3px}
.profile-empty{padding:20px;margin:0;font-size:13px;line-height:1.65;color:#939daa}
.profile-visitors .profile-empty{padding:8px 0 18px;font-size:11px}
.profile-about p{white-space:pre-wrap;font-size:12px;color:#a5aeba;overflow-wrap:anywhere;margin-bottom:0}
.profile-social{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.profile-social .profile-form{margin:0}
.profile-social>a:not(.ef-btn){font-size:12px;width:100%;margin-top:8px}
.profile-feed{min-width:0}
.profile-feed-tabs{display:flex;gap:22px;padding:12px 18px;border-bottom:1px solid #343942;font-size:11px;background:#24282f}
.profile-feed-tabs a{color:#aab3c0}
.profile-feed-tabs a[aria-current]{color:#fff;border-bottom:2px solid #3787ed;padding-bottom:5px}
.profile-feed-item{display:flex;gap:14px;padding:21px 18px 18px;border-bottom:1px solid #343942}
.profile-feed-item>.community-avatar{width:30px;height:30px;border-radius:50%;font-size:14px}
.profile-feed-content{min-width:0;flex:1}
.profile-feed-content h2{margin:0 0 4px;font-size:13px;font-weight:650;line-height:1.5}
.profile-feed-content h2 a{color:#eceef4!important}
.profile-feed-context{font-size:11px;color:#98a3b1;margin:0}
.profile-feed-context span{color:#cdd3df}
.profile-post-excerpt{font-size:12px;line-height:1.7;color:#bec5d0;white-space:pre-wrap;overflow-wrap:anywhere;margin:18px 0 14px}
.profile-feed-meta{display:flex;gap:18px;flex-wrap:wrap;font-size:10px;color:#8e98a7}
.profile-feed-meta>a{color:#8e98a7!important}
.profile-feed-meta .profile-icon{width:12px;height:12px;opacity:.6;margin-right:4px}
.profile-feed-event{display:flex;align-items:center;gap:12px;padding:10px 18px;border-bottom:1px solid #343942;color:#98a3b2;font-size:11px}
.profile-feed-event>.community-avatar{width:18px;height:18px;font-size:9px;border-radius:50%}
.profile-feed-event p{margin:0;flex:1}.profile-feed-event small{font-size:10px;color:#7f8998}
.profile-feed-heading{padding:18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #343942}
.profile-feed-heading h2{font-size:17px;margin:0}.profile-feed-heading>span{color:#99a4b5;font-size:12px}
.profile-badge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:24px}
.profile-badge-grid article{text-align:center}.profile-badge-grid strong{display:block;font-size:13px;margin:10px 0 4px}.profile-badge-grid p{font-size:11px;color:#9ca8b9}.profile-badge-grid small{font-size:10px;color:#7f8a9b}.profile-badge-grid .profile-badge{width:45px;height:45px}
.profile-editor,.profile-ranks-page{max-width:780px;margin:0 auto 20px;padding:28px}
.profile-editor h1,.profile-ranks-page h1{font-size:24px;margin-top:0}.profile-editor h2{font-size:18px}
.profile-editor>p,.profile-ranks-page>p{font-size:14px;color:#aab4c4;line-height:1.7}
.profile-editor>.community-avatar{width:80px;height:80px;border-radius:50%}
.profile-warning-entry{border-top:1px solid #39414e;padding:18px 0}
.profile-warning-entry>p{white-space:pre-wrap;overflow-wrap:anywhere}
.profile-warning-entry>small{color:#99a5b6}
.profile-ranks-page ol{padding:0;list-style:none}.profile-ranks-page li{padding:12px;border-bottom:1px solid #333b48;display:flex;gap:16px}.profile-ranks-page li>span{margin-left:auto;color:#99a5b8}
@media(max-width:1000px){.profile-meta>div{padding:0 12px}.profile-meta>div:last-child{display:none}.profile-columns{grid-template-columns:250px minmax(0,1fr)}.profile-identity{gap:14px}}
@media(max-width:700px){.ef-profile-view .ef-main{padding:12px 14px 30px}.profile-cover{height:190px}.profile-identity{padding:16px 12px 14px 92px;flex-wrap:wrap;gap:12px}.profile-main-avatar{left:7px;top:-25px}.profile-main-avatar .community-avatar{width:76px;height:76px}.profile-meta{order:3;flex-basis:100%;flex-wrap:wrap;gap:10px}.profile-meta>div{padding:0 8px}.profile-meta>div:first-child{padding-left:0;border:0}.profile-name h1{font-size:18px}.profile-activity-button.ef-btn{margin-left:auto;font-size:10px;padding:0 8px}.profile-columns{grid-template-columns:minmax(0,1fr)}.profile-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-warning,.profile-visitors,.profile-about,.profile-social{grid-column:1/-1}.profile-badge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-editor{padding:20px}.profile-feed-content h2{font-size:13px}.profile-feed-event{flex-wrap:wrap}.profile-feed-event small{margin-left:30px}}
@media(max-width:400px){.profile-sidebar{display:flex}.profile-activity-button.ef-btn{margin-left:0}.profile-edit summary{font-size:10px}.profile-meta dd{white-space:normal}}

/* Override the legacy FAQ details rules only inside the new profile. */
body.ef-body.ef-profile-view{background:#111316}
.ef-profile-view details.profile-edit,.ef-profile-view details.profile-options{background:transparent;border:0;box-shadow:none;padding:0;margin:0;overflow:visible}
.ef-profile-view .profile-edit summary:after,.ef-profile-view .profile-options summary:after{content:none}
.ef-profile-view .profile-edit summary::-webkit-details-marker,.ef-profile-view .profile-options summary::-webkit-details-marker{display:none}
body.ef-body.ef-profile-view .profile-hero .profile-identity a.profile-activity-button.ef-btn{color:#fff!important}

.profile-badge--gold{background:#a7833d;color:#fff0ba}
