.ctcase-ai-advisor {
  --ctcase-blue: #79a9ef;
  --ctcase-blue-dark: #4c8bdc;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: #17212f;
}

.ctcase-ai-advisor *,
.ctcase-advisor-launcher * {
  box-sizing: border-box;
}

.ctcase-ai-advisor-inline {
  width: 440px;
  max-width: 100%;
  height: 660px;
}

.ctcase-advisor-floating {
  position: fixed;
  z-index: 999999;
  right: 24px;
  bottom: 90px;
  width: 440px;
  height: min(690px, calc(100vh - 112px));
  max-width: calc(100vw - 32px);
}

.ctcase-advisor-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e5edf8;
  border-radius: 25px;
  background: linear-gradient(145deg, #f9fbff, #f0f7ff);
  box-shadow: 0 22px 50px rgba(25, 47, 82, .23);
  color: #17212f;
}

.ctcase-advisor-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 17px 22px;
  background: linear-gradient(110deg, #75a3e9 0%, #99c3f7 100%);
  color: #fff;
  cursor: move;
  touch-action: none;
}

.ctcase-advisor-head-logo {
  display: grid;
  flex: 0 0 58px;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 6px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(25, 50, 83, .18);
  color: #1f599c;
  font-weight: 800;
}

.ctcase-advisor-head-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ctcase-advisor-head-text {
  min-width: 0;
}

.ctcase-advisor-head-title {
  display: block;
  color: #fff !important;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.ctcase-advisor-head small {
  display: block;
  margin-top: 6px;
  color: #152943 !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.ctcase-advisor-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px 14px;
  scrollbar-width: thin;
  scrollbar-color: #cfdbeb transparent;
}

.ctcase-advisor-body::-webkit-scrollbar {
  width: 5px;
}

.ctcase-advisor-body::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: #cfdbeb;
}

.ctcase-advisor-messages {
  flex: 1 0 auto;
  min-height: 100px;
}

.ctcase-advisor-body:not(.has-conversation) .ctcase-advisor-messages {
  padding-top: 55px;
}

.ctcase-advisor-msg {
  width: fit-content;
  max-width: 88%;
  margin: 0 0 12px;
  padding: 13px 15px;
  border-radius: 17px;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ctcase-advisor-msg strong {
  font-weight: 700;
}

.ctcase-advisor-msg a {
  color: inherit;
  text-decoration: underline;
}

.ctcase-advisor-msg code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .08);
  font-size: .92em;
}

.ctcase-advisor-msg pre {
  margin: 8px 0 0;
  padding: 9px 10px;
  border-radius: 8px;
  overflow-x: auto;
  background: rgba(0, 0, 0, .08);
  white-space: pre;
}

.ctcase-advisor-msg pre code {
  padding: 0;
  background: none;
  white-space: inherit;
}

.ctcase-advisor-msg p,
.ctcase-advisor-msg blockquote {
  margin: 0 0 10px;
}

.ctcase-advisor-msg > :last-child {
  margin-bottom: 0;
}

.ctcase-advisor-msg blockquote {
  padding-left: 10px;
  border-left: 3px solid #a4b6cc;
  color: #465467;
}

.ctcase-advisor-msg hr {
  margin: 10px 0;
  border: 0;
  border-top: 1px solid #c9d2dd;
}

.ctcase-advisor-msg img {
  display: block;
  max-width: 100%;
  max-height: 300px;
  height: auto;
  margin: 8px 0;
  border-radius: 8px;
}

.ctcase-advisor-msg li input[type="checkbox"] {
  margin-right: 6px;
}

.ctcase-advisor-msg ul,
.ctcase-advisor-msg ol {
  margin: 5px 0;
  padding-left: 22px;
}

.ctcase-advisor-msg h1,
.ctcase-advisor-msg h2,
.ctcase-advisor-msg h3,
.ctcase-advisor-msg h4,
.ctcase-advisor-msg h5,
.ctcase-advisor-msg h6 {
  margin: 4px 0;
  font-size: 1em;
}

.ctcase-advisor-msg.bot {
  border-bottom-left-radius: 5px;
  background: #e7eaf0;
  color: #101820 !important;
  white-space: normal;
}


.ctcase-advisor-msg.markdown-fallback {
  white-space: pre-wrap;
}

.ctcase-advisor-msg.user {
  margin-left: auto;
  border-bottom-right-radius: 5px;
  background: var(--ctcase-blue-dark);
  color: #fff !important;
}

.ctcase-advisor-msg.has-table {
  width: min(100%, 620px);
  max-width: 100%;
  white-space: normal;
}

.ctcase-markdown-table-wrap {
  max-width: 100%;
  margin: 8px 0;
  overflow-x: auto;
}

