.lnc-ai-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: min(380px, calc(100vw - 24px));
}
.lnc-ai-chat__toggle {
  width: 100%;
  border: 0;
  cursor: pointer;
  min-height: 56px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #c5a57b 0%, #d4b792 100%);
  box-shadow: 0 18px 36px rgba(148, 110, 58, 0.24);
}
.lnc-ai-chat__panel {
  margin-top: 12px;
  border-radius: 28px;
  border: 1px solid rgba(48, 43, 41, 0.12);
  background: rgba(255, 252, 247, 0.97);
  box-shadow: 0 24px 48px rgba(48, 43, 41, 0.14);
  overflow: hidden;
}
.lnc-ai-chat__head,
.lnc-ai-chat__form,
.lnc-ai-chat__note {
  padding: 16px 18px;
}
.lnc-ai-chat__head {
  border-bottom: 1px solid rgba(48, 43, 41, 0.08);
}
.lnc-ai-chat__head span,
.lnc-ai-chat__note { color: #6f665f; font-size: 13px; }
.lnc-ai-chat__messages {
  max-height: 320px;
  overflow: auto;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(245,238,229,0.8));
}
.lnc-ai-chat__message {
  padding: 14px 16px;
  border-radius: 20px;
  line-height: 1.55;
}
.lnc-ai-chat__message p { margin: 0; color: inherit; }
.lnc-ai-chat__message.is-assistant {
  background: #fff;
  border: 1px solid rgba(48, 43, 41, 0.08);
}
.lnc-ai-chat__message.is-user {
  background: rgba(197, 165, 123, 0.16);
  margin-left: 28px;
}
.lnc-ai-chat__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.lnc-ai-chat__source {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f6f1ea;
  border: 1px solid rgba(48,43,41,.08);
  font-size: 12px;
}
.lnc-ai-chat__form { display: grid; gap: 12px; border-top: 1px solid rgba(48,43,41,0.08); }
.lnc-ai-chat__form textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(48, 43, 41, 0.12);
  background: #fff;
  min-height: 84px;
  padding: 14px 16px;
  font: inherit;
  resize: vertical;
}
@media (max-width: 720px) {
  .lnc-ai-chat { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}
