/* Help chat */
.tchb-fab,.tchb{--hb-ink:#191919;--hb-text:#37352f;--hb-mute:#787774;--hb-line:#e9e9e7;--hb-soft:#f7f6f3;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased;box-sizing:border-box}
.tchb *,.tchb *::before,.tchb *::after{box-sizing:border-box}
.tchb [hidden],.tchb[hidden]{display:none!important}

.tchb-fab{position:fixed;right:20px;bottom:20px;z-index:99990;display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 18px 0 14px;border:0;border-radius:999px;background:var(--hb-ink);color:#fff;font-size:15px;font-weight:600;line-height:1;cursor:pointer;box-shadow:0 6px 24px rgba(15,15,15,.18),0 1px 3px rgba(15,15,15,.12);transition:transform .15s,box-shadow .15s}
.tchb-fab:hover{transform:translateY(-1px);box-shadow:0 10px 30px rgba(15,15,15,.22),0 1px 3px rgba(15,15,15,.12)}
.tchb-fab:focus-visible{outline:3px solid #2383e2;outline-offset:3px}
.tchb-fab svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.tchb-fab .tchb-x{display:none}
.tchb-fab.is-open{padding:0;width:48px;justify-content:center}
.tchb-fab.is-open span,.tchb-fab.is-open svg:first-child{display:none}
.tchb-fab.is-open .tchb-x{display:block}

.tchb{position:fixed;right:20px;bottom:80px;z-index:99991;width:380px;max-width:calc(100vw - 40px);height:min(600px,calc(100vh - 110px));display:flex;flex-direction:column;background:#fff;color:var(--hb-text);border:1px solid var(--hb-line);border-radius:16px;box-shadow:0 18px 60px rgba(15,15,15,.18),0 2px 8px rgba(15,15,15,.08);overflow:hidden;font-size:14.5px;line-height:1.5;animation:tchb-in .16s ease-out}
@keyframes tchb-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.tchb-head{display:flex;align-items:center;gap:10px;padding:14px 10px 14px 16px;border-bottom:1px solid var(--hb-line);background:#fff}
.tchb-head>div{flex:1;min-width:0}
.tchb-head strong{display:block;font-size:15px;color:var(--hb-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tchb-head small{display:block;font-size:12px;color:var(--hb-mute)}
.tchb-dot{width:9px;height:9px;border-radius:50%;background:#0f7b6c;box-shadow:0 0 0 3px rgba(15,123,108,.15);flex:none}
.tchb-ib{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:var(--hb-mute);cursor:pointer;padding:0}
.tchb-ib:hover{background:var(--hb-soft);color:var(--hb-ink)}
.tchb-ib svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.tchb-log{flex:1;overflow-y:auto;padding:16px 14px 8px;background:var(--hb-soft);overscroll-behavior:contain}
.tchb-msg{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 10px}
.tchb-msg--u{align-items:flex-end}
.tchb-bub{max-width:88%;padding:9px 13px;border-radius:14px;background:#fff;border:1px solid var(--hb-line);color:var(--hb-text);overflow-wrap:anywhere}
.tchb-msg--b .tchb-bub{border-bottom-left-radius:4px}
.tchb-msg--u .tchb-bub{background:var(--hb-ink);border-color:var(--hb-ink);color:#fff;border-bottom-right-radius:4px;white-space:pre-wrap}
.tchb-bub p{margin:0 0 6px}
.tchb-bub p:last-child,.tchb-bub ul:last-child,.tchb-bub ol:last-child{margin-bottom:0}
.tchb-bub ul,.tchb-bub ol{margin:2px 0 6px;padding-left:20px}
.tchb-bub li{margin:2px 0}
.tchb-bub strong{color:var(--hb-ink);font-weight:600}
.tchb-msg--u .tchb-bub strong{color:#fff}
.tchb-bub a{color:var(--hb-ink);text-decoration:underline;text-underline-offset:2px}
.tchb-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;max-width:92%}
.tchb-links a{display:inline-flex;align-items:center;gap:4px;padding:6px 11px;border-radius:999px;background:#fff;border:1px solid var(--hb-line);color:var(--hb-ink);font-size:13px;font-weight:500;text-decoration:none}
.tchb-links a::after{content:"→";color:var(--hb-mute)}
.tchb-links a:hover{border-color:var(--hb-ink)}
.tchb-chips{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px}
.tchb-chips button{padding:6px 11px;border-radius:999px;border:1px dashed #cfcdc9;background:transparent;color:var(--hb-text);font:inherit;font-size:13px;cursor:pointer;text-align:left}
.tchb-chips button:hover{background:#fff;border-style:solid;border-color:var(--hb-ink);color:var(--hb-ink)}
.tchb-typing .tchb-bub{display:inline-flex;gap:4px;padding:12px 14px}
.tchb-typing i{width:6px;height:6px;border-radius:50%;background:#b5b3ae;animation:tchb-dot 1s infinite}
.tchb-typing i:nth-child(2){animation-delay:.15s}
.tchb-typing i:nth-child(3){animation-delay:.3s}
@keyframes tchb-dot{0%,60%,100%{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-3px)}}

.tchb-form{display:flex;align-items:flex-end;gap:8px;padding:10px;border-top:1px solid var(--hb-line);background:#fff;margin:0}
.tchb-form textarea{flex:1;min-height:40px;max-height:120px;resize:none;padding:9px 12px;border:1px solid var(--hb-line);border-radius:10px;font:inherit;font-size:15px;line-height:1.4;color:var(--hb-ink);background:#fff;box-shadow:none;margin:0}
.tchb-form textarea:focus{outline:none;border-color:var(--hb-ink)}
.tchb-send{flex:none;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:10px;background:var(--hb-ink);color:#fff;cursor:pointer;padding:0}
.tchb-send:disabled{opacity:.4;cursor:default}
.tchb-send svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}

@media (max-width:600px){
	.tchb-fab{right:14px;bottom:14px;height:46px}
	.tchb-fab:not(.is-open){padding:0;width:46px;justify-content:center}
	.tchb-fab:not(.is-open) span{display:none}
	.tchb{inset:0;width:100%;max-width:none;height:100%;height:100dvh;border-radius:0;border:0;bottom:0;right:0}
	.tchb-fab.is-open{display:none}
	html.tchb-lock,html.tchb-lock body{overflow:hidden}
}
@media (prefers-reduced-motion:reduce){.tchb,.tchb-fab,.tchb-typing i{animation:none;transition:none}}
@media print{.tchb-fab,.tchb{display:none!important}}
