/* El Contraataque · Community detail polish v78
   Instant return continuity + comment composer layout. */

body[data-screen="communityPostDetail"].community-hub-mode .community-chat-v41 .post-comment-form.community-v62-composer{
  box-sizing:border-box!important;
  position:fixed!important;
  z-index:170!important;
  left:50%!important;
  right:auto!important;
  bottom:calc(.58rem + env(safe-area-inset-bottom) + var(--keyboard-offset,0px))!important;
  display:grid!important;
  grid-template-columns:2.2rem minmax(0,1fr) 2.35rem auto!important;
  align-items:center!important;
  gap:.42rem!important;
  width:min(calc(100vw - 1.1rem),var(--unified-app-width-v73,30rem))!important;
  min-height:3.75rem!important;
  max-width:30rem!important;
  margin:0!important;
  border:1px solid rgba(178,108,8,.22)!important;
  border-radius:1.45rem!important;
  padding:.48rem .52rem!important;
  background:rgba(255,255,255,.99)!important;
  box-shadow:0 .55rem 1.55rem rgba(42,31,15,.13)!important;
  backdrop-filter:blur(20px)!important;
  -webkit-backdrop-filter:blur(20px)!important;
  transform:translateX(-50%)!important;
}
body[data-screen="communityPostDetail"].community-hub-mode .community-v62-composer .community-v60-composer-avatar,
body[data-screen="communityPostDetail"].community-hub-mode .community-v62-composer .community-v62-composer-avatar{
  grid-column:1!important;
  grid-row:1!important;
  display:grid!important;
  width:2.2rem!important;
  height:2.2rem!important;
  min-width:2.2rem!important;
  place-items:center!important;
  overflow:hidden!important;
  border:1px solid rgba(95,77,51,.12)!important;
  border-radius:50%!important;
  background:#f5f1e9!important;
}
body[data-screen="communityPostDetail"].community-hub-mode .community-v62-composer textarea,
body[data-screen="communityPostDetail"].community-hub-mode .community-chat-v41 .post-comment-form.community-v62-composer textarea{
  box-sizing:border-box!important;
  grid-column:2!important;
  grid-row:1!important;
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:100%!important;
  min-width:0!important;
  height:2.55rem!important;
  min-height:2.55rem!important;
  max-height:6rem!important;
  margin:0!important;
  resize:none!important;
  border:1px solid rgba(74,62,47,.10)!important;
  border-radius:1.2rem!important;
  outline:0!important;
  padding:.64rem .78rem!important;
  color:#211d18!important;
  background:#faf9f6!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8)!important;
  font-size:16px!important;
  line-height:1.18!important;
}
body[data-screen="communityPostDetail"].community-hub-mode .community-v62-composer textarea::placeholder{
  color:#8d877f!important;
  opacity:1!important;
}
body[data-screen="communityPostDetail"].community-hub-mode .community-v62-composer .comment-image-input{
  grid-column:3!important;
  grid-row:1!important;
  display:grid!important;
  width:2.35rem!important;
  height:2.35rem!important;
  min-width:2.35rem!important;
  place-items:center!important;
  overflow:hidden!important;
  border:1px solid rgba(74,62,47,.11)!important;
  border-radius:50%!important;
  padding:0!important;
  background:#fff!important;
}
body[data-screen="communityPostDetail"].community-hub-mode .community-v62-composer>button[type="submit"]{
  grid-column:4!important;
  grid-row:1!important;
  width:2.45rem!important;
  height:2.45rem!important;
  min-width:2.45rem!important;
  margin:0!important;
}
body[data-screen="communityPostDetail"].community-hub-mode #communityPostDetail{
  padding-bottom:calc(6rem + env(safe-area-inset-bottom))!important;
}

@media(max-width:370px){
  body[data-screen="communityPostDetail"].community-hub-mode .community-chat-v41 .post-comment-form.community-v62-composer{
    grid-template-columns:2rem minmax(0,1fr) 2.2rem auto!important;
    gap:.3rem!important;
    width:calc(100vw - .7rem)!important;
    padding:.42rem!important;
  }
  body[data-screen="communityPostDetail"].community-hub-mode .community-v62-composer .community-v60-composer-avatar,
  body[data-screen="communityPostDetail"].community-hub-mode .community-v62-composer .community-v62-composer-avatar{
    width:2rem!important;
    height:2rem!important;
    min-width:2rem!important;
  }
  body[data-screen="communityPostDetail"].community-hub-mode .community-v62-composer textarea{
    padding-inline:.62rem!important;
  }
}