.ctcase-markdown-table-wrap table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
}

.ctcase-markdown-table-wrap th,
.ctcase-markdown-table-wrap td {
  min-width: 90px;
  padding: 7px 9px;
  border: 1px solid #c9d2dd;
  vertical-align: top;
  overflow-wrap: normal;
  white-space: normal;
}

.ctcase-markdown-table-wrap th {
  background: rgba(255, 255, 255, .55);
  font-weight: 700;
}

.ctcase-advisor-msg-image {
  display: block;
  width: min(220px, 100%);
  max-height: 190px;
  margin-top: 9px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}

.ctcase-advisor-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 3px 0 17px;
  padding: 11px 13px;
  border: 1px solid #b54452;
  border-radius: 13px;
  background: #fff2f2;
  color: #25232b !important;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ctcase-advisor-alert-icon {
  display: grid;
  flex: 0 0 19px;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #c44858;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
}

.ctcase-advisor-suggestions {
  flex: 0 0 auto;
}

.ctcase-advisor-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 8px;
}

.ctcase-advisor-prompts button {
  width: auto;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid #627184;
  border-radius: 999px;
  background: transparent !important;
  color: #17212f !important;
  box-shadow: none;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.ctcase-advisor-prompts button:hover,
.ctcase-advisor-prompts button:focus-visible {
  border-color: var(--ctcase-blue-dark);
  background: #e7f1ff !important;
}

.ctcase-advisor-lead-prompt {
  margin: 18px 0 9px;
  color: #101820 !important;
  font-size: 14px;
  text-align: center;
}

.ctcase-advisor-lead-toggle {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid #6396d7 !important;
  border-radius: 999px !important;
  background: linear-gradient(110deg, #77a8ec, #99c1f5) !important;
  box-shadow: 0 5px 15px rgba(70, 130, 206, .28);
  color: #fff !important;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.ctcase-advisor-lead-toggle:hover,
.ctcase-advisor-lead-toggle:focus-visible {
  background: linear-gradient(110deg, #5d97e1, #83b4f3) !important;
}

.ctcase-advisor-lead {
  display: none;
  flex: 0 0 auto;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid #d6e4f4;
  border-radius: 15px;
  background: #fff;
  color: #17212f !important;
}

.ctcase-advisor-lead.is-open {
  display: block;
}

.ctcase-advisor-lead strong {
  display: block;
  margin-bottom: 10px;
  color: #17212f !important;
  font-size: 14px;
}

.ctcase-advisor-lead input,
.ctcase-advisor-lead textarea {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 9px 11px;
  border: 1px solid #bdcbdc;
  border-radius: 9px;
  background: #fff !important;
  color: #17212f !important;
  font-family: inherit;
  font-size: 13px;
}

.ctcase-advisor-lead input::placeholder,
.ctcase-advisor-lead textarea::placeholder {
  color: #65758a !important;
}

.ctcase-ai-advisor .ctcase-advisor-lead form button {
  margin-top: 7px;
  padding: 9px 15px;
  border: 0;
  border-radius: 9px !important;
  background: var(--ctcase-blue-dark) !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ctcase-advisor-lead-status {
  margin-top: 9px;
  color: #ab2638 !important;
  font-size: 12px;
  line-height: 1.4;
}

.ctcase-advisor-lead-status.success {
  color: #146c2e !important;
}

.ctcase-advisor-form {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 6px;
  min-height: 61px;
  margin: 0 14px 14px;
  padding: 6px;
  border: 1px solid #bdc7d4;
  border-radius: 13px;
  background: #fff;
}

.ctcase-advisor-form textarea {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  max-height: 110px;
  margin: 0;
  padding: 9px 7px;
  resize: vertical;
  border: 0;
  background: #fff !important;
  box-shadow: none !important;
  color: #15243b !important;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
}

.ctcase-advisor-form textarea::placeholder {
  color: #738091 !important;
}

.ctcase-advisor-upload {
  position: relative;
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: #f0f1f3;
  color: #687481;
  cursor: pointer;
}

.ctcase-advisor-upload.is-ready {
  background: #dceeff;
  color: #2366ba;
}

.ctcase-advisor-upload svg,
.ctcase-advisor-form button svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ctcase-advisor-image-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.ctcase-advisor-form button {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #8b9ab0 !important;
  color: #fff !important;
  cursor: pointer;
}

.ctcase-advisor-form button:hover,
.ctcase-advisor-form button:focus-visible {
  background: var(--ctcase-blue-dark) !important;
}

.ctcase-advisor-upload-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 0;
  margin: -10px 20px 10px;
  color: #315c95 !important;
  font-size: 11px;
}

.ctcase-advisor-selected-image {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

.ctcase-advisor-upload-status:empty {
  display: none;
}

.ctcase-advisor-launcher {
  position: fixed;
  z-index: 1000000;
  right: 24px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 4px 16px 4px 5px;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 6px 23px rgba(28, 53, 84, .22);
  color: #17212f !important;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.ctcase-advisor-launcher-logo {
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 4px;
  border: 2px solid #3b83cd;
  border-radius: 50%;
  background: #fff;
  color: #1f599c;
  font-size: 11px;
  font-weight: 800;
}

.ctcase-advisor-launcher-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ctcase-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
  gap: 10px;
  margin: 8px 0 16px;
}

.ctcase-product-card {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce7f4 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 3px 12px rgba(24, 54, 96, .08);
  color: #172033 !important;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ctcase-product-card:hover,
.ctcase-product-card:focus-visible {
  border-color: #5a91d1 !important;
  box-shadow: 0 5px 16px rgba(24, 54, 96, .18);
}

.ctcase-product-card:focus-visible {
  outline: 2px solid #2366ba;
  outline-offset: 2px;
}

.ctcase-product-image {
  display: block;
  width: 100%;
  height: 125px;
  object-fit: contain;
  background: #f3f6fb;
}

.ctcase-product-body {
  display: block;
  padding: 10px;
}

.ctcase-product-body strong {
  display: block;
  color: #172033 !important;
  font-size: 13px;
  line-height: 1.4;
}

.ctcase-product-meta {
  display: block;
  margin-top: 4px;
  color: #66768f !important;
  font-size: 11px;
}

.ctcase-product-action {
  display: block;
  margin-top: 8px;
  color: #2366ba;
  font-size: 11px;
  font-weight: 700;
}

.ctcase-product-details:not([hidden]) {
  display: block;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.ctcase-product-detail-row {
  display: block;
  margin: 3px 0;
  font-size: 11px;
  line-height: 1.45;
}

.ctcase-product-modal[hidden] {
  display: none;
}

.ctcase-product-modal {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.ctcase-product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 32, 56, .42);
  cursor: pointer;
}

.ctcase-product-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 360px);
  max-height: min(86%, 520px);
  overflow: hidden;
  border: 1px solid #d8e4f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(10, 33, 68, .28);
}

.ctcase-product-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 0;
  background: linear-gradient(110deg, #0b74de 0%, #4b9bef 100%);
}

.ctcase-product-modal-head strong {
  min-width: 0;
  color: #fff !important;
  font-size: 15px;
  line-height: 1.4;
}

.ctcase-advisor-panel .ctcase-product-modal-close {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.ctcase-advisor-panel .ctcase-product-modal-close:hover,
.ctcase-advisor-panel .ctcase-product-modal-close:focus-visible {
  background: rgba(255, 255, 255, .28) !important;
  color: #fff !important;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.ctcase-product-modal-close svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.ctcase-product-modal-content {
  overflow-y: auto;
  padding: 16px;
}

.ctcase-product-modal-image {
  display: block;
  width: 100%;
  max-height: 230px;
  margin: 0 0 14px;
  object-fit: contain;
  border-radius: 10px;
  background: #f3f6fb;
}

.ctcase-product-modal-details {
  display: grid;
  gap: 8px;
}

.ctcase-product-modal-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.ctcase-product-modal-label {
  color: #66768f;
}

.ctcase-product-modal-value {
  color: #172033;
  overflow-wrap: anywhere;
}

.ctcase-product-modal-variants {
  align-items: start;
}

.ctcase-advisor-panel .ctcase-product-modal-variant {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  color: #172033;
  font: inherit;
  text-align: left;
  cursor: pointer;
  margin: 0 0 6px;
  padding: 7px 9px;
  border: 1px solid #e5edf6;
  border-radius: 8px;
  background: #f8fbff;
  line-height: 1.4;
}

.ctcase-advisor-panel .ctcase-product-modal-variant:hover,
.ctcase-advisor-panel .ctcase-product-modal-variant[aria-pressed="true"] {
  border-color: #2366ba;
  background: #eef5ff;
}

.ctcase-product-modal-variant:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .ctcase-advisor-floating {
    right: 12px;
    bottom: 78px;
    width: calc(100vw - 24px);
    max-width: none;
    height: min(690px, calc(100dvh - 94px));
  }

  .ctcase-advisor-head {
    min-height: 80px;
    padding: 13px 17px;
  }

  .ctcase-advisor-head-logo {
    flex-basis: 49px;
    width: 49px;
    height: 49px;
  }

  .ctcase-advisor-head-title {
    font-size: 16px;
  }

  .ctcase-advisor-body {
    padding: 15px 16px 12px;
  }

  .ctcase-advisor-body:not(.has-conversation) .ctcase-advisor-messages {
    padding-top: 35px;
  }

  .ctcase-advisor-form {
    margin: 0 10px 10px;
  }

  .ctcase-advisor-launcher {
    right: 12px;
    bottom: 12px;
  }
}

/* Live advisor pipeline: compact while running, reduced to a summary when done. */
.ctcase-advisor-msg.ctcase-advisor-progress-msg {
  width: min(100%, 360px);
  padding: 12px 14px;
  overflow: hidden;
}
.ctcase-advisor-progress-head { display:flex; align-items:center; gap:8px; min-height:20px; font-size:13px; font-weight:700; }
.ctcase-advisor-progress-spark { color:var(--ctcase-blue-dark); animation:ctcase-advisor-progress-breathe 1.8s ease-in-out infinite; }
.ctcase-advisor-progress-current { color:#26364a; }
.ctcase-advisor-progress-steps { display:grid; gap:5px; margin:8px 0 1px 2px; padding-left:10px; border-left:1px solid #cbd5e1; }
.ctcase-advisor-progress-step { display:flex; align-items:center; gap:7px; color:#8794a5; font-size:11px; line-height:1.25; transition:color .2s ease, opacity .25s ease; }
.ctcase-advisor-progress-mark { width:13px; margin-left:-17px; color:#a9b5c3; text-align:center; background:#e7eaf0; font-size:11px; }
.ctcase-advisor-progress-step.is-active { color:#31445c; font-weight:600; }
.ctcase-advisor-progress-step.is-active .ctcase-advisor-progress-mark { color:var(--ctcase-blue-dark); animation:ctcase-advisor-progress-breathe 1.4s ease-in-out infinite; }
.ctcase-advisor-progress-step.is-done { color:#52677d; }
.ctcase-advisor-progress-step.is-done .ctcase-advisor-progress-mark { color:#168457; font-weight:700; }
.ctcase-advisor-progress-answer:empty { display:none; }
.ctcase-advisor-progress-answer { margin-top:9px; }
.ctcase-advisor-progress-msg.is-complete .ctcase-advisor-progress-spark { animation:none; color:#168457; }
.ctcase-advisor-progress-msg.is-complete .ctcase-advisor-progress-steps { max-height:0; margin:0; opacity:0; overflow:hidden; transition:max-height .3s ease, opacity .2s ease, margin .3s ease; }
@keyframes ctcase-advisor-progress-breathe { 0%,100% { opacity:.45; transform:scale(.9); } 50% { opacity:1; transform:scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .ctcase-advisor-progress-spark, .ctcase-advisor-progress-step.is-active .ctcase-advisor-progress-mark { animation:none; } }

/* Floating AI advisor entrance */
#ctcase-ai-advisor-entry,
#ctcase-ai-advisor-entry * {
  box-sizing: border-box;
}

#ctcase-ai-advisor-entry {
  position: fixed;
  z-index: 1000000;
  right: 24px;
  bottom: 24px;
  width: 360px;
  height: 96px;
  margin: 0;
  padding: 0;
  filter: drop-shadow(0 12px 40px rgba(32, 105, 220, .16));
  transition: transform 300ms ease-out;
}

#ctcase-ai-advisor-entry:hover {
  transform: translateY(-2px);
}

#ctcase-ai-advisor-entry .ctcase-advisor-capsule {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 360px;
  height: 96px;
  margin: 0;
  padding: 7px 24px 7px 7px;
  overflow: visible;
  border: 1px solid rgba(147, 197, 253, .6);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(32, 105, 220, .16), 0 2px 10px rgba(15, 23, 42, .08);
  color: #142b52;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  cursor: pointer;
  user-select: none;
}

#ctcase-ai-advisor-entry .ctcase-advisor-brand {
  display: grid;
  flex: 0 0 80px;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0;
  padding: 6px;
  border: 3px solid #3b82f6;
  border-radius: 50%;
  background: #fff;
}

#ctcase-ai-advisor-entry .ctcase-advisor-brand img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: contain;
}

#ctcase-ai-advisor-entry .ctcase-advisor-entry-title {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  color: #142b52;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  white-space: nowrap;
}

#ctcase-ai-advisor-entry .ctcase-advisor-collapse {
  position: absolute;
  z-index: 2;
  top: -22px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(147, 197, 253, .55);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .22);
  color: #2563eb;
  cursor: pointer;
}

#ctcase-ai-advisor-entry .ctcase-advisor-collapse svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#ctcase-ai-advisor-entry .ctcase-advisor-capsule:focus-visible,
#ctcase-ai-advisor-entry .ctcase-advisor-collapse:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

#ctcase-ai-advisor-entry.is-collapsed {
  width: 64px;
  height: 64px;
}

#ctcase-ai-advisor-entry.is-collapsed .ctcase-advisor-capsule {
  justify-content: center;
  gap: 0;
  width: 64px;
  height: 64px;
  padding: 5px;
  border-radius: 50%;
}

#ctcase-ai-advisor-entry.is-collapsed .ctcase-advisor-brand {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 4px;
  border-width: 2px;
}

