#hz-ai-widget {
  --chat-teal: #0d655a;
  --chat-ink: #173b43;
  --chat-muted: #687e7b;
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 1100;
  color: var(--chat-ink);
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
#hz-ai-widget *, #hz-ai-widget *::before, #hz-ai-widget *::after { box-sizing: border-box; }
#hz-ai-widget [hidden] { display: none !important; }
#hz-ai-widget button, #hz-ai-widget textarea { font: inherit; }
#hz-ai-widget button { cursor: pointer; }
#hz-ai-widget button:focus-visible, #hz-ai-widget a:focus-visible { outline: 3px solid #49b7a4; outline-offset: 3px; }
#hz-ai-widget .hz-chat-launcher {
  position: fixed;
  right: inherit;
  bottom: inherit;
  touch-action: none;
  user-select: none;
  transition: background-color .17s, box-shadow .17s;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin-left: auto;
  padding: 8px 20px 8px 10px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 32px;
  background: var(--chat-teal);
  color: #fff;
  box-shadow: 0 6px 24px rgb(13 65 57 / 22%);
  font-size: 14px;
  font-weight: 600;
}
#hz-ai-widget .hz-chat-launcher:hover { background: #09594f; }
#hz-ai-widget .hz-chat-launcher-mark { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: rgb(255 255 255 / 12%); font-size: 21px; }
#hz-ai-widget .hz-chat-bubble-image { display: block; width: 36px; height: 36px; object-fit: contain; }
#hz-ai-widget .hz-chat-launcher-mark picture, #hz-ai-widget .hz-chat-welcome-icon picture { display: block; }
#hz-ai-widget .hz-chat-panel {
  transition: none;
  position: fixed;
  right: inherit;
  bottom: calc(max(24px, env(safe-area-inset-bottom)) + 70px);
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 32px));
  height: min(600px, calc(100dvh - 112px));
  min-height: 220px;
  margin-bottom: 0;
  border: 1px solid #d7e5e0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 60px rgb(7 37 35 / 20%), 0 2px 8px rgb(7 37 35 / 6%);
  overflow: hidden;
}
#hz-ai-widget .hz-chat-header { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 16px; border-bottom: 1px solid #e2ece7; background: #f5f9f7; }
#hz-ai-widget .hz-chat-header { cursor: grab; touch-action: none; user-select: none; }
#hz-ai-widget .hz-chat-header:focus-visible { outline: 3px solid #49b7a4; outline-offset: -3px; }
#hz-ai-widget .hz-chat-launcher { cursor: grab; }
#hz-ai-widget .is-dragging, #hz-ai-widget .is-dragging * { cursor: grabbing; }
#hz-ai-widget .hz-chat-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid #dce9e3; border-radius: 12px; background: #fff; }
#hz-ai-widget .hz-chat-avatar img { object-fit: contain; }
#hz-ai-widget .hz-chat-header-copy { min-width: 0; flex: 1; }
#hz-ai-widget .hz-chat-header h2 { margin: 0; color: var(--chat-ink); font-size: 15px; font-weight: 700; line-height: 1.5; }
#hz-ai-widget .hz-chat-icon-button { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #506e68; font-size: 17px; }
#hz-ai-widget .hz-chat-icon-button:hover { background: #e5eee9; }
#hz-ai-widget .hz-ai-messages { flex: 1 1 auto; min-height: 0; padding: 22px 18px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c4d8ce transparent; }
#hz-ai-widget .hz-ai-welcome { padding: 8px 0 0; }
#hz-ai-widget .hz-chat-welcome-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px; background: #edf5f0; color: var(--chat-teal); font-size: 23px; }
#hz-ai-widget .hz-ai-welcome h3 { margin: 0 0 8px; color: var(--chat-ink); font-size: 19px; line-height: 1.5; font-weight: 600; }
#hz-ai-widget .hz-ai-welcome p { margin: 0; color: var(--chat-muted); font-size: 13px; line-height: 1.8; }
#hz-ai-widget .hz-ai-suggestions { margin-top: 22px; }
#hz-ai-widget .hz-ai-suggestions > span { color: #758982; font-size: 11px; }
#hz-ai-widget #hz-float-prompts { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 8px; }
#hz-ai-widget .hz-ai-prompt { max-width: 100%; padding: 8px 11px; border: 1px solid #dce8e1; border-radius: 8px; background: #f8fbf9; color: #38695d; font-size: 12px; text-align: left; line-height: 1.6; }
#hz-ai-widget .hz-ai-prompt:hover { background: #edf5f0; border-color: #a4c9b9; }
#hz-ai-widget .hz-ai-thread { display: flex; flex-direction: column; gap: 18px; }
#hz-ai-widget .hz-ai-thread:empty { display: none; }
#hz-ai-widget .hz-ai-message { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
#hz-ai-widget .hz-ai-message-user { justify-content: flex-end; }
#hz-ai-widget .hz-ai-user-bubble { max-width: 88%; margin: 0; padding: 10px 13px; border-radius: 12px 12px 3px 12px; background: var(--chat-teal); color: #fff; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
#hz-ai-widget .hz-ai-message-mark { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border: 0; background: transparent; box-shadow: none; }
#hz-ai-widget .hz-ai-message-mark img { display: block; width: 24px; height: 24px; object-fit: contain; }
#hz-ai-widget .hz-ai-message-mark picture { display: block; }
#hz-ai-widget .hz-ai-retry { margin-top: 10px; padding: 5px 12px; border: 1px solid #cddfd4; border-radius: 6px; background: #fff; color: var(--chat-teal); }
#hz-ai-widget .hz-ai-message-error .hz-ai-answer-copy { color: #984b32; }
#hz-ai-widget .hz-ai-message-content { min-width: 0; flex: 1; }
#hz-ai-widget .hz-ai-message-byline { display: flex; align-items: baseline; gap: 8px; font-size: 11px; }
#hz-ai-widget .hz-ai-message-byline strong { color: #42655c; font-weight: 600; }
#hz-ai-widget .hz-ai-message-byline time { color: #8d9e97; font-size: 10px; }
#hz-ai-widget .hz-ai-answer-copy { margin: 6px 0 0; color: #344f48; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
#hz-ai-widget .hz-ai-source-label { margin: 12px 0 6px; color: #7c8d85; font-size: 11px; }
#hz-ai-widget .hz-ai-answer-links { display: flex; flex-wrap: wrap; gap: 6px; }
#hz-ai-widget .hz-ai-source-link { padding: 5px 8px; border: 1px solid #d5e6da; border-radius: 6px; background: #f4f9f5; color: #276653; font-size: 12px; text-decoration: none; }
#hz-ai-widget .hz-ai-source-link:hover { background: #e8f3ec; }
#hz-ai-widget .hz-ai-typing { display: inline-flex; gap: 4px; padding: 10px 0; }
#hz-ai-widget .hz-ai-typing i { width: 5px; height: 5px; border-radius: 50%; background: #7b9f8e; }
#hz-ai-widget .hz-chat-input-area { flex: 0 0 auto; padding: 12px 14px 10px; border-top: 1px solid #edf2ee; background: #fff; }
#hz-ai-widget .hz-ai-composer { padding: 10px 11px 8px; border: 1px solid #cddfd4; border-radius: 12px; background: #fff; }
#hz-ai-widget .hz-ai-composer:focus-within { border-color: #509b84; box-shadow: 0 0 0 3px rgb(39 129 99 / 9%); }
#hz-ai-widget textarea { display: block; width: 100%; min-height: 44px; max-height: 112px; margin: 0; padding: 0; resize: none; outline: 0; border: 0; background: transparent; color: #244a3e; font-size: 13px; line-height: 1.7; }
#hz-ai-widget textarea::placeholder { color: #899b91; opacity: 1; }
#hz-ai-widget .hz-ai-composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
#hz-ai-widget .hz-ai-count { color: #889c91; font-size: 10px; }
#hz-ai-widget .hz-ai-send { display: grid; place-items: center; width: 36px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: var(--chat-teal); color: #fff; font-size: 16px; }
#hz-ai-widget .hz-ai-send:hover { background: #09594f; }
#hz-ai-widget .hz-ai-send .bi-stop-fill, #hz-ai-widget .hz-ai-send.is-stop .bi-send { display: none; }
#hz-ai-widget .hz-ai-send.is-stop .bi-stop-fill { display: block; }
@media (max-width: 600px) {
  #hz-ai-widget { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  #hz-ai-widget .hz-chat-panel { width: calc(100vw - 24px); height: min(600px, calc(100dvh - 100px)); border-radius: 16px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 62px); }
  #hz-ai-widget .hz-chat-launcher { min-height: 52px; padding: 6px 16px 6px 8px; }
  #hz-ai-widget .hz-chat-header { padding: 12px; gap: 8px; }
  #hz-ai-widget .hz-chat-header h2 { font-size: 14px; }
  #hz-ai-widget textarea { font-size: 16px; }
}
@media (max-height: 450px) {
  #hz-ai-widget .hz-chat-panel { inset: 8px 8px auto auto; width: min(400px, calc(100vw - 16px)); height: calc(100dvh - 78px); min-height: 0; margin: 0; }
  #hz-ai-widget .hz-chat-header { padding: 8px 12px; }
  #hz-ai-widget .hz-chat-input-area { padding: 8px 12px; }
}

