/* NewsSocity mobile polish - loaded only on phones (max-width:600px) */
html{-webkit-text-size-adjust:100%}
a,button,.fb-act-btn,.feed-chip,.feed-tab,.story-card{-webkit-tap-highlight-color:transparent;touch-action:manipulation}

/* edge-to-edge feed */
.layout,html[data-theme="dark"] .layout{padding:0 0 24px !important;gap:0 !important}
.card{border-radius:0;border-left:0;border-right:0;box-shadow:none;margin-bottom:8px;padding:12px}
.layout > .center-col > .card:first-child{margin-top:6px}

/* stories: slim, snap-scrolling */
.stories-wrap{gap:8px;padding:2px 12px 4px;margin-bottom:8px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.story-card{width:100px;height:168px;scroll-snap-align:start;border-radius:10px}
.create-story-top{height:112px}
.story-ring{width:32px;height:32px;top:8px;left:8px}
.story-name{font-size:11.5px}

/* sticky tabs + one-line scrolling chips */
.card:has(> .feed-tabs){position:sticky;top:56px;z-index:150;margin-bottom:8px}
*:has(> .feed-chip){display:flex !important;flex-wrap:nowrap !important;overflow-x:auto;scrollbar-width:none;gap:8px;-webkit-overflow-scrolling:touch}
*:has(> .feed-chip)::-webkit-scrollbar{display:none}
.feed-chip,.feed-tab{flex-shrink:0;white-space:nowrap}

/* post cards */
.card .avatar-md{width:38px;height:38px}
.post-img,.card img.post-img{max-width:100%;height:auto;border-radius:0}
.card video{width:100%;max-height:72vh;object-fit:contain;background:#000;border-radius:0}
.fb-act-bar{padding-top:2px}
.fb-act-btn{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}

/* comments and inputs: no zoom on focus, easier to tap */
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),textarea{font-size:16px}
.cmt-bubble{max-width:100%}
.cmt-row{gap:8px}

/* bottom nav: keep clear of the phone's home bar */
.mob-bottom-nav{padding-bottom:env(safe-area-inset-bottom,0)}

/* header fit v1 */
.nav{padding:0 10px !important;gap:6px}
.nav-left{width:auto !important;flex:1 1 auto !important;min-width:0 !important;gap:8px !important}
.nav-left .logo{flex-shrink:0;min-width:0}
.nav-right{flex:0 0 auto !important;min-width:0 !important;gap:6px !important}
.nav-right .circle-btn{width:36px !important;height:36px !important;flex-shrink:0}

/* header fit v2 */
.nav-left > div{min-width:0 !important;flex:1 1 0 !important}
.nav-left .search-input{min-width:0 !important;width:100% !important}
.nav-left .logo{max-width:46%;overflow:hidden}
.nav-right .profile-pill{padding:0 !important;background:transparent !important;border:0 !important;box-shadow:none !important;min-width:0 !important;width:auto !important;gap:0 !important}
.nav-right .profile-pill > span{display:none !important}
.nav-right .profile-pill .avatar-sm{width:34px !important;height:34px !important;margin:0 !important}
.user-dd-menu{right:0 !important;left:auto !important;max-width:92vw}

/* header fit v3 */
.nav{display:flex !important;width:100% !important;max-width:100vw !important;min-width:0 !important;box-sizing:border-box !important;left:0 !important;right:0 !important;justify-content:space-between !important;align-items:center !important}
.nav-left{flex:1 1 0 !important;max-width:none !important}
.nav-left .logo{max-width:none !important;overflow:visible !important}

/* grid width fix v5 */
.layout,html[data-theme="dark"] .layout{grid-template-columns:minmax(0,1fr) !important;width:100% !important;max-width:100% !important;box-sizing:border-box !important}
.layout > *,.center-col{min-width:0 !important;max-width:100% !important}
.card{max-width:100%;box-sizing:border-box}
.stories-wrap{max-width:100%}
html,body{max-width:100%}

/* dropdown fit v6 */
#notifWrap{position:static !important}
#notifDropdown{position:fixed !important;left:8px !important;right:8px !important;top:62px !important;width:auto !important;max-width:none !important;max-height:70vh;overflow-y:auto;z-index:600 !important}
#liveSearchDrop{position:fixed !important;left:8px !important;right:8px !important;top:62px !important;width:auto !important}
.user-dd-menu{position:fixed !important;right:8px !important;left:auto !important;top:62px !important;max-width:calc(100vw - 16px)}

/* modal above nav v7 */
.modal-bg{z-index:1100 !important;align-items:flex-start !important;overflow-y:auto !important;-webkit-overflow-scrolling:touch;padding:12px 12px 90px !important}
.modal-bg > .card{margin:8px auto 0 !important;border-radius:14px !important;border:0 !important;max-height:none}
.ns-sv{z-index:1200 !important}
#notifDropdown,.user-dd-menu,#liveSearchDrop{z-index:1050 !important}