#ctcase-ai-advisor-entry.is-collapsed .ctcase-advisor-entry-title,
#ctcase-ai-advisor-entry.is-collapsed .ctcase-advisor-collapse {
  display: none;
}

@media (max-width: 640px) {
  #ctcase-ai-advisor-entry {
    right: 14px;
    bottom: 14px;
    width: 310px;
    height: 80px;
    max-width: calc(100vw - 28px);
  }
  #ctcase-ai-advisor-entry .ctcase-advisor-capsule {
    width: 100%;
    height: 80px;
    gap: 8px;
    padding: 6px 14px 6px 6px;
  }
  #ctcase-ai-advisor-entry .ctcase-advisor-brand {
    flex-basis: 66px;
    width: 66px;
    height: 66px;
    padding: 5px;
    border-width: 2px;
  }
  #ctcase-ai-advisor-entry .ctcase-advisor-entry-title {
    font-size: 18px;
  }
  #ctcase-ai-advisor-entry .ctcase-advisor-collapse {
    top: -17px;
    right: -2px;
    width: 48px;
    height: 48px;
  }
  #ctcase-ai-advisor-entry.is-collapsed {
    width: 58px;
    height: 58px;
  }
  #ctcase-ai-advisor-entry.is-collapsed .ctcase-advisor-capsule {
    width: 58px;
    height: 58px;
  }
  #ctcase-ai-advisor-entry.is-collapsed .ctcase-advisor-brand {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }
}

