.tpa{--tpa-navy:#0B2A5B;--tpa-blue:#1D4FD7;--tpa-text:#42536E;--tpa-pale:#DBE7FB;--tpa-ground:#F6F8FC;--tpa-line:#E1E7F2;position:fixed;right:20px;bottom:20px;z-index:9990;font-family:Manrope,system-ui,sans-serif;font-size:15px;line-height:1.5;color:var(--tpa-text)}
.tpa *{box-sizing:border-box}
.tpa .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tpa .tpa__open{display:inline-flex;align-items:center;gap:10px;border:0;border-radius:999px;background:var(--tpa-navy);color:#fff;padding:14px 20px;font:inherit;font-weight:700;cursor:pointer;box-shadow:0 10px 30px rgba(11,42,91,.28)}
.tpa__open:hover,.tpa__open:focus-visible{background:var(--tpa-blue)}
.tpa__open:focus-visible,.tpa__close:focus-visible,.tpa__form button:focus-visible,.tpa__chips button:focus-visible{outline:3px solid #8FB4F5;outline-offset:2px}
.tpa.is-open .tpa__open{display:none}
.tpa__panel{width:380px;max-width:calc(100vw - 24px);height:560px;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;background:#fff;border:1px solid var(--tpa-line);border-radius:14px;overflow:hidden;box-shadow:0 24px 60px rgba(11,42,91,.28)}
.tpa__panel[hidden]{display:none}
.tpa__head{display:flex;align-items:center;justify-content:space-between;background:var(--tpa-navy);color:#fff;padding:14px 16px;border-bottom:4px solid var(--tpa-blue)}
.tpa__head strong{font-family:"Space Grotesk",Manrope,sans-serif;font-size:17px}
.tpa .tpa__close{border:0;background:none;color:#fff;font-size:26px;line-height:1;cursor:pointer;padding:0 6px;border-radius:6px;box-shadow:none;min-height:0}
.tpa .tpa__close:hover,.tpa .tpa__close:focus{background:rgba(255,255,255,.15);color:#fff}
.tpa__log{flex:1;overflow-y:auto;padding:16px;background:var(--tpa-ground);display:flex;flex-direction:column;gap:10px}
.tpa__msg{max-width:88%;padding:10px 14px;border-radius:12px;overflow-wrap:anywhere}
.tpa__msg p{margin:0 0 8px}.tpa__msg p:last-child{margin:0}
.tpa__msg--bot{background:#fff;border:1px solid var(--tpa-line);color:var(--tpa-navy);align-self:flex-start}
.tpa__msg--user{background:var(--tpa-blue);color:#fff;align-self:flex-end}
.tpa__msg a{color:var(--tpa-blue);font-weight:700}
.tpa__chips{display:flex;flex-wrap:wrap;gap:8px;padding:10px 16px 0;background:#fff}
.tpa__chips[hidden]{display:none}
.tpa .tpa__chips button{border:1px solid var(--tpa-line);background:#fff;color:var(--tpa-navy);border-radius:999px;padding:7px 12px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;text-align:left}
.tpa__chips button:hover{border-color:var(--tpa-blue)}
.tpa__form{display:flex;gap:8px;padding:12px 16px 8px;background:#fff}
.tpa__form input{flex:1;min-width:0;border:1px solid #C9D3E4;border-radius:8px;padding:11px 12px;font:inherit;font-size:16px;color:var(--tpa-navy);background:#fff}
.tpa__form input:focus{outline:2px solid var(--tpa-blue);outline-offset:1px}
.tpa .tpa__form button{border:0;border-radius:8px;background:var(--tpa-blue);color:#fff;font:inherit;font-weight:800;font-size:13px;letter-spacing:.06em;text-transform:uppercase;padding:0 16px;cursor:pointer}
.tpa__form button[disabled]{opacity:.5;cursor:default}
.tpa__note{margin:0;padding:0 16px 12px;font-size:11.5px;line-height:1.4;background:#fff}
.tpa__typing i{display:inline-block;width:6px;height:6px;margin-right:4px;border-radius:50%;background:#8FB4F5;animation:tpa-blink 1.2s infinite}
.tpa__typing i:nth-child(2){animation-delay:.2s}.tpa__typing i:nth-child(3){animation-delay:.4s}
@keyframes tpa-blink{0%,80%,100%{opacity:.3}40%{opacity:1}}
@media (prefers-reduced-motion:reduce){.tpa__typing i{animation:none}}
@media (max-width:480px){.tpa{right:12px;bottom:12px}.tpa__open span{display:none}.tpa__open{padding:16px}}

.tpa .tpa__form button:hover,.tpa .tpa__form button:focus{background:var(--tpa-navy);color:#fff}
.tpa .tpa__chips button:hover,.tpa .tpa__chips button:focus{background:#fff;color:var(--tpa-navy)}
.tpa .tpa__open:hover,.tpa .tpa__open:focus{color:#fff}
