.klb-chat .klb-chat-list li { min-width: 0; }
.klb-chat .klb-chat-list li[data-mid]:focus {
    outline: 2px solid var(--klb-link); outline-offset: 3px; border-radius: 4px;
}
.klb-chat .klb-chat-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0 5px; max-width: 100%;
}
.klb-chat .is-mine .klb-chat-meta { justify-content: flex-end; }
.klb-chat .klb-chat-panel .klb-chat-reply {
    padding: 3px 4px; min-height: 24px; border-radius: 3px;
    color: var(--klb-link); font-size: 11px;
}
.klb-chat .klb-chat-panel .klb-chat-reply:hover { text-decoration: underline; }
.klb-chat .klb-chat-panel .klb-chat-quote, .klb-chat .klb-chat-reply-draft {
    box-sizing: border-box; min-width: 0; max-width: 100%; padding: 5px 9px;
    border: 0; border-inline-start: 3px solid #77bbb5; border-radius: 3px;
    background: #263536; color: #e7efee; font-size: 12px; line-height: 1.35; text-align: start;
}
.klb-chat .klb-chat-panel .klb-chat-quote:hover { background: #304343; }
.klb-chat .klb-chat-quote strong, .klb-chat .klb-chat-reply-draft strong {
    display: block; color: #9ed4ce; font-size: 11px; font-weight: 600;
}
.klb-chat .klb-chat-quote span {
    display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    white-space: normal; overflow-wrap: anywhere;
}
.klb-chat .klb-chat-reply-draft {
    display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0 0 4px; padding: 2px 1px 2px 8px;
}
.klb-chat .klb-chat-reply-draft div { min-width: 0; }
.klb-chat .klb-chat-reply-draft span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.klb-chat .klb-chat-panel .klb-chat-dismiss {
    display: inline-flex; flex: none; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 3px; color: #d7e7e5;
}
.klb-chat .klb-chat-panel .klb-chat-dismiss:hover { background: #344746; }
.klb-chat .klb-chat-original {
    flex: 0 1 auto; min-height: 0; max-height: 30%; overflow: auto; overscroll-behavior: contain;
    padding: 0 10px 6px; background: #21292a; border-bottom: 1px solid var(--klb-line);
}
.klb-chat .klb-chat-original-head {
    display: flex; position: sticky; top: 0; align-items: center; justify-content: space-between; gap: 5px;
    min-height: 32px; background: #21292a; color: #cad8d7; font-size: 12px;
}
.klb-chat .klb-chat-original [role="status"] { font-size: 12px; }
.klb-chat.is-verifying .klb-chat-form > :not(.klb-chat-status):not([data-el="retry"]) { visibility: hidden; }
@media (pointer: coarse) {
    .klb-chat .klb-chat-panel .klb-chat-reply { min-height: 32px; padding-inline: 7px; }
    .klb-chat .klb-chat-panel .klb-chat-dismiss { width: 36px; height: 36px; }
}
