.cac-chat-root {
  --cac-primary: #1FB2FF;
  --cac-secondary: #DB6F13;
  --cac-surface: #ffffff;
  --cac-text: #111827;
  --cac-muted: #6b7280;
  --cac-border: rgba(17, 24, 39, .10);
  position: fixed;
  bottom: 24px;
  z-index: 999999;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cac-text);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.cac-position-right { right: 24px; }
.cac-position-left { left: 24px; align-items: flex-start; }

.cac-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cac-chat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  background: linear-gradient(135deg, var(--cac-primary), var(--cac-secondary));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(17, 24, 39, .24);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.cac-chat-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(17, 24, 39, .28);
}

.cac-chat-button:active {
  transform: translateY(0);
}

.cac-button-style-bubble .cac-chat-button {
  min-width: 118px;
  height: 56px;
  padding: 0 22px;
  border-radius: 999px;
}

.cac-button-style-circle .cac-chat-button {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  padding: 0;
}

.cac-button-style-message_box .cac-chat-button {
  z-index: 0;
  min-width: 190px;
  min-height: 74px;
  padding: 16px 20px;
  border-radius: 18px;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
  position: relative;
}

.cac-button-style-message_box .cac-chat-button::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: -9px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--cac-primary), var(--cac-secondary));
  transform: rotate(45deg);
  border-radius: 4px;
  z-index: -1;
}

.cac-button-message-title {
  font-size: 15px;
  line-height: 1.15;
  font-weight: 900;
}

.cac-button-message-subtitle {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 650;
  opacity: .92;
}

.cac-button-style-floating_card .cac-chat-button {
  min-width: 210px;
  min-height: 72px;
  padding: 10px 14px 10px 10px;
  border-radius: 18px;
  background: #fff;
  color: var(--cac-text);
  border: 1px solid rgba(17, 24, 39, .10);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
  gap: 12px;
  justify-content: flex-start;
}

.cac-button-style-floating_card .cac-chat-button:hover {
  box-shadow: 0 20px 48px rgba(15, 23, 42, .22);
}

.cac-button-card-avatar {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.cac-button-card-avatar .cac-avatar-media {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--cac-primary), var(--cac-secondary));
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
}

.cac-button-card-avatar i {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
}

.cac-button-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.cac-button-card-copy strong {
  font-size: 14px;
  line-height: 1.15;
  font-weight: 900;
  color: var(--cac-text);
}

.cac-button-card-copy small {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 650;
  color: var(--cac-muted);
}

.cac-button-icon,
.cac-avatar-media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.cac-button-icon svg {
  width: 26px;
  height: 26px;
}

.cac-button-style-bubble .cac-button-icon svg {
  width: 25px;
  height: 25px;
}

.cac-avatar-media {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.26);
  color: #fff;
  overflow: hidden;
}

.cac-avatar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cac-avatar-media svg {
  width: 24px;
  height: 24px;
}

.cac-chat-panel {
  display: none;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 610px;
  max-height: calc(100vh - 112px);
  background: var(--cac-surface);
  border-radius: 26px;
  box-shadow: 0 26px 80px rgba(15, 23, 42, .26);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--cac-border);
  transform-origin: bottom right;
}

.cac-position-left .cac-chat-panel {
  transform-origin: bottom left;
}

.cac-is-open .cac-chat-panel {
  display: flex;
  flex-direction: column;
  animation: cac-panel-in .2s ease both;
}

