/* O celular das demonstrações: uma peça só, igual nos três casos. Monocromático: preto, branco e cinzas.
   Quem segura o celular manda as mensagens "enviadas" (à direita, em preto); o agente e os outros aparecem
   como "recebidas" (à esquerda, em branco). Tudo aqui vive dentro de um fragmento data-ui. */

.fone, .fone * { box-sizing: border-box; }
.fone {
  position: relative;
  height: 100%;
  max-height: 720px;
  aspect-ratio: 9 / 18.6;
  max-width: 100%;
  margin-inline: auto;
  padding: 11px;
  background: #0a0a0a;
  border-radius: 46px;
  flex: none;
}
.fone-tela {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #f2f2f2;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  font-size: 14px;
  line-height: 1.35;
  color: #0a0a0a;
}
/* a ilha da câmera */
.fone-tela::before {
  content: "";
  position: absolute; top: 9px; left: 50%;
  width: 84px; height: 24px; margin-left: -42px;
  background: #0a0a0a; border-radius: 14px;
  z-index: 2;
}
.fone-status {
  display: flex; justify-content: space-between; align-items: center;
  height: 42px; padding: 6px 26px 0;
  background: #ffffff;
  font-size: 13px; font-weight: 600; letter-spacing: 0;
}
.fone-app {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px;
  padding: 6px 14px 10px;
  background: #ffffff;
  border-bottom: 1px solid #e4e4e4; /* taste-skill-ignore: a borda do cabeçalho do aplicativo (data-ui) */
}
.fone-avatar {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: #0a0a0a; color: #ffffff;
  font-size: 13px; font-weight: 600;
}
.fone-nome { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.2; }
.fone-sub { margin: 0; font-size: 12px; color: #6b6b6b; line-height: 1.3; }
.fone-conversa {
  min-height: 0;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 12px 10px 8px;
}
.fone-msg {
  max-width: 84%;
  padding: 7px 10px 5px;
  border-radius: 14px;
  font-size: 14px; line-height: 1.35;
  overflow-wrap: anywhere;
}
.fone-msg--recebida { align-self: flex-start; background: #ffffff; color: #0a0a0a; border-top-left-radius: 4px; }
.fone-msg--enviada { align-self: flex-end; background: #0a0a0a; color: #ffffff; border-top-right-radius: 4px; }
.fone-autor { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; }
.fone-hora { display: block; margin-top: 2px; text-align: right; font-size: 11px; opacity: 0.6; }
.fone-opcoes { margin: 6px 0 2px; padding: 0; list-style: none; display: grid; gap: 4px; }
.fone-opcoes li {
  padding: 6px 8px; border-radius: 8px;
  background: #f2f2f2; color: #0a0a0a;
  font-size: 13px; font-weight: 500;
}
.fone-msg--enviada .fone-opcoes li { background: #2a2a2a; color: #ffffff; }
.fone-digitando { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; background: #ffffff; border-radius: 14px; border-top-left-radius: 4px; }
.fone-digitando i { width: 6px; height: 6px; border-radius: 50%; background: #9a9a9a; animation: fone-ponto 1s infinite ease-in-out; }
.fone-digitando i:nth-child(2) { animation-delay: 0.15s; }
.fone-digitando i:nth-child(3) { animation-delay: 0.3s; }
@keyframes fone-ponto { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.fone-entrada {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px 14px;
}
.fone-entrada span {
  flex: 1; padding: 8px 14px; border-radius: 18px;
  background: #ffffff; color: #6b6b6b; font-size: 13px;
}
.fone-entrada b {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #0a0a0a; color: #ffffff; font-size: 13px; font-weight: 600;
}
/* a mensagem que acabou de chegar */
.fone-msg.fone-entra { opacity: 0; transform: translateY(10px); }
.fone-msg { transition: opacity 300ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (prefers-reduced-motion: reduce) {
  .fone-msg { transition: none; }
  .fone-digitando i { animation: none; opacity: 0.6; }
}
