#ln-desk-root {
  --ln-ink: #1d2b22;
  --ln-paper: #f7f3ea;
  --ln-forest: #234033;
  --ln-brass: #a68445;
  --ln-line: rgba(29, 43, 34, 0.12);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ln-ink);
}

#ln-desk-root button,
#ln-desk-root input,
#ln-desk-root textarea {
  font: inherit;
}

.ln-desk-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--ln-forest);
  color: #f7f3ea;
  padding: 12px 16px 12px 12px;
  box-shadow: 0 12px 30px rgba(29, 43, 34, 0.28);
  cursor: pointer;
}

.ln-desk-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ln-brass);
  color: #1d2b22;
  font-family: Georgia, serif;
  font-size: 13px;
}

.ln-desk-panel {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 99999;
  display: none;
  width: min(400px, calc(100vw - 24px));
  height: min(640px, calc(100dvh - 110px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ln-line);
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 24px 60px rgba(29, 43, 34, 0.22);
}

.ln-desk-panel.is-open {
  display: flex;
}

.ln-desk-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  background: var(--ln-forest);
  color: #f7f3ea;
}

.ln-desk-head p {
  margin: 0;
}

.ln-desk-kicker {
  color: var(--ln-brass);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ln-desk-head strong {
  display: block;
  margin-top: 4px;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}

.ln-desk-close {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.ln-desk-log {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: var(--ln-paper);
}

.ln-desk-row {
  display: flex;
  margin-bottom: 12px;
}

.ln-desk-row.is-user {
  justify-content: flex-end;
}

.ln-desk-bubble {
  max-width: 88%;
  white-space: pre-wrap;
  border-radius: 16px;
  padding: 10px 12px;
  line-height: 1.45;
  font-size: 14.5px;
}

.is-user .ln-desk-bubble {
  background: var(--ln-forest);
  color: #f7f3ea;
  border-bottom-right-radius: 5px;
}

.is-assistant .ln-desk-bubble {
  background: white;
  border: 1px solid var(--ln-line);
  border-bottom-left-radius: 5px;
}

.ln-desk-sources,
.ln-desk-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ln-desk-sources a,
.ln-desk-suggestions button,
.ln-desk-lead-btn,
.ln-desk-send,
.ln-desk-submit {
  border: 1px solid var(--ln-line);
  background: white;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--ln-ink);
  cursor: pointer;
  text-decoration: none;
}

.ln-desk-lead-btn,
.ln-desk-send,
.ln-desk-submit {
  background: var(--ln-forest);
  color: #f7f3ea;
  border-color: var(--ln-forest);
}

.ln-desk-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--ln-line);
  background: white;
}

.ln-desk-form textarea {
  flex: 1;
  resize: none;
  min-height: 46px;
  border: 1px solid var(--ln-line);
  border-radius: 12px;
  padding: 8px 10px;
}

.ln-desk-card {
  margin-top: 8px;
  padding: 10px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--ln-line);
}

.ln-desk-card input,
.ln-desk-card textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  border: 1px solid var(--ln-line);
  border-radius: 10px;
  padding: 8px 10px;
}

.ln-desk-error {
  color: #8d2d2d;
  font-size: 13px;
  margin: 0 0 8px;
}

.ln-desk-honeypot {
  position: absolute;
  left: -9999px;
}

@media (max-width: 640px) {
  .ln-desk-panel {
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .ln-desk-launcher {
    right: 12px;
    bottom: 12px;
  }
}