@keyframes cac-panel-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cac-opened-by-popup .cac-chat-panel {
  animation: cac-panel-auto-open .28s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes cac-panel-auto-open {
  from { opacity: 0; transform: translateY(16px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cac-chat-header {
  position: relative;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.22), transparent 32%),
    linear-gradient(135deg, var(--cac-primary), var(--cac-secondary));
  color: #fff;
  padding: 17px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cac-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cac-chat-header strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.cac-chat-header small {
  display: block;
  color: rgba(255,255,255,.84);
  font-size: 12px;
  margin-top: 3px;
}

.cac-close-btn {
  border: 0;
  background: rgba(255,255,255,.18);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: background .18s ease;
}

.cac-close-btn:hover {
  background: rgba(255,255,255,.28);
}

.cac-chat-body {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  background:
    radial-gradient(circle at top right, rgba(31, 178, 255, .10), transparent 28%),
    #f7f8fb;
}

.cac-msg {
  display: flex;
  margin-bottom: 12px;
}

.cac-msg-user { justify-content: flex-end; }
.cac-msg-assistant,
.cac-msg-system { justify-content: flex-start; }

.cac-msg-bubble {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.48;
  white-space: pre-wrap;
  word-break: break-word;
}

.cac-msg-user .cac-msg-bubble {
  background: linear-gradient(135deg, var(--cac-primary), var(--cac-secondary));
  color: #fff;
  border-bottom-right-radius: 7px;
  box-shadow: 0 10px 22px rgba(17, 24, 39, .12);
}

.cac-msg-assistant .cac-msg-bubble,
.cac-msg-system .cac-msg-bubble {
  background: #fff;
  color: #1f2937;
  border: 1px solid rgba(17, 24, 39, .07);
  border-bottom-left-radius: 7px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .06);
}

.cac-typing {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 9px 18px;
  font-size: 12px;
  color: var(--cac-muted);
  background: #f7f8fb;
}

.cac-typing span {
  width: 6px;
  height: 6px;
  background: var(--cac-primary);
  border-radius: 50%;
  animation: cac-dot 1s infinite ease-in-out;
}

.cac-typing span:nth-child(2) { animation-delay: .12s; }
.cac-typing span:nth-child(3) { animation-delay: .24s; }
.cac-typing em { font-style: normal; margin-left: 5px; }

@keyframes cac-dot {
  0%, 80%, 100% { transform: scale(.75); opacity: .45; }
  40% { transform: scale(1); opacity: 1; }
}

.cac-chat-footer {
  padding: 14px;
  background: #fff;
  border-top: 1px solid rgba(17,24,39,.08);
}

.cac-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid rgba(17,24,39,.10);
  border-radius: 16px;
  padding: 7px;
}

.cac-chat-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  font-size: 14px;
  color: var(--cac-text);
  outline: none;
}

.cac-send-btn {
  border: 0;
  background: linear-gradient(135deg, var(--cac-primary), var(--cac-secondary));
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(17, 24, 39, .16);
}

.cac-send-btn svg {
  width: 20px;
  height: 20px;
}

.cac-send-btn:disabled,
.cac-chat-input:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.cac-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999998;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cac-popup-overlay.cac-popup-visible {
  display: flex;
}

.cac-popup-lock body {
  overflow: hidden;
}

.cac-welcome-popup {
  width: 680px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 30px;
  box-shadow: 0 34px 100px rgba(15, 23, 42, .36);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.cac-welcome-popup.cac-popup-anim-zoom_in {
  animation: cac-popup-zoom-in .24s cubic-bezier(.2,.8,.2,1) both;
}

.cac-welcome-popup.cac-popup-anim-fade_up {
  animation: cac-popup-fade-up .24s ease both;
}

.cac-welcome-popup.cac-popup-anim-slide_up {
  animation: cac-popup-slide-up .26s ease both;
}

.cac-popup-visible .cac-welcome-popup,
.cac-welcome-popup.cac-popup-visible {
  display: block;
}

@keyframes cac-popup-zoom-in {
  from { opacity: 0; transform: scale(.88); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes cac-popup-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cac-popup-slide-up {
  from { opacity: 0; transform: translateY(42px); }
  to { opacity: 1; transform: translateY(0); }
}

.cac-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  color: #475569;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: background .18s ease, transform .18s ease;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

.cac-popup-close:hover {
  background: #fff;
  transform: scale(1.04);
}

.cac-popup-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 300px;
}

.cac-popup-media {
  position: relative;
  min-height: 300px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.40), transparent 34%),
    linear-gradient(145deg, rgba(31, 178, 255, .18), rgba(219, 111, 19, .14));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
}

.cac-popup-media:after {
  content: "";
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 42px;
  height: 38px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .12);
  filter: blur(18px);
}

.cac-popup-person {
  position: relative;
  z-index: 1;
  width: 178px;
  height: 178px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: #f1f5f9;
  border: 6px solid rgba(255, 255, 255, .78);
  box-shadow: 0 24px 52px rgba(15, 23, 42, .22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cac-popup-person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.cac-popup-person .cac-avatar-media {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--cac-primary), var(--cac-secondary));
}

