.chat-app { display: flex; height: 100%; }
.chat-contact-list { width: 120px; flex-shrink: 0; border-right: 1px solid #000; overflow-y: auto; }
.chat-contact-item {
  padding: 6px 8px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid rgba(0,0,0,0.3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-contact-item:hover { background: rgba(255,255,255,0.08); }
.chat-contact-item.active { background: var(--highlight); color: var(--text-bright); }
.chat-contact-item .unread { background: var(--danger); color: #fff; font-size: 10px; padding: 1px 4px; border-radius: 2px; margin-left: 4px; }
.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.chat-message { max-width: 80%; padding: 4px 8px; font-size: 13px; line-height: 1.5; }
.chat-message.self { align-self: flex-end; background: var(--highlight); color: var(--text-bright); }
.chat-message.other { align-self: flex-start; background: #1a1a1a; border: 1px solid #333; }
.chat-message .msg-time { font-size: 10px; color: var(--text-dim); }
.chat-input-area { display: flex; gap: 4px; padding: 6px; border-top: 1px solid #000; }
.chat-input-area input { flex: 1; font-size: 13px; }
.chat-input-area button { flex-shrink: 0; }
