/* Server-backed messages use the established chat, thread and contact styles. */
.msg-screen[hidden],.msg-screen [hidden],.msg-dialog [hidden]{display:none!important}
.msg-screen{width:100%}.msg-screen .inbox-rows{min-height:0;overflow:auto;overscroll-behavior:contain}.msg-screen .inbox-row{font:inherit;color:var(--ink)}.msg-screen .inbox-meta{min-width:24px}.msg-online{display:block;width:7px;height:7px;border-radius:50%;background:#5e9174;margin-left:auto}.msg-avatar{flex-shrink:0}.msg-screen .tree-mark img{width:80%;height:80%;object-fit:contain;filter:brightness(0) invert(1)}
.msg-screen .thread-person{color:var(--ink);font:inherit;padding:0;min-width:0}.msg-thread-head>[data-msg=back]{display:none}.msg-thread-head>.round{width:36px;height:40px}.msg-thread-head .call-pill>.round{width:40px;height:40px;border:0}.msg-thread-head .call-pill{display:flex;gap:2px}.msg-thread-head .thread-person strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.msg-thread-head .thread-person small{display:block}
.msg-messages .message-bubble p{margin:0}.msg-messages .message-time .round{background:transparent;border:0}.msg-messages .message-time svg{width:16px;height:16px}.msg-receipt{font-size:12px;letter-spacing:-2px;padding-right:3px;color:var(--muted)}.msg-receipt.read{color:var(--teal)}.msg-deleted{font-style:italic;color:var(--muted)}
.msg-file{max-width:340px;min-width:140px}.msg-file>a{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:6px 0;color:var(--teal);font-size:13px;text-decoration:none}.msg-file>a>.icon{width:18px;height:18px}.msg-file img,.msg-file video{display:block;max-width:100%;max-height:280px;border-radius:12px}.msg-file audio{width:100%;max-width:300px;height:42px}.msg-file small{font-size:10px}.msg-load{display:block;padding:9px 14px;margin:0 auto 18px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--teal);font-size:12px}
#msg-compose [hidden]{display:none!important}#msg-compose{flex:none}#msg-text{display:block;resize:none;max-height:130px;line-height:1.4;color:var(--ink)}#msg-compose .compose-inline>.round{display:grid;place-items:center}#msg-compose .compose-inline>[data-msg=voice]{width:46px;height:46px;min-width:46px;border-radius:50%;background:var(--teal);color:#fff;border:1px solid var(--gold)}.msg-status{font-size:11px;line-height:1.5;color:var(--muted);padding-top:7px}.msg-status:empty{display:none}
.msg-overlay{z-index:8000}.msg-dialog .sheet-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.msg-dialog .sheet-head h2{margin:0}.msg-dialog .list-button{font-size:15px}.msg-dialog .list-button small{display:block}.msg-dialog .list-button>.icon:last-child{width:18px;height:18px}.msg-dialog .msg-choice{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.msg-dialog .msg-choice input{accent-color:var(--teal);width:19px;height:19px;flex:none}.msg-dialog .msg-choice>span:last-child{flex:1}.msg-dialog .msg-choice small{display:block;margin-top:5px}.msg-primary{display:block;width:100%;padding:15px;border-radius:14px;background:var(--teal);color:#fff;margin-top:18px;font:inherit}.msg-dialog .contact-profile .msg-avatar{margin:0 auto 15px}.msg-dialog .dialog-caption{color:var(--muted);font-size:13px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.rtc-in-session #app{visibility:hidden}body.rtc-in-session #ksilo-rtc{inset:0;padding:0;background:#eff1e5;backdrop-filter:none;height:100dvh;width:100vw}body.rtc-in-session .rtc-meeting{width:100%;max-width:none;height:100%;max-height:none;border-radius:0;box-shadow:none;padding-top:env(safe-area-inset-top)}body.rtc-in-session .rtc-meeting-head{padding-top:16px}body.rtc-in-session .rtc-controls{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
@media(max-width:699px){.msg-thread-head>[data-msg=back]{display:grid}.msg-thread-head>.round{width:34px;height:42px}.msg-thread-head .call-pill>.round{width:38px;height:42px}.msg-file audio{max-width:235px}}
