/*
 * Synchra local Element Web polish.
 *
 * Element shows red authenticity shields for encrypted bridge events whose
 * Matrix sender differs from the appservice device owner. In this single-user
 * bridge setup that warning is visual noise, so hide only the shield UI rather
 * than altering Matrix events or bridge data.
 */
.mx_EventTile_e2eIcon,
.mx_EventTile_e2eIcon_critical,
.mx_EventTile_e2eIcon_warning,
.mx_EventTile_e2eIcon_normal,
.mx_EventTile_e2eIcon_unknown,
.mx_EventTile_e2eIcon_verified,
.mx_EventTile[data-synchra-hide-e2e="true"] [class*="e2eIcon"],
.mx_EventTile[data-synchra-hide-e2e="true"] [aria-label*="sender of the event" i],
.mx_EventTile[data-synchra-hide-e2e="true"] [title*="sender of the event" i] {
  display: none !important;
}

.mx_EventTile[data-synchra-hidden-bridge-bot="true"],
.mx_RoomMemberList [data-synchra-hidden-bridge-bot="true"],
.mx_MemberList [data-synchra-hidden-bridge-bot="true"] {
  display: none !important;
}

/* Bridge aliases can leave a bot-name gutter on otherwise useful messages. */
.mx_EventTile[data-synchra-own-remote="true"] .mx_EventTile_senderDetails,
.mx_EventTile[data-synchra-own-remote="true"] .mx_SenderProfile_name {
  display: none !important;
}

.mx_EventTile[data-layout="bubble"][data-synchra-own-remote="true"] {
  align-self: flex-end !important;
  margin-left: auto !important;
}
