/* Home e Comunidade usam a rolagem da página; carrosséis mantêm a rolagem lateral. */
#home.active,#community.active{height:auto;overflow:visible}
#home .home-clean,#community .comm-clean{height:auto;max-height:none;overflow-x:clip;overflow-y:visible;overscroll-behavior-y:auto}
#home .home-clean>* ,#community .comm-clean>*{min-width:0}
#community .comm-feed,#community .comm-post,#community .comm-post-content{min-width:0;overflow-wrap:anywhere}

/* Todos os blocos do feed seguem a mesma largura e não escapam da tela. */
#community .member-stories,#community .comm-daily-story,#community .comm-pinned,#community .comm-composer,#community .comm-tabs,#community .comm-safety-note,#community .comm-feed{width:min(680px,calc(100% - 24px));max-width:680px;margin-right:auto;margin-left:auto}
#community .comm-daily-story{padding-right:0;padding-left:0}
#community .member-stories-list{min-width:0;max-width:100%;overscroll-behavior-x:contain}
#community .comm-composer-actions button,#community .comm-tab{min-width:0;overflow-wrap:anywhere}
#community .comm-post-media.reel{max-height:min(68dvh,560px)}

@media(min-width:1024px){
  #community .comm-header{width:min(680px,100%);max-width:680px;margin:0 auto 14px;padding:18px 0!important}
  #community .comm-clean{max-width:900px}
}
@media(max-width:520px){
  #community .comm-clean{padding-bottom:calc(94px + env(safe-area-inset-bottom,0px))}
  #community .member-stories{padding:12px 10px}
  #community .member-stories-list{gap:10px}
  #community .member-story-card,#community .member-story-create{width:64px;flex-basis:64px;min-height:86px}
  #community .member-story-ring{width:60px;height:60px;flex-basis:60px}
  #community .member-story-avatar,#community .member-story-create-avatar{width:54px;height:54px}
  #community .member-story-card strong,#community .member-story-create>span:last-child{max-width:64px;font-size:10px}
  #community .comm-composer{padding:12px;margin-bottom:10px}
  #community .comm-composer-avatar{width:40px;height:40px}
  #community .comm-composer-prompt{min-height:42px;font-size:12px}
  #community .comm-composer-actions button{min-height:42px;line-height:1.2}
  #community .comm-daily-story-card{min-height:118px;padding:14px 16px}
  #community .comm-post-header{padding:12px 13px 10px}
  #community .comm-post-content{padding:11px 13px 4px;font-size:13px}
  #community .comm-post-actions{gap:8px}
}
