/* TrainCrest One assistant — quiet floating helper. */
.tca-btn{position:fixed;right:20px;bottom:20px;z-index:40;display:flex;align-items:center;gap:8px;height:40px;padding:0 16px 0 13px;border-radius:999px;
  background:#fff;border:1px solid #D0D5DD;color:#1D2433;font:500 13.5px/1 'IBM Plex Sans',-apple-system,'Segoe UI',Roboto,sans-serif;cursor:pointer;
  box-shadow:0 1px 2px rgba(16,24,40,.06),0 8px 24px -10px rgba(16,24,40,.25);transition:box-shadow .15s,border-color .15s}
.tca-btn:hover{border-color:#98A2B3;box-shadow:0 1px 2px rgba(16,24,40,.06),0 12px 28px -10px rgba(16,24,40,.3)}
.tca-btn svg{width:17px;height:17px;color:#069EDB}
.tca-btn:focus-visible,.tca-panel button:focus-visible,.tca-panel textarea:focus-visible{outline:2px solid #0679AD;outline-offset:2px}
.tca-panel{position:fixed;right:20px;bottom:20px;z-index:41;width:400px;height:min(620px,calc(100vh - 40px));background:#fff;border:1px solid #E7EAEE;border-radius:14px;
  box-shadow:0 24px 64px -16px rgba(16,24,40,.32);display:flex;flex-direction:column;overflow:hidden;font-family:'IBM Plex Sans',-apple-system,'Segoe UI',Roboto,sans-serif;color:#1D2433}
.tca-panel[hidden],.tca-btn[hidden]{display:none}
.tca-h{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #E7EAEE}
.tca-h b{font-size:14px;font-weight:600;flex:1}
.tca-h b small{display:block;font-weight:400;font-size:12px;color:#667085;margin-top:1px}
.tca-h button{border:0;background:none;color:#667085;cursor:pointer;font-size:13px;padding:4px 6px;border-radius:5px}
.tca-h button:hover{background:#F2F4F7;color:#1D2433}
.tca-h .x{font-size:20px;line-height:1}
.tca-log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;font-size:14px;line-height:1.5}
.tca-m{max-width:88%;white-space:pre-wrap;word-wrap:break-word}
.tca-m.user{align-self:flex-end;background:#F2F4F7;border-radius:12px 12px 4px 12px;padding:8px 12px}
.tca-m.assistant{align-self:flex-start}
.tca-m.system{align-self:center;font-size:12px;color:#98A2B3}
.tca-m a{color:#0679AD}
.tca-go{display:inline-block;margin-top:6px;font-size:13px;font-weight:500;color:#0679AD;text-decoration:none;border:1px solid #B9DDF0;border-radius:6px;padding:4px 10px}
.tca-go:hover{background:#F0F8FC}
.tca-card{border:1px solid #D0D5DD;border-radius:10px;padding:12px;margin-top:8px;background:#fff;white-space:normal}
.tca-card b{display:block;font-size:13.5px;font-weight:600;margin-bottom:6px}
.tca-card dl{margin:0;display:grid;grid-template-columns:100px 1fr;gap:3px 10px;font-size:13px}
.tca-card dt{color:#667085}.tca-card dd{margin:0}
.tca-card .acts{display:flex;gap:8px;margin-top:10px}
.tca-card .acts button{border:1px solid #0679AD;background:#0679AD;color:#fff;border-radius:6px;padding:6px 14px;font:500 13px/1.2 'IBM Plex Sans',-apple-system,'Segoe UI',Roboto,sans-serif;cursor:pointer}
.tca-card .acts button.no{background:#fff;color:#1D2433;border-color:#D0D5DD}
.tca-card .acts button:disabled{opacity:.55;cursor:default}
.tca-think{align-self:flex-start;color:#98A2B3;font-size:13px}
.tca-think i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#98A2B3;margin-right:3px;animation:tcab 1s infinite}
.tca-think i:nth-child(2){animation-delay:.15s}.tca-think i:nth-child(3){animation-delay:.3s}
@keyframes tcab{0%,80%,100%{opacity:.3}40%{opacity:1}}
.tca-sugs{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.tca-sugs button{border:1px solid #E7EAEE;background:#fff;border-radius:999px;padding:5px 11px;font:13px/1.3 'IBM Plex Sans',-apple-system,'Segoe UI',Roboto,sans-serif;color:#344054;cursor:pointer;text-align:left}
.tca-sugs button:hover{border-color:#B9DDF0;background:#F7FBFD}
.tca-in{border-top:1px solid #E7EAEE;padding:10px;display:flex;gap:8px;align-items:flex-end}
.tca-in textarea{flex:1;resize:none;border:1px solid #D0D5DD;border-radius:8px;padding:8px 10px;font:14px/1.4 'IBM Plex Sans',-apple-system,'Segoe UI',Roboto,sans-serif;max-height:120px;min-height:38px}
.tca-in button{height:38px;padding:0 14px;border-radius:8px;border:1px solid #0679AD;background:#0679AD;color:#fff;font:500 13.5px/1 'IBM Plex Sans',-apple-system,'Segoe UI',Roboto,sans-serif;cursor:pointer}
.tca-in button:disabled{opacity:.5;cursor:default}
@media (max-width:640px){.tca-panel{right:0;bottom:0;width:100%;height:100%;border-radius:0}.tca-btn{right:14px;bottom:14px}}
@media print{.tca-btn,.tca-panel{display:none!important}}

/* one subtle pulse (see TCA_nudge) */
.tca-btn::after{content:"";position:absolute;inset:-1px;border-radius:999px;pointer-events:none;opacity:0}
.tca-btn.tca-nudge::after{animation:tcaPulse 1.2s ease-out 2}
.tca-btn.tca-nudge{border-color:#9CCDE6}
@keyframes tcaPulse{0%{box-shadow:0 0 0 0 rgba(6,158,219,.45);opacity:1}100%{box-shadow:0 0 0 12px rgba(6,158,219,0);opacity:1}}
@media (prefers-reduced-motion:reduce){.tca-btn.tca-nudge::after{animation:none}}
