.xq-ai-chat {
  --xq-ai-mobile-bottom-offset: 0px;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1f2937;
}

/* Current theme integration: keep the launcher clear of the fixed mobile
   navigation. The open panel and onboarding both provide their own close
   controls, so the launcher can stay out of the way in those states. */
@media (max-width: 760px) {
  .site-mobile-nav ~ .xq-ai-chat:not(.is-open):not(.has-onboard-popover),
  .home-mobile-nav ~ .xq-ai-chat:not(.is-open):not(.has-onboard-popover) {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .site-mobile-nav ~ .xq-ai-chat.is-open .xq-ai-chat__launcher,
  .site-mobile-nav ~ .xq-ai-chat.has-onboard-popover .xq-ai-chat__launcher,
  .home-mobile-nav ~ .xq-ai-chat.is-open .xq-ai-chat__launcher,
  .home-mobile-nav ~ .xq-ai-chat.has-onboard-popover .xq-ai-chat__launcher {
    display: none;
  }
}

.xq-ai-chat * {
  box-sizing: border-box;
}

.xq-ai-chat__launcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 246px;
  min-height: 64px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, #1f79ff 0%, #003b8f 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 59, 143, 0.24);
  cursor: pointer;
  text-align: left;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease, border-color 0.12s ease;
}

.xq-ai-chat__launcher:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.54);
  box-shadow: 0 20px 42px rgba(0, 94, 216, 0.34), 0 0 0 6px rgba(31, 121, 255, 0.12);
  filter: brightness(1.06) saturate(1.05);
}

.xq-ai-chat__launcher:active {
  transform: translateY(1px) scale(0.99);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 18px rgba(0, 59, 143, 0.24);
  filter: brightness(0.94) saturate(0.98);
}

.xq-ai-chat__launcher:focus-visible {
  outline: 0;
  box-shadow: 0 14px 30px rgba(0, 59, 143, 0.24), 0 0 0 3px #fff, 0 0 0 6px rgba(31, 121, 255, 0.48);
}

.xq-ai-chat__launcher-icon,
.xq-ai-chat__title-icon,
.xq-ai-chat__avatar {
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.xq-ai-chat__launcher-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.xq-ai-chat__launcher-text {
  display: grid;
  min-width: 0;
  gap: 2px;
  flex: 1 1 auto;
}

.xq-ai-chat__launcher-text strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.xq-ai-chat__launcher-text span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  line-height: 1.2;
}

.xq-ai-chat__launcher-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  align-self: center;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.xq-ai-chat__launcher-status span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.xq-ai-chat__launcher-arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  opacity: 0.82;
  transition: opacity 0.12s ease, transform 0.12s ease, background 0.12s ease;
}

.xq-ai-chat__launcher:hover .xq-ai-chat__launcher-arrow,
.xq-ai-chat__launcher:focus-visible .xq-ai-chat__launcher-arrow {
  background: rgba(255, 255, 255, 0.24);
  opacity: 1;
  transform: translateX(1px);
}

.xq-ai-chat__launcher-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.36);
}

.xq-ai-chat__launcher-badge[hidden] {
  display: none;
}

.xq-ai-chat__nudge {
  position: absolute;
  right: 8px;
  bottom: calc(100% + 12px);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 252px;
  padding: 11px 12px;
  border: 1px solid #cfe1ff;
  border-radius: 6px;
  background: #ffffff;
  color: #123d70;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.15);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
  z-index: 3;
  animation: xq-ai-nudge-in 0.22s ease both;
}

.xq-ai-chat__nudge[hidden] {
  display: none;
}

.xq-ai-chat__toast {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  max-width: 280px;
  padding: 12px 14px;
  border: 1px solid #cfead9;
  border-radius: 10px;
  background: #ffffff;
  color: #0f5132;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  z-index: 5;
  animation: xq-ai-nudge-in 0.22s ease both;
}

.xq-ai-chat__toast[hidden] {
  display: none;
}

.xq-ai-chat__toast::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.xq-ai-chat__toast span {
  flex: 1 1 auto;
}

.xq-ai-chat__toast button {
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.xq-ai-chat__nudge::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border-right: 1px solid #d7e7ff;
  border-bottom: 1px solid #d7e7ff;
  background: #fff;
  transform: rotate(45deg);
}

.xq-ai-chat__nudge span {
  flex: 1 1 auto;
}

.xq-ai-chat__nudge.is-auto {
  cursor: default;
}

.xq-ai-chat__nudge button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: #eef4ff;
  color: #5b6b80;
  cursor: pointer;
}

.xq-ai-chat__nudge button[hidden] {
  display: none;
}

@keyframes xq-ai-nudge-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.xq-ai-chat__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(440px, calc(100vw - 32px));
  max-height: min(82vh, 720px);
  border: 1px solid #d7e2f2;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, width 0.2s ease;
  z-index: 2;
}

.xq-ai-chat.is-large.is-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.xq-ai-chat.is-open .xq-ai-chat__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.xq-ai-chat.is-large .xq-ai-chat__panel {
  position: fixed;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  width: min(920px, calc(100vw - 40px));
  max-height: min(86vh, 760px);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.3);
  transform: translate(-50%, -46%) scale(0.98);
}

.xq-ai-chat.is-large.is-open .xq-ai-chat__panel {
  transform: translate(-50%, -50%) scale(1);
}

.xq-ai-chat.is-large.is-open .xq-ai-chat__launcher {
  opacity: 0;
  pointer-events: none;
}

.xq-ai-chat__header {
  padding: 16px;
  background: linear-gradient(135deg, #003b8f, #0f67d8);
  color: #fff;
}

.xq-ai-chat__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.xq-ai-chat__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xq-ai-chat__title-icon {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.xq-ai-chat__title strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.xq-ai-chat__title span span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.9;
}

.xq-ai-chat__header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xq-ai-chat__new,
.xq-ai-chat__resize {
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.xq-ai-chat__new:hover,
.xq-ai-chat__resize:hover,
.xq-ai-chat__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.xq-ai-chat__close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.xq-ai-chat__guide-v2 {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #bfd4f3;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.xq-ai-chat__guide-stage {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #003b8f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.xq-ai-chat__guide-v2 > strong {
  color: #101828;
  font-size: 15px;
  line-height: 1.45;
}

.xq-ai-chat__guide-summary {
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff;
  color: #475467;
  font-size: 12px;
  line-height: 1.55;
}

.xq-ai-chat__guide-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xq-ai-chat__guide-options button,
.xq-ai-chat__guide-footer button {
  min-height: 32px;
  border: 1px solid #c9d8ef;
  border-radius: 999px;
  background: #fff;
  color: #003b8f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 11px;
}

.xq-ai-chat__guide-options button:hover,
.xq-ai-chat__guide-footer button:hover {
  border-color: #003b8f;
  background: #eaf3ff;
}

.xq-ai-chat__guide-options button.is-primary {
  border-color: #003b8f;
  background: #003b8f;
  color: #fff;
}

.xq-ai-chat__guide-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #eaf0f8;
  padding-top: 8px;
}

.xq-ai-chat__notice {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.92;
}

.xq-ai-chat__body {
  height: min(52vh, 460px);
  padding: 16px;
  overflow: auto;
  background: #f8fafc;
}

.xq-ai-chat__message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.xq-ai-chat__message.is-user {
  display: grid;
  grid-template-columns: minmax(0, auto) 28px;
  justify-content: flex-end;
  align-items: flex-start;
}

.xq-ai-chat__message.is-user .xq-ai-chat__bubble {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.xq-ai-chat__message.is-user .xq-ai-chat__avatar {
  grid-column: 2;
  grid-row: 1;
}

.xq-ai-chat__avatar {
  overflow: hidden;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #1f79ff 0%, #0058d8 100%);
  color: #fff;
  font-size: 12px;
  box-shadow: 0 8px 18px rgba(31, 121, 255, 0.2);
}

.xq-ai-chat__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xq-ai-chat__control-icon,
.xq-ai-chat__service-icon-svg,
.xq-ai-chat__service-arrow-svg {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: currentColor;
  pointer-events: none;
}

.xq-ai-chat__history.has-svg-icon::before,
.xq-ai-chat__new.has-svg-icon::before,
.xq-ai-chat__resize.has-svg-icon::before,
.xq-ai-chat__close.has-svg-icon::before,
.xq-ai-chat__service-icon.has-svg-icon::before,
.xq-ai-chat__input button.has-svg-icon::before {
  display: none;
}

.xq-ai-chat__avatar.has-avatar-image {
  overflow: hidden;
}

.xq-ai-chat__title-icon.has-avatar-image {
  overflow: visible;
}

.xq-ai-chat__title-icon.has-avatar-image {
  border-color: transparent;
  background: linear-gradient(135deg, #267dff 0%, #075ddf 100%);
}

.xq-ai-chat__title-icon.has-avatar-image::before {
  display: none;
}

.xq-ai-chat__title-icon.has-avatar-image img,
.xq-ai-chat__launcher-icon.has-avatar-image img {
  display: block;
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.xq-ai-chat__title-icon.has-avatar-image img {
  position: relative;
  z-index: 1;
}

.xq-ai-chat__message.is-agent .xq-ai-chat__avatar.has-avatar-image img,
.xq-ai-chat__message:not(.is-user) .xq-ai-chat__avatar.has-avatar-image img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.xq-ai-chat__message.is-user .xq-ai-chat__avatar.has-avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xq-ai-chat__bubble {
  max-width: 78%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
}

.xq-ai-chat__expand {
  display: block;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #003b8f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.xq-ai-chat__message.is-user .xq-ai-chat__bubble {
  border-color: #003b8f;
  background: #003b8f;
  color: #fff;
}

.xq-ai-chat__message-attachments {
  display: grid;
  gap: 6px;
  margin-top: 7px;
}

.xq-ai-chat__message-attachment {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: min(240px, 100%);
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  color: #123d70;
  text-decoration: none;
}

.xq-ai-chat__message-attachment.is-image {
  display: grid;
  gap: 5px;
  padding: 5px;
}

.xq-ai-chat__message-attachment img {
  display: block;
  width: min(220px, 100%);
  max-height: 160px;
  border-radius: 6px;
  object-fit: cover;
}

.xq-ai-chat__message-attachment-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 5px;
  background: #e8f1ff;
  color: #1f5fbf;
  font-size: 10px;
  font-weight: 900;
}

.xq-ai-chat__message-attachment-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.xq-ai-chat__onboard-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: none;
  width: 244px;
  z-index: 4;
}

.xq-ai-chat__onboard-popover[hidden] {
  display: none;
}

.xq-ai-chat__onboard {
  margin: 0;
  width: 100%;
  padding: 9px;
  border: 1px solid #cfe2ff;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  animation: xq-ai-nudge-in 0.22s ease both;
}

.xq-ai-chat__onboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.xq-ai-chat__onboard-head strong {
  color: #003b8f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.32;
}

.xq-ai-chat__onboard-head button {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #003b8f;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.xq-ai-chat__onboard p {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.xq-ai-chat__onboard-list {
  display: grid;
  gap: 7px;
  margin-bottom: 0;
}

.xq-ai-chat__onboard-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  min-height: 45px;
  padding: 8px;
  border: 1px solid #e3eefb;
  border-radius: 6px;
  background: #ffffff;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.xq-ai-chat__onboard-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #eaf3ff;
  font-size: 0;
}

.xq-ai-chat__onboard-icon::before {
  content: "";
  width: 15px;
  height: 15px;
  background: #0b67e9;
}

.xq-ai-chat__onboard-item:nth-child(1) .xq-ai-chat__onboard-icon::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 3h8l1 2h3v16H4V5h3l1-2Zm1 5h6V6H9v2Zm-1 4h8v-2H8v2Zm0 4h8v-2H8v2Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 3h8l1 2h3v16H4V5h3l1-2Zm1 5h6V6H9v2Zm-1 4h8v-2H8v2Zm0 4h8v-2H8v2Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__onboard-item:nth-child(2) .xq-ai-chat__onboard-icon::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 4h14v16H5V4Zm3 4v3h8V8H8Zm0 6v2h8v-2H8Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 4h14v16H5V4Zm3 4v3h8V8H8Zm0 6v2h8v-2H8Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__onboard-item:nth-child(3) .xq-ai-chat__onboard-icon::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.2 6.6 6.6l2.2-2.2c.3-.3.8-.4 1.2-.3 1 .3 2.1.5 3.2.5.7 0 1.2.5 1.2 1.2V20c0 .7-.5 1.2-1.2 1.2C10.4 21.2 2.8 13.6 2.8 4.2 2.8 3.5 3.3 3 4 3h3.4c.7 0 1.2.5 1.2 1.2 0 1.1.2 2.2.5 3.2.1.4 0 .9-.3 1.2l-2.2 2.2Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.2 6.6 6.6l2.2-2.2c.3-.3.8-.4 1.2-.3 1 .3 2.1.5 3.2.5.7 0 1.2.5 1.2 1.2V20c0 .7-.5 1.2-1.2 1.2C10.4 21.2 2.8 13.6 2.8 4.2 2.8 3.5 3.3 3 4 3h3.4c.7 0 1.2.5 1.2 1.2 0 1.1.2 2.2.5 3.2.1.4 0 .9-.3 1.2l-2.2 2.2Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__onboard-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
}

