.assistant{position:fixed;right:1rem;bottom:1rem;width:min(720px,95vw);max-height:80vh;background:#fff;border:1px solid #ddd;border-radius:8px;box-shadow:0 8px 40px rgba(0,0,0,.15);display:flex;flex-direction:column;z-index:9999}
.assistant[hidden]{display:none}
.assistant__head{display:flex;justify-content:space-between;align-items:center;padding:.6rem .8rem;border-bottom:1px solid #eee;background:#fafafa}
.assistant__controls{display:flex;align-items:center;gap:.8rem}
.assistant__analytics-toggle{display:flex;align-items:center;gap:.3rem;font-size:.75rem;color:#666;cursor:pointer}
.assistant__analytics-toggle input[type="checkbox"]{width:14px;height:14px;cursor:pointer}
.assistant__privacy-link{color:#1746a2;font-size:.9rem;text-decoration:none;padding:0 .2rem}
.assistant__privacy-link:hover{text-decoration:underline}
.assistant__head button{border:none;background:none;font-size:1.2rem;line-height:1;color:#333;cursor:pointer}
.assistant__log{padding:.8rem;overflow:auto;display:flex;flex-direction:column;gap:.4rem}
.assistant__form{display:flex;gap:.5rem;padding:.6rem;border-top:1px solid #eee}
.assistant__form input{flex:1;padding:.6rem .7rem;border:1px solid #ccc;border-radius:6px}
.assistant__form button{padding:.6rem 1.1rem;border:none;border-radius:6px;background:#1746a2;color:#fff;cursor:pointer}
.assistant__form button:hover{background:#12357a}
.msg{padding:.6rem .7rem;border-radius:8px;font-size:.95rem;line-height:1.4;background:#f7f7f7}
.msg--user{align-self:flex-end;background:#eef5ff}
.msg--bot strong{font-weight:600}
.msg button.qa{margin:.25rem .4rem .1rem 0;padding:.35rem .6rem;border:1px solid #1746a2;border-radius:999px;background:#fff;color:#1746a2;font-size:.8rem;cursor:pointer}
.msg button.qa:hover{background:#1746a2;color:#fff}
.cit{margin-top:.4rem;font-size:.85rem;color:#555;display:flex;flex-wrap:wrap;gap:.4rem}
.cit a{color:#1746a2;text-decoration:underline}
@media (max-width:640px){
  .assistant{left:1rem;right:1rem;width:auto;max-height:85vh}
}
