.chat-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}.chat-tabs button[aria-pressed=true]{background:#182234;color:#fff;border-color:#182234}.chat-layout{display:grid;grid-template-columns:minmax(250px,340px) minmax(0,1fr);gap:24px;align-items:start}.chat-sidebar h2{margin-top:0}.chat-sidebar details{border-top:1px solid #dce3e7;padding-top:18px;margin-top:22px}.chat-sidebar summary{cursor:pointer;font-weight:700;line-height:1.6}.chat-contact{width:100%;display:flex;gap:12px;text-align:left;justify-content:flex-start!important;margin:8px 0;white-space:normal}.chat-contact[aria-pressed=true]{border-color:#739a38;background:#ecf7d9}.chat-contact>span:nth-child(2){min-width:0;flex:1}.chat-contact b{display:block;overflow-wrap:anywhere}.chat-contact small{display:block;font-size:11px;color:#586774;margin-top:4px}.chat-initial{flex-shrink:0;width:38px;height:38px;background:#c9fa71;border-radius:50%;display:grid;place-items:center;font-weight:800}.chat-unread{background:#243f26;color:#fff;border-radius:20px;padding:3px 7px;font-size:12px}.chat-person{border-bottom:1px solid #e2e7eb;padding:14px 0}.chat-person p{margin:5px 0;font-size:12px}.chat-person strong{overflow-wrap:anywhere}.chat-person .work-actions{gap:6px;margin:10px 0 0}.chat-person button{font-size:12px}.chat-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid #dce3e7;padding-bottom:16px}.chat-title h2{margin:6px 0;overflow-wrap:anywhere}.chat-title p{font-size:13px;color:#586774;line-height:1.6}.chat-title>button{flex-shrink:0;font-size:12px}.chat-history{height:440px;overflow-y:auto;padding:20px 4px;overscroll-behavior:contain}.chat-message{background:#f1f4f8;border:1px solid #e1e6eb;border-radius:16px;padding:14px;max-width:88%;width:fit-content;margin:0 0 12px}.chat-message.mine{background:#edf8df;border-color:#d7e9bd;margin-left:auto}.chat-message>strong{font-size:12px}.chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin:8px 0}.chat-message small{font-size:10px;color:#586774}.chat-message blockquote{font-size:12px;border-left:3px solid #92a86f;margin:8px 0;padding-left:10px;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message-actions{display:flex;gap:6px;margin-top:8px}.workspace .chat-message-actions button{font-size:11px;min-height:36px;padding:5px 9px}.chat-compose-actions{display:flex;justify-content:space-between;gap:10px;align-items:center}.chat-compose-actions small{color:#586774;font-size:11px;line-height:1.5}.chat-empty{color:#586774;line-height:1.7}.chat-empty h2{color:#182234}#chat-reply{background:#f2f6eb;padding:12px;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}#chat-reply[hidden],#chat-form[hidden]{display:none}#chat-message{min-height:90px;resize:vertical}#chat-form{margin-top:14px}#chat-search{width:100%;box-sizing:border-box}@media(max-width:760px){.chat-layout{grid-template-columns:1fr;gap:16px}.chat-main,.chat-sidebar{min-width:0}.chat-history{height:360px}.chat-message{max-width:94%}.chat-title{flex-wrap:wrap}.chat-compose-actions{flex-wrap:wrap}.chat-compose-actions button{width:100%}.chat-contact{min-height:60px}.chat-sidebar details{margin-top:16px}}
.chat-message-actions{flex-wrap:wrap}
.chat-message,.chat-message p,.chat-compose-actions>*{min-width:0}
@media(max-width:760px){
  #chat-connections{max-height:40dvh;overflow-y:auto;overscroll-behavior:contain}
  .chat-history{height:360px;max-height:50dvh;min-height:160px}
  .workspace .chat-message-actions button{min-height:44px;padding:9px 12px}
  .chat-compose-actions small{flex-basis:100%}
}

#chat-history-pages[hidden]{display:none}