.cac-popup-content {
  padding: 44px 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.cac-popup-copy {
  min-width: 0;
}

.cac-popup-copy strong {
  display: block;
  font-size: 30px;
  line-height: 1.12;
  color: #0f172a;
  margin-bottom: 10px;
  max-width: 340px;
  letter-spacing: -.03em;
}

.cac-popup-person-heading {
  display: block;
  margin: 0 0 16px;
}

.cac-popup-person-heading span {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--cac-primary);
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.cac-popup-person-heading b {
  display: block;
  font-size: 24px;
  line-height: 1.16;
  color: #0f172a;
  font-weight: 900;
  letter-spacing: -.03em;
}

.cac-popup-copy span {
  display: block;
  font-size: 16px;
  line-height: 1.62;
  color: #334155;
  max-width: 360px;
}

.cac-popup-start {
  margin-top: 24px;
  width: fit-content;
  min-width: 190px;
  border: 0;
  border-radius: 16px;
  padding: 15px 22px;
  background: linear-gradient(135deg, var(--cac-primary), var(--cac-secondary));
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(17, 24, 39, .20);
  transition: transform .18s ease, box-shadow .18s ease;
}

.cac-popup-start:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(17, 24, 39, .25);
}

@media (max-width: 480px) {
  .cac-chat-root {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .cac-chat-panel {
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 92px);
    border-radius: 24px;
  }
  .cac-chat-button {
    margin-left: auto;
  }
  .cac-position-left .cac-chat-button {
    margin-left: 0;
    margin-right: auto;
  }
  .cac-button-style-message_box .cac-chat-button,
  .cac-button-style-floating_card .cac-chat-button {
    max-width: calc(100vw - 24px);
  }
  .cac-button-style-message_box .cac-chat-button {
    min-width: 178px;
    min-height: 68px;
  }
  .cac-button-style-floating_card .cac-chat-button {
    min-width: 198px;
  }
  .cac-popup-overlay {
    padding: 16px;
  }
  .cac-welcome-popup {
    width: 100%;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    border-radius: 26px;
  }
  .cac-popup-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .cac-popup-media {
    min-height: 170px;
    padding: 24px 18px 10px;
    align-items: center;
  }
  .cac-popup-media:after {
    left: 64px;
    right: 64px;
    bottom: 28px;
  }
  .cac-popup-person {
    width: 124px;
    height: 124px;
    border-radius: 50%;
  }
  .cac-popup-content {
    padding: 24px 22px 24px;
    text-align: center;
    align-items: center;
  }
  .cac-popup-copy strong {
    font-size: 24px;
    max-width: 100%;
  }
  .cac-popup-person-heading {
    text-align: center;
  }
  .cac-popup-person-heading b {
    font-size: 22px;
  }
  .cac-popup-copy span {
    font-size: 15px;
    max-width: 100%;
  }
  .cac-popup-start {
    width: 100%;
    min-width: 0;
  }
}

/* Knowledge Base generated chat buttons */
.cac-msg-text {
  white-space: pre-wrap;
}

.cac-chat-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cac-chat-action-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--cac-primary), var(--cac-secondary));
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(17, 24, 39, .14);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.cac-chat-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(17, 24, 39, .18);
  filter: brightness(1.02);
}

.cac-chat-action-btn:focus-visible {
  outline: 3px solid rgba(31, 178, 255, .24);
  outline-offset: 2px;
}

/* Phase 4.7 chat-style popup: small chat invitation, not the full chat window */
.cac-chat-popup {
  display: none;
  width: 370px;
  max-width: calc(100vw - 32px);
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 24px;
  box-shadow: 0 22px 58px rgba(15, 23, 42, .22);
  overflow: hidden;
  position: relative;
  transform-origin: bottom right;
}

.cac-position-left .cac-chat-popup {
  transform-origin: bottom left;
}

.cac-chat-popup.cac-popup-visible {
  display: block;
}

.cac-chat-popup.cac-popup-anim-zoom_in {
  animation: cac-popup-zoom-in .24s cubic-bezier(.2,.8,.2,1) both;
}

.cac-chat-popup.cac-popup-anim-fade_up {
  animation: cac-popup-fade-up .24s ease both;
}

.cac-chat-popup.cac-popup-anim-slide_up {
  animation: cac-popup-slide-up .26s ease both;
}

