.xh-launch,.xh-conversation {font-family:"Segoe UI","Microsoft YaHei",sans-serif}
.xh-launch {position:fixed;right:22px;bottom:20px;z-index:30;display:flex;align-items:center;gap:9px;border:1px solid #fff4;border-radius:30px;padding:11px 18px;background:#183898;color:white;box-shadow:0 5px 20px #091a5526;font-size:14px;font-weight:650;cursor:pointer}
.xh-launch span {display:grid;place-content:center;padding-bottom:5px;box-sizing:border-box;border:1.5px solid currentColor;border-radius:7px;width:22px;height:17px;letter-spacing:1px;font-size:16px;line-height:1}
.xh-conversation {position:fixed;inset:auto 21px 21px auto;width:min(410px,calc(100vw - 26px));max-width:none;max-height:calc(100dvh - 28px);overflow:auto;padding:0;margin:0;border:1px solid #dde2ec;border-radius:17px;color:#152039;background:#fff;box-shadow:0 18px 70px #15245245;text-align:left}
.xh-conversation::backdrop {background:#0c15243a}
.xh-shell {display:flex;flex-direction:column}
.xh-top {display:flex;align-items:center;justify-content:space-between;padding:21px 22px;background:#142649;color:white}
.xh-top h2 {font-size:21px;font-weight:650;letter-spacing:.01em;color:white;line-height:1.35;margin:0}
.xh-top .xh-context {color:#c4d0e6;margin:4px 0 0;font-size:13px}
.xh-conversation button {cursor:pointer;font:inherit}
.xh-top .xh-dismiss {border:1px solid #ffffff4a;border-radius:50%;background:transparent;color:white;width:30px;height:30px;font-size:22px;line-height:1}
.xh-log {min-height:170px;height:min(32dvh,255px);padding:18px;overflow:auto;background:#f2f5f9;display:flex;flex-direction:column;gap:12px}
.xh-welcome {background:white;padding:14px 16px;border:1px solid #e4e9ee;border-radius:10px;line-height:1.7;font-size:14px}
.xh-welcome p,.xh-success p {margin:4px 0;color:#526177}
.xh-msg {max-width:89%;align-self:flex-start}
.xh-msg small {display:block;font-size:12px;color:#53637c;margin-bottom:3px}
.xh-msg p {font-size:14px;background:white;white-space:pre-wrap;overflow-wrap:anywhere;padding:8px 12px;border:1px solid #dae2ec;border-radius:9px;line-height:1.6;margin:0}
.xh-visitor {align-self:flex-end}
.xh-visitor small {text-align:right}
.xh-visitor p {background:#243e89;color:white;border-color:#243e89}
.xh-system p {background:transparent;border-style:dashed;color:#5c6b80}
.xh-compose,.xh-lead-form {padding:18px 21px 10px;display:grid;gap:10px}
.xh-conversation label {font-size:14px;line-height:1.45;color:#34425d;display:grid;gap:4px;font-weight:600}
.xh-conversation :is(input,textarea) {font:inherit;font-size:15px;line-height:1.5;color:#172740;width:100%;box-sizing:border-box;border:1px solid #bfc9d7;border-radius:6px;background:#fff;padding:8px 10px;resize:vertical}
.xh-conversation :is(button,input,textarea):focus-visible {outline:3px solid #6f99f4;outline-offset:2px}
.xh-controls {display:flex;align-items:center;justify-content:space-between}
.xh-conversation .xh-primary {color:white;background:#203f9a;font-size:14px;font-weight:650;border:0;padding:9px 18px;border-radius:5px}
.xh-conversation button:disabled {opacity:.58}
.xh-conversation .xh-link {background:none;border:0;padding:0;color:#23469c;font-size:14px;text-decoration:underline;text-underline-offset:3px}
.xh-use,.xh-feedback {color:#56657a;font-size:13px;margin:0}
.xh-feedback {padding:0 21px 12px}
.xh-success {padding:14px 0;line-height:1.7}
.xh-success strong {font-size:20px}
.xh-success .xh-primary {margin-top:10px}
@media (max-width: 600px) {
  .xh-launch { display: none }
  .xh-conversation {
    inset: auto 0 0;
    width: 100%;
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
    border: 0;
    border-radius: 18px 18px 0 0;
    overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
  }
  html:has(.xh-conversation[open]) { overflow: hidden }
  .xh-top { position: sticky; top: 0; z-index: 1; padding: 14px 18px }
  .xh-top .xh-dismiss { flex: none; width: 44px; height: 44px }
  .xh-log { min-height: 6rem; height: clamp(6rem, 29dvh, 17rem); padding: 16px; overscroll-behavior: contain }
  .xh-compose, .xh-lead-form { padding: 16px 18px 4px }
  .xh-conversation :is(input, textarea) { font-size: 16px; min-height: 44px }
  .xh-conversation :is(.xh-link, .xh-primary) { min-height: 44px }
  .xh-conversation .xh-primary { padding-inline: 24px }
  .xh-feedback { padding: 4px 18px 12px }
}
