/* TLF Desk — compact visitor widget */
.tlf-desk-root { font-family: "IBM Plex Sans Condensed", system-ui, sans-serif; }
.tlf-desk-panel {
  position: fixed; z-index: 60; right: 1rem; bottom: 4.5rem;
  width: min(20rem, calc(100vw - 2rem)); max-height: min(58vh, 26rem);
  display: none; flex-direction: column;
  background: #0a1224; color: #f4f0e6; border: 1px solid rgba(244,240,230,0.2);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.tlf-desk-panel.is-open { display: flex; }
.tlf-desk-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid rgba(244,240,230,0.15);
}
.tlf-desk-head strong { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.tlf-desk-head span { display: block; margin-top: 0.15rem; font-size: 0.7rem; color: #a8b0c0; letter-spacing: normal; text-transform: none; }
.tlf-desk-close {
  border: 1px solid rgba(244,240,230,0.25); background: transparent; color: #f4f0e6;
  width: 1.85rem; height: 1.85rem; cursor: pointer;
}
.tlf-desk-msgs {
  flex: 1; overflow-y: auto; padding: 0.75rem 0.9rem; display: flex; flex-direction: column; gap: 0.55rem;
  min-height: 8rem;
}
.tlf-desk-bubble {
  max-width: 92%; padding: 0.45rem 0.6rem; font-size: 0.85rem; line-height: 1.35;
  border: 1px solid rgba(244,240,230,0.15); white-space: pre-wrap; word-break: break-word;
}
.tlf-desk-bubble.from-visitor { align-self: flex-end; background: #121c33; }
.tlf-desk-bubble.from-bot, .tlf-desk-bubble.from-human, .tlf-desk-bubble.from-system {
  align-self: flex-start; background: #071018;
}
.tlf-desk-meta { font-size: 0.65rem; color: #a8b0c0; margin-top: 0.2rem; }
.tlf-desk-form {
  border-top: 1px solid rgba(244,240,230,0.15);
  padding: 0.55rem 0.9rem 0.7rem;
  display: grid; gap: 0.4rem;
}
.tlf-desk-form input, .tlf-desk-form textarea {
  width: 100%; box-sizing: border-box; background: #071018; color: #f4f0e6;
  border: 1px solid rgba(244,240,230,0.2); padding: 0.45rem 0.55rem; font: inherit; font-size: 0.85rem;
}
.tlf-desk-form textarea { min-height: 2.4rem; max-height: 4.5rem; resize: vertical; }
.tlf-desk-form .tlf-desk-email-wrap[hidden] { display: none !important; }
.tlf-desk-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }
.tlf-desk-send {
  border: 1px solid rgba(244,240,230,0.35); background: #121c33; color: #f4f0e6;
  padding: 0.45rem 0.8rem; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.tlf-desk-send:disabled { opacity: 0.5; cursor: wait; }
.tlf-desk-note { font-size: 0.68rem; color: #a8b0c0; margin: 0; }
.tlf-desk-error { color: #f0a8a8; font-size: 0.75rem; }
@media (max-width: 640px) {
  .tlf-desk-panel { right: 0.75rem; left: 0.75rem; width: auto; bottom: 4.25rem; }
}
