#htlab-chat-panel,#htlab-chat-launcher{box-sizing:border-box;font-family:Arial,"Microsoft YaHei",sans-serif}
#htlab-chat-panel[hidden],#htlab-chat-launcher[hidden]{display:none!important}
#htlab-chat-panel{position:fixed;z-index:2147483647;right:18px;bottom:18px;width:420px;height:min(660px,calc(100dvh - 36px));max-width:calc(100vw - 36px);background:#fff;border:1px solid #e9e9e9;border-radius:12px;overflow:hidden;box-shadow:0 12px 50px #0003;display:flex;flex-direction:column}
.htlab-chat-heading{height:48px;min-height:48px;display:flex;align-items:center;gap:10px;padding:0 14px;background:#a41626;color:#fff;font-size:15px}
.htlab-chat-heading strong{font-weight:600}.htlab-chat-heading #htlab-chat-unread{font-size:12px;flex:1}.htlab-chat-external{color:#fff!important;text-decoration:underline;font-size:12px;white-space:nowrap}.htlab-chat-minimize{background:transparent;border:0;color:#fff;cursor:pointer;font-size:26px;width:30px;height:36px;padding:0}
#htlab-chat-frame{display:block;flex:1;width:100%;height:calc(100% - 48px);border:0;background:#fff;min-height:0}
#htlab-chat-launcher{position:fixed;z-index:2147483000;right:22px;bottom:22px;border:0;border-radius:26px;padding:13px 20px;background:#a41626;color:#fff;font-size:15px;font-weight:600;cursor:pointer;box-shadow:0 4px 18px #0002}
#htlab-chat-launcher.has-unread{outline:3px solid #f3b7bf;outline-offset:3px}
/* Keep the native transport; use one on-site chat surface instead of overlapping vendor invitations. */
body .embed-icon,body .embed-messageboard,body .embed-invite,body .embed-invite-container,body .embed-chat-container{display:none!important}
@media(max-width:600px){#htlab-chat-panel{right:0;bottom:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0}#htlab-chat-launcher{right:14px;bottom:calc(16px + env(safe-area-inset-bottom))}.htlab-chat-heading{padding-top:env(safe-area-inset-top);height:calc(48px + env(safe-area-inset-top));min-height:calc(48px + env(safe-area-inset-top))}}

#htlab-chat-history{flex-shrink:0;border-bottom:1px solid #eee;background:#fafafa;font-size:13px;color:#333}
#htlab-chat-history summary{padding:9px 14px;cursor:pointer;color:#a41626;font-weight:600;user-select:none}
#htlab-chat-history-items{max-height:225px;overflow:auto;margin:0;padding:0 14px 10px;list-style:none;overscroll-behavior:contain}
#htlab-chat-history-items li{margin:9px 0;max-width:94%}
#htlab-chat-history-items li.htlab-history-visitor{margin-left:auto}
#htlab-chat-history-items small{display:block;color:#888;font-size:11px;margin-bottom:3px}
#htlab-chat-history-items p{margin:0;padding:8px 10px;background:#fff;border:1px solid #eaeaea;border-radius:7px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.5;color:#333}
#htlab-chat-history-items .htlab-history-visitor p{background:#fff0f2;border-color:#f0d9de}
#htlab-chat-history[open]~#htlab-chat-frame{min-height:180px}


#htlab-chat-notice{display:block;flex-shrink:0;width:100%;border:0;border-bottom:1px solid #f0d4d7;background:#fff2f3;color:#a41626;text-align:left;font:500 13px/1.6 sans-serif;padding:10px 14px;cursor:pointer}
#htlab-chat-notice[hidden]{display:none}
#htlab-chat-panel.has-unread{box-shadow:0 12px 45px #0003,0 0 0 2px #a4162640}
#htlab-chat-unread:not(:empty){background:#fff;color:#a41626;border-radius:12px;padding:2px 7px;font-size:12px}


/* Website consultation links remain the entry; do not add a second floating icon. */
#htlab-chat-launcher{display:none!important}


#htlab-chat-panel[data-service-mode="message"]{width:360px;height:auto!important;max-height:calc(100dvh - 32px);right:18px;bottom:18px;border:1px solid #e9e0e1;border-radius:16px;overflow:hidden;box-shadow:0 18px 60px #33202a26}
#htlab-chat-panel[data-service-mode="message"] .htlab-chat-heading{background:#fff;color:#262b32;border-bottom:1px solid #f0ebeb;height:42px;min-height:42px;padding:0 20px}
#htlab-chat-panel[data-service-mode="message"] .htlab-chat-heading strong{font-size:13px;letter-spacing:.5px;color:#a41626}
#htlab-leave-intro{padding:18px 20px 16px;background:linear-gradient(120deg,#fff6f5,#fcf8f7);border-bottom:1px solid #f1e7e6;flex-shrink:0}
#htlab-leave-intro[hidden]{display:none}
.htlab-leave-status{font-size:11px;line-height:1.7;color:#9b6770;display:block}.htlab-leave-status:before{content:"";display:inline-block;width:6px;height:6px;background:#bb8b70;border-radius:50%;margin-right:6px;vertical-align:middle}
#htlab-leave-intro h3{font-size:22px;line-height:1.4;margin:7px 0;color:#29313a;font-weight:600}
#htlab-leave-intro p{font-size:12px;line-height:1.8;margin:0;color:#7c828b}
#htlab-chat-panel[data-service-mode="message"] #htlab-chat-frame{height:330px;flex:none;width:100%;min-height:0;max-height:calc(100dvh - 215px);background:#fff}
@media(max-width:600px){#htlab-chat-panel[data-service-mode="message"]{width:calc(100vw - 24px);max-width:380px;right:12px;bottom:12px;max-height:calc(100dvh - 24px)}#htlab-chat-panel[data-service-mode="message"] .htlab-chat-heading{padding-top:0}}


#htlab-chat-panel[data-service-mode="message"] .htlab-leave-status{font-size:13px;font-weight:600;color:#a41626}#htlab-chat-panel[data-service-mode="message"] .htlab-leave-status:before{background:#a41626}#htlab-leave-intro p{font-size:13px;line-height:1.8}#htlab-leave-intro p strong{color:#a41626;font-weight:700}#htlab-chat-panel[data-service-mode="message"] #htlab-leave-intro h3{font-size:20px}
