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