#tca-chat-root .cc-window:not(.cc-expanded),#tca-faq-root .tf-window:not(.tf-expanded){width:min(440px,calc(100vw - 24px))!important}
.tf-history-toggle{flex:0 0 32px!important;width:32px!important;height:36px!important;padding:0!important;background:transparent!important;border:0!important;color:white!important;font-size:23px!important;cursor:pointer}
.tf-history{position:absolute;inset:76px 0 0 0;z-index:30;display:flex;flex-direction:column;background:#faf8fd;color:#392d4b;padding:16px;overflow:hidden;border-radius:0 0 22px 22px;font:14px/1.5 system-ui}
.tf-history[hidden]{display:none!important}.tf-history button{font:inherit;cursor:pointer;border:0;border-radius:9px;padding:9px;background:transparent;color:#50377b;min-height:38px}.tf-history button:focus-visible,.tf-history a:focus-visible{outline:2px solid #76529c;outline-offset:2px}.tf-history-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.tf-history-top strong{flex:1}.tf-history-new{width:100%;text-align:left;background:#eee8f6!important}.tf-history-list{overflow:auto;flex:1;min-height:0;padding:8px 0}.tf-history-heading{display:block;font-weight:700!important;color:#796789!important;width:100%;text-align:left}.tf-history-row{position:relative;display:flex;align-items:center;border-radius:10px;margin:3px 0}.tf-history-row:hover,.tf-history-row:focus-within{background:#eee8f6}.tf-history-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.tf-history-title[aria-current=true]{font-weight:700;background:#eee8f6}.tf-history-more{opacity:0;flex:0 0 38px}.tf-history-row:hover .tf-history-more,.tf-history-row:focus-within .tf-history-more{opacity:1}.tf-history-actions{position:absolute;right:5px;top:0;z-index:3;width:160px;background:white;border:1px solid #e4dced;border-radius:12px;padding:5px;box-shadow:0 6px 24px #392d4b26}.tf-history-actions button{display:block;text-align:left;width:100%}.tf-history .archive{color:#2474bd}.tf-history .danger{color:#bc263b}.tf-history-foot{border-top:1px solid #e4dced;padding-top:10px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.tf-history-archive,.tf-history-profile{width:38px;height:38px;border-radius:50%!important;display:grid;place-items:center}.tf-history-archive{background:#e4f0ff!important;color:#2474bd!important;font-size:23px!important}.tf-history-profile img{width:38px;height:38px;border-radius:50%;object-fit:cover}.tf-history-foot small{color:#796789}.tf-history-error{font-size:12px;color:#bc263b}.tf-history-dialog{position:absolute;inset:0;display:grid;place-items:center;background:#392d4b66;z-index:5;padding:20px}.tf-history-dialog>div{background:white;border-radius:16px;padding:20px;width:100%;box-sizing:border-box}.tf-history-dialog strong{display:block}.tf-history-dialog input{box-sizing:border-box;width:100%;padding:10px;margin:15px 0;border:1px solid #d9cce9;border-radius:8px}.tf-history-dialog button{margin:8px 4px 0 0;background:#eee8f6}
@media(hover:none){.tf-history-more{opacity:1}}@media(max-width:650px){#tca-chat-root .cc-window:not(.cc-expanded),#tca-faq-root .tf-window:not(.tf-expanded){width:auto!important}.tf-history{inset:72px 0 0}}.cc-expanded .tf-history,.tf-expanded .tf-history{max-width:330px;box-shadow:8px 0 30px #392d4b22}

#tca-faq-root .tf-reset-countdown{display:block;text-align:center;font-size:12px;color:#796789;margin-top:12px}#tca-faq-root .tf-error a{color:#50377b;text-decoration:underline}
/* Scoped controls override theme button styling. */
:is(#tca-chat-root,#tca-faq-root) .tf-history{background:#fff;padding:20px;gap:4px}
:is(#tca-chat-root,#tca-faq-root) .tf-history button{border:0!important;box-shadow:none!important;background:transparent!important;margin:0;text-transform:none;letter-spacing:normal;font:500 13px/1.4 system-ui;color:#503d69;border-radius:10px;padding:10px;text-align:left}
:is(#tca-chat-root,#tca-faq-root) .tf-history svg,.tf-history-toggle svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
:is(#tca-chat-root,#tca-faq-root) .tf-history-top{gap:14px;padding-bottom:12px}
:is(#tca-chat-root,#tca-faq-root) .tf-history-top strong{font:650 17px system-ui;color:#382647}
:is(#tca-chat-root,#tca-faq-root) .tf-history button.tf-history-close{display:grid;place-items:center;width:32px;min-height:32px;padding:6px;color:#93859d}
:is(#tca-chat-root,#tca-faq-root) .tf-history button.tf-history-new{display:flex;align-items:center;gap:10px;background:#f2edf8!important;padding:12px 14px;font-weight:600}
:is(#tca-chat-root,#tca-faq-root) .tf-history button.tf-history-heading{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:650;color:#8a7c95;padding:12px 8px;min-height:34px}
:is(#tca-chat-root,#tca-faq-root) .tf-history-heading svg{width:13px;height:13px;transform:rotate(90deg)}
:is(#tca-chat-root,#tca-faq-root) .tf-history-heading[aria-expanded=false] svg{transform:none}
:is(#tca-chat-root,#tca-faq-root) .tf-history-empty{padding:38px 22px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:12px;color:#a695b7}
:is(#tca-chat-root,#tca-faq-root) .tf-history-empty>svg{width:30px;height:30px;background:#f4f0f8;padding:14px;border-radius:18px;box-sizing:content-box}
:is(#tca-chat-root,#tca-faq-root) .tf-history-empty strong{font-size:14px;font-weight:600;color:#62506f}
:is(#tca-chat-root,#tca-faq-root) .tf-history-empty p{font-size:12px;line-height:1.6;max-width:220px;margin:0;color:#968a9f}
:is(#tca-chat-root,#tca-faq-root) .tf-history-foot{gap:6px;padding-top:12px;border-color:#f0ebf5}
:is(#tca-chat-root,#tca-faq-root) .tf-history button.tf-history-archive,:is(#tca-chat-root,#tca-faq-root) .tf-history-profile{display:flex;align-items:center;gap:12px;width:100%;height:46px;border-radius:10px!important;padding:4px 8px;text-decoration:none;font:500 13px system-ui;color:#655472}
:is(#tca-chat-root,#tca-faq-root) .tf-history button.tf-history-archive{color:#327bb5}
:is(#tca-chat-root,#tca-faq-root) .tf-history-archive svg{background:#eaf4ff;padding:8px;border-radius:50%;box-sizing:content-box;width:17px;height:17px}
:is(#tca-chat-root,#tca-faq-root) .tf-history-profile img{width:33px;height:33px;border:1px solid #eee8f4}
:is(#tca-chat-root,#tca-faq-root) .tf-history button:hover,:is(#tca-chat-root,#tca-faq-root) .tf-history-profile:hover{background:#f7f4fa!important}
:is(#tca-chat-root,#tca-faq-root) .tf-history-actions button{display:flex;align-items:center;gap:10px}
:is(#tca-chat-root,#tca-faq-root) .tf-history .danger{color:#c43d50!important}
:is(#tca-chat-root,#tca-faq-root) .tf-history .archive{color:#327bb5!important}
:is(#tca-chat-root,#tca-faq-root) .tf-history-error:empty{display:none}
:is(#tca-chat-root,#tca-faq-root) .tf-history button.tf-history-heading,:is(#tca-chat-root,#tca-faq-root) .tf-history button.tf-history-heading:hover{background:none!important;border:0!important;box-shadow:none!important;border-radius:0;justify-content:flex-start;gap:7px}
:is(#tca-chat-root,#tca-faq-root) .tf-history-heading svg{opacity:0;transition:opacity .15s,transform .15s}
:is(#tca-chat-root,#tca-faq-root) .tf-history-heading:hover svg,:is(#tca-chat-root,#tca-faq-root) .tf-history-heading:focus-visible svg{opacity:1}
@media(hover:none){:is(#tca-chat-root,#tca-faq-root) .tf-history-heading svg{opacity:1}}
@keyframes tca-drawer-enter{from{opacity:0;transform:translateX(-16px)}to{opacity:1;transform:translateX(0)}}
@keyframes tca-menu-enter{from{opacity:0;transform:translateY(-5px) scale(.97)}to{opacity:1;transform:none}}
@keyframes tca-row-enter{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
:is(#tca-chat-root,#tca-faq-root) .tf-history:not([hidden]){animation:tca-drawer-enter .2s ease-out}
:is(#tca-chat-root,#tca-faq-root) .tf-history-actions,:is(#tca-chat-root,#tca-faq-root) .tf-history-dialog>div{animation:tca-menu-enter .16s ease-out;transform-origin:top right}
:is(#tca-chat-root,#tca-faq-root) .tf-history-row{animation:tca-row-enter .16s ease-out;transition:background .15s}
:is(#tca-chat-root,#tca-faq-root) .tf-history button,:is(#tca-chat-root,#tca-faq-root) .tf-history-profile{transition:background .15s,color .15s,transform .12s}
:is(#tca-chat-root,#tca-faq-root) .tf-history button:active{transform:scale(.98)}
@media(prefers-reduced-motion:reduce){:is(#tca-chat-root,#tca-faq-root) .tf-history,:is(#tca-chat-root,#tca-faq-root) .tf-history *{animation:none!important;transition:none!important}}
:is(#tca-chat-root,#tca-faq-root) .tf-history *{box-sizing:border-box}
:is(#tca-chat-root,#tca-faq-root) .tf-history button span,:is(#tca-chat-root,#tca-faq-root) .tf-history a span{font:inherit!important;color:inherit!important;line-height:inherit!important}
:is(#tca-chat-root,#tca-faq-root) .tf-history-row{border-bottom:1px solid #eee8f3;border-radius:0;margin:0;padding:4px 0}
:is(#tca-chat-root,#tca-faq-root) .tf-history button.tf-history-archive{font:500 13px/1.4 system-ui!important;justify-content:flex-start!important;text-align:left!important}
:is(#tca-chat-root,#tca-faq-root) .tf-history button.tf-history-new{justify-content:flex-start!important}
@media(min-width:851px){#tca-chat-root .cc-expanded.tf-history-open>.tf-tabs,#tca-chat-root .cc-expanded.tf-history-open>#tca-faq-root{margin-left:300px!important;width:calc(100% - 300px)!important}#tca-faq-root .tf-expanded.tf-history-open>.tf-content{margin-left:300px!important;width:calc(100% - 300px)!important}:is(#tca-chat-root,#tca-faq-root) :is(.cc-expanded,.tf-expanded)>.tf-history{width:300px;max-width:300px;box-shadow:none;border-right:1px solid #eee8f3}}
