.chat-layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:18px;align-items:start}.chat-list-panel{padding:16px}.chat-list-panel .label{margin-bottom:12px}.chat-list-item{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;width:100%;margin:8px 0;overflow-wrap:anywhere}.chat-list-item.selected{border-color:#145e63;background:#e7f2ee}.chat-list-panel #chatList{max-height:65vh;overflow:auto}.chat-conversation{min-width:0}.chat-conversation h2{margin:0}.chat-messages{height:50vh;min-height:280px;overflow:auto;background:#f4f7f5;border:1px solid #dbe5e0;border-radius:12px;padding:14px;overscroll-behavior:contain}.chat-message{width:fit-content;max-width:90%;background:white;border:1px solid #dce5df;border-radius:12px;padding:12px 14px;margin:10px 0;overflow-wrap:anywhere}.chat-message.mine{margin-left:auto;background:#e0f0e9;border-color:#bfd9ce}.chat-message-meta{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;color:#506862;margin-bottom:6px}.chat-message-text{white-space:pre-wrap;line-height:1.5}.chat-file{display:flex;flex-direction:column;gap:6px;margin-top:10px}.chat-file img{max-width:200px;max-height:160px;object-fit:contain;border-radius:6px}.chat-compose{margin-top:16px}.chat-compose textarea{resize:vertical;width:100%;font:inherit}.chat-compose .row{flex-wrap:wrap;margin-top:10px}.chat-file-label{font-size:13px;max-width:100%;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.chat-file-label input{max-width:100%}.chat-attachment-draft{display:inline-block;margin:5px;padding:6px;background:#edf3ef;border-radius:7px;font-size:13px}.chat-recipients{display:flex;flex-direction:column;gap:10px;padding:14px 0}.chat-recipients label{display:flex;align-items:center;gap:9px}.chat-recipients input[type=checkbox]{width:auto;min-width:18px}.chat-empty{padding:16px}.chat-tabs{flex-wrap:wrap}#chatOlder[hidden]{display:none}@media(max-width:850px){.chat-layout{grid-template-columns:1fr}.chat-list-panel #chatList{max-height:200px}.chat-messages{height:48vh}.chat-message{max-width:96%}.chat-conversation{padding:14px}}
