/*
 * One look for messages in direct chats, groups and channels, as in Telegram: the time (without seconds)
 * and, on your own messages, the ticks sit inside the bubble at the bottom right. In groups the author's
 * name stays above other people's messages only.
 */

/* Direct chats */
.bubble:not(.bubble--gc-layout) > .meta {
  display: flex !important;
  justify-content: flex-end !important;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1;
}

.bubble:not(.bubble--gc-layout) > .meta .meta-main {
  font-size: 11px;
  color: var(--muted, rgba(170, 180, 200, 0.8));
}

/* Groups: the time and ticks inside the bubble; your own messages need no «Вы» above them. */
.gc-message-bubble .msg-stamp {
  display: flex !important;
  justify-content: flex-end !important;
  align-self: stretch;
  width: 100%;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1;
  color: var(--muted, rgba(170, 180, 200, 0.8));
}

/* A track in a message: the card sits inside the bubble with a small margin, and the time stays inside
   the bubble under it on the right, never in a cut-off strip. */
.gc-message-bubble:has(.bubble-audio) {
  padding: 6px 6px 5px !important;
}

.gc-message-bubble:has(.bubble-audio) .msg-stamp {
  box-sizing: border-box;
  padding: 0 6px;
  margin-top: 4px;
}

.bubble:not(.bubble--gc-layout):has(.bubble-audio) > .meta {
  padding: 0 4px;
}

.gc-message-bubble .msg-stamp .gc-message-time {
  font-size: 11px;
  color: inherit;
}

.bubble--gc-layout.out .gc-message-header,
.bubble--gc-layout.out .gc-message-avatar {
  display: none;
}

.msg-stamp__edited {
  margin-right: 4px;
  font-style: italic;
  opacity: 0.85;
}

/* On the blue bubble of your own message the time and ticks are light, so they never blend into it:
   sent and delivered are soft white, read is bright. */
.bubble.out > .meta .meta-main,
.bubble.out .msg-stamp {
  color: rgba(255, 255, 255, 0.78);
}

.bubble.out .msg-receipt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.18em;
  padding-right: 0.18em;
}

.bubble.out .msg-receipt--sent,
.bubble.out .msg-receipt--delivered {
  color: rgba(255, 255, 255, 0.72) !important;
}

.bubble.out .msg-receipt--read {
  color: #8ff6ff !important;
  text-shadow: 0 0 6px rgba(143, 246, 255, 0.55);
}

/* Channels, as in Telegram: the picture edge to edge, the views and time at the end of the text's last line,
   reactions under the text, and the comments as a thin row across the bottom of the card. */
.channel-post {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
  /* Clipping the corners must not let the message list squeeze the card. */
  flex-shrink: 0;
  max-width: min(560px, 100%);
}

.channel-post > .channel-post-body {
  padding: 0;
}

.channel-post .channel-post-media-slot {
  margin: 0 !important;
}

.channel-post .channel-post-media-slot img,
.channel-post .channel-post-media-slot video,
.channel-post .channel-post-media-slot .bubble-media-grid,
.channel-post .channel-post-media-slot [class*="media"] {
  border-radius: 0 !important;
  max-width: 100% !important;
}

.channel-post .channel-post-text {
  padding: 10px 14px 6px;
}

.channel-post .channel-post-poll-host,
.channel-post .channel-post-giveaway-host,
.channel-post .channel-giveaway-result-card {
  /* The card sits inside the post with 14px on each side and never runs past its right edge. */
  box-sizing: border-box;
  width: calc(100% - 28px) !important;
  max-width: none !important;
  margin: 10px 14px 6px;
}

/* A tap on a post (or a press to react) keeps its own solid look: only a thin ring shows it is chosen,
   the card does not turn see-through or jump. */
