.conversation-item {
  overflow: hidden;
  touch-action: pan-y;
}
.conversation-item > .contact-avatar,
.conversation-item > .conversation-info {
  transform: translateX(var(--swipe-offset, 0px));
  transition: transform 0.15s ease-out;
}
.chat-row-flags {
  margin-right: 5px;
  color: var(--muted);
  font-size: 11px;
}
.swipe-actions {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: 152px;
  transform: translateX(calc(152px + var(--swipe-offset, 0px)));
  transition: transform 0.15s ease-out;
  z-index: 2;
}
.swipe-actions > span {
  width: 76px;
  background: #45535b;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.swipe-actions > [data-swipe-archive] {
  background: #00a884;
  color: #061f1a;
}
.swipe-actions small {
  font-size: 13px;
}
.archive-entry {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--accent);
  display: flex;
  justify-content: space-between;
  padding: 12px 25px;
  text-align: left;
}
.archive-entry[hidden] {
  display: none;
}
.chat-context-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.chat-context-menu {
  position: absolute;
  width: 270px;
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  background: #233138;
  color: #e9edef;
  border: 1px solid #3b4a52;
  border-radius: 12px;
  padding: 7px;
  box-shadow: 0 12px 42px #0007;
}
.chat-context-menu > button,
.chat-context-menu > a {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border: none;
  border-radius: 5px;
  background: transparent;
  text-align: left;
  color: inherit;
  font-size: 14px;
  text-decoration: none;
}
.chat-context-menu > button:hover,
.chat-context-menu > button:focus-visible {
  background: #34444c;
}
.chat-context-menu > a:hover,
.chat-context-menu > a:focus-visible {
  background: #34444c;
}
.chat-context-menu > button > span,
.chat-context-menu > a > span {
  width: 18px;
  text-align: center;
  font-size: 19px;
}
.chat-context-menu > button > small {
  margin-left: auto;
  color: #aebac1;
  font-size: 10px;
}
.chat-context-menu > button.destructive {
  color: #ff8b99;
}
.chat-context-menu > button[data-chat-action="block"],
.chat-context-menu > button[data-chat-action="unblock"] {
  border-top: 1px solid #3b4a52;
  margin-top: 5px;
}
.chat-menu-heading {
  display: none;
}
.chat-action-options {
  display: grid;
  gap: 12px;
}
@media (max-width: 760px) {
  .chat-context-overlay {
    background: #0007;
  }
  .chat-context-menu {
    width: calc(100% - 16px);
    left: 8px;
    bottom: 8px;
    padding: 10px 12px max(12px, env(safe-area-inset-bottom));
    max-height: calc(100dvh - 24px);
    border-radius: 22px;
  }
  .chat-context-menu > button,
  .chat-context-menu > a {
    padding: 13px 10px;
    min-height: 46px;
    font-size: 16px;
  }
  .chat-menu-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 14px;
    gap: 10px;
  }
  .chat-menu-heading strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .chat-menu-heading button {
    border: 0;
    border-radius: 50%;
    background: #38454b;
    color: white;
    width: 34px;
    height: 34px;
    font-size: 24px;
    flex-shrink: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .conversation-item > .contact-avatar,
  .conversation-item > .conversation-info,
  .swipe-actions {
    transition: none;
  }
}
