.message-layout{display:grid;grid-template-columns:minmax(270px,320px) minmax(0,1fr);gap:14px;align-items:start;min-width:0}.message-content,.message-group-pane{min-width:0}.message-content [hidden]{display:none!important}
.message-inbox{border:1px solid #e7e1f1;background:#fff;border-radius:17px;padding:17px 10px;min-width:0;position:sticky;top:16px;max-height:calc(100dvh - 32px);overflow:auto}.message-inbox>header{display:flex;align-items:center;justify-content:space-between;padding:0 7px 14px}.message-inbox h2{font-size:22px;letter-spacing:-.6px;margin:0}.message-inbox>.field{width:calc(100% - 14px);margin:0 7px;font-size:13px;background:#f6f3fa;min-width:0}.inbox-filters{display:flex;gap:5px;flex-wrap:wrap;padding:13px 7px}.inbox-filters button{font-size:11px;padding:7px 9px;color:#66557e;background:#f7f4fa;border:0;border-radius:20px;min-height:34px}.inbox-filters [aria-pressed=true]{background:#7550b8;color:#fff}
.inbox-row{display:flex;gap:10px;align-items:center;width:100%;border:0;border-radius:12px;background:transparent;text-align:left;padding:13px 9px;color:#453754;min-width:0}.inbox-row:hover{background:#f7f4fb}.inbox-row.active{background:#eee6fa}.inbox-avatar{position:relative;flex:none;width:43px;height:43px}.inbox-avatar .avatar{width:43px;height:43px;object-fit:cover;border-radius:15px}.inbox-avatar i{position:absolute;right:-1px;bottom:0;width:11px;height:11px;background:#28956d;border:2px solid #fff;border-radius:50%}.inbox-group-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:15px;background:#e3d7f5;color:#69429a;font-size:29px}.inbox-copy{flex:1;min-width:0;display:grid;gap:7px}.inbox-copy>span{display:flex;justify-content:space-between;align-items:center;gap:6px;min-width:0}.inbox-copy b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:650}.inbox-copy time{font-size:9px;flex:none;color:#6b587c}.inbox-copy small{font-size:11px;line-height:1.5;color:#776787;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.inbox-row.unread .inbox-copy small,.inbox-row.unread b{font-weight:750;color:#39264d}.inbox-unread{background:#7650b8;color:#fff;min-width:20px;text-align:center;border-radius:10px;padding:3px 5px;font-size:10px;flex:none}.inbox-copy em{font-style:normal;font-size:9px;color:#6b587c}.inbox-people{padding:10px 7px;border-bottom:1px solid #ece5f2}.inbox-people h3{font-size:13px}.inbox-people>button{width:100%;display:flex;gap:10px;align-items:center;background:#faf8fd;border:0;border-radius:10px;padding:10px;margin:5px 0;text-align:left;color:#514164}.inbox-people .avatar{width:34px;height:34px;border-radius:11px}.inbox-people b{font-size:12px}.inbox-empty,.inbox-offline{font-size:11px;color:#6b587c;padding:12px;line-height:1.7}.messaging-error{padding:11px;border-radius:10px;background:#fff2f4;color:#96374f;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.messaging-error button{border:1px solid #d8b0c1;background:#fff;color:#7b3657;border-radius:7px;padding:6px 8px;margin:5px 4px 0 0;font-size:11px}.inbox-menu-badge{border-radius:10px;background:#e55b7e;color:#fff;padding:2px 5px;font-size:9px;margin-left:4px}
.message-layout .chat-workspace{min-width:0}.message-layout .chat-header{gap:9px}.message-layout .chat-online-avatars{display:none}.message-layout .chat-header h2{font-size:15px}.message-layout .chat-header p{font-size:10px}.message-layout .chat-box{height:clamp(320px,50dvh,680px)}.message-layout .chat-compose-foot{flex-wrap:wrap;gap:5px}.message-layout .chat-message .bubble{max-width:90%}.message-layout .photo-tools{gap:5px}.message-layout .photo-tools .small{font-size:9px}.message-layout .photo-tools .btn{font-size:10px;padding:7px}.message-layout .chat-compose{padding:12px}.message-layout .chat-input{gap:7px}.inbox-back{display:none;background:#f3edf9;border:0;border-radius:10px;width:34px;min-height:36px;font-size:25px;color:#7550a1;padding:0;flex:none}
.dm-workspace>.chat-header .avatar{width:38px;height:38px;border-radius:12px}.dm-workspace .chat-box{overflow-anchor:none}.dm-workspace textarea{min-height:48px;max-height:160px;resize:vertical;line-height:1.5;font-size:16px}.dm-workspace .msg{white-space:pre-wrap;word-break:break-word}.dm-receipt{text-align:right;font-size:10px;color:#755f8e;margin:0 12px 0}.dm-history{align-self:center;font-size:11px;padding:7px 12px;border-radius:20px;border:1px solid #d7c8e9;color:#6b4b8d;background:#fff}.dm-history:disabled{opacity:.5}.message-inbox button:focus-visible,.inbox-back:focus-visible{outline:3px solid #b593df;outline-offset:2px}
@media(min-width:901px){body.chat-route .layout{grid-template-columns:150px minmax(0,1fr)}body.chat-route .sidebar{padding:10px 5px}body.chat-route .sidebar .nav-copy{font-size:11px}body.chat-route .sidebar-label{font-size:8px;padding:12px 8px}body.chat-route .sidebar .navbtn{padding:12px 8px;gap:7px}body.chat-route .sidebar .sidebar-note{padding:14px 10px}body.chat-route .sidebar .navbtn>.ui-icon:last-child{display:none}body.chat-route .message-layout{grid-template-columns:300px minmax(0,1fr)}body.chat-route.chat-focus .message-layout{position:fixed;inset:12px;z-index:1500;background:#f6f3fb;padding:10px;border-radius:20px}body.chat-route.chat-focus .chat-workspace.is-expanded{position:static;inset:auto;box-shadow:none}body.chat-route.chat-focus .message-layout .chat-box{height:calc(100dvh - 335px)}}
@media(min-width:1500px){body.chat-route .message-layout{grid-template-columns:340px minmax(0,1fr)}}
@media(min-width:901px) and (max-width:1100px){body.chat-route .layout{grid-template-columns:100px minmax(0,1fr)}body.chat-route .sidebar .nav-copy small,.chat-route .sidebar-note{display:none}body.chat-route .message-layout{grid-template-columns:250px minmax(0,1fr)}}
@media(max-width:900px){.message-layout{display:block}.message-inbox{position:static;max-height:none;min-height:65dvh;padding:18px 10px}.message-inbox>header h2{font-size:26px}.message-inbox>.field{font-size:16px;min-height:44px}.inbox-row{padding:15px 10px;gap:13px}.inbox-avatar,.inbox-avatar .avatar,.inbox-group-icon{width:48px;height:48px}.inbox-copy b{font-size:15px}.inbox-copy small{font-size:12px}.inbox-copy time{font-size:10px}.inbox-filters button{font-size:12px;min-height:38px;padding:8px 12px}.message-content{display:none}.message-layout.conversation-open .message-inbox{display:none}.message-layout.conversation-open .message-content{display:block}.inbox-back{display:block}.message-layout.conversation-open{position:fixed;inset:0;z-index:1300;background:#faf8fd;overscroll-behavior:none;height:100dvh;padding-top:env(safe-area-inset-top)}.message-layout.conversation-open .chat-workspace{border-radius:0;border:0;box-shadow:none;height:calc(100dvh - env(safe-area-inset-top));display:flex;flex-direction:column;position:static;max-width:none;padding:0}.message-layout.conversation-open .chat-header{flex:none;padding:12px;min-height:66px}.message-layout.conversation-open .chat-box{height:auto;flex:1;min-height:0;overscroll-behavior:contain}.message-layout.conversation-open .chat-compose{flex:none;padding:10px 10px max(10px,env(safe-area-inset-bottom));max-height:48dvh;overflow:auto}.message-layout .chat-input input{font-size:16px}.message-layout .chat-message .bubble{max-width:88%}.message-layout .chat-online-avatars{display:none}.message-layout .chat-compose-foot{font-size:9px}.message-layout .photo-tools .btn{min-height:32px}.message-layout .chat-expand-button{padding:7px;min-width:30px}.message-layout .chat-expand-button>span:last-child{display:none}body:has(.message-layout.conversation-open){overflow:hidden}.message-inbox .inbox-people button{min-height:46px}}

.message-layout .chat-input textarea{font-size:16px;min-height:42px;max-height:140px;line-height:1.5;resize:vertical}

@media(max-width:900px){.message-layout #chatWorkspace #sendMessage textarea.field{font-size:16px}.message-layout.conversation-open{top:var(--message-top,0px);bottom:auto;height:var(--message-height,100dvh)}.message-layout.conversation-open .chat-workspace{height:calc(var(--message-height,100dvh) - env(safe-area-inset-top))}}

@media(max-width:900px){.message-layout.conversation-open .chat-workspace{min-height:0}}

.message-layout .chat-workspace{overflow:clip}
@media(max-width:900px){.message-layout.conversation-open{overflow:clip}}

/* Conversation list follows the compact dark reference; other Chot Keo areas keep their theme. */
.message-inbox{background:#1b1c23;border-color:#2d2e37;color:#f3f4fa;border-radius:14px;padding:18px 8px;box-shadow:none}
.message-inbox>header{padding:0 10px 16px;gap:10px}.message-inbox>header h2{font-size:18px;color:#f6f7fb;letter-spacing:0;line-height:1.4;margin:0}.message-inbox>header>.btn{background:#2c293b;color:#e7dcff;border:1px solid #4b405f;border-radius:50%;width:33px;height:33px;padding:0;font-size:20px;flex:none}
.message-inbox>.field{width:calc(100% - 20px);margin:0 10px;min-height:46px;padding:12px 12px 12px 36px;border:1px solid transparent;background-color:#30313b;color:#f0f2fc;border-radius:11px;font-size:13px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23b6b8ca' stroke-width='1.8'%3E%3Ccircle cx='7.5' cy='7.5' r='4.5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:12px center}.message-inbox>.field::placeholder{color:#bfc2d5}.message-inbox>.field:focus{border-color:#9e7fda;box-shadow:0 0 0 2px #9473d32b}
.inbox-filters{gap:6px;padding:14px 10px 8px;flex-wrap:wrap}.inbox-filters button{color:#c5c3d0;background:transparent;min-height:32px;border-radius:18px;padding:6px 12px;font-size:12px}.inbox-filters [aria-pressed=true]{background:#322b46;color:#fff}.inbox-filters button:hover{background:#302b3b}
.inbox-row{border-radius:0;padding:18px 10px;gap:13px;min-height:90px;border-bottom:1px solid #34343e;color:#f3f4fa}.inbox-row:hover{background:#24232e}.inbox-row.active{background:#292531;box-shadow:inset 3px 0 #9d78dd}.inbox-avatar,.inbox-avatar .avatar,.inbox-group-icon,.inbox-initials{width:50px;height:50px}.inbox-avatar{flex:none}.inbox-avatar .avatar{border-radius:50%;border:0;object-fit:cover}.inbox-group-icon,.inbox-initials{display:grid;place-items:center;border-radius:50%;background:var(--inbox-avatar-color,#6950b0);color:#fff;font-size:18px;font-weight:600}.inbox-group-icon{background:#6950b0;color:#242039}.inbox-group-icon svg{width:27px;height:27px}.inbox-avatar i{border-color:#1b1c23;background:#54bc94}
.inbox-copy{gap:9px}.inbox-copy b{font-size:14px;color:#f2f3f9;font-weight:600}.inbox-copy small{font-size:12px;color:#bbc6df;font-weight:400;line-height:1.45}.inbox-copy time{font-size:10px;color:#bdcde4}.inbox-copy em{color:#b8b0c8}.inbox-row.unread b,.inbox-row.unread .inbox-copy small{color:#fff;font-weight:650}.inbox-unread{background:#ef4a77;color:#fff;padding:3px 6px;border-radius:20px;font-size:11px;min-width:22px}.inbox-empty,.inbox-offline{color:#c3bfd0;font-size:12px;padding:15px 10px;line-height:1.7}.inbox-people{border-color:#383342;color:#f0e9fb}.inbox-people>button{background:#2c2937;color:#f1ecf9}.inbox-people>button:hover{background:#373044}
.messaging-error{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.messaging-error>span{flex:1 1 200px}.messaging-error>small{display:block;width:100%;font-size:10px;letter-spacing:.2px}.message-inbox .messaging-error{margin:12px 8px 0;background:#352530;color:#ffd6e0;border:1px solid #6a4054}.message-inbox .messaging-error button{background:#472e3f;color:#ffe0ec;border-color:#98627e;margin:0}.message-inbox .messaging-error small{color:#e5b6cd}
@media(max-width:900px){.message-inbox{padding:16px 4px;min-height:65dvh;border-radius:12px}.message-inbox>header h2{font-size:19px}.message-inbox>.field{font-size:16px;min-height:48px}.inbox-row{min-height:92px;padding:18px 10px}.inbox-avatar,.inbox-avatar .avatar,.inbox-group-icon,.inbox-initials{width:52px;height:52px}.inbox-copy b{font-size:15px}.inbox-copy small{font-size:13px}.inbox-filters{gap:2px;padding-left:6px;padding-right:6px}.inbox-filters button{padding:7px 10px;font-size:12px}.inbox-copy time{font-size:10px}}

.inbox-filters{flex-wrap:nowrap;overflow-x:auto;gap:4px;scrollbar-width:thin}.inbox-filters button{flex-shrink:0;padding:6px 8px;font-size:11px}
@media(max-width:900px){.inbox-filters button{font-size:12px;padding:7px 8px}}
