body #profile:has(#profilePage-community.panel-page-active){grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}
body #profile:has(#profilePage-community.panel-page-active)>:is(.profile-section-rail,.app-view-rail){display:none!important}
body:has(#profilePage-community.panel-page-active) .mobile-dock{display:none!important}
body #profile:has(#profilePage-community.panel-page-active)>.app-view-stage{grid-column:1;grid-row:1;overflow:hidden!important;min-height:0;padding-bottom:6px!important;scroll-padding-bottom:0}
body #profilePage-community.panel-page-active{display:flex!important;flex-direction:column;height:100%!important;min-height:0!important;max-height:100%;overflow:hidden!important}
body #profilePage-community>#profileCommunitySection{display:flex;flex-direction:column;flex:1;height:100%;min-height:0;overflow:hidden;gap:10px;padding:12px;box-sizing:border-box}
#profileCommunitySection .friends-tabs{display:flex;gap:8px;flex:none;margin:0}
#profileCommunitySection .friends-tabs button{flex:1;min-height:40px;border-radius:10px;background:#091d15;color:#e3c991;border:1px solid #8b6c37}
#profileCommunitySection .friends-tabs [data-friend-back]{flex:0 0 40px;font:20px Arial}
#profileCommunitySection .friends-tabs button[aria-selected=true]{border-color:#e2bc68;background:linear-gradient(#f1d17d,#d6a945);color:#1c2117}
#profileCommunitySection .friends-tab-pane{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1}
#profileCommunitySection .friends-tab-pane[hidden]{display:none}
#profileCommunitySection>[hidden]{display:none!important}
#profileCommunitySection .friends-tools{display:flex;align-items:center;gap:8px;justify-content:space-between;margin-bottom:8px}
#profileCommunitySection .friends-tools button{font-size:12px;padding:7px 10px;min-height:34px}
#profileCommunitySection .friends-tools span{font-size:12px;color:#c5bcac}
#profileCommunitySection .friend-rows{display:flex;flex-direction:column;gap:6px}
#profileCommunitySection .friend-row{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #71572e;border-radius:10px;background:#071b14;min-width:0}
#profileCommunitySection .friend-row>div{flex:1;min-width:0}
#profileCommunitySection .friend-row strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#profileCommunitySection .friend-row small{display:block;color:#a4a7a4;font-size:12px;margin-top:3px}
#profileCommunitySection .friend-row small.online{color:#a6cf78}
#profileCommunitySection .friend-row button{flex:none;min-height:36px;max-width:170px;font-size:13px;padding:7px 10px}
#profileCommunitySection .friend-request-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
#profileCommunitySection .friends-group-title{font-size:13px;color:#d6bd89;margin:9px 2px}
#profileCommunitySection #friendsActionStatus{font-size:13px;min-height:18px;margin:0;color:#e4cf9f;flex:none}
#profileCommunitySection .friends-search-form{display:flex;gap:8px;margin-bottom:10px}
#profileCommunitySection .friends-search-form input{flex:1;min-width:0}
@media(max-height:480px) and (orientation:landscape){
 body #profilePage-community>#profileCommunitySection{gap:6px;padding:6px}
 #profileCommunitySection .friends-tabs button{min-height:34px;padding:6px}
 #profileCommunitySection .friend-row{padding:6px 8px;gap:7px}
 #profileCommunitySection .friend-row button{min-height:32px;font-size:12px}
 #profileCommunitySection .friends-tools{margin-bottom:5px}
}