.ctcase-advisor-floating { bottom: 132px; }
@media (max-width: 640px) { .ctcase-advisor-floating { bottom: 104px; } }
#ctcase-ai-advisor-entry .ctcase-advisor-capsule { cursor: grab; touch-action: none; }
#ctcase-ai-advisor-entry.is-dragging .ctcase-advisor-capsule { cursor: grabbing; }
#ctcase-ai-advisor-entry.is-dragging { transition: none; }
#ctcase-ai-advisor-entry .ctcase-advisor-brand img { pointer-events: none; user-select: none; -webkit-user-drag: none; }
#ctcase-ai-advisor-entry.is-dragging,
#ctcase-ai-advisor-entry.is-dragging:hover { transform: none; transition: none; }
.ctcase-advisor-floating .ctcase-advisor-head img { pointer-events: none; user-select: none; -webkit-user-drag: none; }
.ctcase-advisor-floating.is-dragging .ctcase-advisor-head { cursor: grabbing; }
.ctcase-advisor-floating { max-height: calc(100dvh - 16px); }

/* Chat window controls and full-screen mode */
.ctcase-advisor-head {
  position: relative;
  background: linear-gradient(110deg, #0b74de 0%, #4b9bef 100%);
}

.ctcase-advisor-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.ctcase-advisor-head-actions button,
.ctcase-ai-advisor .ctcase-advisor-head-actions button {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .5) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .16) !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.ctcase-advisor-head-actions button:hover,
.ctcase-advisor-head-actions button:focus-visible {
  background: rgba(255, 255, 255, .3) !important;
  color: #fff !important;
}

