/* Q Bot chat bubble (qbotbubble 2026-10-15) */
main.page{padding-bottom:84px}
#qb-root{position:fixed;right:18px;bottom:18px;z-index:900;font-size:14px}
#qb-bubble{width:52px;height:52px;border-radius:50%;border:0;background:#1d4ed8;color:#fff;font:700 22px/1 system-ui,sans-serif;box-shadow:0 6px 18px rgba(16,24,40,.28);cursor:pointer;display:grid;place-items:center}
#qb-bubble:hover{background:#1e40af}#qb-root.open #qb-bubble{background:#0f2a5f}
#qb-win{position:absolute;right:0;bottom:64px;width:360px;max-width:calc(100vw - 24px);height:min(520px,calc(100vh - 110px));background:#fff;border:1px solid #d0d5dd;border-radius:14px;box-shadow:0 16px 40px rgba(16,24,40,.25);display:flex;flex-direction:column;overflow:hidden;animation:qbup .18s ease-out}
#qb-win[hidden]{display:none}@keyframes qbup{from{transform:translateY(16px);opacity:0}to{transform:none;opacity:1}}
#qb-win header{display:flex;align-items:center;gap:8px;padding:10px 12px;background:#1d4ed8;color:#fff}#qb-win header small{opacity:.8;flex:1;font-size:11.5px}
#qb-win header a,#qb-win header button{color:#fff;background:none;border:0;font-size:18px;cursor:pointer;text-decoration:none;padding:0 4px}
#qb-log{flex:1;overflow-y:auto;padding:10px;display:flex;flex-direction:column;gap:8px;background:#f8fafc}
.qb-m{max-width:85%;padding:7px 10px;border-radius:12px;line-height:1.4;word-wrap:break-word}.qb-me{align-self:flex-end;background:#1d4ed8;color:#fff}.qb-q{align-self:flex-start;background:#fff;border:1px solid #e4e7ec}
.qb-note{font-size:12px;color:#7c2d12;background:#fef3c7}.qb-wait{color:#667085}
#qb-form{display:flex;gap:6px;padding:8px;border-top:1px solid #e4e7ec}#qb-q{flex:1;resize:none;border:1px solid #d0d5dd;border-radius:8px;padding:7px;font:inherit}
@media(max-width:640px){#qb-root{right:12px;bottom:12px}#qb-bubble{width:46px;height:46px;font-size:19px}#qb-win{position:fixed;left:8px;right:8px;bottom:68px;width:auto;max-width:none;height:min(70vh,calc(100vh - 90px))}}
@media print{#qb-root{display:none}}
