.live-desk {
  --desk-accent: #f2b84b;
  --desk-ink: #f7f9fc;
  --desk-muted: #9ba8bb;
  --desk-line: rgba(255,255,255,.1);
}
.live-desk .chat {
  height: min(640px, 75dvh);
  min-height: 420px;
  max-width: 100%;
  background: #2A1812;
  border: 1px solid rgba(235, 205, 186, 0.28);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.live-desk .chat header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(235, 205, 186, 0.2);
  background: rgba(255,255,255,.03);
  color: #FFF8F2;
}
.live-desk .avatar {
  width: 42px;
  height: 42px;
  background: var(--desk-accent);
  color: #17202b;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 42px;
}
.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;
  min-width: 44px;
  min-height: 44px;
}
.live-desk .messages { padding: 20px; overflow: auto; background: #1C120E; }
.live-desk .day { text-align: center; color: #748397; font-size: 11px; margin-bottom: 16px; }
.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: #312019;
  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 rgba(235, 205, 186, 0.2);
  padding: 14px 16px 16px;
  background: #2A1812;
}
.live-desk .identity {
  display: grid;
  grid-template-columns: 1fr 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: #1C120E;
  border: 1px solid rgba(235, 205, 186, 0.28);
  padding: 11px;
  color: #fff;
  outline: none;
}
.live-desk .composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: #1C120E;
  border: 1px solid rgba(235, 205, 186, 0.28);
  padding: 9px;
}
.live-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;
  min-width: 0;
}
.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: 12px;
}
.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: 640px) {
  .live-desk .identity { grid-template-columns: 1fr; }
  .live-desk .chat { height: min(560px, 70dvh); min-height: 380px; }
  .live-desk .composer button span { display: none; }
  .live-desk .composer button b { display: block; font-size: 18px; }
}