/* The chat window can dock to the right edge or float freely. */
body.ctcase-advisor-page-docked {
  --ctcase-advisor-dock-width: min(440px, 100vw);
  width: calc(100vw - var(--ctcase-advisor-dock-width)) !important;
  max-width: calc(100vw - var(--ctcase-advisor-dock-width)) !important;
  margin-right: var(--ctcase-advisor-dock-width) !important;
  overflow-x: hidden;
  transition: width .25s ease, max-width .25s ease;
}

body.ctcase-advisor-page-docked .elementor-section-full_width,
body.ctcase-advisor-page-docked .elementor-location-header,
body.ctcase-advisor-page-docked .elementor-location-footer {
  width: 100% !important;
  max-width: 100% !important;
}

body.ctcase-advisor-page-docked > .elementor,
body.ctcase-advisor-page-docked > main,
body.ctcase-advisor-page-docked > header,
body.ctcase-advisor-page-docked > footer,
body.ctcase-advisor-page-docked > .site-main {
  width: calc(100vw - var(--ctcase-advisor-dock-width)) !important;
  max-width: calc(100vw - var(--ctcase-advisor-dock-width)) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.ctcase-advisor-floating.is-docked {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: min(440px, 100vw) !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.ctcase-advisor-floating.is-docked .ctcase-advisor-panel {
  border-radius: 0 !important;
}

.ctcase-advisor-floating.is-docked .ctcase-advisor-body {
  min-height: 0;
}

.ctcase-advisor-floating.is-dragging .ctcase-advisor-head {
  cursor: grabbing;
}

/* Refined SVG window controls */
.ctcase-advisor-head { position: relative; }
.ctcase-advisor-head-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.ctcase-advisor-head-actions button,
.ctcase-ai-advisor .ctcase-advisor-head-actions button {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
.ctcase-advisor-head-actions button:hover,
.ctcase-advisor-head-actions button:focus-visible {
  background: rgba(255,255,255,.28) !important;
}
.ctcase-advisor-head-actions button svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.ctcase-advisor-head-actions .ctcase-advisor-history-toggle svg circle {
  fill: currentColor;
  stroke: none;
}
.ctcase-advisor-head-actions .ctcase-advisor-close svg { width: 17px; height: 17px; stroke-width: 2; }
@media (max-width: 640px) {
  .ctcase-advisor-head-actions { top: 8px; right: 8px; gap: 6px; }
  .ctcase-advisor-head-actions button { width: 30px !important; height: 30px !important; min-width: 30px !important; min-height: 30px !important; }
}

.ctcase-advisor-history-menu {
  position: absolute;
  top: 58px;
  right: 104px;
  z-index: 5;
  width: 220px;
  padding: 8px;
  border: 1px solid #d7e2f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 58, 110, .18);
}
.ctcase-advisor-history-menu[hidden] { display: none; }
.ctcase-advisor-new-chat {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: #edf4ff;
  color: #145df5;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}
.ctcase-advisor-history-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 180px;
  margin-top: 5px;
  overflow: auto;
}
.ctcase-advisor-history-list button {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #30415e;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 24px;
  cursor: pointer;
}
.ctcase-advisor-history-list button:hover { background: #f2f6fc; }
.ctcase-advisor-history-empty { display: block; padding: 9px 10px; color: #8a97ab; font-size: 12px; }
.ctcase-advisor-lead-prompt,
.ctcase-advisor-lead-toggle { display: none !important; }
.ctcase-advisor-composer-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 31px;
  padding: 0 12px;
}
.ctcase-advisor-recommend-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 2px;
  border: 0;
  background: transparent;
  color: #145df5;
  font-size: 14px;
  cursor: pointer;
}
.ctcase-advisor-recommend-link:hover { text-decoration: underline; }
.ctcase-advisor-recommend-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 640px) {
  .ctcase-advisor-history-menu { top: 52px; right: 8px; }
  .ctcase-advisor-composer-tools { padding-right: 8px; }
}

.ctcase-advisor-history-menu {
  top: 72px;
  right: 42px;
  width: min(350px, calc(100% - 72px));
  padding: 16px 14px;
  border: 0;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 53, 95, .2);
}
.ctcase-advisor-history-item {
  display: flex !important;
  align-items: center;
  width: 100%;
  gap: 14px;
  padding: 13px 12px;
  border: 0 !important;
  border-radius: 10px;
  background: transparent !important;
  color: #155cf3 !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  box-shadow: none !important;
  cursor: pointer;
}
.ctcase-advisor-history-item:hover { background: #f1f6ff !important; }
.ctcase-advisor-history-item svg {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ctcase-advisor-history-list[hidden] { display: none; }
.ctcase-advisor-recommend-link {
  display: inline-flex !important;
  border: 0 !important;
  background: transparent !important;
  color: #075bff !important;
  font-size: 20px;
  font-weight: 500;
  box-shadow: none !important;
}
.ctcase-advisor-recommend-link svg { width: 28px; height: 28px; stroke-width: 1.8; }

.ctcase-advisor-history-menu {
  right: 40px;
  width: 248px;
  padding: 8px;
  border-radius: 12px;
}
.ctcase-advisor-history-item {
  gap: 10px;
  padding: 9px 8px;
  font-size: 16px;
  font-weight: 600;
}
.ctcase-advisor-history-item svg {
  flex-basis: 24px;
  width: 24px;
  height: 24px;
}
.ctcase-advisor-lead-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ctcase-advisor-lead-close {
  display: grid !important;
  flex: 0 0 28px;
  place-items: center;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #63718a !important;
  box-shadow: none !important;
  cursor: pointer;
}
.ctcase-advisor-lead-close:hover { background: #eef3fa !important; color: #155cf3 !important; }
.ctcase-advisor-lead-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

#ctcase-ai-advisor-entry {
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 8px 18px rgba(10, 48, 102, .26));
  transition: transform 180ms ease;
}
#ctcase-ai-advisor-entry:hover { transform: translateY(-2px); }
#ctcase-ai-advisor-entry .ctcase-advisor-capsule {
  position: relative;
  inset: 0;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 4px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
#ctcase-ai-advisor-entry .ctcase-advisor-capsule::after {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: 0;
  border: 2px solid rgba(37, 99, 235, .72);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, .34);
  opacity: 0;
  pointer-events: none;
  animation: ctcase-advisor-pulse 3.6s ease-out infinite;
}
#ctcase-ai-advisor-entry .ctcase-advisor-brand {
  position: relative;
  z-index: 1;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 4px;
  border: 2px solid #3b82f6;
  background: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .1);
}