.channel-post.channel-post--selected {
  background: var(--bubble-in);
  border-color: var(--border);
  box-shadow: 0 0 0 2px color-mix(in srgb, #7ea2ff 35%, transparent);
  transform: none;
}

/* Views and time sit on the text's last line when it has room, otherwise just under it, on the right. */
.ch-post-stamp {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  /* Sits on the bottom of the text's last line (as in Telegram), not at the top of it. */
  margin: var(--ch-stamp-drop, 4px) 0 0 12px;
  font-size: 11px;
  line-height: 1;
  color: var(--muted, rgba(170, 180, 200, 0.8));
  white-space: nowrap;
}

.ch-post-stamp .ch-views-icon {
  width: 14px;
  height: 14px;
}

.ch-post-stamp .channel-post-head {
  /* The old post header's bottom margin lifted the time above the views. */
  margin: 0 0 0 4px;
  line-height: 1;
}

.ch-post-stamp .channel-post-views-count {
  line-height: 1;
}

/* Under the text one row: reactions on the left, views and time on the right edge of the post. */
.channel-post > .channel-post-body {
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
}

.channel-post > .ch-post-footer {
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 10px;
}

.channel-post > .ch-post-footer > .reaction-row {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  margin: 0;
}

.channel-post > .ch-post-footer > .ch-post-stamp {
  flex: 0 0 auto;
  float: none;
  margin: 0 0 0 auto;
}

.ch-post-stamp-row {
  display: flex;
  justify-content: flex-end;
  padding: 6px 14px 4px;
}

.ch-post-stamp-row .ch-post-stamp {
  float: none;
  margin: 0;
}

.channel-post > .reaction-row {
  padding: 2px 14px 10px;
}

.channel-post > .reaction-row:empty {
  display: none;
}

/* The comments row: our chat picture, the count, an arrow; the whole row opens the comments. */
.channel-post .ch-comments-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 9px 14px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
  background: transparent;
  color: var(--accent, #7aa2ff);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.channel-post .ch-comments-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ch-comments-row__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.ch-comments-row__label {
  flex: 1 1 auto;
}

.ch-comments-row__chevron {
  font-size: 20px;
  line-height: 1;
  opacity: 0.7;
}

/* «Изменить» and «Переслать» appear over the post's top right corner when the pointer is on it;
   on a phone they are in the long-press menu. */
.channel-post .channel-post-tools {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.channel-post:hover .channel-post-tools,
.channel-post:focus-within .channel-post-tools {
  opacity: 1;
  pointer-events: auto;
}

.channel-post .channel-post-tools button {
  background: rgba(12, 16, 28, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 920px), (hover: none) {
  .channel-post .channel-post-tools {
    display: none;
  }
}

/* On a touch screen a long press opens the message menu (with «Копировать»), so it must not select
   the page's text as well. Text fields stay selectable. */
@media (hover: none) and (pointer: coarse) {
  body {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }

  body input,
  body textarea,
  body [contenteditable="true"],
  body [contenteditable=""] {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
  }
}

/* A reply quote never makes the bubble wider than its own text needs (as in Telegram): a short answer
   to a long message stays a short bubble, and the quoted line is cut with «…». It keeps a sensible
   minimum width so the author's name and a few words still show. */
.bubble-context--reply {
  contain: inline-size;
  align-self: stretch !important;
  width: auto !important;
  min-width: 200px;
}

/* A picture in a post fills the card from edge to edge whatever its shape (a square logo no longer
   leaves an empty strip on the right). */
.channel-post .channel-post-media-slot,
.channel-post .channel-post-media-slot .bubble-media-wrap,
.channel-post .channel-post-media-slot .bubble-media--mode-stack {
  width: 100% !important;
  max-width: 100% !important;
  align-self: stretch !important;
}

.channel-post .channel-post-media-slot img:not(.bubble-audio__cover-img),
.channel-post .channel-post-media-slot video {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: 640px;
  object-fit: cover;
}

/* Computer: «Медиафайлы» is a large window, so photos are comfortable to browse. */
@media (min-width: 921px) {
  #profileMediaViewerModal .modal.profile-media-viewer-modal {
    width: min(960px, 92vw);
    max-width: min(960px, 92vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
  }

  #profileMediaViewerModal .profile-media-viewer__content {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 72vh;
    overflow-y: auto;
  }
}

/* «⋮» in the photo and video viewer and its menu; the old «Скачать» link moved into the menu. */
.media-lightbox .media-lightbox-download {
  display: none !important;
}

.media-lightbox-more {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: calc(max(12px, env(safe-area-inset-right)) + 52px);
  z-index: 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.media-lightbox-more:hover,
.media-lightbox-more[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.22);
}

.olone-media-menu {
  position: fixed;
  top: calc(max(12px, env(safe-area-inset-top)) + 52px);
  right: max(12px, env(safe-area-inset-right));
  z-index: 4;
  min-width: 220px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(20, 24, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: olone-media-menu-in 0.14s ease-out;
}

@keyframes olone-media-menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.olone-media-menu__item {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #e8ecf5;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.olone-media-menu__item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.olone-media-menu__item--danger {
  color: #ff6b7a;
}

.olone-media-menu-flash {
  animation: olone-media-menu-flash 1.6s ease;
}

@keyframes olone-media-menu-flash {
  0%,
  60% {
    box-shadow: 0 0 0 3px rgba(122, 162, 255, 0.55);
  }
  100% {
    box-shadow: none;
  }
}

/* A direct chat's header has no status line, except «печатает…» while the other person types. */
.olone-chat-header[data-olone-header-mode="dm"] .olone-chat-header__subtitle.olone-chat-header__subtitle--typing:not(.hidden) {
  display: block !important;
  font-size: 12px;
  line-height: 1.2;
  animation: olone-typing-pulse 1.4s ease-in-out infinite;
}

@keyframes olone-typing-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

/* The small menu a service line opens on right click or a long press («Удалить»). */
.olone-service-menu {
  position: fixed;
  z-index: 5000;
  min-width: 160px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(20, 24, 36, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: olone-media-menu-in 0.12s ease-out;
}

.olone-service-menu__item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e8ecf5;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.olone-service-menu__item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.olone-service-menu__item--danger {
  color: #ff6b7a;
}

/* When «⋮» shows on a chat in the list, the preview ends before it instead of running underneath. */
.dialog-item:hover .dlg-preview,
.dialog-item:focus-within .dlg-preview,
.dialog-item.rail-comm-menu-open .dlg-preview,
.dialog-item:hover .dialog-peer-line,
.dialog-item:focus-within .dialog-peer-line,
.dialog-item.rail-comm-menu-open .dialog-peer-line {
  box-sizing: border-box;
  padding-right: 46px;
}

/* Jumping to a post (pinned post, the giveaway a results post links to): only a soft glowing ring,
   the post keeps its own solid background instead of turning see-through for a moment. */
.channel-post.message-highlight {
  animation: olone-post-jump-ring 1.8s ease;
}

@keyframes olone-post-jump-ring {
  0%,
  45% {
    box-shadow: 0 0 0 2px rgba(138, 180, 255, 0.75), 0 0 22px rgba(110, 155, 255, 0.35);
  }
  100% {
    box-shadow: 0 0 0 2px rgba(138, 180, 255, 0), 0 0 22px rgba(110, 155, 255, 0);
  }
}

/* No right to write here (a read-only forum topic): no red banner and no message box, just a quiet dark
   line in their place, in the look of the rest of the chat. */
.composer:has(#gcSlowModeBanner.is-readonly:not(.hidden)) .composer-row,
.composer:has(#gcSlowModeBanner.is-readonly:not(.hidden)) #emojiPicker {
  display: none !important;
}

#gcSlowModeBanner.gc-slow-mode-banner.is-readonly:not(.hidden) {
  /* Shaped like the message box itself (as in Discord), just inactive, with grey words on the left. */
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0 16px;
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 14px;
  background: rgba(10, 14, 24, 0.78) !important;
  color: rgba(160, 170, 190, 0.7) !important;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  box-shadow: none !important;
  cursor: default;
  user-select: none;
}

/* The question before a received document or archive is saved, and a blocked dangerous file. */
.olone-file-warn {
  position: fixed;
  inset: 0;
  z-index: 60000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 7, 16, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.olone-file-warn__box {
  width: min(420px, 100%);
  padding: 20px;
  border-radius: 18px;
  background: rgba(18, 23, 38, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  color: #e8ecf5;
}

.olone-file-warn__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.olone-file-warn__file {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  word-break: break-all;
}

.olone-file-warn__text {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(200, 208, 226, 0.85);
}

.olone-file-warn__skip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(200, 208, 226, 0.85);
  cursor: pointer;
}

.olone-file-warn__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.bubble-file-card__blocked {
  font-size: 12px;
  color: #ff8a96;
}

/* The chat list: rounded rows with small gaps instead of half-width divider lines; pinned rows share the
   shape; no person icon before people's names; a dot only for people who are online. */
.dialogs.dialogs-rail .dialog-item {
  margin: 2px 6px;
  border-radius: 12px;
}

.dialogs.dialogs-rail .dialog-item::after {
  display: none !important;
}

/* No little type icon before a name in any tab: the avatar already says what it is. */
.dialogs.dialogs-rail .all-rail-type-icon,
.dialogs.dialogs-rail .friend-online-dot.is-offline {
  display: none !important;
}

/* The name takes the free room and ends with «…»; the time keeps its place on the right. */
.dialogs.dialogs-rail .dialog-peer-line > strong,
.dialogs.dialogs-rail .dialog-peer-line > .channel-rail-official-title,
.dialogs.dialogs-rail .dialog-peer-line > [data-all-rail-title-plain],
.dialogs.dialogs-rail .dialog-peer-line > [data-channels-rail-title-plain] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dialogs.dialogs-rail .dialog-item-body {
  min-width: 0;
}

/* «Все / Чаты / Каналы»: the same space on every side, no extra strip underneath. */
.profile-tabs.dialogs-filter-pills {
  padding: 3px !important;
}

/* The time of the last activity, right of the chat's name. */
.dialogs.dialogs-rail .dialog-peer-line {
  display: flex;
  align-items: center;
  min-width: 0;
}

.dialogs.dialogs-rail .dialog-peer-line > .dlg-time {
  margin-left: auto;
  padding-left: 8px;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted, rgba(160, 170, 190, 0.8));
  white-space: nowrap;
}

/* While «⋮» shows, the time gives it the place. */
.dialogs.dialogs-rail .dialog-item:hover .dlg-time,
.dialogs.dialogs-rail .dialog-item.rail-comm-menu-open .dlg-time {
  visibility: hidden;
}

/* Pinned chats read as one group: a little more air after the last of them. */
.dialogs.dialogs-rail .dialog-item--pinned:has(+ .dialog-item:not(.dialog-item--pinned)) {
  margin-bottom: 10px;
}

/* The «в сети» dot: a bit bigger, with a ring in the list's colour so it does not melt into the photo. */
.dialogs.dialogs-rail .friend-online-dot:not(.is-offline) {
  width: 11px;
  height: 11px;
  box-shadow: 0 0 0 2.5px #0f1422;
}

.dialogs.dialogs-rail .dialog-item {
  padding-right: 10px;
}

/* «@имя» in a message: a link in the accent colour, as other links. */
a.msg-mention {
  color: var(--accent, #7aa2ff);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

a.msg-mention:hover {
  text-decoration: underline;
}

.bubble.out a.msg-mention {
  color: #d6e4ff;
}

/* Deleting a channel or a chat in its settings: type the name, then the red button works. */
.olone-danger-form {
  display: grid;
  gap: 10px;
  width: min(100%, 420px);
  margin-top: 16px;
  text-align: left;
}

.olone-danger-form__label {
  font-size: 13px;
  color: var(--muted, #aab4c8);
}

.olone-danger-form__input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(8, 11, 20, 0.6);
  color: inherit;
  font: inherit;
}

.olone-danger-form__btn {
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #d9364a;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.olone-danger-form__btn:disabled {
  background: rgba(217, 54, 74, 0.28);
  color: rgba(255, 255, 255, 0.5);
  cursor: default;
}

.olone-danger-zone {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(217, 54, 74, 0.35);
  border-radius: 14px;
  background: rgba(217, 54, 74, 0.06);
}

.olone-danger-zone__title {
  font-weight: 700;
  font-size: 15px;
  color: #ff8a96;
}

.olone-danger-zone__text {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted, #aab4c8);
}

/* The deletion form sits in a block styled as an empty placeholder, which ignores clicks; the form takes them. */
.gcs-empty:has(.olone-danger-form),
.olone-danger-form,
.olone-danger-form * {
  pointer-events: auto !important;
  user-select: text;
}

/* A closed chat opened from an invite (2026-11-12): a calm note in the messages area, «Вступить» in the bar. */
.gc-invited-private-note {
  margin: auto;
  max-width: 340px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.gc-invited-private-note__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #ffc58a;
  background: rgba(255, 190, 120, 0.08);
  border: 1px solid rgba(255, 190, 120, 0.25);
}
.gc-invited-private-note__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #e6eaf0);
}
.gc-invited-private-note__text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted, rgba(156, 166, 180, 0.88));
}
.gc-invited-private-note__meta {
  font-size: 12px;
  color: var(--muted, rgba(156, 166, 180, 0.88));
}
#messages:has(> .gc-invited-private-note) {
  display: flex;
  flex-direction: column;
}

/* Preview of a chat I have not joined: real bubbles, but nothing to press on them. */
#messages.external-chat-preview-active .bubble {
  pointer-events: none;
}
#messages.external-chat-preview-active .reaction-row {
  display: none !important;
}

/* ===== Long names (2026-11-12): never push buttons out, cut with «…» ===== */
/* «Найти пользователя»: a long nickname no longer stretches the card past the window. */
.modal--friend-search,
.modal--friend-search > *,
.friend-search-modal-body,
.friend-search-modal-body > *,
.friend-search-modal-card-wrap,
#friendSearchCard,
#friendSearchCard .peer-search-card-row {
  min-width: 0;
  max-width: 100%;
}
.friend-search-modal-card-wrap {
  overflow-x: hidden;
}
.peer-search-card-name {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.peer-search-card-name__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.peer-search-card-name > :not(.peer-search-card-name__text) {
  flex: 0 0 auto;
}
/* The buttons go under the name, full width, so the name keeps its room (the window is narrow everywhere). */
@media (min-width: 0px) {
  #friendSearchCard .peer-search-card-row {
    flex-wrap: wrap;
  }
  #friendSearchCard .peer-search-card-hit {
    flex: 1 1 100%;
  }
  #friendSearchCard .peer-search-card-actions:not(:empty) {
    flex: 1 1 100%;
  }
  #friendSearchCard .peer-search-card-actions > button {
    flex: 1 1 0;
  }
}
/* A long chat or channel title in the header is cut with «…» instead of widening the chat column. */
.chat-main {
  grid-template-columns: minmax(0, 1fr);
}
.chat-main > * {
  min-width: 0;
}
#chatHeader .olone-chat-header__title {
  min-width: 0;
  max-width: 100%;
}

/* Profile window: a long name is cut with an ellipsis instead of running past both edges. */
#profileNitroName.profile-modal__nickname {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
  padding-left: 12px;
  padding-right: 12px;
}
/* A message author with a long name stays on one line. */
.gc-message-header {
  min-width: 0;
  max-width: 100%;
}
.gc-message-author {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  vertical-align: bottom;
}
.gc-message-author__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gc-message-author > :not(.gc-message-author__name) {
  flex: 0 0 auto;
}

/* Unread count under the time, as in Telegram: the name keeps its width, the count is easy to spot. */
.dialogs.dialogs-rail .dialog-item {
  position: relative;
}
.dialogs.dialogs-rail .dialog-item > .unread-badge-container {
  position: absolute;
  right: 10px;
  bottom: 8px;
  margin: 0;
  z-index: 2;
}
.dialogs.dialogs-rail .dialog-item:has(> .unread-badge-container .all-rail-unread-badge) .dlg-preview {
  padding-right: 30px;
}
.dialogs.dialogs-rail .dialog-item .all-rail-unread-badge {
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 6px;
}

/* «@» suggestions above the message box: the chat's members, narrowed by each typed letter. */
.olone-mention-suggest {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(100% + 6px);
  max-height: 264px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  background: rgba(17, 22, 36, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 40;
}
.olone-mention-suggest.hidden {
  display: none;
}
.olone-mention-suggest__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: #e6eaf0;
}
.olone-mention-suggest__item:hover,
.olone-mention-suggest__item.is-selected {
  background: rgba(122, 162, 255, 0.16);
}
.olone-mention-suggest__avatar {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #cfe0ff;
  background: linear-gradient(135deg, rgba(91, 124, 255, 0.45), rgba(122, 92, 255, 0.45));
}
.olone-mention-suggest__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.olone-mention-suggest__id {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 12px;
  color: rgba(156, 166, 180, 0.88);
}
[data-theme="light"] .olone-mention-suggest {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
}
[data-theme="light"] .olone-mention-suggest__item {
  color: #111827;
}

