.lb-support {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10040;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans Lao", sans-serif;
}
.lb-support-launch {
  width: 76px;
  height: 76px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  display: block;
}
.lb-support-launch img {
  width: 76px;
  height: 76px;
  display: block;
  object-fit: contain;
}
.lb-support-launch:hover { transform: translateY(-2px); }
.lb-support-panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(380px, calc(100vw - 24px));
  height: min(640px, calc(100dvh - 120px));
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(23, 53, 54, 0.18);
  border: 1px solid #e6ecea;
  flex-direction: column;
}
.lb-support.is-open .lb-support-panel { display: flex; }
.lb-support.is-open .lb-support-launch { display: none; }
.lb-support-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  background: #0b4f4a;
  color: #fff;
}
.lb-support-avatar {
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: transparent;
  display: block;
  flex: none;
  object-fit: contain;
}
.lb-support-head strong { display: block; font-size: 15px; }
.lb-support-head span { display: block; font-size: 12px; opacity: 0.85; }
.lb-support-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lb-support-log {
  flex: 1;
  overflow: auto;
  padding: 14px;
  background: #f6f8f7;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lb-support-msg {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.lb-support-msg.is-assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e6ecea;
  color: #173536;
}
.lb-support-msg.is-user {
  align-self: flex-end;
  background: #0b4f4a;
  color: #fff;
}
.lb-support-typing { color: #5c6b6a; font-size: 13px; }
.lb-support-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e6ecea;
  background: #fff;
}
.lb-support-form textarea {
  flex: 1;
  resize: none;
  height: 44px;
  border: 1px solid #d7e0de;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
}
.lb-support-form button {
  border: 0;
  border-radius: 12px;
  background: #c9a23a;
  color: #fff;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
}
.lb-support-form button:disabled { opacity: 0.55; cursor: default; }
.lb-support-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px 10px;
  background: #fff;
  font-size: 12px;
  color: #5c6b6a;
}
.lb-support-foot a { color: #0b4f4a; }
@media (max-width: 640px) {
  .lb-support { right: 12px; bottom: 12px; }
  .lb-support-panel {
    position: fixed;
    right: 8px;
    left: 8px;
    bottom: 8px;
    width: auto;
    height: min(78dvh, 640px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lb-support-launch, .lb-support-panel { transition: none; }
  .lb-support-launch:hover { transform: none; }
}