@keyframes ctcase-advisor-pulse {
  0% { opacity: .78; transform: scale(.88); box-shadow: 0 0 0 0 rgba(37, 99, 235, .36); }
  68% { opacity: 0; transform: scale(1.38); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0); }
  100% { opacity: 0; transform: scale(1.44); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0); }
}

@media (prefers-reduced-motion: reduce) {
  #ctcase-ai-advisor-entry .ctcase-advisor-capsule::after { animation: none; opacity: 0; }
}

/* Empty state: lead with a clear greeting and large recommendation choices. */
.ctcase-advisor-body.is-empty {
  padding: 28px 20px 14px;
}

.ctcase-advisor-body.is-empty .ctcase-advisor-welcome {
  display: block;
  flex: 0 0 auto;
  margin: 0 2px;
}

.ctcase-advisor-welcome[hidden] {
  display: none;
}

.ctcase-advisor-welcome-greeting {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 0;
  color: #101722;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.ctcase-advisor-welcome-name {
  color: #101722;
  font-size: 18px;
  font-weight: 700;
}

.ctcase-advisor-welcome h2 {
  max-width: 390px;
  margin: 13px 0 27px;
  color: #071a35;
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.035em;
}

.ctcase-advisor-welcome h2 strong {
  color: #1162bd;
  font-weight: 800;
}