/* ===== Chat and channel tools (assets/olone-chat-tools.js) ===== */
.oct-hidden { display: none !important; }
/* The settings sheets are flex columns: our blocks keep their height instead of being squeezed. */
.oct-card, .oct-moderation, .oct-invites, .oct-bulk-toggle, .oct-bulk-bar { flex-shrink: 0; }
.oct-moderation, .oct-invites { display: grid; gap: 12px; margin-bottom: 14px; }
.oct-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(132, 158, 203, 0.12);
  color: rgba(226, 234, 248, 0.94);
  min-width: 0;
}
.oct-newcomer, .oct-muted-block, .oct-history { margin-top: 14px; }
.oct-muted-block { margin: 0 0 14px; }
.oct-card__head { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.oct-card__head > div { min-width: 0; }
.oct-card__grow { flex: 1 1 auto; }
.oct-card__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 19px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(120, 160, 255, 0.22);
}
.oct-card__title { margin: 0 0 3px; font-size: 15px; font-weight: 700; }
.oct-card__desc { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(185, 198, 222, 0.78); }
.oct-lead { margin-bottom: 12px; }
.oct-muted { color: rgba(185, 198, 222, 0.62); font-size: 13px; }
.oct-empty { padding: 26px; text-align: center; color: rgba(185, 198, 222, 0.62); border: 1px dashed rgba(132, 158, 203, 0.2); border-radius: 16px; }
.oct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.oct-chip {
  padding: 8px 13px;
  border-radius: 11px;
  border: 1px solid rgba(132, 158, 203, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(226, 234, 248, 0.92);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.oct-chip:hover { border-color: rgba(120, 160, 255, 0.38); background: rgba(99, 102, 241, 0.12); }
.oct-chip.is-active {
  border-color: rgba(120, 160, 255, 0.55);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.24), rgba(99, 102, 241, 0.24));
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.22);
}
.oct-field { display: grid; gap: 7px; min-width: 0; }
.oct-field__label { font-size: 13px; font-weight: 650; color: rgba(205, 216, 236, 0.9); }
.oct-field input, .oct-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(132, 158, 203, 0.2);
  background: rgba(8, 14, 30, 0.55);
  color: inherit;
  font: inherit;
  font-size: 14px;
  resize: vertical;
}
.oct-field input:focus, .oct-field textarea:focus { outline: none; border-color: rgba(120, 160, 255, 0.6); }
.oct-row-actions { display: flex; justify-content: flex-end; }
.oct-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(132, 158, 203, 0.08);
  cursor: pointer;
}
.oct-line:first-child { border-top: 0; }
.oct-line > span:first-child { display: grid; gap: 2px; min-width: 0; }
.oct-line strong { font-size: 14px; font-weight: 650; }
.oct-line small { font-size: 12.5px; color: rgba(185, 198, 222, 0.72); line-height: 1.4; }
.oct-spam-body, .oct-newcomer-body { display: grid; gap: 10px; transition: opacity 0.15s ease; }
.oct-spam-body.is-off, .oct-newcomer-body.is-off { opacity: 0.45; pointer-events: none; }
.oct-list { display: grid; gap: 8px; min-width: 0; }
.oct-link, .oct-mute-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(132, 158, 203, 0.1);
}
.oct-link.is-dead { opacity: 0.62; }
.oct-link__main, .oct-mute-row__main { min-width: 0; }
.oct-link__title, .oct-mute-row__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oct-link__meta, .oct-mute-row__meta { font-size: 12.5px; color: rgba(185, 198, 222, 0.72); margin-top: 2px; overflow-wrap: anywhere; }
.oct-link__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.oct-link__who { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.oct-person { display: inline-flex; gap: 6px; align-items: baseline; padding: 5px 9px; border-radius: 9px; background: rgba(99, 102, 241, 0.12); font-size: 13px; }
.oct-person small { color: rgba(185, 198, 222, 0.7); font-size: 11.5px; }
.oct-status { flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(52, 211, 153, 0.14); color: #6ee7b7; }
.oct-status--used_up, .oct-status--expired { background: rgba(245, 158, 11, 0.14); color: #fcd34d; }
.oct-status--revoked { background: rgba(248, 113, 113, 0.14); color: #fca5a5; }
.oct-icon-btn {
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid rgba(132, 158, 203, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 234, 248, 0.94);
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.oct-icon-btn:hover { background: rgba(99, 102, 241, 0.16); border-color: rgba(120, 160, 255, 0.4); }
.oct-icon-btn:disabled { opacity: 0.45; cursor: default; }
.oct-icon-btn--danger { color: #fca5a5; border-color: rgba(248, 113, 113, 0.28); }
.oct-icon-btn--danger:hover { background: rgba(248, 113, 113, 0.14); border-color: rgba(248, 113, 113, 0.5); }
.oct-leader { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.oct-leader__place { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: rgba(99, 102, 241, 0.18); }
.oct-leader:nth-child(1) .oct-leader__place { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #1f1300; }
.oct-leader__name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oct-leader__num { font-size: 12.5px; color: rgba(185, 198, 222, 0.78); white-space: nowrap; }
.oct-leader__num b { color: #fff; font-size: 14px; }
.oct-history { padding: 0; overflow: hidden; }
.oct-history__toggle { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.oct-history__text { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.oct-history__text small { font-size: 12.5px; color: rgba(185, 198, 222, 0.72); }
.oct-chevron { font-size: 22px; color: rgba(185, 198, 222, 0.6); transition: transform 0.15s ease; }
.oct-history.is-open .oct-chevron { transform: rotate(90deg); }
.oct-history__list { padding: 0 18px 16px; }
.oct-hist-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 2px 12px; padding: 9px 0; border-top: 1px solid rgba(132, 158, 203, 0.08); font-size: 13px; }
.oct-hist-row__kind { font-weight: 700; color: rgba(165, 180, 252, 0.95); }
.oct-hist-row__what { overflow-wrap: anywhere; }
.oct-hist-row__meta { grid-column: 2; font-size: 12px; color: rgba(185, 198, 222, 0.62); }
.oct-bulk-toggle { margin: 10px 0 6px; }
.oct-selecting .group-chat-profile-member-row { cursor: pointer; transition: background 0.12s ease, box-shadow 0.12s ease; }
.oct-selecting .group-chat-profile-member-row:not(.oct-selectable) { opacity: 0.5; }
.oct-selecting .group-chat-profile-member-row.oct-selectable { position: relative; padding-left: 44px !important; }
.oct-selecting .group-chat-profile-member-row.oct-selectable::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  box-sizing: border-box;
  border-radius: 6px;
  border: 2px solid rgba(132, 158, 203, 0.5);
}
.oct-selecting .group-chat-profile-member-row.oct-selected { background: rgba(99, 102, 241, 0.14); box-shadow: inset 0 0 0 1px rgba(120, 160, 255, 0.4); }
.oct-selecting .group-chat-profile-member-row.oct-selected::before {
  border-color: #818cf8;
  background: #6366f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.oct-bulk-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(17, 24, 48, 0.96);
  border: 1px solid rgba(120, 160, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 3;
}
.oct-bulk-bar.hidden { display: none; }
.oct-bulk-bar__count { flex: 1 1 auto; font-weight: 650; font-size: 13.5px; }
.oct-bulk-dialog .gc-mod-confirm-modal { display: grid; gap: 14px; }
.gc-mod-reason { display: grid; gap: 7px; }
.gc-mod-reason__label { font-size: 13px; font-weight: 650; color: rgba(205, 216, 236, 0.9); }
.gc-mod-reason__label span { font-weight: 500; color: rgba(185, 198, 222, 0.6); }
.gc-mod-reason__input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(132, 158, 203, 0.2);
  background: rgba(8, 14, 30, 0.55);
  color: rgba(236, 242, 252, 0.96);
  font: inherit;
  font-size: 14px;
}
.gc-mod-reason__input:focus { outline: none; border-color: rgba(120, 160, 255, 0.6); }
.gc-mod-reason__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-mod-reason__chips button {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(132, 158, 203, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(205, 216, 236, 0.9);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.gc-mod-reason__chips button:hover { border-color: rgba(120, 160, 255, 0.4); background: rgba(99, 102, 241, 0.14); }
#gcModMuteModal .gc-mod-duration-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#gcModBanModal .gc-mod-duration-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#gcModMuteModal .gc-mod-confirm-modal, #gcModBanModal .gc-mod-confirm-modal { width: min(520px, calc(100vw - 32px)); }
@media (max-width: 920px) {
  #gcModMuteModal .gc-mod-duration-grid, #gcModBanModal .gc-mod-duration-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.gc-mod-confirm-modal { gap: 14px; }
.group-chat-profile-ban-meta { font-size: 12px; color: rgba(252, 211, 77, 0.85); margin-top: 2px; overflow-wrap: anywhere; }
.gc-composer-perm-lock__sub { margin: 4px 0 0; font-size: 12.5px; color: rgba(185, 198, 222, 0.8); text-align: center; overflow-wrap: anywhere; }
/* channel: scheduled posts and stats */
.oct-sched { margin-bottom: 10px; gap: 8px; }
.oct-sched.is-failed { border-color: rgba(248, 113, 113, 0.35); }
.oct-sched__text { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.oct-sched__meta { font-size: 12.5px; color: rgba(185, 198, 222, 0.72); }
.oct-sched__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.oct-sched__time { padding: 7px 10px; border-radius: 10px; border: 1px solid rgba(132, 158, 203, 0.2); background: rgba(8, 14, 30, 0.55); color: inherit; font: inherit; font-size: 13px; color-scheme: dark; }
.oct-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.oct-tile { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(132, 158, 203, 0.12); }
.oct-tile b { font-size: 22px; font-weight: 800; color: #fff; }
.oct-tile span { font-size: 12.5px; color: rgba(185, 198, 222, 0.75); }
.oct-bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; padding-top: 4px; }
.oct-bar { flex: 1 1 0; min-width: 2px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, #818cf8, #3b82f6); opacity: 0.85; }
.oct-bar:hover { opacity: 1; }
.oct-bar.is-zero { opacity: 0.22; }
.oct-top-post { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(132, 158, 203, 0.08); font-size: 13px; }
.oct-top-post__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oct-top-post__nums { flex: 0 0 auto; color: rgba(185, 198, 222, 0.8); }
#channelSettingsV2Modal .olone-ct-nav.hidden { display: none !important; }
/* channel feed */
.ch-post-sign { margin-right: 6px; font-weight: 600; opacity: 0.85; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#messages.oct-no-comments .ch-comments-row { display: none !important; }
#messages.oct-no-reactions .channel-reactions { display: none !important; }
/* ♥ and @ in the chat list, left of the unread count */
.dialogs.dialogs-rail .dialog-item > .oct-marks {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  gap: 4px;
  z-index: 2;
}
.dialogs.dialogs-rail .dialog-item:has(> .unread-badge-container .all-rail-unread-badge) > .oct-marks { right: 40px; }
.dialogs.dialogs-rail .dialog-item:has(> .oct-marks) .dlg-preview { padding-right: 52px; }
.dialogs.dialogs-rail .dialog-item:has(> .oct-marks):has(> .unread-badge-container .all-rail-unread-badge) .dlg-preview { padding-right: 80px; }
.oct-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.oct-mark--at { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.oct-mark--heart { background: linear-gradient(135deg, #f43f5e, #ec4899); font-size: 11px; }
@media (max-width: 920px) {
  .oct-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oct-link, .oct-mute-row { grid-template-columns: minmax(0, 1fr); }
  .oct-link__actions { justify-content: flex-start; }
  .oct-card { padding: 14px; }
  .oct-hist-row { grid-template-columns: minmax(0, 1fr); }
  .oct-hist-row__meta { grid-column: 1; }
}

/* ===== Stickers, GIFs, own background, profile cover (assets/olone-personal-media.js) ===== */
.olone-sticker, .olone-gif { display: inline-block; position: relative; line-height: 0; cursor: pointer; }
.olone-sticker img { width: 160px; height: 160px; object-fit: contain; display: block; }
.olone-gif img, .olone-gif video { max-width: min(280px, 70vw); max-height: 280px; border-radius: 14px; display: block; }
.olone-gif__badge {
  position: absolute; left: 8px; top: 8px; padding: 2px 6px; border-radius: 6px; font: 700 10px/1.4 inherit;
  background: rgba(0, 0, 0, 0.55); color: #fff; letter-spacing: 0.04em;
}
.olone-sticker.is-broken, .olone-gif.is-broken { width: 120px; height: 60px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.olone-sticker.is-broken img, .olone-gif.is-broken img, .olone-gif.is-broken video { display: none; }
.olone-sticker.is-broken::after, .olone-gif.is-broken::after {
  content: "Недоступно"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: rgba(185, 198, 222, 0.7); line-height: 1;
}
/* A sticker stands on its own, without a bubble behind it. */
.bubble:has(> .bubble-body > .olone-sticker:only-child),
.gc-message-bubble:has(.bubble-body > .olone-sticker:only-child) {
  background: transparent !important; box-shadow: none !important; border-color: transparent !important; padding: 0 !important;
}
.bubble:has(> .bubble-body > .olone-sticker:only-child) .msg-stamp,
.gc-message-bubble:has(.bubble-body > .olone-sticker:only-child) .msg-stamp {
  background: rgba(0, 0, 0, 0.42); border-radius: 10px; padding: 2px 7px; color: #fff;
}
.bubble:has(> .bubble-body > .olone-gif:only-child), .gc-message-bubble:has(.bubble-body > .olone-gif:only-child) { padding: 4px !important; }
@media (max-width: 920px) { .olone-sticker img { width: 128px; height: 128px; } }

/* emoji panel tabs */
.emoji-picker > .opm-tabs { grid-column: 1 / -1; display: flex; gap: 4px; padding: 2px; margin-bottom: 4px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); position: sticky; top: -10px; z-index: 2; backdrop-filter: blur(8px); }
.opm-tabs button { flex: 1 1 0; padding: 6px 4px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; opacity: 0.7; }
.opm-tabs button.is-active { background: rgba(99, 102, 241, 0.24); opacity: 1; }
.emoji-picker > .opm-panel { grid-column: 1 / -1; }
.emoji-picker:not(.opm-wide) > .opm-panel:empty { display: none; }
.emoji-picker.opm-wide:not(.hidden) { display: block !important; width: min(380px, calc(100% - 16px)) !important; max-height: min(420px, 60vh) !important; }
.emoji-picker.opm-wide > .emoji-pick { display: none !important; }
.opm-packs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.opm-pack-tab { flex: 0 0 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.04); padding: 3px; cursor: pointer; color: inherit; font-size: 18px; }
.opm-pack-tab img { width: 100%; height: 100%; object-fit: contain; }
.opm-pack-tab.is-active { border-color: rgba(120, 160, 255, 0.55); background: rgba(99, 102, 241, 0.18); }
.opm-pack-title { font-size: 12.5px; font-weight: 700; margin: 4px 2px 6px; opacity: 0.85; }
.opm-muted { color: rgba(185, 198, 222, 0.65); font-weight: 500; font-size: 12px; }
.opm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.opm-grid--gif { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opm-cell {
  position: relative; aspect-ratio: 1; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.03); padding: 4px;
  cursor: pointer; color: inherit; display: grid; place-items: center; overflow: hidden; transition: background 0.12s ease, transform 0.12s ease;
}
.opm-cell:hover { background: rgba(99, 102, 241, 0.16); transform: scale(1.04); }
.opm-cell img { width: 100%; height: 100%; object-fit: contain; }
.opm-cell--gif { padding: 0; }
.opm-cell--gif img, .opm-cell--gif video { width: 100%; height: 100%; object-fit: cover; }
.opm-cell--add { border: 1.5px dashed rgba(132, 158, 203, 0.35); align-content: center; gap: 2px; font-size: 22px; }
.opm-cell--add small { font-size: 11px; opacity: 0.75; }
.opm-del {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; display: none; place-items: center;
  background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 15px; line-height: 1; cursor: pointer;
}
.opm-cell:hover .opm-del { display: grid; }
@media (hover: none) { .opm-del { display: grid; } }
.opm-empty { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 22px 12px; color: rgba(185, 198, 222, 0.75); font-size: 13px; }
.opm-empty b { color: rgba(236, 242, 252, 0.95); font-size: 14px; }
.opm-hint { font-size: 12.5px; color: rgba(185, 198, 222, 0.7); margin: 8px 2px; line-height: 1.45; }
.opm-btn {
  padding: 8px 13px; border-radius: 11px; border: 1px solid rgba(132, 158, 203, 0.2); background: rgba(255, 255, 255, 0.05);
  color: rgba(236, 242, 252, 0.95); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; white-space: nowrap;
}
.opm-btn:hover { border-color: rgba(120, 160, 255, 0.45); background: rgba(99, 102, 241, 0.16); }
.opm-btn:disabled { opacity: 0.5; cursor: default; }
.opm-btn--primary { border: 0; background: linear-gradient(135deg, #3b82f6, #7c5cff); color: #fff; }
.opm-btn--danger { color: #fca5a5; border-color: rgba(248, 113, 113, 0.32); }
.opm-btn--ghost { background: transparent; }
.opm-input {
  flex: 1 1 auto; min-width: 0; padding: 9px 12px; border-radius: 11px; border: 1px solid rgba(132, 158, 203, 0.2);
  background: rgba(8, 14, 30, 0.55); color: inherit; font: inherit; font-size: 14px;
}
.opm-input:focus { outline: none; border-color: rgba(120, 160, 255, 0.6); }

/* modals */
.opm-modal-back { display: grid; place-items: center; padding: 16px; }
.opm-modal {
  width: min(460px, 100%); max-height: min(86vh, 760px); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 28, 54, 0.98), rgba(12, 18, 38, 0.98)); border: 1px solid rgba(132, 158, 203, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); color: rgba(236, 242, 252, 0.96);
}
.opm-modal--wide { width: min(640px, 100%); }
.opm-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 10px; }
.opm-modal__head h3 { margin: 0; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opm-modal__x { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, 0.06); color: inherit; font-size: 20px; cursor: pointer; }
.opm-modal__body { padding: 4px 18px 18px; overflow-y: auto; }
.opm-create { display: flex; gap: 8px; }
.opm-sub { margin: 18px 0 8px; font-size: 14px; }
.opm-editor { border: 1px solid rgba(132, 158, 203, 0.14); border-radius: 16px; margin-top: 10px; background: rgba(255, 255, 255, 0.02); }
.opm-editor.is-blocked { border-color: rgba(248, 113, 113, 0.35); }
.opm-editor__head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.opm-editor__toggle { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; text-align: left; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.opm-editor__toggle b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opm-editor__body { display: none; padding: 0 12px 12px; }
.opm-editor.is-open .opm-editor__body { display: block; }
.opm-grid--edit, .opm-grid--preview { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.opm-editor__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.opm-pack-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(132, 158, 203, 0.08); }
.opm-pack-row__title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.opm-preview-meta { margin-bottom: 10px; }
.opm-preview-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.opm-pop {
  position: fixed; z-index: 3000; padding: 4px; border-radius: 12px; background: rgba(20, 28, 54, 0.98); border: 1px solid rgba(132, 158, 203, 0.22);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.opm-pop button { padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: #fff; font: inherit; font-size: 13.5px; cursor: pointer; }
.opm-pop button:hover { background: rgba(99, 102, 241, 0.2); }

/* own chat background */
#messages.opm-custom-bg {
  background-image: var(--opm-bg) !important; background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important;
}
#messages.opm-custom-bg::before { opacity: 0 !important; }
.opm-bg-own { padding: 12px 12px 4px; }
.opm-bg-own__row { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.opm-bg-own__thumb {
  flex: 0 0 84px; height: 84px; border-radius: 14px; background: center / cover no-repeat rgba(255, 255, 255, 0.04);
  border: 1.5px dashed rgba(132, 158, 203, 0.35); display: grid; place-items: center; font-size: 24px; position: relative;
}
.opm-bg-own__thumb:not(.is-empty) { border-style: solid; border-color: rgba(120, 160, 255, 0.4); }
.opm-bg-own__on { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; background: #6366f1; color: #fff; display: grid; place-items: center; font-size: 13px; }
.opm-bg-own__text { display: grid; gap: 3px; min-width: 0; }
.opm-bg-own__text small { font-size: 12px; color: rgba(185, 198, 222, 0.7); }
.opm-bg-own__actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* profile cover */
#profileNitroCard > .opm-cover {
  position: relative; height: 132px; margin: -2px -2px 10px; border-radius: 18px 18px 12px 12px; background: center / cover no-repeat rgba(255, 255, 255, 0.04);
}
#profileNitroCard > .opm-cover.is-empty { height: 54px; background: transparent; border: 1.5px dashed rgba(132, 158, 203, 0.3); }
.opm-cover__tools { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.opm-cover.is-empty .opm-cover__tools { inset: 0; justify-content: center; align-items: center; }
.opm-cover__tools button, .opm-cover__report {
  padding: 6px 10px; border-radius: 9px; border: 0; background: rgba(0, 0, 0, 0.55); color: #fff; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; backdrop-filter: blur(6px);
}
.opm-cover.is-empty .opm-cover__tools button { background: transparent; color: rgba(205, 216, 236, 0.85); }
.opm-cover__report { position: absolute; right: 8px; top: 8px; opacity: 0; transition: opacity 0.15s ease; }
.opm-cover:hover .opm-cover__report { opacity: 1; }
@media (hover: none) { .opm-cover__report { opacity: 0.8; } }

/* ===== Even outlines in settings menus =====
   The menus scroll, so anything drawn outside a button (a focus ring, a lift on hover) was cut at the edge.
   The ring now sits inside the button, the menus keep a little room, and nothing jumps on hover. */
:is(#groupChatSettingsModal, #channelSettingsV2Modal, #channelProfileModal, #groupChatProfileModal) .gcs-nav {
  padding: 4px;
  margin: -4px;
}
:is(#groupChatSettingsModal, #channelSettingsV2Modal, #channelProfileModal, #groupChatProfileModal) .gcs-nav__btn:focus {
  outline: none;
}
:is(#groupChatSettingsModal, #channelSettingsV2Modal, #channelProfileModal, #groupChatProfileModal) .gcs-nav__btn:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.6) !important;
  outline-offset: -2px !important;
}
.settings-hub-btn-stack {
  padding: 4px;
  margin: -4px;
}
.settings-hub-item-btn:hover,
.settings-hub-item-btn:hover:not(.is-active) {
  transform: none !important;
}
.settings-hub-item-btn:focus {
  outline: none;
}
.settings-hub-item-btn:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.6) !important;
  outline-offset: -2px !important;
}
@media (max-width: 920px) {
  :is(#groupChatSettingsModal, #channelSettingsV2Modal, #channelProfileModal, #groupChatProfileModal) .gcs-nav {
    margin: 0;
    padding: 4px 4px 6px;
  }
}

/* Card icons: thin line pictures in one tinted tile, like the rest of the settings. */
.oct-card__icon {
  color: rgba(165, 180, 252, 0.95);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.16), rgba(59, 130, 246, 0.06));
  border-color: rgba(129, 140, 248, 0.22);
}
.oct-card__icon svg { width: 20px; height: 20px; }
.oct-card__title { letter-spacing: 0.005em; }
.oct-card { transition: border-color 0.15s ease; }
.oct-card:focus-within { border-color: rgba(120, 160, 255, 0.26); }
.oct-top-post__nums { display: inline-flex; gap: 10px; align-items: center; }
.oct-top-post__nums span { display: inline-flex; gap: 4px; align-items: center; }
.oct-top-post__nums svg { width: 14px; height: 14px; opacity: 0.8; }
.opm-pack-tab--gear svg { width: 18px; height: 18px; }

/* A sticker in a group chat: no bubble at any level of the message. */
.bubble--gc-layout:has(.gc-message-bubble > .bubble-body > .olone-sticker:only-child),
.bubble--gc-layout:has(.gc-message-bubble > .bubble-body > .olone-sticker:only-child) .gc-message-bubble {
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
.bubble--gc-layout:has(.gc-message-bubble > .bubble-body > .olone-sticker:only-child) .gc-message-bubble { padding: 0 !important; }
.bubble--gc-layout:has(.gc-message-bubble > .bubble-body > .olone-sticker:only-child) .gc-message-bubble::before,
.bubble--gc-layout:has(.gc-message-bubble > .bubble-body > .olone-sticker:only-child) .gc-message-bubble::after { display: none !important; }
.bubble--gc-layout:has(.gc-message-bubble > .bubble-body > .olone-sticker:only-child) .msg-stamp {
  background: rgba(0, 0, 0, 0.42); border-radius: 10px; padding: 2px 7px; color: #fff;
}

/* Cover: the profile column centres its items, the cover takes the full width. */
#profileNitroCard > .opm-cover { align-self: stretch; width: auto; flex: 0 0 132px; box-sizing: border-box; }
#profileNitroCard > .opm-cover.is-empty { flex-basis: 54px; }
/* A sticker in a group chat: the outgoing bubble draws a gradient image, drop it too. */
#messages .bubble--gc-layout .gc-message-bubble:has(> .bubble-body > .olone-sticker:only-child) {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
  padding: 0 !important;
}
/* The focus ring shows only while moving with the keyboard (Tab); a mouse or a tap never leaves it behind. */
html:not(.oct-kbd) :is(#groupChatSettingsModal, #channelSettingsV2Modal, #channelProfileModal, #groupChatProfileModal) .gcs-nav__btn:focus-visible,
html:not(.oct-kbd) .settings-hub-item-btn:focus-visible {
  outline: none !important;
}

/* Profile column: items keep their height (the name was squeezed and cut); a tall column scrolls instead. */
#profileNitroCard > * { flex-shrink: 0; }
#profileNitroCard { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#profileNitroCard > .opm-cover { flex-basis: 110px; height: 110px; }
/* The time under a sticker is a small pill on the right, not a full-width strip. */
#messages .gc-message-bubble:has(> .bubble-body > .olone-sticker:only-child) .msg-stamp { align-self: flex-end; width: max-content; margin-left: auto; }

/* ===== Even outlines across the site =====
   Lists, panels and modals scroll, so a ring drawn outside a button (the browser's own focus ring, or a ring
   with a positive offset) was cut at the edge. The keyboard ring now sits just inside the element everywhere. */
:where(button, [role="tab"], [role="button"], [role="option"], [role="switch"], a[href], summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.6);
  outline-offset: -2px;
}
/* Places that set their own outside ring. */
:is(#groupChatSettingsModal, #channelSettingsV2Modal, #channelProfileModal, #groupChatProfileModal, #avatarCropModal) :is(.gcs-type-card, .gcs-moderation-row--action):focus-visible,
#createChannelModal .create-channel-modal__choice-card:focus-visible,
.chat-bg-picker-cell:focus-visible,
.friend-row:focus-visible,
.col-dialogs--gc-topics .topic-item__settings:focus-visible,
.gc-message-avatar-slot:focus-visible,
.gc-message-author--profile-open:focus-visible,
.message-invite-card__open:focus-visible,
.olone-chat-header__identity--profile-open:focus-visible {
  outline-offset: -2px !important;
}
.mic-settings__segment input:focus-visible + .mic-settings__segment-card,
.share-quality__option input:focus-visible + .share-quality__card {
  outline-offset: -2px !important;
}
/* Roles list in «Права и роли»: room for the ring, the chosen role glows inside its own border. */
#groupChatSettingsModal .gcs-roles__list {
  padding: 4px;
}
#groupChatSettingsModal .gcs-role-row.is-active {
  box-shadow:
    inset 0 0 0 1px rgba(99, 102, 241, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 24px rgba(99, 102, 241, 0.12);
}
#groupChatSettingsModal .gcs-role-row:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.6);
  outline-offset: -2px;
}
@media (max-width: 920px) {
  /* The save button sits at the very bottom of a full-screen sheet: a short shadow that fits. */
  :is(#groupChatSettingsModal, #channelSettingsV2Modal, #channelProfileModal, #groupChatProfileModal, #avatarCropModal) :is(.gcs-btn--save, #groupChatSettingsSaveBtn, #channelSettingsV2SaveBtn) {
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.22);
  }
  #premiumModal .btn-premium-glow {
    box-shadow: 0 3px 14px rgba(201, 162, 39, 0.36);
  }
}
/* Plain line icons that replaced emoji. */
.rail-comm-type-badge svg { flex: 0 0 auto; }
.dlg-preview-lock { display: inline-flex; vertical-align: -1px; }
.gcp-open-settings-ic { display: inline-flex; vertical-align: -3px; margin-right: 2px; }
.channel-settings-v2__desc-emoji-toggle svg { display: block; }
:is(.gc-composer-perm-lock__icon, .gcs-invites-locked__icon, .composer-attach-preview-icon, .music-upload-drop__icon, .auth-otp-modal-icon, .composer-attach-music-icon, .composer-upload-card__icon) svg {
  display: block;
  margin-inline: auto;
}
/* Soft glows: the decorative lights behind settings, profiles and create windows faded out only past the edge
   of their own box, so a straight band showed through the cards. closest-side makes each light fade inside its box. */
:is(#groupChatSettingsModal, #channelSettingsV2Modal, #channelProfileModal, #groupChatProfileModal, #avatarCropModal) .gcs-modal::before,
:is(#channelDescriptionModal, #channelPinnedInfoModal, #groupChatDescriptionModal, #groupChatPinnedInfoModal) .gcs-modal::before {
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.14), transparent) !important;
}
:is(#groupChatSettingsModal, #channelSettingsV2Modal, #channelProfileModal, #groupChatProfileModal, #avatarCropModal) .gcs-modal::after,
:is(#channelDescriptionModal, #channelPinnedInfoModal, #groupChatDescriptionModal, #groupChatPinnedInfoModal) .gcs-modal::after {
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.1), transparent) !important;
}
#createGroupChatModal .create-chat-modal::before {
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.1) 0%, rgba(59, 130, 246, 0.06) 52%, transparent 100%);
}
#createGroupChatModal .create-chat-modal::after {
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.085) 0%, rgba(99, 102, 241, 0.045) 56%, transparent 100%);
}
#createChannelModal .create-channel-modal::before {
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.06) 58%, transparent 100%);
}
#createChannelModal .create-channel-modal::after {
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.09), transparent);
}
/* The light inside a chosen card follows the rounded corners instead of poking out as a square. */
#createGroupChatModal .create-chat-modal__choice-card.is-active::after {
  border-radius: inherit;
}
/* Premium window: the buttons span the same width as the cards above them. */
#premiumModal .premium-modal-actions {
  flex-wrap: nowrap;
  justify-content: stretch;
}
#premiumModal .premium-modal-actions > :first-child {
  flex: 1 1 auto;
}
/* A hidden history list took room and left an empty strip at the bottom of the card. */
.oct-history__list.hidden {
  display: none !important;
}
@media (max-width: 920px) {
  /* The bottom bar of settings sheets on a phone: the buttons sat 8px from the screen edge; now even room above and below. */
  :is(#groupChatSettingsModal, #channelSettingsV2Modal, #channelProfileModal, #groupChatProfileModal, #avatarCropModal) .gcs-modal .gcs-modal__footer {
    padding-top: 12px !important;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
/* Text scrolling under the bottom bar of settings was cut in half by a hard line; it now fades out softly.
   The extra room at the end keeps the last field fully visible when scrolled to the bottom. */
:is(#groupChatSettingsModal, #channelSettingsV2Modal) .gcs-sheet.is-active {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent);
  padding-bottom: 30px !important;
}
@media (max-width: 920px) {
  /* Premium window on a phone was 80px taller than the screen, so scrolling slid the crown under the top edge.
     A smaller crown and tighter spacing make the whole window fit. */
  #premiumModal .premium-modal-body {
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  #premiumModal .premium-hero-new__crown {
    width: 84px;
    margin: -4px 0 -10px;
  }
  #premiumModal .premium-perks {
    gap: 8px;
  }
  #premiumModal .premium-perks > * {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
/* ===== end: Even outlines across the site ===== */

/* ===== «Своя картинка» as the profile background (style cover_custom), drawn like the ready photo backgrounds ===== */
.profile-viewer-cover.cover_custom,
.profile-cover-pick-preview.cover_custom {
  background-color: #020208;
  background-image: var(--olone-custom-cover);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
:is(#profileViewerModal.profile-ui-v37 #profileNitroCard, .col-user .col-user-profile-v37, #profileViewerModal.profile-ui-v37 .profile-edit-v37__preview-cover).profile-viewer-cover.cover_custom::before {
  background-color: #020208;
  background-image: var(--olone-custom-cover);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.profile-edit-v37__bg-thumb--upload,
.profile-edit-v37__bg-thumb--remove {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1.5px dashed rgba(132, 158, 203, 0.35) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: rgba(205, 216, 236, 0.9);
  cursor: pointer;
}
.profile-edit-v37__bg-thumb--upload:not(:disabled):hover { border-color: rgba(120, 160, 255, 0.6) !important; background: rgba(99, 102, 241, 0.12) !important; }
.profile-edit-v37__bg-thumb--remove { border-style: solid !important; border-color: rgba(248, 113, 113, 0.3) !important; color: #fca5a5; }
.profile-edit-v37__bg-thumb--upload svg, .profile-edit-v37__bg-thumb--remove svg { width: 22px; height: 22px; }
.profile-edit-v37__bg-hint {
  grid-column: 1 / -1;
  margin: 4px 2px 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(185, 198, 222, 0.72);
}
.opm-cover-report {
  position: absolute; right: 10px; top: 10px; z-index: 3; width: 30px; height: 30px; border-radius: 9px; border: 0;
  background: rgba(0, 0, 0, 0.5); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity 0.15s ease;
}
.opm-cover-report svg { width: 15px; height: 15px; }
#profileNitroCard:hover .opm-cover-report, .opm-cover-report:focus-visible { opacity: 1; }
@media (hover: none) { .opm-cover-report { opacity: 0.85; } }

/* Sticker steps: how to make a pack, said once and plainly. */
.opm-steps { margin: 4px 0 6px; padding-left: 20px; text-align: left; display: grid; gap: 4px; font-size: 12.5px; color: rgba(205, 216, 236, 0.85); }
.opm-steps--row { margin: 0 0 12px; padding: 10px 12px 10px 30px; border-radius: 12px; background: rgba(99, 102, 241, 0.08); border: 1px solid rgba(129, 140, 248, 0.18); }
.opm-pack-tab--add { font-size: 20px; font-weight: 600; color: rgba(165, 180, 252, 0.95); border: 1.5px dashed rgba(129, 140, 248, 0.4); }
#profileNitroCard { position: relative; }
#profileNitroCard > .opm-cover-report { position: absolute !important; }

/* Own chat background: chosen alone, shown in the live preview too. */
.chat-bg-live-preview__messages.opm-custom-bg {
  background-image: var(--opm-bg) !important; background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important;
}
.opm-bg-own { border-radius: 16px; transition: background 0.15s ease, box-shadow 0.15s ease; }
.opm-bg-own.is-selected { background: rgba(139, 92, 246, 0.1); box-shadow: inset 0 0 0 1.5px rgba(167, 139, 250, 0.7); }
.opm-bg-own.is-selected .opm-bg-own__thumb { border-color: rgba(167, 139, 250, 0.9); }

/* Settings → «Стикеры и гифки». */
.opm-set-title { margin: 18px 4px 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(185, 198, 222, 0.7); }
.opm-set-title:first-child { margin-top: 4px; }
.opm-set-steps { margin: 0; padding: 14px 16px 14px 34px; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.45; color: rgba(226, 234, 248, 0.92); }
.opm-set-steps b { color: #fff; font-weight: 650; }
.opm-set-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Sticker and GIF windows open above every settings window. */
.opm-modal-back { z-index: 41000 !important; }

/* One to three emoji alone: large and without a bubble, like a sticker. */
.olone-big-emoji { display: inline-block; line-height: 1.1; letter-spacing: 0.04em; }
.olone-big-emoji--1 { font-size: 56px; }
.olone-big-emoji--2 { font-size: 46px; }
.olone-big-emoji--3 { font-size: 38px; }
.bubble:has(> .bubble-body > .olone-big-emoji:only-child),
#messages .bubble--gc-layout .gc-message-bubble:has(> .bubble-body > .olone-big-emoji:only-child) {
  background: transparent !important; background-image: none !important; box-shadow: none !important; border-color: transparent !important; padding: 0 !important;
}
.bubble:has(> .bubble-body > .olone-big-emoji:only-child) .msg-stamp,
#messages .gc-message-bubble:has(> .bubble-body > .olone-big-emoji:only-child) .msg-stamp {
  background: rgba(0, 0, 0, 0.42); border-radius: 10px; padding: 2px 7px; color: #fff; width: max-content; margin-left: auto;
}
@media (max-width: 920px) { .olone-big-emoji--1 { font-size: 48px; } .olone-big-emoji--2 { font-size: 40px; } .olone-big-emoji--3 { font-size: 34px; } }

/* Deleting a channel comment: a small bin in the corner of the comment. */
#channelCommentsModalThread .bubble { position: relative; }
.ch-comment-del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: rgba(0, 0, 0, 0.35); color: #fca5a5; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity 0.15s ease; }
.ch-comment-del svg { width: 14px; height: 14px; }
#channelCommentsModalThread .bubble:hover .ch-comment-del, .ch-comment-del:focus-visible { opacity: 1; }
#channelCommentsModalThread .bubble:has(.ch-comment-del) .bubble-body { padding-right: 26px; }
@media (hover: none) { .ch-comment-del { opacity: 0.85; } }

/* A new message slides in softly instead of popping. */
#messages .oct-msg-in { animation: oct-msg-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes oct-msg-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #messages .oct-msg-in { animation: none; } }
/* «Down» button: low, right above the message box, with the count of messages you have not seen yet. */
.chat-scroll-bottom-btn { bottom: 16px !important; width: 42px !important; height: 42px !important; }
.chat-scroll-bottom-btn .oct-unseen {
  position: absolute; top: -7px; right: -5px; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box;
  border-radius: 10px; background: linear-gradient(135deg, #3b82f6, #7c5cff); color: #fff; font-size: 11.5px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(59, 130, 246, 0.45);
}

/* «Заглушить»: a crossed bell by the time, a grey unread count, a short list of terms. */
.dialogs.dialogs-rail .dialog-item .oct-mute-icon { display: inline-flex; flex: 0 0 auto; width: 14px; height: 14px; margin-left: 4px; color: rgba(185, 198, 222, 0.6); }
.dialogs.dialogs-rail .dialog-item .oct-mute-icon svg { width: 14px; height: 14px; }
.dialogs.dialogs-rail .dialog-item.oct-muted-row .all-rail-unread-badge,
.dialogs.dialogs-rail .dialog-item.oct-muted-row .unread-badge { background: rgba(148, 163, 184, 0.35) !important; color: rgba(236, 242, 252, 0.9) !important; box-shadow: none !important; }
.oct-mute-pop { display: grid; place-items: center; padding: 16px; }
.oct-mute-card {
  width: min(340px, 100%); display: grid; gap: 6px; padding: 18px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 28, 54, 0.98), rgba(12, 18, 38, 0.98)); border: 1px solid rgba(132, 158, 203, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); color: rgba(236, 242, 252, 0.96);
}
.oct-mute-card__title { font-size: 16px; font-weight: 700; }
.oct-mute-card__lead { margin: 0 0 8px; font-size: 12.5px; line-height: 1.45; color: rgba(185, 198, 222, 0.75); }
.oct-mute-card__opt, .oct-mute-card__cancel {
  padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(132, 158, 203, 0.14); background: rgba(255, 255, 255, 0.03);
  color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.oct-mute-card__opt:hover { background: rgba(99, 102, 241, 0.16); border-color: rgba(120, 160, 255, 0.4); }
.oct-mute-card__cancel { margin-top: 4px; text-align: center; background: transparent; color: rgba(185, 198, 222, 0.85); }


/* «Все / Чаты / Каналы»: one highlight that slides between the tabs. */
.profile-tabs.dialogs-filter-pills.oct-has-slider { position: relative; isolation: isolate; }
.profile-tabs.dialogs-filter-pills > .oct-tab-slider {
  position: absolute; left: 0; top: 0; z-index: -1; border-radius: 10px; pointer-events: none;
  background: rgba(107, 157, 245, 0.26); box-shadow: inset 0 0 0 1px rgba(140, 175, 255, 0.12);
}
.profile-tabs.dialogs-filter-pills > .oct-tab-slider.is-ready { transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.26s cubic-bezier(0.2, 0.8, 0.2, 1); }
.profile-tabs.dialogs-filter-pills.oct-has-slider .profile-tab,
.profile-tabs.dialogs-filter-pills.oct-has-slider .profile-tab.profile-tab-active { background: transparent !important; }
.profile-tabs.dialogs-filter-pills.oct-has-slider .profile-tab .profile-tab-label { transition: color 0.2s ease; }
@media (prefers-reduced-motion: reduce) { .profile-tabs.dialogs-filter-pills > .oct-tab-slider.is-ready { transition: none; } }


/* The message menu takes the width of its reaction row, so the row never sticks out past the menu's edge. */
.message-ctx-menu:has(> .olone-react-bar--menu) { max-width: calc(100vw - 16px); }
.message-ctx-menu > .olone-react-bar--menu { box-sizing: border-box; }

/* ---------- Statuses «В сети / Не на месте / Не беспокоить / Невидимый» (olone-presence.js) ---------- */
.olp-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3ecf7a;
}
.olp-dot--idle { background: #f0b232; }
.olp-dot--dnd { background: #f04747; }
.olp-dot--invisible,
.olp-dot--offline { background: transparent; box-shadow: inset 0 0 0 2.5px #8a93a6; }

.olp-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 4px auto 0;
  padding: 3px 8px 3px 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted, rgba(200, 208, 225, 0.85));
  font: inherit;
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
}
.olp-status-pill:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
/* In the left card the status goes on its own full row: in the avatar column the label had no room at all. */
.col-user-profile-v37 .olp-status-pill { grid-column: 1 / -1; justify-self: start; margin-left: 0; }
.olp-status-pill__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.olp-status-pill svg { width: 14px; height: 14px; flex: 0 0 auto; opacity: 0.7; }

.olp-status-menu {
  position: fixed;
  z-index: 10050;
  width: 270px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(20, 25, 40, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}
.olp-status-menu__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #e8ecf5;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.olp-status-menu__item .olp-dot { margin-top: 5px; }
.olp-status-menu__item:hover,
.olp-status-menu__item:focus-visible { background: rgba(255, 255, 255, 0.07); outline: none; }
.olp-status-menu__item.is-on { background: rgba(122, 162, 255, 0.14); }
.olp-status-menu__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.olp-status-menu__hint { font-size: 12px; color: var(--muted, rgba(160, 170, 190, 0.8)); }
.olp-status-menu__sep { height: 1px; margin: 4px 6px; background: rgba(255, 255, 255, 0.08); }
.olp-status-menu__item--plain { padding-left: 30px; }

/* The «в сети» dot in the list takes the status colour. */
.friend-online-dot.is-idle:not(.is-offline) { background: #f0b232 !important; }
.friend-online-dot.is-dnd:not(.is-offline) { background: #f04747 !important; }
/* My own avatar dot follows my status; «Невидимый» shows a grey ring only to me. */
.col-user .col-user-profile-v37 .profile-modal__avatar-wrap[data-olp-status="idle"] .profile-modal__avatar-online { background: #f0b232 !important; }
.col-user .col-user-profile-v37 .profile-modal__avatar-wrap[data-olp-status="dnd"] .profile-modal__avatar-online { background: #f04747 !important; }
.col-user .col-user-profile-v37 .profile-modal__avatar-wrap[data-olp-status="invisible"] .profile-modal__avatar-online { background: #8a93a6 !important; }

/* Hover card: status and «Играет в X · 1 ч 20 мин». */
.olp-preview-presence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 8px 0 2px;
  font-size: 12.5px;
  color: var(--muted, rgba(200, 208, 225, 0.85));
}
.olp-preview-presence__game {
  flex-basis: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(62, 207, 122, 0.1);
  color: #9be8bb;
  font-weight: 500;
}
.olp-member-presence {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted, rgba(200, 208, 225, 0.85));
  min-width: 0;
}
.olp-member-presence span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.olp-member-presence .olp-dot { width: 8px; height: 8px; }

/* «Моя музыка» in the Windows app: a track kept on the computer for listening without internet. */
.olone-music__offline.is-on { color: #3ecf7a; }
.olone-music__offline.is-loading { width: auto; min-width: 34px; padding: 0 6px; font-size: 11px; font-weight: 600; color: var(--accent, #7aa2ff); }

/* «Не мой компьютер» under the password on the sign-in card. */
.auth-not-mine {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  margin: 2px 2px 10px;
  cursor: pointer;
  color: var(--text, #e8ecf5);
  font-size: 14px;
}
.auth-not-mine.hidden { display: none; }
.auth-not-mine input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent, #5b8cff); }
.auth-not-mine small { grid-column: 2; color: var(--muted, rgba(160, 170, 190, 0.8)); font-size: 12px; }

/* ---------- Sign-in in the Windows app: no landing half, one centred card (form + account levels) ---------- */
html.is-olone-desktop body.app-guest #preChatWrap {
  background:
    radial-gradient(42% 55% at 12% 18%, rgba(58, 96, 210, 0.34), transparent 70%),
    radial-gradient(38% 50% at 88% 82%, rgba(124, 92, 246, 0.26), transparent 70%),
    radial-gradient(30% 30% at 70% 10%, rgba(47, 160, 255, 0.12), transparent 70%),
    #070a14;
}
html.is-olone-desktop body.app-guest #preChatWrap::after {
  /* A large, barely visible OLONE bubble in the corner: depth without noise. */
  content: "";
  position: fixed;
  right: -120px;
  bottom: -140px;
  width: 760px;
  height: 650px;
  background: url("/assets/download/olone-logo-clean.png?v=1") center / contain no-repeat;
  opacity: 0.025;
  transform: rotate(-12deg);
  pointer-events: none;
}
html.is-olone-desktop body.app-guest .olone-auth-hero {
  display: none !important;
}
html.is-olone-desktop body.app-guest #authLayoutRow:not(.hidden) {
  display: flex;
  align-items: center;
  justify-content: center;
}
html.is-olone-desktop body.app-guest #authLayoutRow .olone-auth-layout {
  position: relative;
  z-index: 1;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  width: auto;
  max-width: 900px;
  max-height: none;
  margin: auto;
  padding: 36px 24px;
  gap: 0;
}
html.is-olone-desktop body.app-guest #authLayoutRow .olone-auth-layout::before {
  content: "";
  display: block;
  flex: 0 0 100%;
  height: 96px;
  margin-bottom: 18px;
  background: url("/assets/download/olone-logo-clean.png?v=1") center / auto 150px no-repeat;
}
html.is-olone-desktop body.app-guest #authLayoutRow .olone-auth-card,
html.is-olone-desktop body.app-guest #authLayoutRow #authHintPanel {
  margin: 0;
  background: rgba(13, 19, 36, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
html.is-olone-desktop body.app-guest #authLayoutRow .olone-auth-card {
  flex: 0 0 440px;
  width: 440px;
  max-width: 440px;
  border-radius: 20px 0 0 20px;
  border-right: 0;
}
html.is-olone-desktop body.app-guest #authLayoutRow #authHintPanel {
  flex: 0 0 340px;
  align-self: stretch !important;
  width: 340px;
  max-width: 340px;
  height: auto !important;
  margin: 0 !important;
  border-radius: 0 20px 20px 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 28px 26px;
}
html.is-olone-desktop body.app-guest #authLayoutRow .olone-auth-card {
  align-self: stretch !important;
  border-radius: 20px 0 0 20px !important;
}
/* «Назад» to the landing makes no sense in the app: there is no landing. */
html.is-olone-desktop body.app-guest #authBackBtn {
  display: none !important;
}
/* The e-mail code step follows «Не мой компьютер» from the form; its own «Запомнить» tick is not needed. */
.auth-remember-device-main:has(#authRememberComputerOtp) { display: none !important; }

/* The badge (crown, etc.) sits right after the name, not pushed against the time: the name only takes
   the room it needs and shrinks with «…» when the line is short. */
.dialogs.dialogs-rail .dialog-peer-line > strong,
.dialogs.dialogs-rail .dialog-peer-line > .channel-rail-official-title {
  flex: 0 1 auto;
}
.dialogs.dialogs-rail .dialog-peer-line > .user-card-details {
  margin-left: 4px;
}

/* «Назад к темам» in a voice room is for the phone only: on a wide screen it showed as a bare little bar,
   and pressing it closed the room with nothing in its place. */
@media (min-width: 921px) {
  .gc-voice-phone-back { display: none !important; }
}

/* ---------- «Код безопасности» and «у собеседника новый ключ» (assets/olone-e2ee-safety.js) ---------- */
.olone-safety-backdrop {
  position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(4, 7, 16, 0.72);
}
.olone-safety {
  width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: #111a2e; border: 1px solid #26324d; border-radius: 16px; color: #f4f7ff;
}
.olone-safety__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.olone-safety__head h3 { margin: 0; font-size: 18px; font-weight: 600; }
.olone-safety__x { background: none; border: 0; color: #9da8bc; font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.olone-safety__body { padding: 8px 18px 18px; font-size: 14px; color: #c8d1e3; }
.olone-safety__code {
  display: grid; gap: 8px; margin: 6px 0 14px; padding: 14px 12px; text-align: center;
  font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 20px; letter-spacing: 1px; color: #f4f7ff;
  border: 1px solid #2f3d5c; border-radius: 12px; background: #0b1222;
}
.olone-safety__code span { display: inline-block; width: 0.6em; }
.olone-safety__text { margin: 0 0 8px; line-height: 1.45; }
.olone-safety__hint { margin: 0 0 14px; font-size: 12px; color: #9da8bc; line-height: 1.4; }
.olone-safety__actions { display: flex; gap: 8px; justify-content: flex-end; }
.olone-safety__actions button {
  border-radius: 10px; padding: 9px 14px; font-size: 14px; cursor: pointer; border: 1px solid #2f3d5c;
  background: transparent; color: #f4f7ff;
}
.olone-safety__actions .olone-safety__ok { background: #4285ff; border-color: #4285ff; color: #fff; }
@media (max-width: 420px) { .olone-safety__code { font-size: 16px; letter-spacing: 0; } }

.olone-keywarn {
  position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 8px 12px; padding: 10px 12px; border-radius: 12px;
  background: #1d1a10; border: 1px solid #6b5520; color: #f4f7ff; font-size: 13px; line-height: 1.4;
}
/* With pinned messages the pinned bar floats over the top of the chat: the warning goes under it, and the
   messages no longer need their own room for the bar (the warning already pushes them down). */
#chatMessagesStack.chat-messages-stack--has-pinned > .olone-keywarn { margin-top: 84px; }
#chatMessagesStack.chat-messages-stack--has-pinned:has(> .olone-keywarn) > .messages { padding-top: 8px; }
.olone-keywarn__text { flex: 1 1 260px; }
.olone-keywarn__text b { color: #e7b04a; font-weight: 600; }
.olone-keywarn__actions { display: flex; gap: 8px; }
.olone-keywarn__actions button {
  border-radius: 9px; padding: 7px 12px; font-size: 13px; cursor: pointer;
  border: 1px solid #6b5520; background: transparent; color: #f4f7ff;
}
.olone-keywarn__actions [data-keywarn="code"] { background: #e7b04a; border-color: #e7b04a; color: #1a1406; }

/* The safety-code button sits in the private chat header on a computer; a phone has it in the chat menu. */
@media (max-width: 920px) { #dmSafetyBtn { display: none !important; } }

/* ---------- «Что нового» (assets/olone-whats-new.js): glass panel, a glowing wave with the OLONE logo,
   the news in an inner glass card, the oliki balance in a violet card, pill buttons (owner's reference, 2026-11-20) ---------- */
.olone-wn-backdrop {
  position: fixed; inset: 0; z-index: 10040; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: radial-gradient(ellipse at 50% 40%, rgba(40, 36, 110, 0.55), rgba(3, 5, 14, 0.82) 70%);
  animation: olone-wn-fade 0.25s ease-out;
}
@keyframes olone-wn-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes olone-wn-rise { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.olone-wn {
  position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; overflow-x: hidden;
  padding: 0 22px 20px; box-sizing: border-box;
  background: linear-gradient(180deg, rgba(28, 32, 78, 0.92), rgba(12, 16, 38, 0.96) 46%);
  border: 1px solid rgba(132, 140, 255, 0.38); border-radius: 26px; color: #f4f7ff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 0 40px rgba(98, 92, 255, 0.22), 0 24px 70px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  animation: olone-wn-rise 0.3s ease-out;
}
.olone-wn__x {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0;
  background: rgba(12, 16, 38, 0.6); border: 1px solid rgba(160, 168, 255, 0.28); color: #e6e9ff; font-size: 22px; line-height: 1; cursor: pointer;
}
.olone-wn__x:hover { background: rgba(60, 64, 140, 0.6); }
.olone-wn__head { position: relative; height: 150px; margin: 0 -22px 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.olone-wn__wave { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; }
.olone-wn__halo {
  position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; transform: translate(-50%, -54%);
  border-radius: 50%; border: 1px solid rgba(150, 140, 255, 0.12);
  background: radial-gradient(circle, rgba(140, 120, 255, 0.35), rgba(80, 70, 220, 0.12) 45%, transparent 70%);
}
.olone-wn__logo {
  position: relative; z-index: 1; width: 132px; height: auto; transform: translateY(-8px);
  filter: drop-shadow(0 0 14px rgba(150, 140, 255, 0.75)) drop-shadow(0 6px 18px rgba(20, 16, 80, 0.6));
}
.olone-wn__card {
  position: relative; padding: 16px 18px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(48, 56, 110, 0.38), rgba(24, 30, 64, 0.38));
  border: 1px solid rgba(130, 146, 230, 0.3); box-shadow: 0 -1px 0 rgba(170, 160, 255, 0.35) inset, 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.olone-wn__step {
  display: inline-block; font-size: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(40, 70, 150, 0.35); border: 1px solid rgba(100, 140, 240, 0.45); color: #9fbcff; margin-bottom: 10px;
}
.olone-wn__title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.olone-wn__icon {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: rgba(110, 120, 255, 0.16); border: 1px solid rgba(140, 150, 255, 0.35); color: #b9c4ff;
}
.olone-wn__icon img { width: 26px; height: 26px; object-fit: contain; }
.olone-wn__body { font-size: 14px; line-height: 1.55; color: #c9d1e8; }
.olone-wn__body p { margin: 0 0 8px; }
.olone-wn__body p:last-child { margin-bottom: 0; }
.olone-wn__body ul { margin: 0; padding-left: 18px; }
.olone-wn__body li { margin-bottom: 6px; }
.olone-wn__note { color: #98a3c0; font-size: 13px; }
.olone-wn__extra {
  margin-top: 12px; padding: 12px 16px; border-radius: 18px;
  background: linear-gradient(90deg, rgba(76, 58, 160, 0.42), rgba(44, 32, 96, 0.36));
  border: 1px solid rgba(160, 130, 255, 0.4); box-shadow: 0 0 22px rgba(140, 100, 255, 0.16);
}
.olone-wn__extra[hidden] { display: none; }
.olone-wn__gain { display: flex; gap: 12px; align-items: center; margin: 0; padding: 0; border: 0; background: none; }
.olone-wn__gain img { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(170, 140, 255, 0.6)); }
.olone-wn__gain-total { color: #eceaff; font-size: 14px; }
.olone-wn__gain-total b { color: #cdbcff; font-weight: 600; }
.olone-wn__body ul.olone-wn__notices, .olone-wn__notices { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid rgba(170, 150, 255, 0.2); }
.olone-wn__notices li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(170, 150, 255, 0.14); font-size: 13px; color: #d6d2f2; margin: 0; }
.olone-wn__notices li:last-child { border-bottom: 0; }
.olone-wn__notices time { flex: 0 0 auto; color: #9a95c4; font-size: 12px; }
.olone-wn__dots { display: flex; gap: 7px; justify-content: center; padding: 16px 0; }
.olone-wn__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 5px; background: #2e3654; cursor: pointer; transition: width 0.2s, background 0.2s; }
.olone-wn__dot.is-on { width: 28px; background: linear-gradient(90deg, #4f8bff, #7c6dff); box-shadow: 0 0 10px rgba(90, 130, 255, 0.55); }
.olone-wn__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px; }
.olone-wn__btn {
  min-height: 48px; border-radius: 999px; padding: 0 18px; font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid rgba(140, 150, 220, 0.3); background: rgba(40, 48, 90, 0.55); color: #e6e9ff;
}
.olone-wn__btn:hover { background: rgba(56, 64, 120, 0.7); }
.olone-wn__btn--main {
  border-color: transparent; color: #fff; background: linear-gradient(90deg, #3d8bff, #6c5cff);
  box-shadow: 0 0 18px rgba(80, 120, 255, 0.45), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}
.olone-wn__btn--main:hover { filter: brightness(1.08); background: linear-gradient(90deg, #3d8bff, #6c5cff); }
@media (max-width: 600px) {
  .olone-wn-backdrop { align-items: flex-end; padding: 0; }
  .olone-wn { width: 100%; border-radius: 26px 26px 0 0; max-height: 94vh; padding: 0 16px 18px; }
  .olone-wn__head { margin: 0 -16px 6px; height: 128px; }
  .olone-wn__logo { width: 96px; }
  .olone-wn__foot { padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .olone-wn, .olone-wn-backdrop { animation: none; } }
/* «Что нового» on the left: a dot while there is unread news. */
#whatsNewBtn .profile-action-icon { position: relative; }
#whatsNewBtn.has-unread .profile-action-icon::after {
  content: ""; position: absolute; top: -1px; right: -2px; width: 8px; height: 8px; border-radius: 50%;
  background: #4285ff; box-shadow: 0 0 0 2px #0d1120;
}
#sparksShopBtn .profile-action-icon img { width: 20px; height: 20px; object-fit: contain; display: block; }

/* Left card: with an avatar frame chosen, the frame is the only ring — the card's own cyan ring and glow made
   it «avatar, ring, ring». Without a frame the cyan ring stays. */
.col-user-profile-v37 .profile-modal__avatar-inner:has(> .profile-nitro-avatar-btn[class*="frame-"]) { box-shadow: none !important; }
#colUserAvatarWrap:has(.profile-nitro-avatar-btn[class*="frame-"])::after { display: none !important; }


/* Voice settings: the camera choice and the privacy notes. */
.mic-settings__hint--block { margin: 4px 0 0; }
.mic-settings__privacy .mic-settings__title { margin-bottom: 6px; }
.mic-settings__list { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: rgba(220, 228, 255, 0.78); font-size: 13px; line-height: 1.45; }
.mic-settings__list b { color: #fff; font-weight: 600; }

/* «Написать в поддержку» — Настройки → Помощь (owner, 2026-11-26). */
.olx-support { display: grid; gap: 12px; }
.olx-support__primary { background: linear-gradient(135deg, #6d5cff, #3b82f6) !important; color: #fff !important; border: 0 !important; }
.olx-support__list { display: grid; gap: 8px; }
.olx-support__item { display: grid; gap: 4px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(148, 163, 255, 0.16); background: rgba(255, 255, 255, 0.04); color: inherit; cursor: pointer; font: inherit; }
.olx-support__item:hover { border-color: rgba(148, 163, 255, 0.4); }
.olx-support__item-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.olx-support__num { color: rgba(220, 228, 255, 0.55); font-size: 12.5px; flex: none; }
.olx-support__subj { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.olx-support__new { flex: none; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #ef4444; color: #fff; }
.olx-support__meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: rgba(220, 228, 255, 0.6); }
.olx-support__status { white-space: nowrap; flex: none; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(251, 191, 36, 0.16); color: #fbbf24; }
.olx-support__status--in_progress { background: rgba(56, 189, 248, 0.16); color: #38bdf8; }
.olx-support__status--resolved { background: rgba(52, 211, 153, 0.16); color: #34d399; }
.olx-support__back { justify-self: start; background: none; border: 0; color: #8fa2ff; cursor: pointer; font: inherit; padding: 4px 0; }
.olx-support__form { display: grid; gap: 10px; }
.olx-support__label { display: grid; gap: 6px; font-size: 13px; color: rgba(220, 228, 255, 0.7); }
.olx-support__input { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(148, 163, 255, 0.22); background: rgba(8, 12, 28, 0.55); color: #fff; font: inherit; outline: none; }
.olx-support__input:focus { border-color: #7c8cff; }
.olx-support__text { resize: vertical; min-height: 84px; line-height: 1.45; }
.olx-support__shot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.olx-support__file { cursor: pointer; }
.olx-support__preview { max-width: 100%; max-height: 180px; border-radius: 10px; justify-self: start; }
.olx-support__head { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.olx-support__thread { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; padding: 2px; }
.olx-support__msg { align-self: flex-start; max-width: 86%; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); white-space: pre-wrap; word-break: break-word; }
.olx-support__msg--staff { background: rgba(109, 92, 255, 0.22); }
.olx-support__msg img { display: block; max-width: 100%; max-height: 240px; border-radius: 8px; margin-top: 8px; }
.olx-support__msg-meta { font-size: 11.5px; color: rgba(220, 228, 255, 0.55); margin-bottom: 3px; }
.olx-support__event { align-self: center; font-size: 12px; color: rgba(220, 228, 255, 0.5); }
[data-theme="light"] .olx-support__item { background: #fff; border-color: rgba(30, 41, 90, 0.12); }
[data-theme="light"] .olx-support__input { background: #fff; color: #111827; border-color: rgba(30, 41, 90, 0.2); }
[data-theme="light"] .olx-support__msg { background: rgba(30, 41, 90, 0.06); }
[data-theme="light"] .olx-support__msg--staff { background: rgba(109, 92, 255, 0.14); }
