.hubi{position:fixed;right:24px;bottom:20px;z-index:9990;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:#173d51;text-align:left;font-size:14px;line-height:1.5}.hubi *{box-sizing:border-box}.hubi [hidden]{display:none!important}.hubi button,.hubi input,.hubi textarea,.hubi select{font:inherit}.hubi button{cursor:pointer}.hubi button:disabled{cursor:wait;opacity:.6}.hubi button:focus-visible,.hubi a:focus-visible,.hubi input:focus-visible,.hubi textarea:focus-visible,.hubi select:focus-visible{outline:3px solid #65cbc7;outline-offset:2px}.hubi-launcher{position:relative;border:0;background:none;display:flex;align-items:center;padding:0;filter:drop-shadow(0 8px 10px #123e5128)}.hubi-launcher img{width:88px;height:96px;animation:hubi-float 3.4s ease-in-out infinite}.hubi-launcher-label{background:#fff;padding:10px 15px;border:1px solid #d8e6ec;border-radius:18px 18px 3px 18px;color:#163d52;font-weight:750;box-shadow:0 4px 16px #11384b0d}.hubi-launcher-label b{color:#ec8c21;margin-left:6px}.hubi-unread{position:absolute;right:4px;top:9px;background:#e96934;color:white;min-width:24px;height:24px;border-radius:20px;padding:2px 6px;text-align:center;font-size:12px;font-weight:800;border:2px solid white}.hubi-panel{position:absolute;right:0;bottom:104px;width:410px;height:min(670px,calc(100dvh - 145px));min-height:350px;display:flex;flex-direction:column;background:#fff;border:1px solid #d7e5ec;border-radius:24px;box-shadow:0 22px 80px #0d324e40,0 4px 14px #12374c14;overflow:hidden}.hubi-head{flex-shrink:0;background:linear-gradient(125deg,#102f43,#1c5266);color:white;padding:17px 17px 15px;display:flex;gap:10px;align-items:center}.hubi-head>div{flex:1}.hubi-head strong{font-size:21px;letter-spacing:-.5px}.hubi-head strong span{display:block;font-size:10px;font-weight:500;letter-spacing:1px;color:#c2d8e2}.hubi-head small{display:block;color:#b6eeea;font-size:11px;margin-top:5px}.hubi-head button{color:#e9f5fa;background:#ffffff13;border:1px solid #ffffff26;border-radius:10px;width:32px;height:32px;font-size:24px;line-height:1}.hubi-toolbar{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:#f3f8fa;border-bottom:1px solid #e8eff3;font-size:11px;flex-shrink:0}.hubi-toolbar select{font-size:11px;color:#34586d;background:white;border:1px solid #d5e3ea;padding:4px 5px;border-radius:6px;max-width:90px}.hubi-feed{overflow:auto;flex:1;min-height:0;padding:18px 15px;background:linear-gradient(#f8fbfc,#fff);scrollbar-width:thin;overscroll-behavior:contain}.hubi-msg{max-width:91%;margin-bottom:16px;display:flex;flex-direction:column;align-items:flex-start;gap:5px}.hubi-msg.visitor{margin-left:auto;align-items:flex-end}.hubi-msg small{font-size:10px;color:#7c919e;padding:0 3px}.hubi-msg p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;border:1px solid #e0eaf0;background:white;box-shadow:0 3px 8px #12374b04;border-radius:4px 15px 15px 15px;padding:12px 14px;font-size:13px;line-height:1.8}.hubi-msg.visitor p{background:#163e54;color:white;border:0;border-radius:15px 4px 15px 15px}.hubi-msg.staff p{background:#e9f6f1;border-color:#cfe9de}.hubi-actions{display:flex;flex-wrap:wrap;gap:7px;padding:2px 0}.hubi-actions a,.hubi-actions button{font-size:11px;text-decoration:none;border:1px solid #dae5ed;background:#fff;color:#265d78;padding:7px 9px;border-radius:8px;font-weight:650}.hubi-actions a:hover,.hubi-actions button:hover{background:#eef8f7;border-color:#a5d7cc}.hubi-shortcuts{display:flex;gap:6px;padding:10px 13px 7px;border-top:1px solid #edf1f4;flex-shrink:0}.hubi-shortcuts button{flex:1;border:1px solid #e1e9ee;border-radius:20px;background:#f7fafb;padding:7px 4px;color:#446578;font-size:10px;white-space:nowrap}.hubi-composer{display:flex;gap:8px;align-items:end;margin:0;padding:5px 13px 8px;flex-shrink:0}.hubi-composer textarea{resize:none;min-height:44px;max-height:95px;width:100%;padding:12px;border:1px solid #d7e4eb;border-radius:12px;background:white;color:#183d51;font-size:13px;line-height:1.5}.hubi-composer button{border:0;width:42px;height:44px;flex-shrink:0;background:#f49a30;color:#123a50;border-radius:11px;font-size:20px;font-weight:900}.hubi-foot{padding:0 16px 13px;color:#8b9da8;font-size:9px;display:flex;flex-direction:column;gap:3px;flex-shrink:0}.hubi-foot a{color:#33657d;text-decoration:none;font-size:10px;font-weight:750}.hubi-error{background:#fff0e4;color:#965214;font-size:12px;padding:9px 14px;flex-shrink:0}.hubi-contact,.hubi-topics{position:absolute;z-index:2;bottom:133px;left:12px;right:12px;background:white;border:1px solid #d5e5e9;border-radius:16px;box-shadow:0 10px 45px #10384c28;padding:17px;max-height:calc(100% - 235px);overflow:auto}.hubi-contact header,.hubi-topics header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.hubi-contact header button,.hubi-topics header button{background:none;border:0;color:#7d929d;font-size:22px}.hubi-contact label{display:block;font-size:11px;margin-bottom:10px}.hubi-contact input:not([type=checkbox]){display:block;width:100%;margin-top:4px;border:1px solid #cfdee6;border-radius:8px;padding:9px;color:#214c63}.hubi-contact .hubi-consent{display:flex;gap:8px;align-items:center;color:#5c7584;line-height:1.5}.hubi-consent input{flex-shrink:0}.hubi-solid{border:0;border-radius:9px;background:#163e54;color:white;padding:10px 15px;width:100%;font-weight:700}.hubi-topics #hubi-topic-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}.hubi-topics #hubi-topic-list button{border:1px solid #e0e8ed;color:#31576c;border-radius:8px;padding:10px 6px;background:#f7fafb;font-size:11px;text-align:left}.hubi-topics #hubi-topic-list button:hover{background:#e8f5f1;border-color:#abd6c9}.hubi-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#hubi-older{display:block;border:0;background:none;color:#578399;font-size:11px;margin:0 auto 14px}
@keyframes hubi-float{50%{transform:translateY(-5px) rotate(2deg)}}
@media(prefers-reduced-motion:reduce){.hubi-launcher img{animation:none}}
@media(max-width:520px){.hubi{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.hubi-launcher img{width:72px;height:78px}.hubi-launcher-label{font-size:12px;padding:8px 12px}.hubi-panel{width:calc(100vw - 40px);bottom:87px;height:min(650px,calc(100dvh - 112px));border-radius:19px}.hubi-head{padding:12px 14px}.hubi-msg p{font-size:12px}.hubi-toolbar{padding:8px 14px}.hubi-foot{font-size:8px}}

/* Leave room around Hubi so the wave and invitation are easy to notice. */
.hubi{right:clamp(32px,4vw,76px);bottom:max(42px,calc(env(safe-area-inset-bottom) + 22px))}.hubi-launcher img{width:104px;height:112px;animation:hubi-greeting 3s ease-in-out infinite}.hubi-launcher-label{border-color:#bcdde3;box-shadow:0 7px 24px #143d5120;animation:hubi-label-glow 3s ease-in-out infinite}.hubi-panel{bottom:123px;height:min(740px,calc(100dvh - 192px));min-height:min(380px,calc(100dvh - 192px));width:min(420px,calc(100vw - 64px))}.hubi-preview-invite{display:flex;gap:11px;align-items:center;padding:12px 15px;background:linear-gradient(115deg,#fff7e8,#edf9f5);border-bottom:1px solid #eadfc8;flex-shrink:0}.hubi-preview-invite>div{flex:1;min-width:0}.hubi-preview-invite strong{display:block;font-size:12px;color:#173f54}.hubi-preview-invite span{display:block;font-size:10px;line-height:1.6;color:#5e7782;margin-top:3px}.hubi-preview-invite button{border:1px solid #efb65c;border-radius:10px;background:#ffdf9d;color:#594318;font-weight:750;font-size:11px;padding:8px 10px;max-width:42%;line-height:1.4;flex-shrink:0}.hubi-preview{position:absolute;z-index:4;inset:91px 10px 12px;padding:18px;background:#fff;border:1px solid #cedfe7;border-radius:15px;box-shadow:0 10px 45px #10384c30;overflow:auto;overscroll-behavior:contain;text-align:start}.hubi-preview>header{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#153e54}.hubi-preview>header strong{font-size:16px}.hubi-preview>header button{display:grid;place-items:center;width:32px;height:32px;border:1px solid #d8e5ed;border-radius:8px;background:#f5f9fc;font-size:23px;color:#4e6f80;flex-shrink:0}.hubi-preview-rule{font-size:12px;line-height:1.75;background:#eef7fa;border:1px solid #d9eaf0;padding:10px 12px;border-radius:10px;margin:14px 0 18px;color:#436574}.hubi-preview label{display:block;font-size:12px;font-weight:700;margin:13px 0 6px}.hubi-credential{display:flex;gap:6px;align-items:stretch}.hubi-credential input{min-width:0;width:100%;font:600 13px ui-monospace,SFMono-Regular,Consolas,monospace;border:1px solid #cbdde6;border-radius:9px;color:#173f53;background:#f8fbfd;padding:11px 9px;user-select:all}.hubi-credential button{border:1px solid #c5dce6;background:#edf6fb;color:#315e76;border-radius:9px;font-size:11px;padding:8px 10px;max-width:90px;line-height:1.4}.hubi-preview-expiry{color:#916222;font-size:11px;margin:16px 0 7px;line-height:1.7}.hubi-preview-note{color:#738c99;font-size:11px;line-height:1.6;margin:7px 0 17px}.hubi-preview a.hubi-solid{display:block;text-align:center;text-decoration:none;color:#fff;font-size:13px}.hubi-preview #hubi-preview-status{font-size:12px;line-height:1.65;color:#925719;white-space:normal;overflow-wrap:anywhere}.hubi-preview #hubi-preview-status:empty{display:none}.hubi-preview .hubi-solid{min-height:43px;line-height:1.5}.hubi:dir(rtl){text-align:right}.hubi:dir(rtl) .hubi-launcher-label{border-radius:18px 18px 18px 3px}.hubi:dir(rtl) .hubi-launcher-label b{margin-left:0;margin-right:6px}
@keyframes hubi-greeting{0%,65%,100%{transform:translateY(0) rotate(0)}12%,42%{transform:translateY(-8px) rotate(-4deg)}27%,57%{transform:translateY(-4px) rotate(3deg)}}@keyframes hubi-label-glow{50%{box-shadow:0 7px 26px #1c93a630,0 0 0 4px #55c5c312}}
@media(max-width:520px){.hubi{right:20px;bottom:max(28px,calc(env(safe-area-inset-bottom) + 16px))}.hubi-launcher img{width:84px;height:92px}.hubi-panel{width:calc(100vw - 40px);bottom:101px;height:min(710px,calc(100dvh - 149px));min-height:min(340px,calc(100dvh - 149px))}.hubi-preview{inset:78px 8px 8px;padding:15px}.hubi-preview-invite{padding:9px 12px;gap:8px}.hubi-preview-invite span{font-size:9px}.hubi-preview-invite button{font-size:10px;padding:8px}.hubi-preview-invite strong{font-size:11px}.hubi-shortcuts{padding-top:7px}.hubi-head{padding-top:9px;padding-bottom:9px}}
@media(prefers-reduced-motion:reduce){.hubi-launcher img,.hubi-launcher-label{animation:none}}
@media(max-height:680px){.hubi-panel{position:fixed;top:14px;bottom:14px;right:clamp(20px,4vw,76px);height:auto;min-height:0;max-height:calc(100dvh - 28px)}.hubi-preview-invite span{display:none}.hubi-head{padding-top:9px;padding-bottom:9px}.hubi-head img{width:40px;height:43px}.hubi-head small{margin-top:2px}.hubi-preview{top:73px}}
