/* The home page's chat bubble: the app's chat panel for people not signed in yet. */
#bsHelp { --hb-blue: #3B40D5; --hb-blue-dark: #2F33AA; --hb-ink: #171719; --hb-muted: #5C5C63; --hb-line: #E5E7EB; --hb-line-2: #C2C2C7; --hb-bg: #F5F5FC; --hb-ease: cubic-bezier(.2, .8, .2, 1); font: 15px/1.5 Inter, sans-serif; color: var(--hb-ink); }
#bsHelp *, #bsHelp *::before, #bsHelp *::after { box-sizing: border-box; }
.hb-btn { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: grid; place-items: center; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 50%; background: var(--hb-blue); color: #fff; box-shadow: 0 12px 32px rgba(15, 18, 54, .22); cursor: pointer; animation: hb-btn-in .5s .6s cubic-bezier(.2, .9, .25, 1.3) both; transition: background .15s, transform .2s var(--hb-ease); }
.hb-btn:hover { background: var(--hb-blue-dark); transform: scale(1.05); }
.hb-btn svg { width: 26px; height: 26px; fill: currentColor; transition: transform .3s cubic-bezier(.2, .9, .25, 1.15); }
.hb-btn[aria-expanded="true"] svg { transform: rotate(-12deg) scale(.92); }
@keyframes hb-btn-in { from { opacity: 0; transform: scale(.4); } }
.hb-box { position: fixed; right: 24px; bottom: 94px; z-index: 60; display: flex; flex-direction: column; width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 118px)); border-radius: 24px; background: var(--hb-bg); box-shadow: 0 24px 64px rgba(15, 18, 54, .18), 0 4px 12px rgba(15, 18, 54, .06); overflow: hidden; transform-origin: calc(100% - 29px) calc(100% + 40px); animation: hb-in .38s cubic-bezier(.2, .9, .25, 1.15) both; }
.hb-box[hidden] { display: none; }
.hb-box.closing { animation: hb-out .2s ease-in both; }
@keyframes hb-in { from { opacity: 0; transform: translateY(18px) scale(.9); } }
@keyframes hb-out { to { opacity: 0; transform: translateY(12px) scale(.94); } }
.hb-head > *, .hb-tabs, .hb-pane > *, .hb-box .as-log, .hb-box .as-form { animation: hb-rise .45s var(--hb-ease) both; }
.hb-head > :nth-child(2) { animation-delay: .04s; }
.hb-tabs { animation-delay: .08s; }
.hb-pane > :nth-child(1) { animation-delay: .12s; }
.hb-pane > :nth-child(2) { animation-delay: .16s; }
@keyframes hb-rise { from { opacity: 0; transform: translateY(10px); } }
.hb-head { display: flex; align-items: center; gap: 12px; padding: 18px 16px 14px 18px; background: var(--hb-blue); color: #fff; }
.hb-head img { flex: none; width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.hb-head span { flex: 1; display: grid; gap: 1px; }
.hb-head b { font: 600 17px Outfit, Inter, sans-serif; }
.hb-head small { font-size: 13px; opacity: .8; }
.hb-x { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.hb-x:hover { background: rgba(255, 255, 255, .14); }
.hb-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.hb-tabs { display: flex; gap: 6px; padding: 0 16px 16px; background: var(--hb-blue); }
.hb-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font: 600 14px Inter, sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.hb-tabs button svg { width: 18px; height: 18px; fill: currentColor; }
.hb-tabs button.on { background: #fff; color: var(--hb-blue); }
.hb-body[hidden] { display: none; }
.hb-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 12px 12px; }
.hb-pane[hidden] { display: none; }
.hb-card { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--hb-line); border-radius: 16px; background: #fff; }
.hb-card h2 { margin: 0; font: 600 20px/1.2 Outfit, Inter, sans-serif; }
.hb-card p { margin: 0; color: var(--hb-muted); }
.hb-card input, .hb-card textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--hb-line-2); border-radius: 8px; background: #fff; font: inherit; color: inherit; }
.hb-card textarea { height: 110px; resize: vertical; }
.hb-card input:focus, .hb-card textarea:focus { outline: 2px solid #C8D6F7; border-color: var(--hb-blue); }
.hb-card .hb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hb-foot small { color: var(--hb-muted); font-size: 13px; }
.hb-send { padding: 10px 18px; border: 0; border-radius: 8px; background: var(--hb-blue); color: #fff; font: 600 14px Inter, sans-serif; cursor: pointer; }
.hb-send:hover { background: var(--hb-blue-dark); }
.hb-send:disabled { opacity: .6; cursor: default; }
.hb-note { font-size: 14px; }
.hb-note.err { color: #D93A12; }
.hb-done { display: grid; justify-items: center; gap: 8px; padding: 26px 18px; text-align: center; }
.hb-done i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #E6F6EC; color: #00A843; font: 700 26px/1 Inter, sans-serif; font-style: normal; animation: hb-pop .45s cubic-bezier(.2, .9, .25, 1.4) both; }
@keyframes hb-pop { from { transform: scale(.3); opacity: 0; } }
.hb-signin { margin: 12px 4px 0; color: var(--hb-muted); font-size: 13px; text-align: center; }
.hb-signin a { color: var(--hb-blue); font-weight: 600; }
@media (max-width: 760px) { .hb-btn { right: 16px; bottom: 16px; } .hb-box { inset: 0; width: 100%; height: 100dvh; border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { #bsHelp *, #bsHelp { animation: none !important; transition: none !important; } }