.xq-ai-chat__onboard-copy strong {
  color: #0b67e9;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.xq-ai-chat__onboard-copy span {
  color: #475467;
  font-size: 10px;
  line-height: 1.4;
}

.xq-ai-chat__onboard-arrow {
  flex: 0 0 auto;
  color: #375a7f;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.xq-ai-chat__quick,
.xq-ai-chat__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 14px 36px;
}

.xq-ai-chat__guided {
  display: grid;
  gap: 10px;
  margin: 2px 0 14px 36px;
  padding: 10px;
  border: 1px solid #bcd2f2;
  border-radius: 6px;
  background: linear-gradient(180deg, #f3f8ff, #fff);
}

.xq-ai-chat__guided strong {
  color: #003b8f;
  font-size: 13px;
  line-height: 1.45;
}

.xq-ai-chat__guided-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xq-ai-chat__guided-options button {
  min-height: 30px;
  border: 1px solid #c9d8ef;
  border-radius: 999px;
  background: #fff;
  color: #003b8f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.xq-ai-chat__guided-options button:hover {
  border-color: #003b8f;
  background: #eaf3ff;
}
.xq-ai-chat__products {
  display: grid;
  gap: 8px;
  margin: 2px 0 14px 36px;
}

.xq-ai-chat__section-title {
  color: #003b8f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.xq-ai-chat__requirements {
  display: grid;
  gap: 8px;
  margin: 2px 0 14px 36px;
  padding: 10px;
  border: 1px solid #c9d8ef;
  border-radius: 6px;
  background: #eef6ff;
}

.xq-ai-chat__requirements-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.xq-ai-chat__requirements-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.xq-ai-chat__requirements-step {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2f8bff 0%, #0b63df 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.xq-ai-chat__requirements-head strong {
  color: #003b8f;
  font-size: 13px;
}

.xq-ai-chat__requirements-head > span {
  border-radius: 999px;
  background: #003b8f;
  color: #fff;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 800;
}

.xq-ai-chat__requirements dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 8px;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.xq-ai-chat__requirements dt {
  color: #667085;
  font-weight: 800;
}

.xq-ai-chat__requirements dd {
  margin: 0;
  color: #1f2937;
}

.xq-ai-chat__requirements-missing {
  margin: 0;
  color: #b45309;
  font-size: 12px;
  line-height: 1.5;
}

.xq-ai-chat__knowledge {
  display: grid;
  gap: 8px;
  margin: 2px 0 14px 36px;
  padding: 10px;
  border: 1px solid #d7e2f2;
  border-radius: 6px;
  background: #fff;
}

.xq-ai-chat__knowledge-item {
  display: grid;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid #eef2f7;
}

.xq-ai-chat__knowledge-item span {
  color: #1f2937;
  font-size: 12px;
  font-weight: 800;
}

.xq-ai-chat__knowledge-item p {
  margin: 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.5;
}

.xq-ai-chat__knowledge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
}

.xq-ai-chat__knowledge-actions a,
.xq-ai-chat__knowledge-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid #d7e7ff;
  border-radius: 999px;
  background: #ffffff;
  color: #003b8f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.xq-ai-chat__knowledge-actions .is-primary {
  border-color: #1269e8;
  background: #1269e8;
  color: #ffffff;
}
.xq-ai-chat__product {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px;
  border: 1px solid #d7e2f2;
  border-radius: 6px;
  background: #fff;
}

.xq-ai-chat__product-media {
  display: block;
  flex: 0 0 74px;
  width: 74px;
  height: 58px;
  overflow: hidden;
  border-radius: 6px;
  background: #f2f4f7;
}

.xq-ai-chat__product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xq-ai-chat__product-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.xq-ai-chat__product-body strong {
  color: #003b8f;
  font-size: 13px;
  line-height: 1.35;
}

.xq-ai-chat__product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.xq-ai-chat__product-specs span {
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef4ff;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.xq-ai-chat__product-body p {
  margin: 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.5;
}

.xq-ai-chat__product-body a {
  width: fit-content;
  color: #003b8f;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.xq-ai-chat__quick button,
.xq-ai-chat__action {
  border: 1px solid #c9d8ef;
  border-radius: 6px;
  background: #fff;
  color: #003b8f;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.xq-ai-chat__action.is-primary {
  border-color: #003b8f;
  background: #003b8f;
  color: #fff;
}

.xq-ai-chat__typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.xq-ai-chat__typing span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #9ca3af;
  animation: xqAiTyping 1s infinite ease-in-out;
}

.xq-ai-chat__typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.xq-ai-chat__typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.xq-ai-chat__form {
  display: none;
  position: absolute;
  left: 12px;
  right: 12px;
  top: 118px;
  bottom: 72px;
  z-index: 8;
  padding: 12px;
  border: 1px solid #d9e9ff;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 74, 148, 0.18);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.xq-ai-chat.is-inquiry .xq-ai-chat__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.xq-ai-chat.is-inquiry .xq-ai-chat__body {
  pointer-events: none;
}

.xq-ai-chat__form label {
  display: grid;
  gap: 5px;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.xq-ai-chat__form label.is-wide,
.xq-ai-chat__form .xq-ai-chat__honeypot,
.xq-ai-chat__form button {
  grid-column: 1 / -1;
}

.xq-ai-chat__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.xq-ai-chat__form input,
.xq-ai-chat__form textarea,
.xq-ai-chat__input input,
.xq-ai-chat__input textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
  color: #1f2937;
  background: #fff;
}

.xq-ai-chat__form textarea {
  min-height: 76px;
  resize: vertical;
}

.xq-ai-chat__attachments {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  padding: 10px;
  border: 1px dashed #cfe2ff;
  border-radius: 10px;
  background: #f7fbff;
}

.xq-ai-chat__attachments div:first-child {
  display: grid;
  gap: 3px;
}

.xq-ai-chat__attachments strong {
  color: #172b44;
  font-size: 12px;
  font-weight: 900;
}

.xq-ai-chat__attachments span {
  color: #7a8ca3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.xq-ai-chat__privacy {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #e6eef9;
  border-radius: 8px;
  background: #f9fbff;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.xq-ai-chat__attachment-button {
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid #1269e8;
  border-radius: 999px;
  background: #1269e8;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.xq-ai-chat__attachment-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  opacity: 0;
}

.xq-ai-chat__attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.xq-ai-chat__attachment-list span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #ffffff;
  color: #33506f;
  font-size: 11px;
  font-weight: 800;
}

.xq-ai-chat__input textarea {
  min-height: 36px;
  max-height: 96px;
  resize: none;
  overflow-y: auto;
  line-height: 1.35;
}

.xq-ai-chat__form button,
.xq-ai-chat__input button {
  border: 0;
  border-radius: 6px;
  background: #003b8f;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.xq-ai-chat__form button {
  padding: 10px 14px;
}

.xq-ai-chat__input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.xq-ai-chat__input button {
  padding: 0 14px;
}

.xq-ai-chat__input button:disabled,
.xq-ai-chat__form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.xq-ai-chat__disclaimer {
  padding: 0 12px 12px;
  background: #fff;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.xq-ai-chat__panel {
  width: min(456px, calc(100vw - 32px));
  border-color: #dbe8fb;
  border-radius: 12px;
  background: #f7fbff;
  box-shadow: 0 24px 70px rgba(15, 74, 148, 0.18);
}

.xq-ai-chat.is-large .xq-ai-chat__panel {
  width: min(960px, calc(100vw - 40px));
}

.xq-ai-chat__header {
  padding: 14px 14px 11px;
  border-bottom: 1px solid #e3efff;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #0f2440;
}

.xq-ai-chat__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.xq-ai-chat__title {
  min-width: 0;
}

.xq-ai-chat__title > span:last-child {
  min-width: 0;
}

.xq-ai-chat__title-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid #cfe2ff;
  border-radius: 10px;
  background: #ffffff;
  color: #1269e8;
  box-shadow: 0 8px 18px rgba(21, 88, 166, 0.08);
  font-size: 0;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.xq-ai-chat__title-icon::before {
  content: "AI";
  display: block;
  color: #1269e8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(0.5px);
}

.xq-ai-chat.is-human-only .xq-ai-chat__title-icon::before {
  content: "CS";
}

.xq-ai-chat__title-icon::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 2;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 2px #ffffff;
}

.xq-ai-chat[data-handoff-online="true"] .xq-ai-chat__title-icon::after {
  background: #22c55e;
}

.xq-ai-chat[data-handoff-online="false"] .xq-ai-chat__title-icon::after {
  background: #ef4444;
}

.xq-ai-chat__title strong {
  display: block;
  color: #0f2440;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.xq-ai-chat__title span span {
  display: block;
  margin-top: 2px;
  color: #71839c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  opacity: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xq-ai-chat__header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.xq-ai-chat__history,
.xq-ai-chat__new,
.xq-ai-chat__resize {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-color: #d9e9ff;
  border-radius: 999px;
  background: #ffffff;
  color: #1269e8;
  box-shadow: 0 5px 14px rgba(21, 88, 166, 0.07);
  font-size: 0;
  line-height: 1;
}

.xq-ai-chat__close {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-color: transparent;
  border-radius: 999px;
  background: #edf3fb;
  color: #6b7c91;
  box-shadow: none;
  font-size: 0;
  line-height: 1;
}

.xq-ai-chat__history::before,
.xq-ai-chat__new::before,
.xq-ai-chat__resize::before,
.xq-ai-chat__close::before {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  width: 17px;
  height: 17px;
  margin: auto;
  background: currentColor;
  transform: none;
}

.xq-ai-chat__history::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5a7 7 0 1 0 6.3 4H16v-2h6v6h-2v-2.15A9 9 0 1 1 12 3v2Zm1 3v4.4l3.2 1.9-1 1.7-4.2-2.5V8h2Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5a7 7 0 1 0 6.3 4H16v-2h6v6h-2v-2.15A9 9 0 1 1 12 3v2Zm1 3v4.4l3.2 1.9-1 1.7-4.2-2.5V8h2Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__new::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6V5Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6V5Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__resize::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 5h6v2H8.4l3.8 3.8-1.4 1.4L7 8.4V11H5V5Zm8 0h6v6h-2V8.4l-3.8 3.8-1.4-1.4L15.6 7H13V5Zm-2.2 6.8 1.4 1.4L8.4 17H11v2H5v-6h2v2.6l3.8-3.8Zm2.4 1.4 1.4-1.4 3.8 3.8V13h2v6h-6v-2h2.6l-3.8-3.8Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 5h6v2H8.4l3.8 3.8-1.4 1.4L7 8.4V11H5V5Zm8 0h6v6h-2V8.4l-3.8 3.8-1.4-1.4L15.6 7H13V5Zm-2.2 6.8 1.4 1.4L8.4 17H11v2H5v-6h2v2.6l3.8-3.8Zm2.4 1.4 1.4-1.4 3.8 3.8V13h2v6h-6v-2h2.6l-3.8-3.8Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__close::before {
  width: 16px;
  height: 16px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6.4 5 5.6 5.6L17.6 5 19 6.4 13.4 12l5.6 5.6-1.4 1.4-5.6-5.6L6.4 19 5 17.6l5.6-5.6L5 6.4 6.4 5Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6.4 5 5.6 5.6L17.6 5 19 6.4 13.4 12l5.6 5.6-1.4 1.4-5.6-5.6L6.4 19 5 17.6l5.6-5.6L5 6.4 6.4 5Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__history:hover,
.xq-ai-chat__new:hover,
.xq-ai-chat__resize:hover,
.xq-ai-chat__close:hover {
  border-color: #bfdbfe;
  background: #edf6ff;
  color: #0058d8;
  transform: translateY(-1px);
}

.xq-ai-chat__header-actions button {
  position: relative;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.xq-ai-chat__header-actions button::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  z-index: 4;
  padding: 4px 7px;
  border: 1px solid #d9e9ff;
  border-radius: 6px;
  background: #ffffff;
  color: #33506f;
  box-shadow: 0 8px 20px rgba(21, 88, 166, 0.1);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -2px);
  white-space: nowrap;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.xq-ai-chat__header-actions button:hover::after,
.xq-ai-chat__header-actions button:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.xq-ai-chat__notice {
  margin: 0;
  color: #7d8da3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xq-ai-chat__ability-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  margin-top: 8px;
  padding: 0 0 1px;
  scrollbar-width: none;
}

.xq-ai-chat__ability-bar::-webkit-scrollbar {
  display: none;
}

.xq-ai-chat__ability-bar span,
.xq-ai-chat__ability-bar button {
  flex: 0 0 auto;
  min-height: 22px;
  padding: 4px 9px;
  border: 1px solid #dceafe;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #1269e8;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.xq-ai-chat__ability-bar button {
  background: #edf6ff;
  cursor: pointer;
}

.xq-ai-chat__panel-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid #d9e9ff;
  background: #edf5ff;
  color: #23527f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.xq-ai-chat__panel-alert[hidden] {
  display: none;
}

.xq-ai-chat__panel-alert::before {
  content: "i";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #1269e8;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.xq-ai-chat__panel-alert span {
  flex: 1 1 auto;
}

.xq-ai-chat__panel-alert button {
  border: 0;
  background: transparent;
  color: #5c6f85;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.xq-ai-chat__confirm {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 35, 62, 0.18);
  backdrop-filter: blur(2px);
}

.xq-ai-chat__confirm[hidden] {
  display: none;
}

.xq-ai-chat__confirm-card {
  display: grid;
  gap: 10px;
  width: min(320px, 100%);
  padding: 18px;
  border: 1px solid #d9e9ff;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
}

.xq-ai-chat__confirm-card strong {
  color: #10233f;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.xq-ai-chat__confirm-card p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.xq-ai-chat__confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.xq-ai-chat__confirm-actions button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #d9e9ff;
  border-radius: 999px;
  background: #ffffff;
  color: #1269e8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.xq-ai-chat__confirm-actions .xq-ai-chat__confirm-ok {
  border-color: #1269e8;
  background: linear-gradient(135deg, #267dff 0%, #075ddf 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(18, 105, 232, 0.22);
}

.xq-ai-chat__history-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #d9e9ff;
  background: #f7fbff;
}

.xq-ai-chat__history-panel[hidden] {
  display: none;
}

.xq-ai-chat__history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.xq-ai-chat__history-head strong {
  color: #172b44;
  font-size: 13px;
  font-weight: 900;
}

.xq-ai-chat__history-head button {
  border: 0;
  background: transparent;
  color: #5c6f85;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.xq-ai-chat__history-list {
  display: grid;
  gap: 7px;
  max-height: 328px;
  overflow-y: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
  scrollbar-color: rgba(18, 105, 232, 0.28) transparent;
  scrollbar-width: thin;
}

.xq-ai-chat__history-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #ffffff;
  color: #172b44;
  cursor: pointer;
  text-align: left;
}

