.tfa-launch{position:fixed;right:20px;bottom:20px;z-index:50;background:var(--navy,#14213D);color:#fff;border:2px solid var(--gold,#A8322B);border-radius:999px;padding:.75rem 1.2rem;font:600 .95rem var(--sans,system-ui);cursor:pointer;box-shadow:0 8px 24px rgba(20,33,61,.25)}
.tfa-launch:hover{background:var(--gold,#A8322B);color:#fff}
.tfa-panel{position:fixed;right:20px;bottom:20px;z-index:60;width:380px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100vh - 40px);background:#fff;border-radius:10px;box-shadow:0 16px 48px rgba(20,33,61,.3);display:flex;flex-direction:column;overflow:hidden;font-family:var(--sans,system-ui)}
.tfa-panel[hidden]{display:none}
.tfa-head{background:var(--navy,#14213D);color:#fff;padding:.8rem 1rem;display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid var(--gold,#A8322B)}
.tfa-badge{font-size:.7rem;background:var(--gold,#A8322B);color:#fff;border-radius:3px;padding:.05rem .35rem;margin-left:.5rem;vertical-align:middle}
.tfa-close{background:none;border:0;color:#fff;font-size:1.5rem;line-height:1;cursor:pointer;padding:0 .2rem}
.tfa-note{font-size:.75rem;color:#555;background:#f7f5f0;padding:.5rem 1rem;margin:0;line-height:1.4}
.tfa-note a{color:#8c2923}
.tfa-log{flex:1;overflow-y:auto;padding:.8rem 1rem;display:flex;flex-direction:column;gap:.55rem}
.tfa-msg{max-width:88%;padding:.55rem .8rem;border-radius:10px;font-size:.92rem;line-height:1.5;white-space:pre-wrap;word-wrap:break-word}
.tfa-assistant{background:#f1f3f6;color:#1a1a1a;align-self:flex-start;border-bottom-left-radius:3px}
.tfa-user{background:var(--navy,#14213D);color:#fff;align-self:flex-end;border-bottom-right-radius:3px}
.tfa-msg a{color:#8c2923;text-decoration:underline}
.tfa-user a{color:#f3d58e}
.tfa-wait{color:#777;font-style:italic}
.tfa-err{background:#fbebeb;color:#a3261b}
.tfa-chips{padding:0 1rem .5rem;display:flex;flex-wrap:wrap;gap:.4rem}
.tfa-chips[hidden]{display:none}
.tfa-chip{background:#fff;border:1px solid #E2DCD1;border-radius:999px;padding:.35rem .7rem;font-size:.82rem;cursor:pointer;color:#14213D;font-family:inherit}
.tfa-chip:hover{border-color:#A8322B}
.tfa-form{display:flex;gap:.5rem;padding:.6rem;border-top:1px solid #E2DCD1}
.tfa-form textarea{flex:1;resize:none;border:1px solid #cfd6df;border-radius:6px;padding:.5rem .6rem;font:inherit;font-size:.92rem}
.tfa-form textarea:focus{outline:none;border-color:#A8322B}
.tfa-send{background:#A8322B;color:#14213D;border:0;border-radius:6px;padding:0 1rem;font-weight:700;cursor:pointer;font-family:inherit}
.tfa-send[disabled]{opacity:.6;cursor:not-allowed}
.tfa-lead{border:1px solid #A8322B;background:#faf3e3;border-radius:8px;padding:.7rem .8rem;font-size:.88rem}
.tfa-lead p{margin:.35rem 0 .6rem;color:#333}
.tfa-row{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}
.tfa-row .btn{padding:.5rem .9rem;font-size:.88rem}
.tfa-alt{font-size:.85rem;color:#8c2923}
@media (max-width:520px){.tfa-panel{right:8px;left:8px;bottom:8px;width:auto;max-width:none;height:calc(100vh - 16px)}.tfa-launch{right:12px;bottom:12px}}
@media print{.tfa-launch,.tfa-panel{display:none}}
