/* Full-screen profile surface; all existing controls keep their own handlers. */
#communityPage #memberDialog{position:fixed;inset:0!important;margin:0!important;width:100%!important;max-width:none!important;height:100vh;height:100dvh;max-height:none!important;padding:0!important;border:0;border-radius:0;overflow:hidden;box-sizing:border-box;background:#0f1722;box-shadow:none}
#communityPage #memberDialog[open]{display:flex;flex-direction:column}
#communityPage #memberDialog .profile-page-toolbar{height:64px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px max(24px,env(safe-area-inset-right)) 8px max(24px,env(safe-area-inset-left));border-bottom:1px solid #28364a;background:#101925;box-sizing:border-box}
#communityPage #memberDialog .profile-page-toolbar strong{font-size:15px;letter-spacing:.02em}
#communityPage #memberDialog #closeProfile{position:static;float:none;margin:0;width:44px;height:44px;font-size:26px;padding:0;flex:none}
#communityPage #memberContent{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 0 max(28px,env(safe-area-inset-bottom));scrollbar-width:thin}
#communityPage #memberDialog .profile-page{width:min(1200px,100%);margin:0 auto;box-sizing:border-box;padding:24px 32px}
#communityPage #memberDialog .profile-card-banner{height:clamp(180px,23vw,300px);border-radius:16px;margin:0;overflow:hidden}
#communityPage #memberDialog .profile-banner-image,#communityPage #memberDialog .profile-banner-image>img{width:100%;height:100%;object-fit:cover}
#communityPage #memberDialog .profile-identity{position:relative;padding:0 24px 20px;border-bottom:1px solid #28364a}
#communityPage #memberDialog .profile-avatar{position:relative;display:flex;align-items:center;justify-content:center;width:96px;height:96px;font-size:32px;margin:-44px 0 16px;border-width:4px;box-sizing:border-box;background:#192535;z-index:1}
#communityPage #memberDialog .profile-avatar>img{width:100%;height:100%;object-fit:cover;border-radius:50%}
#communityPage #memberDialog .profile-identity h2{font-size:26px;line-height:1.3;margin:0 0 8px;overflow-wrap:anywhere}
#communityPage #memberDialog .profile-identity .presence-badge{font-size:13px;font-weight:400}
#communityPage #memberDialog .profile-role{font-size:15px;margin:6px 0}
#communityPage #memberDialog .profile-joined{margin:4px 0 0}
#communityPage #memberDialog .profile-page-body{display:grid;grid-template-columns:200px minmax(0,1fr);gap:32px;padding-top:24px;align-items:start}
#communityPage #memberDialog .profile-section-nav{display:flex;flex-direction:column;gap:8px;position:sticky;top:16px}
#communityPage #memberDialog .profile-section-nav button{min-height:48px;text-align:left;font-size:14px;padding:12px 16px;background:transparent;border:1px solid transparent}
#communityPage #memberDialog .profile-section-nav button[aria-selected=true]{background:#26374b;border-color:#617d9d;color:#fff;font-weight:600}
#communityPage #memberDialog .profile-section-content{min-width:0}
#communityPage #memberDialog .profile-section[hidden]{display:none!important}
#communityPage #memberDialog .profile-section{border:1px solid #28364a;border-radius:14px;padding:24px;background:#111c29;overflow-wrap:anywhere;min-width:0}
#communityPage #memberDialog .profile-section h3{font-size:18px;margin:0 0 20px}
#communityPage #memberDialog .profile-about{font-size:15px;line-height:1.8;white-space:pre-wrap;margin-top:0}
#communityPage #memberDialog .profile-section button,#communityPage #memberDialog .profile-section summary{min-height:44px}
#communityPage #memberDialog .profile-links{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
#communityPage #memberDialog .profile-links:empty{display:none}
#communityPage #memberDialog .profile-conversation-actions,#communityPage #memberDialog .profile-moderation,#communityPage #memberDialog .profile-role-actions,#communityPage #memberDialog .profile-image-removals{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
#communityPage #memberDialog .profile-section>button{margin:0 10px 12px 0}
#communityPage #memberDialog .profile-section :is(input:not([type=file]),textarea,select){max-width:100%;box-sizing:border-box;font-size:16px}
#communityPage #memberDialog .profile-section .xp-card{margin-top:0;padding:20px}
#communityPage #memberDialog .profile-xp-help{margin-top:16px;font-size:13px;color:#a4b3c8}
#communityPage #memberDialog .profile-xp-help summary{cursor:pointer;display:list-item;align-content:center}
#communityPage #memberDialog .profile-xp-help .xp-rules{line-height:1.7}
@media(max-width:700px){
 #communityPage #memberDialog .profile-page-toolbar{height:60px;padding:8px 12px}
 #communityPage #memberDialog .profile-page{padding:0 0 16px}
 #communityPage #memberDialog .profile-card-banner{height:160px;border-radius:0}
 #communityPage #memberDialog .profile-identity{padding:0 20px 20px}
 #communityPage #memberDialog .profile-avatar{width:80px;height:80px;margin-top:-36px}
 #communityPage #memberDialog .profile-identity h2{font-size:22px}
 #communityPage #memberDialog .profile-page-body{display:block;padding-top:0}
 #communityPage #memberDialog .profile-section-nav{top:0;z-index:3;flex-direction:row;background:#0f1722;padding:10px 12px;border-bottom:1px solid #28364a;gap:6px}
 #communityPage #memberDialog .profile-section-nav button{flex:1;min-width:0;text-align:center;padding:10px 8px}
 #communityPage #memberDialog .profile-section-content{padding:16px 12px}
 #communityPage #memberDialog .profile-section{padding:18px 16px}
 #communityPage #memberDialog .staff-title-form label{flex-basis:100%}
 #communityPage #memberDialog .profile-section .profile-social-icon{min-width:44px;min-height:44px}
}
