.tc-chat{--tc-ink:#112b48;--tc-blue:#135da9;--tc-line:#d6e1ec;--tc-muted:#4c6178;min-width:0;color:var(--tc-ink);container-type:inline-size}
.tc-chat [hidden]{display:none!important}
.tc-heading{margin-bottom:22px}
.tc-heading p{margin:0 0 4px;color:var(--tc-muted);font-size:.95rem;font-weight:550}
.tc-heading h1{margin:0;font-size:clamp(2rem,3.3vw,3.15rem);line-height:1.06;letter-spacing:-.055em;color:var(--tc-ink)}
.tc-shell{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,1.9fr);min-height:460px;border:1px solid var(--tc-line);border-radius:12px;overflow:hidden;background:#fff}
.tc-directory{min-width:0;padding:20px 15px;border-right:1px solid var(--tc-line);background:#f8fafd}
.tc-directory h2,.tc-chat-head h2,.tc-empty h2{margin:0;color:var(--tc-ink);font-size:1.16rem;letter-spacing:-.025em}
.tc-search{display:flex;align-items:end;gap:5px;margin:17px 0 14px}
.tc-search label,.tc-compose label{display:grid;gap:4px;min-width:0;color:var(--tc-muted);font-size:.82rem;font-weight:650}
.tc-search label{flex:1}
.tc-chat input,.tc-chat textarea{box-sizing:border-box;width:100%;min-width:0;margin:0;font:inherit;color:var(--tc-ink);background:#fff;border:1px solid #aabacb;border-radius:6px}
.tc-chat input{padding:8px 9px;min-height:40px;font-size:.93rem}
.tc-chat button{font-family:inherit;cursor:pointer}
.tc-search button,.tc-more{min-height:40px;padding:6px 10px;color:var(--tc-blue);border:1px solid #abc1d7;border-radius:6px;background:#fff;font-weight:650;font-size:.85rem}
.tc-more{display:block;margin:8px auto}
.tc-chat button:disabled{opacity:.62;cursor:wait}
.tc-chat :focus-visible{outline:3px solid #287bcd;outline-offset:2px}
.tc-people,.tc-messages{list-style:none;padding:0;margin:0}
.tc-person{display:grid;grid-template-columns:36px minmax(0,1fr);gap:1px 9px;padding:11px 8px;border-radius:7px;color:var(--tc-ink);text-decoration:none;line-height:1.3}
.tc-person:hover,.tc-person:focus-visible{background:#edf3fa}
.tc-person[aria-current]{background:#e3efff;box-shadow:inset 3px 0 var(--tc-blue)}
.tc-avatar{display:inline-grid;place-items:center;width:36px;height:36px;flex:none;background:#e0eaf6;color:#174a77;border-radius:50%;font-size:.79rem;font-weight:700;letter-spacing:.025em}
.tc-person .tc-avatar{grid-column:1;grid-row:1/3}
.tc-person-copy{display:grid;gap:2px;min-width:0}
.tc-person-copy strong,.tc-person-copy span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-person-copy strong{font-size:.96rem}
.tc-person-copy span,.tc-person time{font-size:.83rem;color:var(--tc-muted)}
.tc-person time{grid-column:2;font-size:.73rem}
.tc-thread{display:flex;flex-direction:column;min-width:0}
.tc-back{display:none}
.tc-chat-head{padding:14px 20px;border-bottom:1px solid var(--tc-line);background:#fff}
.tc-chat-head>div{display:flex;align-items:center;gap:10px}
.tc-chat-head p{font-size:.86rem;color:var(--tc-muted);margin:2px 0 0}
.tc-empty{display:grid;align-content:center;justify-items:start;padding:30px;min-height:17rem;color:var(--tc-muted)}
.tc-empty p{max-width:40ch;margin:.5rem 0}
.tc-scroll{overflow:auto;overflow-anchor:none;overscroll-behavior:contain;height:clamp(260px,40vh,510px);min-height:200px;padding:12px 20px}
.tc-messages{display:flex;flex-direction:column;gap:16px}
.tc-messages li{min-width:0;max-width:min(87%,580px);line-height:1.45;align-self:flex-start}
.tc-messages .tc-mine{align-self:flex-end}
.tc-message-meta{display:flex;flex-wrap:wrap;gap:3px 9px;align-items:center;color:var(--tc-muted);font-size:.78rem;font-weight:650}
.tc-message-meta time{font-weight:400}
.tc-messages p{margin:4px 0 0;padding:9px 13px;border-radius:3px 11px 11px;background:#f1f4f8;color:#19324d;white-space:pre-wrap;overflow-wrap:anywhere;font-size:1rem}
.tc-mine .tc-message-meta{justify-content:flex-end}
.tc-mine p{border-radius:11px 3px 11px 11px;background:#dcecff;color:#123659}
.tc-messages .tc-no-messages{padding:25px 0;color:var(--tc-muted);align-self:center}
.tc-compose{display:grid;gap:6px;padding:14px 20px;border-top:1px solid var(--tc-line);margin-top:auto}
.tc-compose textarea{resize:vertical;padding:9px 12px;line-height:1.45;font-size:1rem;min-height:60px}
.tc-compose>div{display:flex;align-items:center;justify-content:space-between;gap:8px}
.tc-compose small{font-size:.76rem;color:var(--tc-muted)}
.tc-compose button{background:var(--tc-blue);color:white;border:0;border-radius:6px;padding:9px 15px;min-height:42px;font-weight:650}
.tc-compose button:hover{background:#0e487e}
.tc-status{font-size:.9rem;line-height:1.45;color:var(--tc-muted);overflow-wrap:anywhere}
.tc-status:empty{margin:0;padding:0}.tc-feedback{margin:0;padding:0 20px 13px}
@container (max-width:729px){
 .tc-shell{display:block;min-height:0}.tc-directory{border-right:0;padding:16px}.tc-thread{display:none}.tc-open .tc-directory{display:none}.tc-open .tc-thread{display:flex}
 .tc-back{display:inline-block;min-height:40px;padding:6px 0;color:var(--tc-blue);font-size:.9rem;font-weight:600}
 .tc-chat-head,.tc-scroll,.tc-compose{padding-left:13px;padding-right:13px}.tc-chat-head{padding-top:6px}
 .tc-scroll{height:clamp(220px,40dvh,430px)}.tc-chat input{font-size:1rem}
}
