/* Новые карточки занимают сетку справа налево, текст остаётся обычным. */
#tiles {
  direction: rtl;
}
#tiles > .tile {
  direction: ltr;
}
.avatar,
.initial,
.server-icon {
  line-height: 1;
  text-align: center;
  flex-shrink: 0;
}
.avatar {
  display: inline-grid;
  place-items: center;
}
#call-controls .device-chevron {
  border: 0;
  box-shadow: none;
  outline: none;
  background: #41313f;
  border-radius: 7px;
  top: -5px;
  right: -3px;
  width: 22px;
  height: 20px;
  min-width: 22px;
  padding: 4px;
}
#call-controls .device-chevron:hover {
  background: #77384f;
}
#call-controls .device-chevron:focus-visible {
  outline: 2px solid #d14770;
  outline-offset: 2px;
}
#participant-volume {
  position: fixed;
  margin: 0;
  width: 264px;
  max-width: calc(100vw - 16px);
  padding: 18px;
  border: 1px solid #604152;
  border-radius: 12px;
  background: #251e2a;
  color: #fff;
}
#participant-volume input {
  width: 100%;
}
.channel-image {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  margin-right: 8px;
}
.channel small {
  margin-left: auto;
  font-size: 10px;
  color: #c1aabd;
}
#pinned-message {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
  border-left: 3px solid #da3b68;
  border-radius: 6px;
  background: #302331;
  margin-bottom: 8px;
}
#pinned-message[hidden] {
  display: none;
}
.pin-preview {
  min-width: 0;
  flex: 1;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  text-align: left;
  font-size: 12px;
}
.pin-preview span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pin-preview img {
  width: 48px;
  height: 38px;
  object-fit: cover;
  border-radius: 4px;
}
.pin-highlight {
  background: #673348;
}
.message-pin {
  background: transparent;
  font-size: 10px;
  color: #c5a5b4;
  padding: 3px;
  margin-left: 5px;
}
.sticker-message {
  background: none;
  padding: 0;
  display: block;
}
#packs-dialog {
  width: min(640px, 94vw);
}
#packs-dialog .sticker-grid img {
  width: 100%;
  height: 90px;
  object-fit: contain;
}
#pack-list section {
  border-top: 1px solid #483443;
  margin-top: 16px;
  padding-top: 10px;
}
#recovery-dialog label {
  display: block;
  margin: 12px 0;
}
#recovery-dialog input,
#recovery-dialog select {
  width: 100%;
}
.workspace.chat-open #call-chat {
  margin-top: 10px;
}
