.sidebar, .room-list, #recent-room-list, .conversation-row, .room-item, .room-copy { min-width: 0; }
.sidebar, .room-list { overflow-x: hidden; }
.room-copy { flex: 1; width: 0; }
.room-copy b, .room-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-card[data-conversation-id] p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.bubble p { margin: 0 0 8px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble .reply-heading { font-weight: 700; margin: 12px 0 6px; }
.bubble .reply-heading:first-child { margin-top: 0; }
.bubble ul, .bubble ol { padding-left: 22px; margin: 6px 0; }
.bubble pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #eef1ef; padding: 10px; border-radius: 7px; }
.bubble code { font-family: Consolas, monospace; font-size: .94em; }
.composer-icon { font-size: 23px; line-height: 1; width: 38px; height: 34px; display: inline-flex; align-items: center; justify-content: center; }
.composer { position: relative; }
.emoji-palette { position: absolute; bottom: 54px; left: 12px; width: min(340px,calc(100% - 24px)); max-height: 260px; overflow-y: auto;
  display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 4px; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 25px #0002; z-index: 50; }
.emoji-palette button { background: transparent; padding: 5px 0; font-size: 23px; }
.emoji-palette button:hover { background: var(--light); }
.person-action-row { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
.person-action-row button { min-width: 0; padding: 10px 5px; white-space: nowrap; }
.group-identity { display: flex; align-items: center; gap: 12px; padding: 12px 0 20px; }
.group-identity .avatar { width: 58px; height: 58px; }
.group-identity b { display: block; overflow-wrap: anywhere; }
.group-identity small { display: block; margin-top: 7px; color: var(--muted); }
@media(max-width:650px) { .person-action-row { gap: 4px; }.person-action-row button { font-size: 11px; padding: 10px 2px; } }