.xq-ai-chat__history-item strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xq-ai-chat__history-item span,
.xq-ai-chat__history-empty {
  margin: 0;
  color: #7a8ca3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.xq-ai-chat__body {
  position: relative;
  height: min(56vh, 500px);
  padding: 16px 14px 18px;
  background: linear-gradient(180deg, #f7fbff 0%, #f3f8ff 100%);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(18, 105, 232, 0.24) transparent;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%);
}

.xq-ai-chat__body::-webkit-scrollbar {
  width: 6px;
}

.xq-ai-chat__body::-webkit-scrollbar-track {
  background: transparent;
}

.xq-ai-chat__body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(18, 105, 232, 0.18);
}

.xq-ai-chat__body:hover::-webkit-scrollbar-thumb {
  background: rgba(18, 105, 232, 0.28);
}

.xq-ai-chat__guide-v2 {
  gap: 9px;
  margin: 0 0 14px;
  padding: 14px;
  border-color: #e0ecff;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(21, 88, 166, 0.08);
}

.xq-ai-chat__guide-v2.is-service-home {
  padding: 16px;
  text-align: center;
}

.xq-ai-chat__guide-v2.is-guide-intro {
  padding: 16px;
  text-align: center;
}

.xq-ai-chat__guide-v2 + .xq-ai-chat__message {
  margin-top: 18px;
}

.xq-ai-chat__welcome {
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 6px 0 5px;
}

.xq-ai-chat__welcome::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #edf5ff;
  box-shadow: inset 0 0 0 1px #dbeafe;
  -webkit-mask: none;
  mask: none;
}

.xq-ai-chat__welcome strong {
  color: #0f2440;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.xq-ai-chat__welcome span {
  color: #7a8ca3;
  font-size: 12px;
  line-height: 1.45;
}

.xq-ai-chat__capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 4px 0 6px;
}

.xq-ai-chat__intro-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 4px;
}

.xq-ai-chat__capability,
.xq-ai-chat__intro-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 9px;
  border: 1px solid #e1ecfb;
  border-radius: 10px;
  background: #fbfdff;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.xq-ai-chat__intro-card:hover {
  border-color: #b8d4ff;
  background: #f2f8ff;
  transform: translateY(-1px);
}

.xq-ai-chat__capability-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #edf5ff;
}

.xq-ai-chat__capability-icon::before {
  content: "";
  width: 15px;
  height: 15px;
  background: #1269e8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 4 6v6c0 4.4 3.1 8.5 8 10 4.9-1.5 8-5.6 8-10V6l-8-4Zm-1 14-4-4 1.4-1.4L11 13.2l4.6-4.6L17 10l-6 6Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 4 6v6c0 4.4 3.1 8.5 8 10 4.9-1.5 8-5.6 8-10V6l-8-4Zm-1 14-4-4 1.4-1.4L11 13.2l4.6-4.6L17 10l-6 6Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__capability-icon.is-recommend::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 15 8l6 .9-4.5 4.4 1.1 6.2L12 16.6 6.4 19.5l1.1-6.2L3 8.9 9 8l3-6Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 15 8l6 .9-4.5 4.4 1.1 6.2L12 16.6 6.4 19.5l1.1-6.2L3 8.9 9 8l3-6Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__capability-icon.is-human::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-8 9a8 8 0 0 1 16 0H4Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-8 9a8 8 0 0 1 16 0H4Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__capability-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.xq-ai-chat__capability-copy strong {
  color: #0f2440;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}

.xq-ai-chat__capability-copy span {
  color: #7a8ca3;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.xq-ai-chat__guide-stage {
  justify-self: center;
  padding: 3px 8px;
  background: #edf5ff;
  color: #1269e8;
  font-size: 11px;
}

.xq-ai-chat__guide-v2 > strong {
  color: #1f2f46;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.xq-ai-chat__guide-v2:not(.is-service-home):not(.is-guide-intro) .xq-ai-chat__guide-stage {
  justify-self: start;
}

.xq-ai-chat__guide-v2:not(.is-service-home):not(.is-guide-intro) > strong,
.xq-ai-chat__guide-v2:not(.is-service-home):not(.is-guide-intro) .xq-ai-chat__guide-intro {
  text-align: left;
}

.xq-ai-chat__guide-intro {
  margin: -2px 0 2px;
  color: #7a8ca3;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.xq-ai-chat__guide-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.xq-ai-chat__guide-v2.is-service-home .xq-ai-chat__guide-options {
  grid-template-columns: 1fr;
}

.xq-ai-chat.is-large .xq-ai-chat__guide-v2.is-service-home {
  max-width: 520px;
  margin-right: auto;
  margin-left: auto;
}

.xq-ai-chat.is-large .xq-ai-chat__guide-v2.is-service-home .xq-ai-chat__guide-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.xq-ai-chat__guide-options button {
  border-radius: 10px;
}

.xq-ai-chat__guide-options .is-service-option {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 10px;
  border-color: #e1ecfb;
  background: #fbfdff;
  color: #0f2440;
  text-align: left;
}

.xq-ai-chat__guide-options .is-service-option:hover {
  border-color: #b8d4ff;
  background: #f2f8ff;
  transform: translateY(-1px);
}

.xq-ai-chat__guide-options .is-selected {
  border-color: #1269e8;
  background: #edf5ff;
  box-shadow: inset 0 0 0 1px rgba(18, 105, 232, 0.12);
}

.xq-ai-chat__guide-options .is-selected .xq-ai-chat__service-arrow {
  color: #1269e8;
}

.xq-ai-chat__guide-options .is-selected .xq-ai-chat__service-arrow::before {
  content: "✓";
  margin-right: 3px;
  font-size: 11px;
  font-weight: 900;
}

.xq-ai-chat__service-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #edf5ff;
  color: #1269e8;
}

.xq-ai-chat__service-icon::before {
  content: "";
  width: 17px;
  height: 17px;
  background: currentColor;
}

.xq-ai-chat__service-icon.has-svg-icon {
  color: #1269e8;
}

.xq-ai-chat__service-icon.has-svg-icon .xq-ai-chat__service-icon-svg {
  width: 19px;
  height: 19px;
}

