/* Techbot (website) and Grobot (admin) */
.tb{position:fixed;right:20px;bottom:20px;z-index:9990;font-family:inherit;--tb:#0878c9;--tb-dark:#071c33;--tb-soft:#eaf3fa}
.tb[hidden]{display:none}
.tb-admin{--tb:#0b8f6a;--tb-dark:#0c2b3d;--tb-soft:#e6f5ef}
.tb-fab{display:flex;align-items:center;gap:9px;height:52px;padding:0 20px 0 16px;border:0;border-radius:30px;background:var(--tb);color:#fff;font:inherit;font-size:15px;font-weight:800;cursor:pointer;box-shadow:0 12px 32px rgba(4,35,60,.32)}
.tb-fab:hover{filter:brightness(1.07)}
.tb-fab:focus-visible,.tb-x:focus-visible,.tb-chips button:focus-visible,.tb-form button:focus-visible,.tb-form input:focus-visible{outline:3px solid #9fd0f3;outline-offset:2px}
.tb-open .tb-fab{display:none}
.tb-panel{display:flex;flex-direction:column;width:380px;max-width:calc(100vw - 24px);height:560px;max-height:calc(100vh - 40px);background:#fff;color:#12314c;border:1px solid #d7e3ec;border-radius:20px;box-shadow:0 26px 70px rgba(4,35,60,.32);overflow:hidden}
.tb-panel[hidden]{display:none}
.tb-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--tb-dark);color:#fff}
.tb-head b{display:block;font-size:16px}
.tb-head small{display:block;margin-top:2px;font-size:12.5px;color:#b9d0e2}
.tb-av{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:var(--tb);color:#fff}
.tb-x{margin-left:auto;width:36px;height:36px;border:0;border-radius:10px;background:rgba(255,255,255,.12);color:#fff;font-size:24px;line-height:1;cursor:pointer}
.tb-x:hover{background:rgba(255,255,255,.22)}
.tb-log{flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:12px;background:#f6f9fc}
.tb-msg{max-width:92%;padding:11px 14px;border-radius:16px;font-size:14.5px;line-height:1.55;overflow-wrap:anywhere}
.tb-me{align-self:flex-end;background:var(--tb);color:#fff;border-bottom-right-radius:5px}
.tb-bot{align-self:flex-start;background:#fff;border:1px solid #dfe9f1;border-bottom-left-radius:5px;box-shadow:0 2px 8px rgba(4,35,60,.05)}
.tb-bot h4{margin:0 0 8px;font-size:15px;line-height:1.35}
.tb-bot p{margin:0 0 8px}.tb-bot p:last-child{margin-bottom:0}
.tb-bot ol,.tb-bot ul{margin:0 0 8px;padding-left:20px}.tb-bot li{margin:3px 0}
.tb-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.tb-links a{display:inline-block;padding:8px 14px;border-radius:20px;background:var(--tb);color:#fff;font-size:13.5px;font-weight:800;text-decoration:none}
.tb-links a:hover{filter:brightness(1.08)}
.tb-more{margin-top:12px;display:grid;gap:6px}.tb-more small,.tb-fb small{color:#6a8196;font-size:12px}
.tb-more button{padding:8px 11px;border:1px solid #d3e0ea;border-radius:10px;background:#fff;color:#12314c;font:inherit;font-size:13px;font-weight:700;text-align:left;cursor:pointer}
.tb-more button:hover{border-color:var(--tb);color:var(--tb)}
.tb-fb{display:flex;align-items:center;gap:8px;margin-top:10px;padding-top:9px;border-top:1px solid #edf2f6}
.tb-fb button{padding:3px 11px;border:1px solid #d3e0ea;border-radius:14px;background:#fff;color:#35546b;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.tb-fb button:hover{border-color:var(--tb);color:var(--tb)}
.tb-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 14px}
.tb-chips:not(:empty){padding:10px 14px 4px;background:#f6f9fc}
.tb-chips button{padding:7px 12px;border:1px solid #cfdfea;border-radius:18px;background:#fff;color:#12314c;font:inherit;font-size:13px;font-weight:700;text-align:left;cursor:pointer}
.tb-chips button:hover{border-color:var(--tb);background:var(--tb-soft)}
.tb-form{display:flex;gap:8px;padding:12px 14px;border-top:1px solid #e3ecf3;background:#fff}
.tb-form input{flex:1;min-width:0;height:46px;padding:0 14px;border:1px solid #c8d6df;border-radius:12px;font:inherit;font-size:15px;color:#12314c;background:#fff}
.tb-form button{display:grid;place-items:center;flex:none;width:46px;height:46px;border:0;border-radius:12px;background:var(--tb);color:#fff;cursor:pointer}
.tb-typing{display:flex;gap:5px;padding:14px 16px}
.tb-typing span{width:7px;height:7px;border-radius:50%;background:#9db3c4;animation:tbdot 1s infinite ease-in-out}
.tb-typing span:nth-child(2){animation-delay:.15s}.tb-typing span:nth-child(3){animation-delay:.3s}
@keyframes tbdot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media(max-width:600px){.tb{right:12px;bottom:12px}.tb-panel{position:fixed;right:8px;left:8px;bottom:8px;width:auto;max-width:none;height:calc(100vh - 24px);max-height:640px}.tb-fab span{display:none}.tb-fab{width:54px;height:54px;padding:0;justify-content:center}}
@media(prefers-reduced-motion:reduce){.tb-typing span{animation:none;opacity:.6}}
@media print{.tb{display:none!important}}
