/* Preserve the chat client's layout and security prompts. Use its pinned bubble tokens. */
.mx_MatrixChat, .mx_AuthPage { font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
.mx_MatrixChat .mx_LeftPanel { border-inline-end: 1px solid color-mix(in srgb, currentColor 11%, transparent); }
.mx_MatrixChat .mx_EventTile {
    --event-tile-bubble-corner-radius: 15px;
    --event-tile-bubble-self-background: color-mix(in srgb, #40ad78 21%, var(--cpd-color-bg-canvas-default, Canvas));
    --event-tile-bubble-other-background: var(--cpd-color-bg-subtle-secondary, #ecf0ed);
    --event-tile-bubble-line-max-width: 74%;
}
.mx_MatrixChat .mx_RoomView_messagePanel {
    background-image: radial-gradient(color-mix(in srgb, currentColor 5%, transparent) .8px, transparent .8px);
    background-size: 18px 18px;
}
.mx_MessageComposer { padding-block-end: max(6px, env(safe-area-inset-bottom)); }
@media (max-width: 640px) {
    .mx_MatrixChat .mx_EventTile { --event-tile-bubble-line-max-width: 86%; }
}