.cac-chat-popup-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 18px 16px;
  background:
    radial-gradient(circle at 5% 0%, rgba(31, 178, 255, .12), transparent 42%),
    linear-gradient(180deg, #fff, #f8fafc);
}

.cac-chat-popup::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: -8px;
  width: 18px;
  height: 18px;
  background: #f8fafc;
  border-right: 1px solid rgba(15, 23, 42, .10);
  border-bottom: 1px solid rgba(15, 23, 42, .10);
  transform: rotate(45deg);
}

.cac-position-left .cac-chat-popup::after {
  right: auto;
  left: 30px;
}

.cac-chat-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: #64748b;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .10);
}

.cac-chat-popup-close:hover {
  background: #fff;
  color: #0f172a;
}

.cac-mini-popup-person {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--cac-primary), var(--cac-secondary));
  border: 4px solid #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cac-mini-popup-person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.cac-mini-popup-person .cac-avatar-media {
  width: 100%;
  height: 100%;
  border: 0;
  color: #fff;
  background: transparent;
}

.cac-chat-popup-content {
  min-width: 0;
  padding-right: 28px;
}

.cac-mini-popup-person-heading {
  margin: 0 0 7px;
}

.cac-mini-popup-person-heading span {
  display: block;
  color: var(--cac-primary);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.cac-mini-popup-person-heading b {
  display: block;
  margin-top: 2px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.02em;
}

.cac-chat-popup-content > strong {
  display: block;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}

.cac-chat-popup-content > span {
  display: block;
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 12px;
}

.cac-chat-popup .cac-popup-start {
  margin-top: 0;
  min-width: 0;
  width: auto;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(17, 24, 39, .18);
}

@media (max-width: 480px) {
  .cac-chat-popup {
    width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
    border-radius: 22px;
  }
  .cac-chat-popup-inner {
    gap: 12px;
    padding: 16px 16px 16px 14px;
  }
  .cac-mini-popup-person {
    width: 62px;
    height: 62px;
  }
  .cac-chat-popup-content {
    padding-right: 24px;
  }
  .cac-mini-popup-person-heading b {
    font-size: 16px;
  }
  .cac-chat-popup-content > strong {
    font-size: 16px;
  }
  .cac-chat-popup-content > span {
    font-size: 13px;
  }
}

/* Auto Chat Message: ready-to-send user message */
.cac-msg-auto-suggestion {
  justify-content: flex-end;
}

.cac-auto-message-btn {
  max-width: 82%;
  border: 0;
  border-radius: 18px;
  border-bottom-right-radius: 7px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--cac-primary), var(--cac-secondary));
  color: #fff;
  font-size: 14px;
  line-height: 1.48;
  font-weight: 700;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(17, 24, 39, .12);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.cac-auto-message-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(17, 24, 39, .18);
  filter: brightness(1.02);
}

.cac-auto-message-btn:focus-visible {
  outline: 3px solid rgba(31, 178, 255, .24);
  outline-offset: 2px;
}

/* Auto Chat Conversation: seeded user question and assistant answer */
.cac-msg-auto-seeded.cac-msg-animating {
  opacity: 0;
  transform: translateY(12px) scale(.98);
}

.cac-msg-auto-seeded.cac-msg-animated {
  animation: cac-auto-message-in .32s cubic-bezier(.2,.8,.2,1) both;
}

.cac-msg-auto-seeded .cac-msg-bubble {
  position: relative;
}

.cac-msg-auto-seeded.cac-msg-user .cac-msg-bubble {
  animation: cac-auto-message-glow-user .7s ease both;
}

.cac-msg-auto-seeded.cac-msg-assistant .cac-msg-bubble {
  animation: cac-auto-message-glow-assistant .7s ease both;
}

@keyframes cac-auto-message-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cac-auto-message-glow-user {
  0% { box-shadow: 0 0 0 rgba(17, 24, 39, 0); }
  45% { box-shadow: 0 14px 30px rgba(17, 24, 39, .20); }
  100% { box-shadow: 0 10px 22px rgba(17, 24, 39, .12); }
}

@keyframes cac-auto-message-glow-assistant {
  0% { box-shadow: 0 0 0 rgba(17, 24, 39, 0); }
  45% { box-shadow: 0 12px 28px rgba(17, 24, 39, .12); }
  100% { box-shadow: 0 8px 22px rgba(17, 24, 39, .06); }
}
