.lc-root,
.support-app {
  --sc-accent: #087d84;
  --sc-accent2: #287de0;
  --sc-bg: #fff;
  --sc-soft: #f3f6f8;
  --sc-text: #172c3b;
  --sc-muted: #70818e;
  --sc-line: #e3eaf0;
  --sc-shadow: 0 20px 70px #163e6224;
  --sc-green: #08a88a;
  font-family: Inter, Manrope, system-ui, sans-serif;
  color: var(--sc-text);
  font-size: 14px;
  line-height: 1.5;
}
[data-theme="dark"] :is(.lc-root, .support-app),
.support-app[data-theme="dark"] {
  --sc-bg: #141e29;
  --sc-soft: #1b2936;
  --sc-text: #e4edf6;
  --sc-muted: #97aabd;
  --sc-line: #2c3b4a;
  --sc-shadow: 0 20px 70px #0006;
  --sc-accent: #51c7c2;
}
.lc-root *,
.support-app * {
  box-sizing: border-box;
}
.lc-root [hidden],
.support-app [hidden] {
  display: none !important;
}
.sc-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.lc-root button,
.lc-root input,
.lc-root textarea,
.support-app button,
.support-app input,
.support-app textarea,
.support-app select {
  font: inherit;
  color: inherit;
}
.lc-root button,
.support-app button {
  cursor: pointer;
}
.lc-root button:disabled,
.support-app button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.lc-root :is(button, input, textarea, a):focus-visible,
.support-app :is(button, input, textarea, a, select):focus-visible {
  outline: 3px solid #43c9ca;
  outline-offset: 3px;
}
.sc-avatar {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  background: #d7ebe9;
  color: #176864;
  border-radius: 11px;
  object-fit: cover;
  font-size: 10px;
  font-weight: 800;
}
.sc-avatar-ai {
  background: linear-gradient(130deg, #e0f5f1, #dcebf9);
  color: #148a8e;
}
.sc-avatar-ai .sc-icon {
  width: 16px;
  height: 16px;
}
.sc-messages {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.sc-message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 16px 0;
}
.sc-message.is-mine {
  flex-direction: row-reverse;
}
.sc-message-content {
  max-width: calc(100% - 40px);
  min-width: 0;
}
.sc-sender {
  display: block;
  font-size: 10px;
  color: var(--sc-muted);
  margin: 0 3px 4px;
}
.sc-sender b {
  font-size: 8px;
  padding: 1px 4px;
  border: 1px solid var(--sc-line);
  border-radius: 4px;
  margin-left: 5px;
}
.is-mine .sc-sender {
  text-align: right;
}
.sc-bubble {
  border: 1px solid var(--sc-line);
  background: var(--sc-bg);
  border-radius: 15px 15px 15px 4px;
  padding: 11px 13px;
  overflow-wrap: anywhere;
  box-shadow: 0 2px 6px #132a3e03;
}
.is-mine .sc-bubble {
  background: linear-gradient(135deg, #168f96, #297cbb);
  color: white;
  border-color: transparent;
  border-radius: 15px 15px 4px 15px;
}
.sc-bubble p {
  margin: 0;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.65;
}
.sc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: var(--sc-muted);
  margin: 5px 3px 0;
}
.is-mine .sc-meta {
  justify-content: flex-end;
}
.sc-read .sc-icon {
  width: 13px;
  height: 13px;
  vertical-align: middle;
}
.sc-read.is-read {
  color: var(--sc-accent);
}
.sc-system {
  margin: 18px auto;
  text-align: center;
  max-width: 95%;
  color: var(--sc-muted);
  font-size: 11px;
  line-height: 1.7;
}
.sc-system time {
  display: block;
  font-size: 9px;
  margin-top: 3px;
}
.sc-file {
  display: flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  border: 1px solid currentColor;
  border-color: #9fb6c94d;
  border-radius: 9px;
  padding: 7px;
  margin-top: 6px;
  text-decoration: none;
  max-width: 250px;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.sc-file img {
  width: 62px;
  height: 62px;
  border-radius: 6px;
  object-fit: cover;
}
.sc-file small {
  display: block;
  opacity: 0.65;
  font-size: 9px;
}
.sc-load {
  display: block;
  margin: 8px auto;
  border: 1px solid var(--sc-line);
  background: var(--sc-bg);
  border-radius: 15px;
  padding: 5px 12px;
  font-size: 11px;
  color: var(--sc-muted);
}
.sc-skeleton {
  height: 70px;
  background: linear-gradient(
    90deg,
    var(--sc-soft),
    var(--sc-line),
    var(--sc-soft)
  );
  background-size: 200% 100%;
  animation: sc-skeleton 1.7s ease-in-out infinite;
  border-radius: 15px;
  width: 82%;
  margin: 20px 0;
}
.sc-skeleton:nth-child(2) {
  margin-left: auto;
  width: 63%;
}
.sc-empty {
  display: grid;
  place-content: center;
  text-align: center;
  min-height: 160px;
  padding: 24px;
  color: var(--sc-muted);
  gap: 10px;
}
.sc-empty > .sc-icon {
  margin: auto;
  width: 36px;
  height: 36px;
  color: var(--sc-accent);
}
.sc-empty h2,
.sc-empty h3 {
  margin: 0;
  color: var(--sc-text);
}
.sc-empty p {
  max-width: 270px;
  margin: 0 auto;
  font-size: 12px;
}
.lc-root {
  position: relative;
  z-index: 1500;
}
.lc-launcher {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: 24px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #9ee7dfb3;
  background: linear-gradient(145deg, #64d2eccc, #14ac96ee 70%);
  backdrop-filter: blur(14px);
  box-shadow:
    0 7px 25px #059e9c4d,
    inset 0 1px 2px #fff9;
  color: #fff;
  transition:
    transform 0.3s cubic-bezier(0.2, 1.5, 0.5, 1),
    box-shadow 0.3s;
  isolation: isolate;
}
.lc-launcher:before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid #1bb6ad42;
  border-radius: inherit;
  animation: lc-pulse 3.5s ease-out infinite;
  z-index: -1;
  pointer-events: none;
}
.lc-launcher > .sc-icon {
  width: 28px;
  height: 28px;
  animation: lc-icon 6s ease-in-out infinite;
}
.lc-launcher:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 32px #059e9c66;
}
.lc-launcher:active {
  transform: scale(0.92);
}
.lc-unread {
  position: absolute;
  top: -3px;
  right: -2px;
  min-width: 21px;
  height: 21px;
  padding: 1px 5px;
  border-radius: 20px;
  border: 2px solid var(--sc-bg);
  background: #e65864;
  color: #fff;
  font-weight: 750;
  font-size: 10px;
}
.lc-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--sc-bg);
  color: var(--sc-text);
  border: 1px solid var(--sc-line);
  box-shadow: var(--sc-shadow);
  opacity: 0;
  transform: translateX(7px);
  pointer-events: none;
  transition: 0.2s;
  font-size: 12px;
}
.lc-launcher:is(:hover, :focus-visible) .lc-tooltip {
  opacity: 1;
  transform: translateX(0);
}
.lc-panel {
  position: fixed;
  bottom: 98px;
  right: 24px;
  width: 380px;
  height: min(560px, calc(100dvh - 125px));
  display: flex;
  flex-direction: column;
  background: var(--sc-bg);
  border: 1px solid var(--sc-line);
  border-radius: 22px;
  box-shadow: var(--sc-shadow);
  overflow: hidden;
  transform-origin: bottom right;
}
.lc-panel.is-opening {
  animation: lc-open 0.4s cubic-bezier(0.18, 1.1, 0.45, 1);
}
.lc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 15px;
  background: linear-gradient(125deg, #168e99, #197e9f 62%, #3995af);
  color: white;
  flex-shrink: 0;
}
.lc-header > img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: #fffffff0;
  padding: 4px;
  border-radius: 12px;
}
.lc-header > div {
  flex: 1;
  min-width: 0;
}
.lc-header h2 {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.2px;
  margin: 0;
}
.lc-header p {
  font-size: 10px;
  opacity: 0.85;
  margin: 3px 0 0;
}
.lc-header button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 30px;
  border: 0;
  background: transparent;
  color: white;
  border-radius: 7px;
  padding: 0;
}
.lc-header button:hover {
  background: #ffffff20;
}
.lc-header .sc-icon {
  width: 17px;
  height: 17px;
}
.lc-connection {
  font-size: 10px;
  text-align: center;
  padding: 6px;
  background: #fff2d4;
  color: #8c6217;
}
.lc-toolbar {
  display: flex;
  justify-content: space-between;
  padding: 8px 15px;
  border-bottom: 1px solid var(--sc-line);
  background: var(--sc-bg);
  gap: 8px;
}
.lc-toolbar button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 0;
  border: 0;
  background: none;
  font-size: 10px;
  color: var(--sc-muted);
}
.lc-toolbar .sc-icon {
  width: 13px;
  height: 13px;
}
.lc-messages {
  padding: 6px 15px 12px;
  flex: 1;
  min-height: 90px;
  background:
    radial-gradient(ellipse at 90% 5%, #00a4a507, transparent 70%),
    var(--sc-soft);
}
.lc-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 15px 10px;
  background: var(--sc-soft);
}
.lc-quick:empty {
  display: none;
}
.lc-quick button {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--sc-bg);
  border: 1px solid var(--sc-line);
  color: var(--sc-accent);
  border-radius: 15px;
  padding: 6px 10px;
  font-size: 10px;
  transition: background 0.15s;
}
.lc-quick button:hover {
  background: #20b8b31a;
}
.lc-quick .sc-icon {
  width: 12px;
  height: 12px;
}
.lc-compose {
  padding: 11px 12px 8px;
  border-top: 1px solid var(--sc-line);
  background: var(--sc-bg);
  margin: 0;
}
.lc-input-row {
  display: flex;
  gap: 5px;
  align-items: flex-end;
}
.lc-input-row textarea {
  resize: none;
  flex: 1;
  min-width: 0;
  max-height: 90px;
  height: 39px;
  padding: 10px 8px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 12px;
  line-height: 19px;
}
.lc-root .lc-input-row textarea:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.lc-input-row:focus-within {
  outline: 2px solid #42bcbc;
  outline-offset: 2px;
  border-radius: 11px;
}
.lc-input-row button {
  display: grid;
  place-items: center;
  width: 35px;
  height: 37px;
  border: 0;
  background: transparent;
  color: var(--sc-muted);
  border-radius: 11px;
  padding: 0;
  flex-shrink: 0;
}
.lc-input-row .lc-send {
  color: white;
  background: linear-gradient(135deg, #16a59e, #337ecd);
}
.lc-input-row .sc-icon {
  width: 19px;
  height: 19px;
}
.lc-powered {
  display: block;
  font-size: 8px;
  color: var(--sc-muted);
  text-align: center;
  margin-top: 6px;
  letter-spacing: 0.3px;
}
.lc-notice {
  padding: 8px 15px;
  background: #0da29b0b;
  border-top: 1px solid var(--sc-line);
  font-size: 10px;
  color: var(--sc-muted);
}
.lc-notice.is-error {
  color: #cc4b5f;
}
.lc-pending {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.lc-pending > span {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--sc-soft);
  padding: 3px 6px;
  border-radius: 6px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.lc-pending button {
  background: none;
  border: 0;
  padding: 0;
  display: flex;
}
.lc-pending .sc-icon {
  width: 12px;
  height: 12px;
}
.lc-typing {
  padding: 6px 20px;
  background: var(--sc-soft);
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--sc-muted);
}
.lc-typing > span {
  width: 4px;
  height: 4px;
  background: var(--sc-accent);
  border-radius: 50%;
  animation: lc-dot 1.2s infinite;
}
.lc-typing > span:nth-child(2) {
  animation-delay: 0.15s;
}
.lc-typing > span:nth-child(3) {
  animation-delay: 0.3s;
}
.lc-typing small {
  font-size: 9px;
  margin-left: 5px;
}
.lc-threads {
  max-height: 180px;
  overflow: auto;
  border-bottom: 1px solid var(--sc-line);
  padding: 8px 15px;
}
.lc-threads button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 7px;
  font-size: 11px;
}
.lc-threads small {
  color: var(--sc-muted);
  font-size: 9px;
}
.lc-threads p {
  font-size: 11px;
  color: var(--sc-muted);
}
@keyframes lc-open {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.88);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes lc-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.95);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}
@keyframes lc-icon {
  0%,
  90%,
  100% {
    transform: rotate(0);
  }
  93% {
    transform: rotate(-8deg);
  }
  96% {
    transform: rotate(6deg);
  }
}
@keyframes lc-dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}
@keyframes sc-message-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes sc-skeleton {
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 768px) {
  .lc-launcher {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: calc(
      var(--dg-mobile-clearance, env(safe-area-inset-bottom, 0px)) + 18px
    );
  }
  .lc-panel {
    right: 12px;
    bottom: calc(
      var(--dg-mobile-clearance, env(safe-area-inset-bottom, 0px)) + 80px
    );
    width: min(380px, calc(100% - 24px));
    height: min(560px, calc(100dvh - var(--dg-mobile-clearance, 0px) - 106px));
    max-height: calc(100dvh - 105px);
    border-radius: 18px;
  }
  .lc-tooltip {
    display: none;
  }
  .lc-header {
    padding: 13px 12px;
  }
  .lc-header h2 {
    font-size: 14px;
  }
  .lc-messages {
    padding-inline: 11px;
  }
  .sc-bubble {
    padding: 9px 11px;
  }
  .sc-bubble p {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lc-root *,
  .lc-root *:before,
  .support-app * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