.ctcase-advisor-head-text {
  max-width: calc(100% - 170px);
}

.ctcase-advisor-head-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctcase-advisor-body.is-empty .ctcase-advisor-messages {
  display: none;
}

.ctcase-advisor-body.is-empty .ctcase-advisor-suggestions {
  margin: 0 2px;
}

.ctcase-advisor-body.is-empty .ctcase-advisor-prompts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.ctcase-advisor-body.is-empty .ctcase-advisor-prompts button {
  width: auto;
  min-width: 205px;
  min-height: 54px;
  padding: 11px 24px;
  border: 0;
  border-radius: 999px;
  background: #dceafd !important;
  color: #12213a !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  box-shadow: none;
  transition: background-color .16s ease, transform .16s ease;
}

.ctcase-advisor-body.is-empty .ctcase-advisor-prompts button:hover,
.ctcase-advisor-body.is-empty .ctcase-advisor-prompts button:focus-visible {
  border: 0;
  background: #c9def8 !important;
  transform: translateX(2px);
}

@media (max-width: 640px) {
  .ctcase-advisor-body.is-empty {
    padding: 27px 22px 18px;
  }

  .ctcase-advisor-welcome-greeting {
    font-size: 20px;
  }

  .ctcase-advisor-welcome-name {
    font-size: 16px;
  }

  .ctcase-advisor-welcome h2 {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 28px;
  }

  .ctcase-advisor-body.is-empty .ctcase-advisor-prompts button {
    min-width: min(230px, 100%);
    min-height: 52px;
    font-size: 15px;
  }
}

/* Give the empty state more breathing room now that the helper label is gone. */
.ctcase-advisor-body.is-empty .ctcase-advisor-suggestions {
  margin: 30px 2px 0;
}

.ctcase-advisor-body.is-empty .ctcase-advisor-prompts {
  gap: 15px;
}

@media (min-width: 641px) {
  .ctcase-advisor-floating {
    width: min(480px, calc(100vw - 32px));
    height: min(720px, calc(100dvh - 96px));
  }

  .ctcase-advisor-body.is-empty {
    padding: 32px 28px 22px;
  }

  .ctcase-advisor-welcome h2 {
    margin-top: 16px;
    margin-bottom: 0;
  }

  .ctcase-advisor-body.is-empty .ctcase-advisor-suggestions {
    margin-top: 34px;
  }

  .ctcase-advisor-body.is-empty .ctcase-advisor-prompts {
    gap: 16px;
  }
}
#ctcase-ai-advisor-entry .ctcase-advisor-entry-title {
  position: absolute;
  right: 72px;
  top: 11px;
  display: flex;
  align-items: center;
  width: 126px;
  height: 42px;
  padding: 0 22px 0 16px;
  border-radius: 999px 0 0 999px;
  background: #063b7e;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .01em;
  clip-path: polygon(0 0, 87% 0, 100% 50%, 87% 100%, 0 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}
