.direct-chat{display:grid;grid-template-columns:260px minmax(0,1fr);height:calc(100dvh - 165px);min-height:420px;max-height:850px;background:#fff;border:1px solid #d8e4e3;border-radius:16px;overflow:hidden;box-shadow:0 5px 24px #1e49410a}.direct-people{border-inline-end:1px solid #dce8e5;overflow:auto;background:#fafcfb}.direct-people header{padding:16px;border-bottom:1px solid #dce8e5;position:sticky;top:0;background:#fafcfb;z-index:2}.direct-people h2{margin:0}.direct-people small{display:block;font-size:11px;margin:6px 0}.direct-people input{width:100%;font-size:12px}.direct-person{display:flex;width:100%;align-items:center;text-align:start;gap:9px;background:transparent;color:#355851;border-radius:0;border-bottom:1px solid #ebf0ee;padding:13px 12px;box-shadow:none}.direct-person:hover,.direct-person.selected{background:#e5f3ed;color:#175e50}.direct-person>span:nth-child(2){min-width:0;flex:1}.direct-person b{font-size:12px;display:block}.direct-person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:155px;font-size:10px}.direct-person em{font-style:normal;background:#187563;color:white;border-radius:15px;padding:1px 7px;font-size:11px}.direct-room{min-width:0;display:flex;flex-direction:column;overflow:hidden}.direct-room>header{display:flex;align-items:center;gap:10px;padding:13px 20px;border-bottom:1px solid #e0eae6}.direct-room h2{font-size:15px;margin:0}.direct-room small{font-size:11px}.direct-error{color:#b74444;background:#fff2f0;margin:0;padding:6px 16px;font-size:12px}.direct-error:empty{display:none}.direct-history{flex:1;overflow:auto;padding:18px;background:#f3f7f5;min-height:0;overscroll-behavior:contain}.direct-day{text-align:center;font-size:10px;color:#71867e;margin:12px 0 18px}.direct-message{display:flex;margin:9px 0;justify-content:flex-start}.direct-message.theirs{justify-content:flex-end}.direct-bubble{max-width:min(80%,580px);min-width:80px;background:#e0f1e8;border:1px solid #bddbce;border-radius:13px 3px 13px 13px;padding:10px 14px;box-shadow:0 2px 4px #24463808}.direct-message.theirs .direct-bubble{background:white;border-color:#d6e0dc;border-radius:3px 13px 13px 13px}.direct-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;unicode-bidi:plaintext}.direct-bubble footer{display:flex;justify-content:flex-end;gap:6px;font-size:10px;color:#80928b;margin-top:6px}.direct-seen.read{color:#12819a}.direct-file{margin-top:6px;overflow-wrap:anywhere;font-size:11px}.direct-file img{display:block;width:auto;max-width:100%;max-height:230px;border-radius:8px}.direct-file a{color:#246b62}.direct-room form{padding:12px 16px;border-top:1px solid #d2e3da;background:white}.direct-room textarea{width:100%;min-height:62px;max-height:140px;border-color:#98bdb0}.direct-tools{display:flex;align-items:center;gap:7px;margin-top:6px}.direct-tools button{padding:7px 12px;font-size:12px}.direct-tools svg{width:18px;height:18px;display:block}.direct-tools small{flex:1;color:#8a9a93;font-size:10px}#direct-send{background:#16815d}#direct-selected-files{display:flex;flex-wrap:wrap;gap:5px;font-size:11px}#direct-selected-files>span{padding:3px 6px;background:#eff6f3;border-radius:7px;max-width:100%;overflow-wrap:anywhere}#direct-selected-files button{padding:1px 5px;margin-inline-start:5px}#direct-emojis button{padding:5px 8px;background:white}.direct-chat [hidden]{display:none!important}@media(max-width:850px){.direct-chat{grid-template-columns:1fr;height:700px;max-height:none}.direct-people{max-height:180px;overflow:auto;border-bottom:1px solid #dce8e5}.direct-people header{position:static;padding:10px}.direct-people header small{display:none}#direct-contacts{display:flex;overflow:auto}.direct-person{min-width:165px;max-width:200px}.direct-person small{max-width:100px}.direct-chat{grid-template-rows:auto minmax(0,1fr)}.direct-bubble{max-width:90%}.direct-tools small{display:none}}
