.contact-desk {
  --accent: #f2b84b;
  --ink: #f7f9fc;
  --muted: #9ba8bb;
  --line: rgba(255, 255, 255, .1);
  color: var(--ink);
  max-width: 44rem;
  margin: 1.2rem 0 0;
}
.contact-desk .chat {
  height: min(640px, 78dvh);
  min-height: 480px;
  background: #0c1828;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .18);
}
.contact-desk .chat header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .018);
}
.contact-desk .avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--accent);
  color: #17202b;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.contact-desk .chat header div:nth-child(2) {
  display: grid;
  gap: 4px;
}
.contact-desk .chat header strong { font-size: 15px; }
.contact-desk .chat header span { font-size: 12px; color: var(--muted); }
.contact-desk .chat header i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4bd28f;
  margin-right: 5px;
}
.contact-desk .reset {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #9eacbd;
  font-size: 22px;
  cursor: pointer;
}
.contact-desk .messages {
  padding: 24px;
  overflow: auto;
}
.contact-desk .day {
  text-align: center;
  color: #748397;
  font-size: 11px;
  margin-bottom: 20px;
}
.contact-desk .bubble { max-width: 82%; margin: 0 0 14px; }
.contact-desk .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;
}
.contact-desk .bubble time {
  display: block;
  font-size: 10px;
  color: #728196;
  margin: 6px 8px;
}
.contact-desk .bubble.user { margin-left: auto; }
.contact-desk .bubble.user p {
  background: var(--accent);
  color: #17202b;
  border-radius: 17px 7px 17px 17px;
}
.contact-desk .bubble.user time { text-align: right; }
.contact-desk .bubble.pending { opacity: .65; }
.contact-desk .chat form {
  border-top: 1px solid var(--line);
  padding: 14px 18px 16px;
}
.contact-desk .identity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.contact-desk .identity label {
  font-size: 10px;
  color: #9eacbd;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.contact-desk .identity input {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: #101f30;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px;
  color: #fff;
  outline: none;
}
.contact-desk .identity input:focus,
.contact-desk .composer:focus-within { border-color: var(--accent); }
.contact-desk .composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: #101f30;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px;
}
.contact-desk .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;
}
.contact-desk .composer button {
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #17202b;
  height: 40px;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}
.contact-desk .composer button b { display: none; }
.contact-desk .status {
  text-align: center;
  margin: 9px 0 0;
  color: #77869a;
  font-size: 10px;
}
.contact-desk .status.error { color: #ff8f8f; }
.contact-desk .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 800px) {
  .contact-desk .identity { grid-template-columns: 1fr; }
  .contact-desk .composer button span { display: none; }
  .contact-desk .composer button b { display: block; font-size: 18px; }
  .contact-desk .chat {
    height: min(560px, 72dvh);
    min-height: 420px;
    border-radius: 16px;
  }
}