#ctcase-ai-advisor-entry:hover .ctcase-advisor-entry-title,
#ctcase-ai-advisor-entry:focus-within .ctcase-advisor-entry-title {
  opacity: 1;
  transform: translateX(0);
}
#ctcase-ai-advisor-entry .ctcase-advisor-collapse { display: none !important; }
#ctcase-ai-advisor-entry .ctcase-advisor-capsule:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}
@media (max-width: 640px) {
  #ctcase-ai-advisor-entry { right: 14px; bottom: 14px; width: 58px; height: 58px; }
  #ctcase-ai-advisor-entry .ctcase-advisor-capsule { width: 58px; height: 58px; }
  #ctcase-ai-advisor-entry .ctcase-advisor-brand { flex-basis: 48px; width: 48px; height: 48px; }
  #ctcase-ai-advisor-entry .ctcase-advisor-entry-title { right: 65px; top: 7px; width: 124px; height: 44px; font-size: 17px; }
}

/* Delayed invitation shown beside the launcher after a visitor has had time to browse. */
#ctcase-ai-advisor-entry .ctcase-advisor-nudge {
  box-sizing: border-box;
  position: absolute;
  right: 72px;
  top: 50%;
  bottom: auto;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: min(290px, calc(100vw - 120px));
  padding: 10px 10px 10px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 64, 175, .2);
  color: #17325e;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  opacity: 0;
  transform: translateY(calc(-50% + 6px));
  transition: opacity 160ms ease, transform 160ms ease;
}

#ctcase-ai-advisor-entry .ctcase-advisor-nudge[hidden] { display: none; }
#ctcase-ai-advisor-entry .ctcase-advisor-nudge.is-visible {
  opacity: 1;
  transform: translateY(-50%);
}

#ctcase-ai-advisor-entry .ctcase-advisor-nudge-message {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}

#ctcase-ai-advisor-entry .ctcase-advisor-nudge-text {
  display: block;
  width: max-content;
}

#ctcase-ai-advisor-entry .ctcase-advisor-nudge-message.is-scrolling .ctcase-advisor-nudge-text {
  animation: ctcase-advisor-nudge-scroll var(--ctcase-nudge-scroll-duration, 8s) linear infinite;
}

#ctcase-ai-advisor-entry .ctcase-advisor-nudge:hover .ctcase-advisor-nudge-text,
#ctcase-ai-advisor-entry .ctcase-advisor-nudge:focus-within .ctcase-advisor-nudge-text {
  animation-play-state: paused;
}

@keyframes ctcase-advisor-nudge-scroll {
  0%, 15%, 100% { transform: translateX(0); }
  65%, 80% { transform: translateX(var(--ctcase-nudge-scroll-end, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  #ctcase-ai-advisor-entry .ctcase-advisor-nudge-message {
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
  }
  #ctcase-ai-advisor-entry .ctcase-advisor-nudge-message .ctcase-advisor-nudge-text {
    width: auto;
    animation: none;
  }
}

#ctcase-ai-advisor-entry .ctcase-advisor-nudge-message:hover,
#ctcase-ai-advisor-entry .ctcase-advisor-nudge-message:focus-visible {
  color: #145df5;
}

#ctcase-ai-advisor-entry .ctcase-advisor-nudge-close {
  box-sizing: border-box;
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef4ff;
  color: #52709f;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

#ctcase-ai-advisor-entry .ctcase-advisor-nudge-close:hover,
#ctcase-ai-advisor-entry .ctcase-advisor-nudge-close:focus-visible {
  background: #dbeafe;
  color: #145df5;
}

@media (max-width: 640px) {
  #ctcase-ai-advisor-entry .ctcase-advisor-nudge {
    right: 66px;
    max-width: calc(100vw - 112px);
    padding-left: 12px;
  }
  #ctcase-ai-advisor-entry .ctcase-advisor-nudge-message { font-size: 13px; }
}

.ctcase-advisor-progress-msg.is-complete details[open] .ctcase-advisor-progress-steps { max-height:none; margin:8px 0; opacity:1; overflow:visible; }
.ctcase-advisor-progress-head { cursor:pointer; }
.ctcase-advisor-progress-answer.is-streaming::after { content:'▌'; color:var(--ctcase-blue-dark); animation:ctcase-advisor-progress-breathe 1s infinite; }

.ctcase-advisor-progress-head { cursor:default; white-space:nowrap; font-weight:500; }
.ctcase-advisor-progress-head > span:last-child { overflow:hidden; text-overflow:ellipsis; }
.ctcase-advisor-progress-spark { flex-shrink:0; }
