/* Hide scrollbar chrome; keep document and nested scrolling operational. */
html,body,body *{scrollbar-width:none!important;-ms-overflow-style:none!important}
html::-webkit-scrollbar,body::-webkit-scrollbar,body *::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
@media(max-width:900px),(pointer:coarse){
 html{width:100%;max-width:100%;overflow-x:hidden;overscroll-behavior-x:none;-webkit-text-size-adjust:100%;text-size-adjust:100%;touch-action:pan-x pan-y}
 body{width:100%;max-width:100%;min-width:0;overflow-x:hidden;overscroll-behavior-x:none;touch-action:pan-x pan-y}
 @supports(overflow:clip){html,body{overflow-x:clip}}
 #main,.page,.section,.cine-hub-page,.social-page{min-width:0;max-width:100%;box-sizing:border-box}
 .social-page,.social-inbox,.social-thread,.social-messages{min-width:0;max-width:100%;touch-action:pan-x pan-y!important}
 .fc-layout>*,.community-profile-body,.cine-member-identity,.hub-profile,.hub-personal-content{min-width:0;box-sizing:border-box}
 .fc-body,.social-message p,.cine-inline-comment p,.community-profile-bio{overflow-wrap:anywhere}
 input,select,textarea{font-size:16px!important;max-width:100%;box-sizing:border-box}
 dialog{box-sizing:border-box;max-width:100vw!important}
 dialog input,dialog select,dialog textarea{min-width:0}
 .hub-tabs,.rail,.chips,.portrait-feature-track,.cine-suggested-members{max-width:100%;overscroll-behavior-x:contain;touch-action:pan-x pan-y!important}
 img,video{max-width:100%}
}
@media(max-width:650px){
 body header{width:100%;max-width:100%;box-sizing:border-box;gap:8px;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
 body header .brand{min-width:0;flex:1 1 auto;gap:7px;overflow:hidden}
 body header .brand span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(17px,5vw,25px)}
 body header .brand img{max-width:38px;height:auto;flex-shrink:0}
 body header .head-actions{gap:5px;flex-shrink:0;min-width:0}
 body header .head-actions>button{padding-left:6px;padding-right:6px;min-width:34px}
 body header .top-cine-link{max-width:65px}
 body header .top-cine-link img{max-width:100%;height:auto}
 .fc-layout{grid-template-columns:minmax(0,1fr)}
 .profile-favorites-slots{grid-template-columns:repeat(3,minmax(0,1fr))}
 #cine-social-bottom{box-sizing:border-box;max-width:100vw}
 #cine-social-bottom button{min-width:0;flex:1 1 0}
 .cine-next-dialog,.social-dialog{max-height:calc(100dvh - 16px)}
}
