.lc-chat {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: #0f172a;
}
.lc-chat-launcher {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  border-radius: 999px;
  background: #22d3ee;
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 30px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lc-chat-launcher:hover { background: #0e7490; }
.lc-chat-launcher:focus-visible, .lc-chat-close:focus-visible, .lc-chat-send:focus-visible, .lc-chat-input:focus-visible, .lc-chat-action:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 3px;
}
.lc-chat-panel {
  position: fixed;
  right: 1rem;
  bottom: calc(5.2rem + env(safe-area-inset-bottom));
  z-index: 50;
  width: min(22.5rem, calc(100vw - 2rem));
  max-height: min(34rem, calc(100vh - 7rem));
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 30px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}
.lc-chat-panel[hidden] { display: none; }
.lc-chat-head {
  background: #0f172a;
  color: #f8fafc;
  padding: 0.75rem 0.85rem 0.65rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.lc-chat-title { margin: 0; font-size: 1rem; line-height: 1.3; }
.lc-chat-note { margin: 0.25rem 0 0; color: #cbd5e1; font-size: 0.82rem; line-height: 1.35; }
.lc-chat-close {
  border: 0;
  background: transparent;
  color: #f8fafc;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
}
.lc-chat-log {
  flex: 1 1 auto;
  min-height: 9rem;
  overflow: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: #f8fafc;
}
.lc-chat-msg {
  max-width: 92%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  line-height: 1.4;
  font-size: 0.94rem;
}
.lc-chat-msg p { margin: 0; }
.lc-chat-msg-user { align-self: flex-end; background: #0f172a; color: #fff; }
.lc-chat-msg-bot { align-self: flex-start; background: #fff; color: #0f172a; border: 1px solid #e2e8f0; }
.lc-chat-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.45rem; }
.lc-chat-action {
  display: inline-block;
  border: 1px solid #22d3ee;
  color: #22d3ee;
  background: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  text-decoration: none;
  font-size: 0.82rem;
}
.lc-chat-action:hover { background: #22d3ee; color: #fff; }
.lc-chat-form {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.lc-chat-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 16px;
  color: #0f172a;
  background: #fff;
}
.lc-chat-send {
  border: 0;
  background: #22d3ee;
  color: #fff;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  cursor: pointer;
}
.lc-chat-send:hover { background: #0e7490; }
.lc-chat-send:disabled { opacity: 0.6; cursor: progress; }
@media (max-width: 640px) {
  .lc-chat-panel { left: 0.75rem; right: 0.75rem; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .lc-chat-launcher, .lc-chat-panel { transition: none; }
}
