/* AI agent sparkle badge — floats over bottom-right of AI avatar */
.cl-ai-av-wrap{vertical-align:middle}
.cl-ai-sparkle{position:absolute;bottom:-4px;right:-4px;width:15px;height:15px;display:inline-flex;align-items:center;justify-content:center;color:#6366F1;pointer-events:none;filter:drop-shadow(0 0 1.5px #FFFFFF) drop-shadow(0 0 1.5px #FFFFFF)}
.cl-ai-sparkle svg{width:15px;height:15px;display:block}
body.theme-dark .cl-ai-sparkle{color:#A5B4FC;filter:drop-shadow(0 0 1.5px #1F2023) drop-shadow(0 0 1.5px #1F2023)}

/* Call-logs column sort */
.ct-table thead th.ct-th-sort{cursor:pointer;user-select:none}
.ct-table thead th.ct-th-sort .ct-th-inner{display:inline-flex;align-items:center;gap:6px}
.ct-table thead th.ct-th-sort .ct-th-label{display:inline-block}
.cl-sort-ic{display:inline-flex;align-items:center;justify-content:center;width:10px;height:14px;color:#98A2B3;flex:none;opacity:0;transition:opacity .15s ease}
.ct-table thead th.ct-th-sort:hover .cl-sort-ic,
.cl-sort-ic[data-state="asc"],
.cl-sort-ic[data-state="desc"]{opacity:1}
.cl-sort-ic svg{display:block;overflow:visible}
.cl-sort-ic svg .up,.cl-sort-ic svg .dn{stroke:currentColor;opacity:.45;transition:opacity .15s ease,stroke .15s ease}
.cl-sort-ic[data-state="asc"] svg .up{opacity:1;stroke:#344054}
.cl-sort-ic[data-state="desc"] svg .dn{opacity:1;stroke:#344054}
.ct-table thead th.ct-th-sort:hover{color:#344054}
.ct-table thead th.ct-th-sort:hover .cl-sort-ic svg .up,
.ct-table thead th.ct-th-sort:hover .cl-sort-ic svg .dn{opacity:.7}
.ct-table thead th.ct-th-sort:hover .cl-sort-ic[data-state="asc"] svg .up,
.ct-table thead th.ct-th-sort:hover .cl-sort-ic[data-state="desc"] svg .dn{opacity:1}
body.theme-dark .cl-sort-ic{color:#6B7280}
body.theme-dark .cl-sort-ic[data-state="asc"] svg .up,
body.theme-dark .cl-sort-ic[data-state="desc"] svg .dn{stroke:#D4D4D8 !important}
