/* O raio maior representa o aparelho; os componentes da landing usam 8 px. */
.phone {
  width: 344px;
  height: auto;
  min-height: 672px;
  max-width: 100%;
  background: #101115;
  border: 6px solid #383a40;
  border-radius: 40px;
  padding: 7px;
  box-shadow:
    0 24px 64px #0006,
    0 0 0 1px #86878d;
  position: relative;
  color: #f1f2f5;
  font-family: Inter, Arial, sans-serif;
  text-align: left;
}
.phone-screen {
  min-height: 646px;
  overflow: hidden;
  border-radius: 27px;
  background: #111b21;
  display: flex;
  flex-direction: column;
}
.phone-status {
  height: 24px;
  flex-shrink: 0;
  background: #202c33;
  display: flex;
  justify-content: space-between;
  padding: 4px 16px;
  font-size: 10px;
  font-weight: 600;
}
.phone-camera {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 17px;
  border-radius: 16px;
  background: #101115;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #202c33;
  padding: 8px 12px;
  flex-shrink: 0;
}
.chat-head strong {
  display: block;
  font-size: 12px;
  line-height: 1.4;
}
.chat-head small {
  display: block;
  font-size: 10px;
  color: #c1c9ce;
}
.chat-head svg {
  width: 16px;
  height: 16px;
  color: #c1c9ce;
}
.avatar {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #39434a;
  font-size: 9px;
  color: #e8edf0;
  font-weight: 600;
}
.chat-head > .avatar {
  height: 32px;
  width: 32px;
  font-size: 12px;
  background: #514329;
  color: #f2b441;
}
.chat-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow: visible;
  scrollbar-width: thin;
  scrollbar-color: #53565f transparent;
}
.chat-date {
  text-align: center;
  color: #bbc6cc;
  font-size: 10px;
  margin: 0 0 2px;
}
.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 5px;
}
.chat-row.student {
  flex-direction: row-reverse;
}
.bubble {
  max-width: 253px;
  background: #243139;
  padding: 7px 9px;
  border-radius: 8px 8px 8px 0;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 1px 1px #0002;
}
.student .bubble {
  background: #164b42;
  border-radius: 8px 8px 0 8px;
}
.bubble p {
  margin: 0;
  color: #f1f2f5;
  text-wrap: pretty;
}
.bubble time {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  font-size: 9px;
  color: #cad3d7;
  margin-top: 3px;
}
.bubble time svg {
  height: 12px;
  width: 16px;
  color: #84d5f4;
}
.attachment {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
  background: #123e38;
  padding: 5px;
  border-radius: 4px;
}
.attachment img {
  width: 45px;
  height: 80px;
  object-fit: contain;
  border-radius: 2px;
}
.attachment span {
  font-size: 10px;
  color: #d4dedc;
}
.attachment strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #f1f2f5;
}
.typing {
  min-width: 64px;
  padding: 12px;
  display: flex;
  gap: 4px;
}
.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c1c9ce;
}
.chat-row[hidden] {
  display: none;
}
.chat-compose {
  margin: 6px 8px 8px;
  padding: 9px 12px;
  border-radius: 20px;
  background: #243139;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #aab8c0;
  font-size: 11px;
  flex-shrink: 0;
}
.chat-compose svg {
  width: 16px;
  height: 16px;
}
.phone-home {
  width: 96px;
  height: 3px;
  background: #c0c2c8;
  border-radius: 4px;
  margin: 2px auto 7px;
  flex-shrink: 0;
}
.phone .chat-head p {
  margin: 0;
}
.phone .chat-row.is-new {
  animation: bubble-in 240ms cubic-bezier(0.2, 0, 0, 1);
}
@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes typing-dot {
  50% {
    opacity: 0.35;
    transform: translateY(-2px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .typing i {
    animation: typing-dot 900ms ease-in-out infinite;
  }
  .typing i:nth-child(2) {
    animation-delay: 150ms;
  }
  .typing i:nth-child(3) {
    animation-delay: 300ms;
  }
}
@media (prefers-reduced-motion: reduce) {
  .phone .chat-row.is-new {
    animation: none;
  }
  .phone {
    height: auto;
    min-height: 672px;
  }
  .phone-screen {
    min-height: 646px;
  }
  .chat-body {
    overflow: visible;
  }
}
.phone .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.avatar {
  overflow: hidden;
}
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
