/* Feed and profile corrections, loaded after page rules. */
html{font-size:16px;-webkit-text-size-adjust:100%}
body{margin:0;min-width:0;padding-bottom:150px}
main,.feedcol,.card{min-width:0;overflow-wrap:anywhere}
img,video{max-width:100%}
.shell{display:grid!important;width:calc(100% - 32px)!important;max-width:1180px!important;margin:18px auto!important;grid-template-columns:210px minmax(0,1fr) 250px!important;gap:16px!important}
.postimg,.mediaVideo{max-width:100%;max-height:560px;object-fit:contain}
.cover{background-size:cover;background-position:center}
#avatarView{width:120px;height:120px;max-width:120px;object-fit:cover}
body>header:not(.nv-global-nav){flex-wrap:wrap}
body>header nav{flex-wrap:wrap}
@media(max-width:1100px){.shell{grid-template-columns:190px minmax(0,1fr)!important}.rightcol{display:none}}
@media(max-width:760px){
 .shell{display:block!important;width:calc(100% - 20px)!important;margin:10px auto!important;padding:0!important}
 .leftcol,.rightcol{display:none}.feedcol{max-width:none!important;width:100%}
 .wrap{width:auto;max-width:100%;padding:12px;margin:auto}
 .card{padding:14px}.profile-head{padding:0}.grid,.profileSections{grid-template-columns:minmax(0,1fr)}
 body>header nav{margin:0;width:100%;gap:6px}
 body>header nav a{padding:8px;font-size:14px}
 input,textarea,select{font-size:16px}
}
/* Keep floating controls clear while navigating; restore them when menus close. */
body:has(.nv-global-nav.nv-open) .feedback-bottom-btn,
body:has(.nv-global-nav.nv-open) #noveam-message-dock{visibility:hidden}
