.support-chat {
  height: min(640px, 80dvh);
  min-height: 480px;
  background: #0c1828;
  color: #f7f9fc;
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.support-chat header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.support-chat .avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #f2b84b;
  color: #17202b;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.support-chat header div:nth-child(2) { display: grid; gap: 4px; }
.support-chat header strong { font-size: 15px; color: #f7f9fc; }
.support-chat header span { font-size: 12px; color: #9ba8bb; }
.support-chat header i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4bd28f;
  margin-right: 5px;
}
.support-chat .reset {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #9eacbd;
  font-size: 22px;
  cursor: pointer;
}
.support-chat .messages { padding: 24px; overflow: auto; }
.support-chat .day { text-align: center; color: #748397; font-size: 11px; margin-bottom: 20px; }
.support-chat .bubble { max-width: 82%; margin: 0 0 14px; }
.support-chat .bubble p {
  padding: 13px 16px;
  margin: 0;
  border-radius: 7px 17px 17px 17px;
  background: #18283a;
  color: #e5eaf1;
  line-height: 1.5;
  font-size: 14px;
  white-space: pre-wrap;
}
.support-chat .bubble time { display: block; font-size: 10px; color: #728196; margin: 6px 8px; }
.support-chat .bubble.user { margin-left: auto; }
.support-chat .bubble.user p { background: #f2b84b; color: #17202b; border-radius: 17px 7px 17px 17px; }
.support-chat .bubble.user time { text-align: right; }
.support-chat .bubble.pending { opacity: .65; }
.support-chat form { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 14px 18px 16px; }
.support-chat .identity { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.support-chat .identity label {
  font-size: 10px;
  color: #9eacbd;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.support-chat .identity input {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: #101f30;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 11px;
  color: #fff;
}
.support-chat .composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: #101f30;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 9px;
}
.support-chat .composer textarea {
  flex: 1;
  resize: none;
  max-height: 120px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  padding: 7px;
  font: inherit;
  line-height: 1.45;
}
.support-chat .composer button {
  border: 0;
  border-radius: 10px;
  background: #f2b84b;
  color: #17202b;
  height: 40px;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}
.support-chat .status { text-align: center; margin: 9px 0 0; color: #77869a; font-size: 12px; }
.support-chat .status.error { color: #ff8f8f; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
@media (max-width: 640px) {
  .support-chat { min-height: 420px; height: 70dvh; }
  .support-chat .identity { grid-template-columns: 1fr; }
}
