/* Scraaps v120 — correções de mídia, amizade e indicadores. */

.bottom-nav .nav-item .ico{position:relative!important;overflow:visible!important}
.profile-nav-badge{
  position:absolute!important;top:-8px!important;right:-12px!important;z-index:4!important;
  min-width:19px!important;height:19px!important;padding:0 5px!important;border:2px solid #fff!important;
  border-radius:999px!important;background:#ff5e6c!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
  display:grid!important;place-items:center!important;font:900 10px/1 system-ui,sans-serif!important;
  box-shadow:0 3px 8px rgba(159,29,104,.28)!important;
}

.profile-friend-requests{
  width:100%!important;max-width:520px!important;margin:16px auto 4px!important;padding:0!important;
  display:grid!important;gap:9px!important;text-align:left!important;
}
.profile-friend-request{
  display:grid!important;grid-template-columns:46px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;
  width:100%!important;padding:10px!important;box-sizing:border-box!important;border:1px solid #d7e2eb!important;
  border-radius:15px!important;background:#fff!important;box-shadow:0 5px 14px rgba(45,83,111,.09)!important;
}
.profile-friend-request.is-current-profile{border-color:rgba(255,94,108,.45)!important;box-shadow:0 6px 18px rgba(255,94,108,.13)!important}
.profile-friend-request-avatar{display:grid!important;place-items:center!important;width:46px!important;height:46px!important;border-radius:50%!important;overflow:hidden!important;background:#4c2a85!important;color:#fff!important;text-decoration:none!important}
.profile-friend-request-avatar img,.profile-friend-request-avatar b{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}
.profile-friend-request-avatar b{display:grid!important;place-items:center!important}
.profile-friend-request-copy{display:flex!important;flex-wrap:wrap!important;gap:0 4px!important;min-width:0!important;color:#4b4b4b!important;font-size:12px!important;line-height:1.3!important}
.profile-friend-request-copy strong{color:#342c40!important;font-size:13px!important}
.profile-friend-request-actions{display:flex!important;gap:6px!important;align-items:center!important}
.profile-friend-request-actions form{margin:0!important}
.profile-friend-request-actions button{min-height:32px!important;padding:0 11px!important;border-radius:999px!important;font-size:11px!important;font-weight:900!important;cursor:pointer!important}
.friend-request-accept{border:1px solid #9f1d68!important;background:linear-gradient(135deg,#ff6f92,#9f1d68)!important;color:#fff!important}
.friend-request-decline{border:1px solid #d4dce3!important;background:#f4f6f8!important;color:#515862!important}
[aria-busy="true"]{cursor:wait!important}
.feed-card[style*="max-height: 0"]{overflow:hidden!important;border:0!important}

/* As prévias de notícia são paisagem; remove o bloco preto que completava o quadrado. */
html body.page-perfil.page-perfil .profile-page .profile-unified-feed.home-feed-list>.feed-card .news-link-media.news-link-media{
  width:100%!important;height:auto!important;aspect-ratio:16/9!important;background:#eef4f9!important;
}
html body.page-perfil.page-perfil .profile-page .profile-unified-feed.home-feed-list>.feed-card .news-link-media.news-link-media img{
  display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;object-position:center!important;
}
html body.page-perfil.page-perfil .profile-page .profile-unified-feed.home-feed-list>.feed-card .feed-photo-frame.feed-photo-frame{
  width:100%!important;height:auto!important;aspect-ratio:1080/1450!important;background:#eef4f9!important;
}
html body.page-perfil.page-perfil .profile-page .profile-unified-feed.home-feed-list>.feed-card .feed-photo-frame.feed-photo-frame img{
  display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;object-position:center!important;
}

@media(max-width:560px){
  .profile-friend-request{grid-template-columns:42px minmax(0,1fr)!important}
  .profile-friend-request-avatar{width:42px!important;height:42px!important}
  .profile-friend-request-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr!important}
  .profile-friend-request-actions button{width:100%!important;min-height:35px!important}
}

/* V121 — conversa ocupa apenas a área visível e mantém o campo acima do menu. */
html body.page-conversa:not(.auth-body) .app-shell{
  width:100%!important;
  height:100vh!important;
  height:100dvh!important;
  min-height:100vh!important;
  min-height:100dvh!important;
  padding-bottom:calc(84px + env(safe-area-inset-bottom, 0px))!important;
  overflow:hidden!important;
}
html body.page-conversa:not(.auth-body) header.scraaps-topbar{
  flex:0 0 auto!important;
}
html body.page-conversa:not(.auth-body) main.scraaps-conversation-page{
  width:100%!important;
  min-height:0!important;
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  overflow:hidden!important;
  padding:10px 14px!important;
}
html body.page-conversa .chat-contact-header,
html body.page-conversa .chat-private-note,
html body.page-conversa .chat-stage-typing,
html body.page-conversa .chat-composer{
  flex:0 0 auto!important;
  margin-top:0!important;
  margin-bottom:0!important;
}
html body.page-conversa .chat-message-stage{
  min-height:120px!important;
  max-height:none!important;
  flex:1 1 auto!important;
  margin:0!important;
  padding-bottom:14px!important;
}
html body.page-conversa .chat-welcome-message{
  min-height:100%!important;
}
html body.page-conversa .chat-composer{
  position:relative!important;
  inset:auto!important;
  z-index:12!important;
  width:100%!important;
}
html body.page-conversa .chat-header-typing[hidden],
html body.page-conversa .chat-stage-typing[hidden]{
  display:none!important;
}
html body.page-conversa:not(.auth-body) .bottom-nav{
  height:calc(84px + env(safe-area-inset-bottom, 0px))!important;
  min-height:calc(84px + env(safe-area-inset-bottom, 0px))!important;
  grid-template-rows:76px!important;
  row-gap:0!important;
  padding:4px 8px calc(4px + env(safe-area-inset-bottom, 0px))!important;
}
html body.page-conversa:not(.auth-body) .app-shell .bottom-nav > .app-signature{
  display:none!important;
}

@media(max-height:650px){
  html body.page-conversa:not(.auth-body) main.scraaps-conversation-page{
    gap:7px!important;
    padding-top:7px!important;
    padding-bottom:7px!important;
  }
  html body.page-conversa .chat-contact-header{
    padding-top:7px!important;
    padding-bottom:7px!important;
  }
  html body.page-conversa .chat-private-note{
    padding-top:7px!important;
    padding-bottom:7px!important;
  }
}
