/* [superchat-ajustes 2026-10-31] layout responsivo do Superchat (site + Painel 1 + lab). So CSS. */
@media (min-width:721px){
  #wcMain{max-width:min(1240px,96vw)!important;width:100%;column-gap:28px!important;margin-left:auto;margin-right:auto}
  #scLista{flex:0 0 clamp(280px,28vw,340px)}
  #scConversa{flex:1 1 auto;min-width:0}
}
@media (max-width:720px){
  #wcMain{flex-direction:column!important;max-width:100%!important;width:100%!important}
  #scLista,#scConversa{width:100%!important;max-width:100%!important;flex:1 1 auto!important}
  #scxLinksEsq .scx-links{white-space:normal!important;overflow:visible!important}
}
header select{max-width:min(140px,30vw)!important;min-width:0}
header{flex-wrap:wrap;min-width:0}
.scx-story-tab{margin:0 6px 0 2px!important}
.scx-story-texto{white-space:normal!important;max-width:42%!important;line-height:14px!important;padding:3px 9px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.scx-story-texto[hidden]{display:none!important}
@media (max-width:720px){.scx-story-texto{max-width:46vw!important}}

/* [icq-presence & toasts 2026-11-13] Indicadores de presenca online tipo ICQ e alerta de chamadas */
.scx-icq-dot { vertical-align: middle; flex-shrink: 0; }
@keyframes scxIcqPulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.28); opacity: 1; box-shadow: 0 0 10px #22c55e; }
  100% { transform: scale(1); opacity: 0.9; }
}
@keyframes scxSlideDown {
  from { transform: translate(-50%, -24px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
#wcQrBox svg { display: block; width: 128px; height: 128px; border-radius: 8px; }
.wc-conv { display: flex !important; align-items: center !important; }

/* [superchat-baloes-cores 2026-11-13] Cores suaves para os balões de mensagens */
#wcThread { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
#wcThread article.wc-card {
  position: relative !important;
  flex: 0 0 auto !important;
  max-width: min(540px, 80%) !important;
  width: fit-content !important;
  align-self: flex-start !important;
  text-align: left !important;
  margin: 3px auto 3px 0 !important;
  padding: 8px 13px !important;
  border-radius: 14px 14px 14px 4px !important;
  font-size: 13.5px !important;
  line-height: 1.4 !important;
  word-break: break-word !important;
}
#wcThread article.wc-card > p { margin: 0 !important; }
#wcThread article.wc-card .muted { margin: 0 0 2px 0 !important; line-height: 1.2 !important; }

/* 📥 Recebidas (Amigo): recuo fixo (parágrafo) à esquerda, estufando da esquerda para a direita */
#wcThread article.wc-card:not(.mine),
html.balao-sc .wc-card.theirs>p:last-child,
html.balao-sc .wc-card.balao-in>p:last-child {
  align-self: flex-start !important;
  max-width: min(540px, calc(100% - 30px)) !important;
  margin: 3px auto 3px 22px !important;
  border-radius: 14px 14px 14px 4px !important;
  background: rgba(30, 41, 59, 0.78) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}
#wcThread article.wc-card:not(.mine) .muted,
html.balao-sc .wc-card.theirs .muted {
  color: #94a3b8 !important;
  font-size: 9.5px !important;
}

/* 📤 Enviadas (Você): totalmente à esquerda */
#wcThread article.wc-card.mine,
html.balao-sc .wc-card.mine>p:last-child,
html.balao-sc .wc-card.balao-out>p:last-child {
  align-self: flex-start !important;
  margin: 2px auto 2px 0 !important;
  border-radius: 14px 14px 14px 4px !important;
  background: rgba(16, 185, 129, 0.22) !important;
  color: #f0fdf4 !important;
  border: 1px solid rgba(52, 211, 153, 0.42) !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15) !important;
}
#wcThread article.wc-card.mine .muted,
html.balao-sc .wc-card.mine .muted {
  color: #6ee7b7 !important;
  font-size: 9.5px !important;
}

/* Espaçamento elegante entre alternâncias de mensagens */
#wcThread article.wc-card.mine + article.wc-card:not(.mine),
#wcThread article.wc-card:not(.mine) + article.wc-card.mine {
  margin-top: 10px !important;
}