#hz-ai-widget .hz-chat-avatar { border: 0; border-radius: 0; background: transparent; box-shadow: none; }

/* Stack the launcher label under a larger transparent bubble mark. */
#hz-ai-widget .hz-chat-launcher {
  flex-direction: column;
  justify-content: center;
  gap: 0;
  width: 90px;
  height: 108px;
  min-height: 108px;
  padding: 7px;
  border: 0;
  border-radius: 50%;
  background: var(--chat-teal);
}
#hz-ai-widget .hz-chat-launcher-mark {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#hz-ai-widget .hz-chat-bubble-image { width: 66px; height: 66px; filter: drop-shadow(0 0 .8px #0d655a); }
#hz-ai-widget .hz-chat-launcher [data-ai="widget-launcher"] {
  display: block;
  font-size: 14px;
  line-height: 1.15;
  white-space: nowrap;
  font-weight: 700;
}
@media (max-width: 600px) {
  #hz-ai-widget .hz-chat-launcher {
    width: 86px;
    height: 100px;
    min-height: 100px;
    padding: 6px;
  }
  #hz-ai-widget .hz-chat-launcher-mark { width: 62px; height: 62px; flex-basis: 62px; }
  #hz-ai-widget .hz-chat-bubble-image { width: 60px; height: 60px; filter: drop-shadow(0 0 .8px #0d655a); }
  #hz-ai-widget .hz-chat-launcher [data-ai="widget-launcher"] { font-size: 13px; font-weight: 700; }
}
/* Transparent launcher background: show only the animated mark and label. */
#hz-ai-widget .hz-chat-launcher,
#hz-ai-widget .hz-chat-launcher:hover {
  border: 0;
  background: transparent;
  box-shadow: none;
}
#hz-ai-widget .hz-chat-launcher { color: var(--chat-ink); }
#hz-ai-widget .hz-chat-launcher:hover { color: var(--chat-teal); }
#hz-ai-widget .hz-chat-launcher-mark { background: transparent; }
/* A quiet idle loop gives the assistant a little presence without moving the label. */
#hz-ai-widget .hz-chat-launcher-mark {
  transform-origin: 50% 62%;
  animation: hz-ai-launcher-idle 5.8s ease-in-out infinite;
}
#hz-ai-widget .hz-chat-bubble-image { transition: transform 180ms ease; }
@keyframes hz-ai-launcher-idle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  22% { transform: translateY(-3px) rotate(-2deg); }
  42% { transform: translateY(0) rotate(0deg); }
  68% { transform: translateY(-2px) rotate(1.5deg); }
}
@media (hover: hover) and (pointer: fine) {
  #hz-ai-widget .hz-chat-launcher:hover .hz-chat-bubble-image { transform: translateY(-1px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  #hz-ai-widget .hz-chat-launcher-mark { animation: none; }
  #hz-ai-widget .hz-chat-bubble-image { transition: none; }
}