.xq-ai-chat__service-icon.is-search::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m20 18.6-4.2-4.2a7 7 0 1 0-1.4 1.4l4.2 4.2L20 18.6ZM5 10a5 5 0 1 1 10 0A5 5 0 0 1 5 10Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m20 18.6-4.2-4.2a7 7 0 1 0-1.4 1.4l4.2 4.2L20 18.6ZM5 10a5 5 0 1 1 10 0A5 5 0 0 1 5 10Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__service-icon.is-selection::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 4 6v6c0 4.4 3.1 8.5 8 10 4.9-1.5 8-5.6 8-10V6l-8-4Zm-1 14-4-4 1.4-1.4L11 13.2l4.6-4.6L17 10l-6 6Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 4 6v6c0 4.4 3.1 8.5 8 10 4.9-1.5 8-5.6 8-10V6l-8-4Zm-1 14-4-4 1.4-1.4L11 13.2l4.6-4.6L17 10l-6 6Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__service-icon.is-recommend::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 15 8l6 .9-4.5 4.4 1.1 6.2L12 16.6 6.4 19.5l1.1-6.2L3 8.9 9 8l3-6Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 15 8l6 .9-4.5 4.4 1.1 6.2L12 16.6 6.4 19.5l1.1-6.2L3 8.9 9 8l3-6Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__service-icon.is-support::before,
.xq-ai-chat__service-icon.is-custom::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3Zm-1 14-4-4 1.4-1.4 2.6 2.6 4.6-4.6L17 10l-6 6Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3Zm-1 14-4-4 1.4-1.4 2.6 2.6 4.6-4.6L17 10l-6 6Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__service-icon.is-download::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 20h14v-2H5v2ZM13 4h-2v8H8l4 4 4-4h-3V4Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 20h14v-2H5v2ZM13 4h-2v8H8l4 4 4-4h-3V4Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__service-icon.is-quote::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2h12v20l-3-2-3 2-3-2-3 2V2Zm3 5v2h6V7H9Zm0 4v2h6v-2H9Zm0 4v2h4v-2H9Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2h12v20l-3-2-3 2-3-2-3 2V2Zm3 5v2h6V7H9Zm0 4v2h6v-2H9Zm0 4v2h4v-2H9Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__service-icon.is-human::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-8 9a8 8 0 0 1 16 0H4Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-8 9a8 8 0 0 1 16 0H4Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__service-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.xq-ai-chat__service-copy strong {
  color: #0f2440;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}

.xq-ai-chat__service-copy span {
  color: #52657c;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.xq-ai-chat__service-arrow {
  display: inline-grid;
  place-items: center;
  color: #7a8ca3;
  font-size: 18px;
  line-height: 1;
}

.xq-ai-chat__service-arrow.has-svg-icon .xq-ai-chat__service-arrow-svg {
  width: 18px;
  height: 18px;
}

.xq-ai-chat__starter {
  display: grid;
  gap: 9px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid #e6f0ff;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 10px 26px rgba(37, 99, 235, 0.06);
  text-align: left;
}

.xq-ai-chat__starter > strong {
  color: #384c68;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.xq-ai-chat__starter-list {
  display: grid;
  gap: 8px;
}

.xq-ai-chat__starter-list button {
  min-height: 31px;
  padding: 7px 14px;
  border: 1px solid #e4eeff;
  border-radius: 999px;
  background: #ffffff;
  color: #34516f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 5px 16px rgba(37, 99, 235, 0.05);
}

.xq-ai-chat__starter-list button:hover {
  border-color: #b8d4ff;
  background: #edf5ff;
  color: #1269e8;
}

.xq-ai-chat__message {
  gap: 9px;
  margin-bottom: 14px;
}

.xq-ai-chat__bubble {
  border-color: #e0ecff;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(21, 88, 166, 0.06);
  color: #27405c;
  font-size: 13px;
}

.xq-ai-chat__message.is-user .xq-ai-chat__bubble {
  border-color: #d9e9ff;
  background: linear-gradient(135deg, #f2f8ff, #eaf3ff);
  color: #123d70;
}

.xq-ai-chat__message.is-agent .xq-ai-chat__avatar {
  background: linear-gradient(135deg, #1f79ff 0%, #0058d8 100%);
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.18);
  font-size: 10px;
}

.xq-ai-chat__message.is-agent .xq-ai-chat__bubble {
  border-color: #ffd6a8;
  background: linear-gradient(180deg, #fff8ed, #ffffff);
  color: #6b4a1f;
}

.xq-ai-chat__message.is-system {
  justify-content: center;
}

.xq-ai-chat__message.is-system .xq-ai-chat__bubble {
  max-width: 86%;
  border-color: #e5e7eb;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
}

.xq-ai-chat__guided,
.xq-ai-chat__requirements,
.xq-ai-chat__knowledge,
.xq-ai-chat__products {
  margin-left: 37px;
}

.xq-ai-chat__guided,
.xq-ai-chat__requirements,
.xq-ai-chat__knowledge {
  border-color: #e0ecff;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(21, 88, 166, 0.06);
}

.xq-ai-chat__guided {
  padding: 12px;
}

.xq-ai-chat__guided.is-followup {
  gap: 8px;
  padding: 8px;
  border-color: #dfeaff;
  border-radius: 16px;
  background: #f5f9ff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.08);
}

.xq-ai-chat__guided.is-qa-mode {
  gap: 7px;
  padding: 10px;
  background: #f7fbff;
}

.xq-ai-chat__guided-head {
  display: grid;
  gap: 5px;
}

.xq-ai-chat__guided-head span {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf5ff;
  color: #1269e8;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.xq-ai-chat__guided-head strong {
  color: #172b44;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
}

.xq-ai-chat__guided-tip {
  margin: -3px 0 0;
  color: #7a8ca3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.xq-ai-chat__guided-question {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  padding: 12px 12px 10px 8px;
  border: 1px solid #dceaff;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.06);
}

.xq-ai-chat__guided.is-qa-mode .xq-ai-chat__guided-question {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px;
  padding: 8px 10px;
  border-color: #dceaff;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}

.xq-ai-chat__guided-question-index {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f8bff 0%, #0b63df 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.xq-ai-chat__guided.is-qa-mode .xq-ai-chat__guided-question-index {
  width: 20px;
  height: 20px;
  background: #edf5ff;
  color: #1269e8;
  font-size: 10px;
}

.xq-ai-chat__guided-question-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.xq-ai-chat__guided-question-copy > strong {
  color: #102b5c;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.xq-ai-chat__guided.is-qa-mode .xq-ai-chat__guided-question-copy > strong {
  font-size: 12px;
}

.xq-ai-chat__guided-question-copy > p {
  margin: 0;
  color: #44628d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.xq-ai-chat__guided.is-qa-mode .xq-ai-chat__guided-question-copy > p {
  color: #7187a2;
  font-size: 11px;
  font-weight: 700;
}

.xq-ai-chat__guided.is-followup .xq-ai-chat__guided-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.xq-ai-chat__guided.is-followup .xq-ai-chat__guided-options button {
  flex: 0 0 auto;
  min-width: 48px;
  min-height: 25px;
  padding: 4px 12px;
  border: 1px solid #b8d4ff;
  border-radius: 999px;
  background: #f7fbff;
  color: #1269e8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.xq-ai-chat__guided.is-followup .xq-ai-chat__guided-options button:hover {
  border-color: #7bb2ff;
  background: #edf6ff;
  color: #0058d8;
}

.xq-ai-chat__guided.is-collector .xq-ai-chat__guided-options button.is-selected {
  border-color: #0b63df;
  background: #1269e8;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(18, 105, 232, 0.18);
}

.xq-ai-chat__guided-custom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
}

.xq-ai-chat__guided-custom-input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 5px 10px;
  border: 1px solid #cfe0f6;
  border-radius: 999px;
  background: #ffffff;
  color: #173455;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}

.xq-ai-chat__guided-custom-input:focus {
  border-color: #7bb2ff;
  box-shadow: 0 0 0 3px rgba(18, 105, 232, 0.1);
}

.xq-ai-chat__guided-custom-add,
.xq-ai-chat__guided-custom-chip {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #b8d4ff;
  border-radius: 999px;
  background: #f7fbff;
  color: #1269e8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.xq-ai-chat__guided-custom-chip {
  grid-column: 1 / -1;
  justify-self: start;
  border-color: #0b63df;
  background: #1269e8;
  color: #ffffff;
}

.xq-ai-chat__guided-answer {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #dceaff;
  border-radius: 14px;
  background: #ffffff;
}

.xq-ai-chat__guided-answer label {
  color: #102b5c;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.xq-ai-chat__guided-answer-input {
  width: 100%;
  min-width: 0;
  resize: vertical;
  min-height: 46px;
  max-height: 110px;
  padding: 8px 10px;
  border: 1px solid #cfe0f6;
  border-radius: 10px;
  background: #fbfdff;
  color: #173455;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  outline: none;
}

.xq-ai-chat__guided-answer-input:focus {
  border-color: #7bb2ff;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(18, 105, 232, 0.1);
}

.xq-ai-chat__guided-answer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.xq-ai-chat__guided-answer-actions span {
  color: #7a8ca3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.xq-ai-chat__guided-answer-submit {
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid #1269e8;
  border-radius: 999px;
  background: #1269e8;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.xq-ai-chat__guided-answer-submit:disabled {
  border-color: #d3deec;
  background: #edf2f8;
  color: #95a4b7;
  cursor: default;
}

.xq-ai-chat.is-compact .xq-ai-chat__guided.is-collector .xq-ai-chat__guided-options button.is-selected {
  border-color: #0b63df;
  background: #1269e8;
  color: #ffffff;
}

.xq-ai-chat__guided-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.xq-ai-chat__guided-count {
  color: #6b7f99;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.xq-ai-chat__guided-submit,
.xq-ai-chat__guided-skip {
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid #c8d8ee;
  border-radius: 999px;
  background: #ffffff;
  color: #315375;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.xq-ai-chat__guided-submit {
  border-color: #1269e8;
  background: #1269e8;
  color: #ffffff;
}

.xq-ai-chat__guided-submit:disabled {
  border-color: #d3deec;
  background: #edf2f8;
  color: #95a4b7;
  cursor: default;
}

.xq-ai-chat__guided.is-submitted {
  opacity: 0.74;
}

.xq-ai-chat__guided.is-submitted button {
  cursor: default;
}

.xq-ai-chat__requirements {
  padding: 12px;
}

.xq-ai-chat__requirements.is-confirm {
  gap: 8px;
  padding: 12px;
  border-color: #dbe8ff;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
}

.xq-ai-chat__requirements.is-result {
  gap: 8px;
  padding: 12px;
  border-color: #dbe8ff;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
}

.xq-ai-chat__requirements-head strong {
  color: #172b44;
}

.xq-ai-chat__requirements-head > span {
  background: #1269e8;
}

.xq-ai-chat__requirements.is-confirm .xq-ai-chat__requirements-head > span {
  padding: 4px 8px;
  border: 1px solid #d8e8ff;
  background: #edf6ff;
  color: #1269e8;
  font-size: 10px;
  line-height: 1;
}

.xq-ai-chat__requirements-intro,
.xq-ai-chat__requirements-confirm-tip {
  margin: 0;
  color: #2d4868;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.xq-ai-chat__requirements-confirm-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #dceaff;
  border-radius: 12px;
  background: #ffffff;
}

.xq-ai-chat__requirements-confirm-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf3ff;
}

.xq-ai-chat__requirements-confirm-list.is-table .xq-ai-chat__requirements-confirm-item {
  grid-template-columns: 24px minmax(64px, max-content) minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 38px;
  padding: 7px 10px;
}

.xq-ai-chat__requirements-confirm-item:last-child {
  border-bottom: 0;
}

.xq-ai-chat__requirements-confirm-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eef6ff;
  color: #1269e8;
}

.xq-ai-chat__requirements-confirm-list.is-table .xq-ai-chat__requirements-confirm-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

.xq-ai-chat__requirements-confirm-list.is-table .xq-ai-chat__requirements-confirm-icon::before {
  width: 13px;
  height: 13px;
}

.xq-ai-chat__requirements-confirm-icon::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-8 9a8 8 0 0 1 16 0H4Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-8 9a8 8 0 0 1 16 0H4Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__requirements-confirm-icon.is-shield::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 4 6v6c0 4.4 3.1 8.5 8 10 4.9-1.5 8-5.6 8-10V6l-8-4Zm-1 14-4-4 1.4-1.4L11 13.2l4.6-4.6L17 10l-6 6Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 4 6v6c0 4.4 3.1 8.5 8 10 4.9-1.5 8-5.6 8-10V6l-8-4Zm-1 14-4-4 1.4-1.4L11 13.2l4.6-4.6L17 10l-6 6Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__requirements-confirm-icon.is-power::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13 2 4 14h7l-1 8 10-13h-7l1-7Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13 2 4 14h7l-1 8 10-13h-7l1-7Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__requirements-confirm-icon.is-environment::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a8 8 0 0 0-8 8c0 5.3 8 12 8 12s8-6.7 8-12a8 8 0 0 0-8-8Zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a8 8 0 0 0-8 8c0 5.3 8 12 8 12s8-6.7 8-12a8 8 0 0 0-8-8Zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__requirements-confirm-icon.is-install::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 2h10v5H7V2Zm1 7h8l3 3v10h-4v-5H9v5H5V12l3-3Zm2 2v4h4v-4h-4Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 2h10v5H7V2Zm1 7h8l3 3v10h-4v-5H9v5H5V12l3-3Zm2 2v4h4v-4h-4Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__requirements-confirm-icon.is-interface::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 3h10v5h2a3 3 0 0 1 3 3v3a5 5 0 0 1-5 5h-1v2h-2v-2h-4v2H8v-2H7a5 5 0 0 1-5-5v-3a3 3 0 0 1 3-3h2V3Zm2 2v3h6V5H9Zm-4 6v3a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H5Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 3h10v5h2a3 3 0 0 1 3 3v3a5 5 0 0 1-5 5h-1v2h-2v-2h-4v2H8v-2H7a5 5 0 0 1-5-5v-3a3 3 0 0 1 3-3h2V3Zm2 2v3h6V5H9Zm-4 6v3a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H5Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__requirements-confirm-icon.is-cert::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 4 5v6c0 4.8 3.4 9.3 8 11 4.6-1.7 8-6.2 8-11V5l-8-3Zm-1 13.2-3-3 1.4-1.4 1.6 1.6 3.6-3.6L16 10.2l-5 5Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 4 5v6c0 4.8 3.4 9.3 8 11 4.6-1.7 8-6.2 8-11V5l-8-3Zm-1 13.2-3-3 1.4-1.4 1.6 1.6 3.6-3.6L16 10.2l-5 5Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat__requirements-confirm-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.xq-ai-chat__requirements-confirm-copy strong {
  color: #172b44;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.xq-ai-chat__requirements-confirm-list.is-table .xq-ai-chat__requirements-confirm-copy strong {
  align-self: center;
  color: #102b5c;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}

.xq-ai-chat__requirements-confirm-copy span {
  color: #4a6381;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.xq-ai-chat__requirements-confirm-list.is-table .xq-ai-chat__requirements-confirm-copy span {
  align-self: center;
  color: #123d70;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.xq-ai-chat__requirements-confirm-label {
  align-self: center;
  color: #102b5c;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}

.xq-ai-chat__requirements-confirm-value {
  align-self: center;
  min-width: 0;
  color: #123d70;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xq-ai-chat__requirements-confirm-value-wrap {
  align-self: center;
  min-width: 0;
}

.xq-ai-chat__requirements-missing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.xq-ai-chat__requirements-missing-actions button {
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #d8e8ff;
  border-radius: 999px;
  background: #ffffff;
  color: #1269e8;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.xq-ai-chat__requirements-missing-actions button:hover,
.xq-ai-chat__requirements-field-action:hover,
.xq-ai-chat__requirements-edit-save:hover,
.xq-ai-chat__requirements-edit-cancel:hover,
.xq-ai-chat__requirements-edit-options button:hover {
  border-color: #bfdbfe;
  background: #edf6ff;
}

.xq-ai-chat__requirements-field-action {
  align-self: center;
  min-width: 46px;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid #d8e8ff;
  border-radius: 8px;
  background: #f7fbff;
  color: #1269e8;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.xq-ai-chat__requirements-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  width: 100%;
}

.xq-ai-chat__requirements-edit-input {
  min-width: 0;
  height: 30px;
  padding: 0 9px;
  border: 1px solid #d7e6f8;
  border-radius: 8px;
  background: #ffffff;
  color: #123d70;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}

.xq-ai-chat__requirements-edit-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.xq-ai-chat__requirements-edit-save,
.xq-ai-chat__requirements-edit-cancel {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #d8e8ff;
  border-radius: 8px;
  background: #ffffff;
  color: #1269e8;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.xq-ai-chat__requirements-edit-save {
  border-color: #bfdbfe;
  background: #edf6ff;
}

.xq-ai-chat__requirements-edit-options {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 5px;
}

.xq-ai-chat__requirements-edit-options button {
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid #d8e8ff;
  border-radius: 999px;
  background: #ffffff;
  color: #315375;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.xq-ai-chat__requirements-edit-options button.is-selected {
  border-color: #1269e8;
  background: #1269e8;
  color: #ffffff;
}

.xq-ai-chat__requirements-confirm-item.is-missing .xq-ai-chat__requirements-confirm-icon {
  background: #f2f5f9;
  color: #9aa8b8;
}

.xq-ai-chat__requirements-confirm-list.is-table .xq-ai-chat__requirements-confirm-item.is-missing .xq-ai-chat__requirements-confirm-copy strong,
.xq-ai-chat__requirements-confirm-list.is-table .xq-ai-chat__requirements-confirm-item.is-missing .xq-ai-chat__requirements-confirm-copy span,
.xq-ai-chat__requirements-confirm-item.is-missing .xq-ai-chat__requirements-confirm-label,
.xq-ai-chat__requirements-confirm-item.is-missing .xq-ai-chat__requirements-confirm-value {
  color: #98a5b5;
}

.xq-ai-chat__structured-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.xq-ai-chat__requirements.is-review .xq-ai-chat__structured-actions {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.xq-ai-chat__structured-actions button {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 10px 8px;
  border: 1px solid #dceaff;
  border-radius: 13px;
  background: #ffffff;
  color: #1269e8;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.06);
}

.xq-ai-chat__requirements.is-review .xq-ai-chat__structured-actions button {
  min-height: 48px;
  align-content: center;
}

.xq-ai-chat__structured-actions button.is-primary {
  border-color: #bfdbfe;
  background: #f4f9ff;
}

.xq-ai-chat__structured-actions strong {
  color: #123d70;
  font-size: 12px;
  font-weight: 900;
}

.xq-ai-chat__structured-actions span {
  color: #6b7c91;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.xq-ai-chat__requirements-progress {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: #edf5ff;
}

.xq-ai-chat__requirements-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4aa3ff, #1269e8);
}

.xq-ai-chat__requirements.is-ready .xq-ai-chat__requirements-progress span {
  background: linear-gradient(90deg, #32d583, #12b76a);
}

.xq-ai-chat__guided-options button,
.xq-ai-chat__action {
  border-color: #d7e7ff;
  border-radius: 999px;
  background: #ffffff;
  color: #1269e8;
  font-size: 12px;
}

.xq-ai-chat__guided-options button:hover,
.xq-ai-chat__action:hover {
  border-color: #1269e8;
  background: #edf5ff;
}

.xq-ai-chat__action.is-primary {
  border-color: #1269e8;
  background: #1269e8;
  color: #ffffff;
}

.xq-ai-chat__conversion {
  display: block;
  margin: -4px 0 14px 37px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.xq-ai-chat__conversion.is-actionbar {
  max-width: calc(100% - 52px);
}

.xq-ai-chat__conversion-head {
  display: grid;
  gap: 3px;
}

.xq-ai-chat__conversion-head strong {
  color: #172b44;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.xq-ai-chat__conversion-head span {
  color: #7a8ca3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.xq-ai-chat__conversion .xq-ai-chat__actions {
  margin: 0;
  gap: 6px;
}

.xq-ai-chat__conversion .xq-ai-chat__action {
  min-height: 30px;
  padding: 6px 11px;
  border-color: #d8e8ff;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05);
  font-size: 12px;
  line-height: 1;
}

.xq-ai-chat__conversion .xq-ai-chat__action.is-primary {
  border-color: #1269e8;
  background: #1269e8;
  color: #ffffff;
}

.xq-ai-chat__handoff-card {
  display: grid;
  gap: 10px;
  margin: 2px 0 14px 36px;
  padding: 12px;
  border: 1px solid #ffd6a8;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff8ed, #ffffff);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.08);
}

.xq-ai-chat__handoff-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.xq-ai-chat__handoff-head strong {
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.xq-ai-chat__handoff-head span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff3d6;
  color: #b45309;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.xq-ai-chat__handoff-steps {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #6b4a1f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.xq-ai-chat__handoff-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
}

.xq-ai-chat__handoff-rating button {
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid #ffd6a8;
  border-radius: 999px;
  background: #ffffff;
  color: #b45309;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.xq-ai-chat__handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xq-ai-chat__handoff-actions button {
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid #ffd6a8;
  border-radius: 999px;
  background: #ffffff;
  color: #b45309;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.xq-ai-chat__handoff-actions button.is-primary {
  border-color: #d97706;
  background: #d97706;
  color: #ffffff;
}

.xq-ai-chat__ticket-card {
  display: grid;
  gap: 10px;
  margin: 2px 0 14px 36px;
  padding: 12px;
  border: 1px solid #bfe8cf;
  border-radius: 10px;
  background: linear-gradient(180deg, #f3fff7, #ffffff);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.08);
}

.xq-ai-chat__ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.xq-ai-chat__ticket-head strong {
  color: #14532d;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.xq-ai-chat__ticket-head span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.xq-ai-chat__ticket-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.xq-ai-chat__ticket-card dt {
  color: #4b715a;
  font-weight: 900;
}

.xq-ai-chat__ticket-card dd {
  margin: 0;
  color: #1f2937;
}

.xq-ai-chat__ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xq-ai-chat__ticket-actions button {
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid #bfe8cf;
  border-radius: 999px;
  background: #ffffff;
  color: #166534;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.xq-ai-chat__ticket-actions button.is-primary {
  border-color: #16a34a;
  background: #16a34a;
  color: #ffffff;
}

.xq-ai-chat__section-title {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #1269e8;
  color: #ffffff;
  font-size: 11px;
}

.xq-ai-chat__product {
  position: relative;
  border-color: #e0ecff;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(21, 88, 166, 0.06);
}

.xq-ai-chat__product.is-top {
  display: grid;
  grid-template-columns: 92px 1fr;
  padding-top: 30px;
}

.xq-ai-chat__product-rank {
  position: absolute;
  left: 10px;
  top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #1269e8;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.xq-ai-chat__product.is-top .xq-ai-chat__product-media {
  width: 92px;
  height: 82px;
}

.xq-ai-chat__product-specs span {
  background: #edf5ff;
  color: #1269e8;
}

.xq-ai-chat__product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.xq-ai-chat__product-meta span {
  width: fit-content;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e9f8ef;
  color: #12805c;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.35;
}

.xq-ai-chat__product-meta span.is-review {
  background: #fff4e5;
  color: #a15c00;
}

.xq-ai-chat__product-meta span.is-ok {
  background: #e9f8ef;
  color: #12805c;
}

.xq-ai-chat__product-reason {
  padding: 7px 8px;
  border-left: 3px solid #1269e8;
  border-radius: 6px;
  background: #f5f9ff;
}

.xq-ai-chat__product-match-list,
.xq-ai-chat__product-review-list,
.xq-ai-chat__product-missing-list {
  display: grid;
  gap: 4px;
  padding: 7px 8px;
  border-radius: 6px;
  background: #f8fafc;
}

.xq-ai-chat__product-match-list > span,
.xq-ai-chat__product-review-list > span,
.xq-ai-chat__product-missing-list > span {
  color: #475467;
  font-size: 11px;
  font-weight: 900;
}

.xq-ai-chat__product-match-list ul,
.xq-ai-chat__product-review-list ul,
.xq-ai-chat__product-missing-list ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xq-ai-chat__product-match-list li,
.xq-ai-chat__product-review-list li,
.xq-ai-chat__product-missing-list li {
  color: #344054;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.xq-ai-chat__product-match-list li::before,
.xq-ai-chat__product-review-list li::before,
.xq-ai-chat__product-missing-list li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 999px;
  background: #12805c;
  vertical-align: 1px;
}

.xq-ai-chat__product-review-list {
  background: #fff8ed;
}

.xq-ai-chat__product-review-list li::before {
  background: #f59f00;
}

.xq-ai-chat__product-missing-list {
  background: #f4f6f8;
}

.xq-ai-chat__product-missing-list li::before {
  background: #8a94a6;
}

.xq-ai-chat__product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.xq-ai-chat__product-actions a,
.xq-ai-chat__product-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 30px;
  padding: 7px 14px;
  border: 1px solid #d7e7ff;
  border-radius: 6px;
  background: #ffffff;
  color: #1269e8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.xq-ai-chat__product-actions .is-primary,
.xq-ai-chat__product-actions a:first-child {
  border-color: #1269e8;
  background: #1269e8;
  color: #ffffff;
}

.xq-ai-chat__product-actions button.is-active,
.xq-ai-chat__product-actions button:disabled {
  border-color: #bfe8cf;
  background: #effaf3;
  color: #12805c;
}

.xq-ai-chat__products.is-carousel {
  gap: 8px;
}

.xq-ai-chat__products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.xq-ai-chat__products-head > div:first-child {
  display: grid;
  gap: 4px;
}

.xq-ai-chat__products-count {
  color: #6b7f99;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.xq-ai-chat__products-controls {
  display: inline-flex;
  gap: 6px;
}

.xq-ai-chat__products-controls button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #d8e8ff;
  border-radius: 999px;
  background: #ffffff;
  color: #1269e8;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.xq-ai-chat__products-controls button:disabled {
  color: #9aa8b8;
  cursor: default;
  opacity: 0.56;
}

.xq-ai-chat__products.is-single .xq-ai-chat__products-controls,
.xq-ai-chat__products.is-single .xq-ai-chat__products-dots {
  display: none;
}

.xq-ai-chat__products-viewport {
  overflow: hidden;
  border-radius: 16px;
}

.xq-ai-chat__products-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.xq-ai-chat__products-track::-webkit-scrollbar {
  display: none;
}

.xq-ai-chat__products-track .xq-ai-chat__product {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.xq-ai-chat__product.is-slide,
.xq-ai-chat__product.is-slide.is-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: 0;
  padding: 38px 12px 12px;
  border: 1px solid #dceaff;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

.xq-ai-chat__product.is-slide .xq-ai-chat__product-rank {
  left: 12px;
  top: 10px;
  background: #1269e8;
}

.xq-ai-chat__product-hero {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.xq-ai-chat__product.is-slide .xq-ai-chat__product-media,
.xq-ai-chat__product.is-slide.is-top .xq-ai-chat__product-media {
  width: 104px;
  height: 104px;
  border-radius: 12px;
  background: #f3f7fb;
}

.xq-ai-chat__product-media.is-empty {
  display: grid;
  place-items: center;
  color: #7b8da4;
  font-size: 12px;
  font-weight: 900;
}

.xq-ai-chat__product.is-slide .xq-ai-chat__product-media img {
  object-fit: contain;
  padding: 4px;
}

.xq-ai-chat__product-summary,
.xq-ai-chat__product-detail {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.xq-ai-chat__product-summary > strong {
  color: #003b8f;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.xq-ai-chat__product.is-slide .xq-ai-chat__product-reason {
  margin: 0;
  padding: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  color: #39597d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.xq-ai-chat__product-key-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 10px;
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid #e6f0ff;
}

.xq-ai-chat__product-key-spec {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.xq-ai-chat__product-key-spec span,
.xq-ai-chat__product-key-spec strong {
  font-size: 11px;
  line-height: 1.35;
}

.xq-ai-chat__product-key-spec span {
  color: #6c7f9a;
  font-weight: 800;
}

.xq-ai-chat__product-key-spec strong {
  color: #123d70;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.xq-ai-chat__product-advantages {
  display: grid;
  gap: 5px;
  padding-top: 2px;
}

.xq-ai-chat__product-advantages > span {
  color: #102b5c;
  font-size: 12px;
  font-weight: 900;
}

.xq-ai-chat__product-advantages ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xq-ai-chat__product-advantages li {
  color: #385a7d;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.xq-ai-chat__product-advantages li::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 5px;
  border-radius: 999px;
  background: #e8f3ff;
  vertical-align: -1px;
  box-shadow: inset 0 0 0 3px #1269e8;
}

.xq-ai-chat__products-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.xq-ai-chat__products-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c9dcf7;
  cursor: pointer;
}

.xq-ai-chat__products-dots button.is-active {
  width: 18px;
  background: #1269e8;
}

.xq-ai-chat__input {
  align-items: end;
  gap: 10px;
  padding: 12px 14px 10px;
  border-top: 1px solid #e4efff;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.92) 0%, #ffffff 45%);
}

.xq-ai-chat__form {
  border-top-color: #e6f0ff;
  background: #ffffff;
}

.xq-ai-chat.is-inquiry .xq-ai-chat__form {
  gap: 11px;
}

.xq-ai-chat__form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid #d9e9ff;
  border-radius: 10px;
  background: #f7fbff;
}

.xq-ai-chat__form-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.xq-ai-chat__form .xq-ai-chat__form-back {
  flex: 0 0 auto;
  grid-column: auto;
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid #cfe2ff;
  border-radius: 999px;
  background: #ffffff;
  color: #1269e8;
  box-shadow: none;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.xq-ai-chat__form-head strong {
  color: #172b44;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.xq-ai-chat__form-head span {
  color: #7a8ca3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.xq-ai-chat__form input,
.xq-ai-chat__form textarea,
.xq-ai-chat__input input,
.xq-ai-chat__input textarea {
  border-color: #dce8f8;
  background: #f8fbff;
  font-size: 13px;
}

.xq-ai-chat__input textarea {
  display: block;
  min-height: 40px;
  max-height: 86px;
  padding: 10px 54px 10px 15px;
  border-color: #d7e7ff;
  border-radius: 20px;
  background: #f8fbff;
  color: #172b44;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 22px rgba(21, 88, 166, 0.06);
  line-height: 20px;
  overflow: hidden;
  overflow-wrap: anywhere;
  resize: none;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.xq-ai-chat__input textarea::-webkit-scrollbar {
  display: none;
}

.xq-ai-chat__input textarea.is-scrollable {
  overflow-y: auto;
  scrollbar-width: none;
}

.xq-ai-chat__input textarea::placeholder {
  color: #8da0b8;
}

.xq-ai-chat__input textarea:focus {
  border-color: #93c5fd;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(18, 105, 232, 0.1), 0 10px 26px rgba(21, 88, 166, 0.08);
  outline: none;
}

.xq-ai-chat__form textarea {
  border-radius: 10px;
}

.xq-ai-chat__input button {
  display: grid;
  place-items: center;
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f79ff 0%, #0058d8 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(18, 105, 232, 0.24);
  font-size: 0;
  line-height: 1;
  transform: translateY(0);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.xq-ai-chat__input button .xq-ai-chat__control-icon {
  width: 19px;
  height: 19px;
}

.xq-ai-chat__input button[aria-busy="true"] .xq-ai-chat__control-icon {
  animation: xq-ai-chat-spin 0.8s linear infinite;
}

@keyframes xq-ai-chat-spin {
  to {
    transform: rotate(360deg);
  }
}

.xq-ai-chat__input button:hover:not(:disabled) {
  box-shadow: 0 12px 26px rgba(18, 105, 232, 0.3);
  transform: translateY(-2px);
}

.xq-ai-chat__input button:active:not(:disabled) {
  transform: translateY(0);
}

.xq-ai-chat.is-compact .xq-ai-chat__panel {
  width: min(390px, calc(100vw - 24px));
  border-color: #dceaff;
  border-radius: 20px;
  background: #f8fbff;
  box-shadow: 0 22px 60px rgba(37, 99, 235, 0.16);
}

.xq-ai-chat.is-compact .xq-ai-chat__header {
  position: relative;
  padding: 14px 14px 10px;
  border-bottom: 0;
  background: #f8fbff;
}

.xq-ai-chat.is-compact .xq-ai-chat__header::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #dbeafe 12%, #cfe2ff 50%, #dbeafe 88%, transparent 100%);
}

.xq-ai-chat.is-compact .xq-ai-chat__notice {
  margin: 0 0 7px;
  font-size: 10px;
}

.xq-ai-chat.is-compact .xq-ai-chat__ability-bar {
  margin-top: 0;
}

.xq-ai-chat.is-compact .xq-ai-chat__body {
  height: min(58vh, 520px);
  padding: 0 14px 14px;
  background: #f8fbff;
}

.xq-ai-chat.is-compact .xq-ai-chat__guide-v2.is-guide-intro,
.xq-ai-chat.is-compact .xq-ai-chat__guide-v2.is-service-home {
  gap: 10px;
  margin: 0;
  padding: 16px;
  border-color: #e1ecff;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.08);
}

.xq-ai-chat.is-compact .xq-ai-chat__welcome {
  gap: 4px;
  padding: 2px 0 4px;
}

.xq-ai-chat.is-compact .xq-ai-chat__welcome::before,
.xq-ai-chat.is-compact .xq-ai-chat__guide-stage {
  display: none;
}

.xq-ai-chat.is-compact .xq-ai-chat__welcome strong,
.xq-ai-chat.is-compact .xq-ai-chat__guide-v2.is-guide-intro > strong {
  color: #10233f;
  font-size: 18px;
  line-height: 1.3;
}

.xq-ai-chat.is-compact .xq-ai-chat__guide-v2.is-guide-intro > .xq-ai-chat__guide-stage,
.xq-ai-chat.is-compact .xq-ai-chat__guide-v2.is-guide-intro > .xq-ai-chat__guide-stage + strong,
.xq-ai-chat.is-compact .xq-ai-chat__guide-v2.is-guide-intro > .xq-ai-chat__guide-intro {
  display: none;
}

.xq-ai-chat.is-compact .xq-ai-chat__guide-intro {
  margin: -2px 0 2px;
  font-size: 12px;
}

.xq-ai-chat.is-compact .xq-ai-chat__intro-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.xq-ai-chat.is-compact .xq-ai-chat__intro-card {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  min-height: 74px;
  padding: 12px 10px;
  border-color: #e3edff;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.06);
}

.xq-ai-chat.is-compact .xq-ai-chat__intro-card .xq-ai-chat__service-arrow {
  display: none;
}

.xq-ai-chat.is-compact .xq-ai-chat__capability-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.xq-ai-chat.is-compact .xq-ai-chat__capability-copy strong {
  font-size: 12px;
}

.xq-ai-chat.is-compact .xq-ai-chat__capability-copy span {
  font-size: 10px;
}

.xq-ai-chat.is-compact .xq-ai-chat__starter {
  margin-top: 10px;
  padding: 13px;
  border: 1px solid #e6f0ff;
  border-radius: 16px;
}

.xq-ai-chat.is-compact .xq-ai-chat__starter > strong {
  color: #53657d;
  font-size: 11px;
}

.xq-ai-chat.is-compact .xq-ai-chat__starter-list button {
  min-height: 32px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
}

.xq-ai-chat.is-compact .xq-ai-chat__input {
  position: relative;
  grid-template-columns: 1fr;
  margin: 0 14px;
  padding: 10px;
  border: 1px solid #e1ecff;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}

.xq-ai-chat.is-compact .xq-ai-chat__input textarea {
  border-color: transparent;
  box-shadow: none;
}

.xq-ai-chat.is-compact .xq-ai-chat__input button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
}

.xq-ai-chat.is-compact .xq-ai-chat__disclaimer {
  padding: 8px 18px 14px;
  background: #f8fbff;
}

.xq-ai-chat.is-compact .xq-ai-chat__panel {
  display: flex;
  flex-direction: column;
  width: min(414px, calc(100vw - 24px));
  max-height: min(82vh, 720px);
  border-color: #d9e8ff;
  border-radius: 20px;
  background: #f6faff;
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.18);
}

.xq-ai-chat.is-compact .xq-ai-chat__header {
  flex: 0 0 auto;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
}

.xq-ai-chat.is-compact .xq-ai-chat__panel-alert,
.xq-ai-chat.is-compact .xq-ai-chat__input,
.xq-ai-chat.is-compact .xq-ai-chat__disclaimer {
  flex: 0 0 auto;
}

.xq-ai-chat.is-compact .xq-ai-chat__header::after {
  left: 20px;
  right: 20px;
  background: linear-gradient(90deg, transparent 0%, rgba(191, 219, 254, 0.65) 18%, rgba(147, 197, 253, 0.82) 50%, rgba(191, 219, 254, 0.65) 82%, transparent 100%);
}

.xq-ai-chat.is-compact .xq-ai-chat__header-row {
  margin: 0;
  gap: 12px;
}

.xq-ai-chat.is-compact .xq-ai-chat__title {
  gap: 10px;
}

.xq-ai-chat.is-compact .xq-ai-chat__title-icon {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #267dff 0%, #075ddf 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.xq-ai-chat.is-compact .xq-ai-chat__title-icon::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
  transform: none;
}

.xq-ai-chat.is-compact .xq-ai-chat__title-icon::after {
  right: 2px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  background: #16d176;
}

.xq-ai-chat.is-compact .xq-ai-chat__title strong {
  font-size: 16px;
  line-height: 1.25;
}

.xq-ai-chat.is-compact .xq-ai-chat__title span span {
  max-width: 210px;
  color: #667b99;
  font-size: 11px;
}

.xq-ai-chat.is-compact .xq-ai-chat__new {
  width: 36px;
  min-width: 0;
  height: 36px;
  padding: 0;
  border-color: #d9e9ff;
  border-radius: 999px;
  background: #ffffff;
  color: #1269e8;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.09);
  font-size: 0;
  font-weight: 900;
}

.xq-ai-chat.is-compact .xq-ai-chat__new::before {
  inset: 0;
  width: 17px;
  height: 17px;
  margin: auto;
}

.xq-ai-chat.is-compact .xq-ai-chat__close {
  width: 34px;
  height: 34px;
  background: #eef4fb;
  color: #64748b;
}

.xq-ai-chat.is-compact .xq-ai-chat__body {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  padding: 16px 16px 16px;
  background: linear-gradient(180deg, #f6faff 0%, #edf6ff 100%);
}

.xq-ai-chat.is-compact .xq-ai-chat__guide-v2.is-guide-intro,
.xq-ai-chat.is-compact .xq-ai-chat__guide-v2.is-service-home {
  margin-bottom: 22px;
  padding: 20px 18px 18px;
  border: 1px solid #e6f0ff;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.09);
}

.xq-ai-chat.is-compact .xq-ai-chat__guide-v2 + .xq-ai-chat__message {
  margin-top: 22px;
}

.xq-ai-chat.is-compact .xq-ai-chat__welcome {
  gap: 8px;
  padding: 2px 0 9px;
}

.xq-ai-chat.is-compact .xq-ai-chat__welcome strong {
  font-size: 20px;
  line-height: 1.3;
}

.xq-ai-chat.is-compact .xq-ai-chat__welcome span {
  color: #6f82a0;
  font-size: 12px;
  font-weight: 800;
}

.xq-ai-chat.is-compact .xq-ai-chat__intro-actions {
  gap: 10px;
  margin-top: 4px;
}

.xq-ai-chat.is-compact .xq-ai-chat__intro-card {
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 76px;
  padding: 12px 11px;
  border-color: #e4eeff;
  border-radius: 12px;
  box-shadow: 0 9px 24px rgba(37, 99, 235, 0.07);
}

.xq-ai-chat.is-compact .xq-ai-chat__service-icon.has-svg-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
}

.xq-ai-chat.is-compact .xq-ai-chat__service-icon.has-svg-icon .xq-ai-chat__service-icon-svg {
  width: 20px;
  height: 20px;
}

.xq-ai-chat.is-compact .xq-ai-chat__capability-icon {
  width: 42px;
  height: 42px;
  background: #edf5ff;
}

.xq-ai-chat.is-compact .xq-ai-chat__capability-icon::before {
  width: 19px;
  height: 19px;
}

.xq-ai-chat.is-compact .xq-ai-chat__capability-copy {
  gap: 5px;
}

.xq-ai-chat.is-compact .xq-ai-chat__capability-copy strong {
  font-size: 12px;
}

.xq-ai-chat.is-compact .xq-ai-chat__capability-copy span {
  color: #7b8ca5;
  font-size: 10px;
  line-height: 1.45;
}

.xq-ai-chat.is-compact .xq-ai-chat__starter {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid #e6f0ff;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.xq-ai-chat.is-compact .xq-ai-chat__starter > strong {
  color: #243b5a;
  font-size: 13px;
}

.xq-ai-chat.is-compact .xq-ai-chat__starter-list {
  gap: 7px;
}

.xq-ai-chat.is-compact .xq-ai-chat__starter-list button {
  min-height: 31px;
  padding: 7px 14px;
  border-color: #dfeaff;
  border-radius: 999px;
  background: #ffffff;
  color: #50657e;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.06);
  font-size: 12px;
}

.xq-ai-chat.is-compact .xq-ai-chat__input {
  margin: 0 16px;
  padding: 8px;
  border-color: #dceaff;
  border-radius: 14px;
}

.xq-ai-chat.is-compact .xq-ai-chat__input button {
  right: 12px;
  bottom: 12px;
  background: linear-gradient(135deg, #2f8bff 0%, #0b63df 100%);
}

.xq-ai-chat.is-compact .xq-ai-chat__disclaimer {
  padding: 10px 18px 16px;
  color: #5b6d85;
}

.xq-ai-chat.is-compact .xq-ai-chat__header-actions {
  gap: 8px;
}

.xq-ai-chat.is-compact .xq-ai-chat__header-actions button::after {
  display: none;
}

.xq-ai-chat.is-compact .xq-ai-chat__history,
.xq-ai-chat.is-compact .xq-ai-chat__new,
.xq-ai-chat.is-compact .xq-ai-chat__resize,
.xq-ai-chat.is-compact .xq-ai-chat__close {
  width: 36px;
  min-width: 0;
  height: 36px;
  padding: 0;
  border: 1px solid #dceaff;
  border-radius: 999px;
  background: #ffffff;
  color: #1269e8;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
  font-size: 0;
}

.xq-ai-chat.is-compact .xq-ai-chat__history::before,
.xq-ai-chat.is-compact .xq-ai-chat__new::before {
  inset: 0;
  width: 18px;
  height: 18px;
  margin: auto;
  border-radius: 0;
  background: currentColor;
}

.xq-ai-chat.is-compact .xq-ai-chat__resize::before,
.xq-ai-chat.is-compact .xq-ai-chat__close::before {
  inset: 0;
  width: 18px;
  height: 18px;
  margin: auto;
  border-radius: 0;
  background: currentColor;
}

.xq-ai-chat.is-compact .xq-ai-chat__new::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6V5Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6V5Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xq-ai-chat.is-compact .xq-ai-chat__input {
  margin: 0 16px;
  padding: 8px;
  border: 1px solid #dceaff;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.xq-ai-chat.is-compact .xq-ai-chat__input textarea {
  min-height: 44px;
  padding: 12px 58px 12px 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #1f2f46;
  font-size: 13px;
  line-height: 20px;
}

.xq-ai-chat.is-compact .xq-ai-chat__input button {
  right: 10px;
  bottom: 10px;
  min-width: 44px;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2f8bff 0%, #0b63df 100%);
  box-shadow: 0 10px 22px rgba(18, 105, 232, 0.28);
  font-size: 18px;
}

.xq-ai-chat.is-compact .xq-ai-chat__body {
  padding-bottom: 18px;
}

.xq-ai-chat.is-compact .xq-ai-chat__message {
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
}

.xq-ai-chat.is-compact .xq-ai-chat__message.is-user {
  grid-template-columns: minmax(0, auto) 32px;
  justify-content: end;
  gap: 10px;
  padding-left: 36px;
}

.xq-ai-chat.is-compact .xq-ai-chat__message:not(.is-user):not(.is-system) {
  padding-right: 44px;
}

.xq-ai-chat.is-compact .xq-ai-chat__avatar {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border: 2px solid #ffffff;
  font-size: 11px;
  box-shadow: 0 8px 18px rgba(31, 121, 255, 0.18);
}

.xq-ai-chat.is-compact .xq-ai-chat__bubble {
  max-width: min(100%, 286px);
  padding: 12px 14px;
  border-color: #dfeaff;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 9px 24px rgba(37, 99, 235, 0.07);
  color: #263f5e;
  font-size: 13px;
  line-height: 1.7;
}

.xq-ai-chat.is-compact .xq-ai-chat__message.is-user .xq-ai-chat__bubble {
  max-width: min(100%, 286px);
  border-color: #d9e9ff;
  border-radius: 12px;
  background: #f4f9ff;
  color: #123d70;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.06);
}

.xq-ai-chat.is-compact .xq-ai-chat__message.is-user .xq-ai-chat__avatar {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  border-color: #ffffff;
  box-shadow: 0 8px 18px rgba(18, 105, 232, 0.2);
}

.xq-ai-chat.is-compact .xq-ai-chat__message.is-system {
  margin: 0 0 14px;
  padding: 0;
}

.xq-ai-chat.is-compact .xq-ai-chat__message.is-system .xq-ai-chat__bubble {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 999px;
  background: #eef6ff;
  color: #60758f;
  box-shadow: none;
}

.xq-ai-chat.is-compact .xq-ai-chat__guided,
.xq-ai-chat.is-compact .xq-ai-chat__requirements,
.xq-ai-chat.is-compact .xq-ai-chat__knowledge,
.xq-ai-chat.is-compact .xq-ai-chat__products,
.xq-ai-chat.is-compact .xq-ai-chat__conversion,
.xq-ai-chat.is-compact .xq-ai-chat__handoff-card,
.xq-ai-chat.is-compact .xq-ai-chat__ticket-card {
  margin-top: 10px;
  margin-bottom: 18px;
  margin-left: 40px;
}

.xq-ai-chat.is-compact .xq-ai-chat__requirements.is-confirm {
  margin-right: 10px;
  padding: 12px 10px;
  border-radius: 16px;
}

.xq-ai-chat.is-compact .xq-ai-chat__conversion.is-actionbar {
  margin-top: -4px;
  margin-bottom: 14px;
  margin-left: 40px;
  padding: 0;
}

.xq-ai-chat.is-compact .xq-ai-chat__guided.is-followup,
.xq-ai-chat.is-compact .xq-ai-chat__requirements.is-result {
  margin-right: 10px;
  padding: 12px 10px;
  border-radius: 16px;
}

.xq-ai-chat.is-compact .xq-ai-chat__guided.is-followup .xq-ai-chat__guided-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.xq-ai-chat.is-compact .xq-ai-chat__guided.is-followup .xq-ai-chat__guided-options button {
  flex: 0 0 auto;
  min-width: 48px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  text-align: center;
}

.xq-ai-chat.is-compact .xq-ai-chat__requirements-confirm-item {
  grid-template-columns: 32px minmax(0, 1fr);
  min-height: 56px;
  padding: 9px 10px;
}

.xq-ai-chat.is-compact .xq-ai-chat__requirements-confirm-list.is-table .xq-ai-chat__requirements-confirm-item {
  grid-template-columns: 24px minmax(62px, max-content) minmax(0, 1fr) auto;
  min-height: 37px;
  padding: 7px 9px;
}

.xq-ai-chat.is-compact .xq-ai-chat__requirements-edit {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.xq-ai-chat.is-compact .xq-ai-chat__requirements-confirm-icon {
  width: 29px;
  height: 29px;
}

.xq-ai-chat.is-compact .xq-ai-chat__requirements-intro,
.xq-ai-chat.is-compact .xq-ai-chat__requirements-confirm-tip {
  font-size: 12px;
}

.xq-ai-chat.is-compact .xq-ai-chat__structured-actions {
  gap: 7px;
}

.xq-ai-chat.is-compact .xq-ai-chat__structured-actions button {
  min-height: 68px;
  padding: 9px 6px;
}

.xq-ai-chat__form .xq-ai-chat__form-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 76px;
  height: auto;
  background: #ffffff;
  color: #1269e8;
  box-shadow: none;
}

.xq-ai-chat__disclaimer {
  padding: 0 14px 12px;
  background: #ffffff;
  color: #5b6d85;
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

@keyframes xqAiTyping {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

@media (max-width: 640px) {
  .xq-ai-chat__requirements-confirm-list.is-table .xq-ai-chat__requirements-confirm-item,
  .xq-ai-chat.is-compact .xq-ai-chat__requirements-confirm-list.is-table .xq-ai-chat__requirements-confirm-item {
    grid-template-columns: 24px minmax(58px, max-content) minmax(0, 1fr) auto;
  }

  .xq-ai-chat__requirements-edit {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .xq-ai-chat__requirements-edit-save,
  .xq-ai-chat__requirements-edit-cancel {
    padding: 0 8px;
  }

  .xq-ai-chat {
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom) + var(--xq-ai-mobile-bottom-offset, 0px));
  }

  .xq-ai-chat__launcher {
    position: relative;
    width: 58px;
    height: 58px;
    min-width: 0;
    min-height: 0;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(0, 59, 143, 0.26);
    touch-action: manipulation;
  }

  .xq-ai-chat__launcher::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: inherit;
    background: rgba(31, 121, 255, 0.12);
    opacity: 0;
    transform: scale(0.72);
    transition: opacity 0.16s ease, transform 0.16s ease;
    pointer-events: none;
  }

  .xq-ai-chat__launcher:active {
    transform: scale(0.94);
    box-shadow: 0 8px 18px rgba(0, 59, 143, 0.22);
  }

  .xq-ai-chat__launcher:active::after {
    opacity: 1;
    transform: scale(1);
  }

  .xq-ai-chat__launcher-icon {
    width: 42px;
    height: 42px;
  }

  .xq-ai-chat__launcher-text,
  .xq-ai-chat__launcher-status,
  .xq-ai-chat__launcher-arrow {
    display: none;
  }

  .xq-ai-chat__launcher-badge {
    top: -4px;
    right: -4px;
  }

  .xq-ai-chat__panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(76px + env(safe-area-inset-bottom) + var(--xq-ai-mobile-bottom-offset, 0px));
    width: auto;
    max-height: 82vh;
  }

  .xq-ai-chat__onboard-popover {
    position: fixed;
    right: 14px;
    bottom: calc(84px + env(safe-area-inset-bottom) + var(--xq-ai-mobile-bottom-offset, 0px));
    display: block;
    width: min(244px, calc(100vw - 28px));
  }

  .xq-ai-chat.is-large .xq-ai-chat__panel {
    left: 10px;
    right: 10px;
    top: 50%;
    width: auto;
    max-height: 88vh;
    transform: translateY(-46%) scale(0.98);
  }

  .xq-ai-chat.is-large.is-open .xq-ai-chat__panel {
    transform: translateY(-50%) scale(1);
  }

  .xq-ai-chat__body {
    height: min(50vh, 420px);
  }

  .xq-ai-chat__input {
    gap: 8px;
    padding: 10px 10px 8px;
  }

  .xq-ai-chat__input textarea {
    min-height: 38px;
    max-height: 78px;
    padding: 9px 50px 9px 13px;
    border-radius: 19px;
    font-size: 12px;
    line-height: 20px;
  }

  .xq-ai-chat__input button {
    min-width: 38px;
    height: 38px;
  }

  .xq-ai-chat__disclaimer {
    padding: 0 10px 10px;
    font-size: 9px;
  }

  .xq-ai-chat.is-compact .xq-ai-chat__panel {
    border-radius: 18px;
  }

  .xq-ai-chat.is-compact .xq-ai-chat__body {
    padding: 0 10px 10px;
  }

  .xq-ai-chat.is-compact .xq-ai-chat__guide-v2.is-guide-intro,
  .xq-ai-chat.is-compact .xq-ai-chat__guide-v2.is-service-home {
    padding: 14px;
    border-radius: 16px;
  }

  .xq-ai-chat.is-compact .xq-ai-chat__intro-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .xq-ai-chat.is-compact .xq-ai-chat__intro-card {
    min-height: 70px;
    padding: 10px 8px;
  }

  .xq-ai-chat.is-compact .xq-ai-chat__input {
    margin: 0 10px;
    padding: 8px;
  }

  .xq-ai-chat.is-compact .xq-ai-chat__input button {
    right: 11px;
    bottom: 11px;
  }

  .xq-ai-chat__confirm {
    padding: 14px;
  }

  .xq-ai-chat__confirm-card {
    padding: 16px;
  }

  .xq-ai-chat__confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .xq-ai-chat__confirm-actions button {
    padding: 0 10px;
  }

  .xq-ai-chat__form {
    left: 8px;
    right: 8px;
    top: 104px;
    bottom: 64px;
    padding: 10px;
  }

  .xq-ai-chat__form-head {
    flex-direction: column;
  }

  .xq-ai-chat__form .xq-ai-chat__form-back {
    width: 100%;
  }

  .xq-ai-chat__header {
    padding: 12px 12px 10px;
  }

  .xq-ai-chat__header-row {
    gap: 8px;
    margin-bottom: 7px;
  }

  .xq-ai-chat__title {
    gap: 8px;
  }

  .xq-ai-chat__title-icon {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .xq-ai-chat__title strong {
    font-size: 14px;
  }

  .xq-ai-chat__title span span {
    max-width: 160px;
    font-size: 10px;
  }

  .xq-ai-chat__header-actions {
    gap: 5px;
  }

  .xq-ai-chat__history,
  .xq-ai-chat__close {
    width: 28px;
    height: 28px;
  }

  .xq-ai-chat__header-actions button::after {
    display: none;
  }

  .xq-ai-chat__new,
  .xq-ai-chat__resize {
    display: grid;
  }

  .xq-ai-chat.is-compact .xq-ai-chat__header-row {
    gap: 6px;
  }

  .xq-ai-chat.is-compact .xq-ai-chat__title-icon {
    width: 38px;
    height: 38px;
  }

  .xq-ai-chat.is-compact .xq-ai-chat__title span span {
    max-width: 112px;
  }

  .xq-ai-chat.is-compact .xq-ai-chat__header-actions {
    gap: 5px;
  }

  .xq-ai-chat.is-compact .xq-ai-chat__history,
  .xq-ai-chat.is-compact .xq-ai-chat__new,
  .xq-ai-chat.is-compact .xq-ai-chat__resize,
  .xq-ai-chat.is-compact .xq-ai-chat__close {
    display: grid;
    width: 32px;
    min-width: 0;
    height: 32px;
  }

  .xq-ai-chat.is-compact .xq-ai-chat__history::before,
  .xq-ai-chat.is-compact .xq-ai-chat__new::before,
  .xq-ai-chat.is-compact .xq-ai-chat__resize::before,
  .xq-ai-chat.is-compact .xq-ai-chat__close::before {
    width: 16px;
    height: 16px;
  }

  .xq-ai-chat__ability-bar {
    margin-right: -4px;
    margin-left: -4px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .xq-ai-chat__notice {
    display: none;
  }

  .xq-ai-chat__guide-v2,
  .xq-ai-chat__guide-v2.is-service-home {
    padding: 12px;
  }

  .xq-ai-chat__capabilities {
    grid-template-columns: 1fr;
  }

  .xq-ai-chat.is-large .xq-ai-chat__guide-v2.is-service-home .xq-ai-chat__guide-options,
  .xq-ai-chat__guide-options {
    grid-template-columns: 1fr;
  }

  .xq-ai-chat__guided,
  .xq-ai-chat__requirements,
  .xq-ai-chat__knowledge,
  .xq-ai-chat__products,
  .xq-ai-chat__conversion,
  .xq-ai-chat__handoff-card,
  .xq-ai-chat__ticket-card {
    margin-left: 0;
  }

  .xq-ai-chat.is-human-only .xq-ai-chat__handoff-card {
    min-width: 0;
    margin-left: 0;
    overflow: hidden;
    padding: 10px;
  }

  .xq-ai-chat.is-human-only .xq-ai-chat__handoff-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .xq-ai-chat.is-human-only .xq-ai-chat__handoff-head span {
    max-width: 100%;
    white-space: normal;
  }

  .xq-ai-chat.is-human-only .xq-ai-chat__handoff-steps {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .xq-ai-chat.is-human-only .xq-ai-chat__handoff-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .xq-ai-chat.is-human-only .xq-ai-chat__handoff-actions button {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .xq-ai-chat.is-human-only.is-compact .xq-ai-chat__resize {
    display: none;
  }

  .xq-ai-chat.is-human-only.is-compact .xq-ai-chat__title span span {
    max-width: 140px;
  }

  .xq-ai-chat__product.is-top {
    grid-template-columns: 82px 1fr;
  }

  .xq-ai-chat__product.is-top .xq-ai-chat__product-media {
    width: 82px;
    height: 74px;
  }

  .xq-ai-chat__product.is-slide,
  .xq-ai-chat__product.is-slide.is-top {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 36px 10px 10px;
  }

  .xq-ai-chat__product-hero {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
  }

  .xq-ai-chat__product.is-slide .xq-ai-chat__product-media,
  .xq-ai-chat__product.is-slide.is-top .xq-ai-chat__product-media {
    width: 82px;
    height: 82px;
  }

  .xq-ai-chat__product-key-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xq-ai-chat__product-actions a,
  .xq-ai-chat__product-actions button,
  .xq-ai-chat__knowledge-actions a,
  .xq-ai-chat__knowledge-actions button {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    text-align: center;
  }

  .xq-ai-chat.is-inquiry .xq-ai-chat__form {
    grid-template-columns: 1fr;
  }
}

.xq-ai-chat .xq-ai-chat__history.has-svg-icon::before,
.xq-ai-chat .xq-ai-chat__new.has-svg-icon::before,
.xq-ai-chat .xq-ai-chat__resize.has-svg-icon::before,
.xq-ai-chat .xq-ai-chat__close.has-svg-icon::before,
.xq-ai-chat .xq-ai-chat__service-icon.has-svg-icon::before,
.xq-ai-chat .xq-ai-chat__input button.has-svg-icon::before,
.xq-ai-chat.is-compact .xq-ai-chat__history.has-svg-icon::before,
.xq-ai-chat.is-compact .xq-ai-chat__new.has-svg-icon::before,
.xq-ai-chat.is-compact .xq-ai-chat__resize.has-svg-icon::before,
.xq-ai-chat.is-compact .xq-ai-chat__close.has-svg-icon::before,
.xq-ai-chat.is-compact .xq-ai-chat__service-icon.has-svg-icon::before,
.xq-ai-chat.is-compact .xq-ai-chat__input button.has-svg-icon::before {
  display: none;
  content: none;
}

.xq-ai-chat .xq-ai-chat__title-icon.has-avatar-image::before,
.xq-ai-chat.is-compact .xq-ai-chat__title-icon.has-avatar-image::before {
  display: none;
  content: none;
}

.xq-ai-chat .has-svg-icon {
  display: grid;
  place-items: center;
}

/* Micro feedback states */
.xq-ai-chat__panel > .xq-ai-chat__toast {
  top: 70px;
  right: 14px;
  bottom: auto;
  width: auto;
  min-width: 0;
  max-width: min(310px, calc(100% - 28px));
  padding: 10px 12px;
  border-radius: 12px;
  border-color: #dbeafe;
  background: rgba(255, 255, 255, 0.96);
  color: #1f3b57;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
  animation: xq-ai-feedback-in 0.18s ease both;
}

.xq-ai-chat__toast[data-type="success"] {
  border-color: #bbf7d0;
  color: #166534;
}

.xq-ai-chat__toast[data-type="warning"] {
  border-color: #fde68a;
  color: #92400e;
}

.xq-ai-chat__toast[data-type="error"] {
  border-color: #fecaca;
  color: #991b1b;
}

.xq-ai-chat__toast[data-type="info"] {
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.xq-ai-chat__toast::before {
  content: "i";
  width: 20px;
  height: 20px;
  background: #2563eb;
  font-size: 11px;
}

.xq-ai-chat__toast[data-type="success"]::before {
  content: "\2713";
  background: #16a34a;
}

.xq-ai-chat__toast[data-type="warning"]::before {
  content: "!";
  background: #f59e0b;
}

.xq-ai-chat__toast[data-type="error"]::before {
  content: "\00d7";
  background: #ef4444;
}

.xq-ai-chat__toast button,
.xq-ai-chat__panel-alert button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  transition: background 0.12s ease, color 0.12s ease;
}

.xq-ai-chat__toast button:hover,
.xq-ai-chat__panel-alert button:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #1f2937;
}

.xq-ai-chat__panel-alert {
  min-height: 38px;
  border-bottom-color: #dbeafe;
  background: #eff6ff;
  color: #1e40af;
  animation: xq-ai-panel-alert-in 0.18s ease both;
}

.xq-ai-chat__panel-alert[data-type="success"] {
  border-bottom-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.xq-ai-chat__panel-alert[data-type="warning"] {
  border-bottom-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.xq-ai-chat__panel-alert[data-type="error"] {
  border-bottom-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.xq-ai-chat__panel-alert::before {
  content: "i";
  background: #2563eb;
}

.xq-ai-chat__panel-alert[data-type="success"]::before {
  content: "\2713";
  background: #16a34a;
}

.xq-ai-chat__panel-alert[data-type="warning"]::before {
  content: "!";
  background: #f59e0b;
}

.xq-ai-chat__panel-alert[data-type="error"]::before {
  content: "\00d7";
  background: #ef4444;
}

.xq-ai-chat__message.is-typing {
  animation: xq-ai-feedback-in 0.16s ease both;
}

.xq-ai-chat__bubble.is-thinking {
  border-color: #dbeafe;
  background: #ffffff;
  color: #49637f;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.07);
}

.xq-ai-chat__typing {
  gap: 8px;
}

.xq-ai-chat__typing .xq-ai-chat__typing-label {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #5f738d;
  animation: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.xq-ai-chat__typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.xq-ai-chat__typing .xq-ai-chat__typing-dots span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #60a5fa;
  animation: xqAiTyping 1s infinite ease-in-out;
}

.xq-ai-chat__typing .xq-ai-chat__typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.xq-ai-chat__typing .xq-ai-chat__typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.xq-ai-chat__message.is-user .xq-ai-chat__bubble {
  position: relative;
}

.xq-ai-chat__message.is-user.has-delivery-status .xq-ai-chat__bubble {
  padding-right: 36px;
}

.xq-ai-chat__message-status {
  position: absolute;
  right: 10px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  color: #2563eb;
}

.xq-ai-chat__message-status::before {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
}

.xq-ai-chat__message.is-delivery-sending .xq-ai-chat__message-status::before {
  border: 2px solid rgba(37, 99, 235, 0.25);
  border-top-color: #2563eb;
  border-radius: 999px;
  animation: xq-ai-chat-spin 0.78s linear infinite;
}

.xq-ai-chat__message.is-delivery-sent .xq-ai-chat__message-status {
  background: #dcfce7;
  color: #16a34a;
}

.xq-ai-chat__message.is-delivery-sent .xq-ai-chat__message-status::before {
  width: 9px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(-45deg);
}

.xq-ai-chat__message.is-delivery-failed .xq-ai-chat__message-status {
  background: #fee2e2;
  color: #dc2626;
}

.xq-ai-chat__message.is-delivery-failed .xq-ai-chat__message-status::before {
  content: "!";
  width: auto;
  height: auto;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.xq-ai-chat__input {
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.xq-ai-chat__input.is-focused {
  border-color: #93c5fd;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 12px 30px rgba(37, 99, 235, 0.11);
}

.xq-ai-chat__input.is-ready button:not(:disabled) {
  opacity: 1;
  transform: translateY(-1px);
}

.xq-ai-chat__input.is-loading button {
  cursor: progress;
}

.xq-ai-chat__input.is-loading button .xq-ai-chat__control-icon {
  animation: xq-ai-chat-spin 0.78s linear infinite;
}

.xq-ai-chat__input.is-disabled button,
.xq-ai-chat__input button:disabled {
  box-shadow: none;
  opacity: 0.48;
  transform: none;
}

@keyframes xq-ai-feedback-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes xq-ai-panel-alert-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .xq-ai-chat__panel > .xq-ai-chat__toast {
    left: 10px;
    right: 10px;
    top: 64px;
    max-width: none;
  }

  .xq-ai-chat__message.is-user.has-delivery-status .xq-ai-chat__bubble {
    padding-right: 32px;
  }
}

.xq-ai-chat .xq-ai-chat__guide-v2.is-guide-intro,
.xq-ai-chat .xq-ai-chat__guide-v2.is-service-home,
.xq-ai-chat .xq-ai-chat__capability,
.xq-ai-chat .xq-ai-chat__intro-card,
.xq-ai-chat .xq-ai-chat__starter,
.xq-ai-chat .xq-ai-chat__starter-list button,
.xq-ai-chat.is-compact .xq-ai-chat__guide-v2.is-guide-intro,
.xq-ai-chat.is-compact .xq-ai-chat__guide-v2.is-service-home,
.xq-ai-chat.is-compact .xq-ai-chat__intro-card,
.xq-ai-chat.is-compact .xq-ai-chat__starter,
.xq-ai-chat.is-compact .xq-ai-chat__starter-list button {
  box-shadow: none;
}

.xq-ai-chat .xq-ai-chat__starter.is-intro-starter,
.xq-ai-chat.is-compact .xq-ai-chat__starter.is-intro-starter {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
