/* Aura Updates — только заставка + чипы версий (без ленты чата) */

#chatView.is-aura-updates .discord-messages,
#chatView.is-aura-updates #typing,
#chatView.is-aura-updates #mentionPicker,
#chatView.is-aura-updates #composer,
#chatView.is-aura-updates #officialComposerNotice,
#chatView.is-aura-updates #scrollToBottomHost,
#chatView.is-aura-updates #tgSearchWrap,
#chatView.is-aura-updates #chatSearch,
#chatView.is-aura-updates #chatSearchPanel {
  display: none !important;
}

#chatView.is-aura-updates .discord-chat {
  position: relative;
  min-height: 0;
}

/* Шапка Aura Updates:
   Discord — relative.
   Telegram — нельзя ставить position:relative: ломает absolute-капсулу (схлопывание). */
#chatView.is-aura-updates .discord-header {
  z-index: 6;
}

#chatView.is-aura-updates .discord-header__actions {
  visibility: hidden;
  pointer-events: none;
}

#chatView.is-aura-updates .discord-mobile-back {
  flex: 0 0 auto;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

#chatView.is-aura-updates .discord-header__channel {
  visibility: visible;
  pointer-events: none;
  position: relative;
  z-index: 2;
  margin: 0;
  min-width: 0;
  justify-content: flex-start;
}

#chatView.is-aura-updates .discord-header__channel .hash,
#chatView.is-aura-updates .discord-header__channel .header-bullet,
#chatView.is-aura-updates .discord-header__channel #channelDivider,
#chatView.is-aura-updates .discord-header__channel #channelTopic,
#chatView.is-aura-updates .discord-header__channel #roomNameEdit,
#chatView.is-aura-updates .discord-header__channel #roomNameInput {
  display: none !important;
}

#chatView.is-aura-updates .discord-header__channel #dmHeaderAvatar {
  display: grid !important;
  flex-shrink: 0;
}

#chatView.is-aura-updates .discord-header__channel .discord-header__info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

#chatView.is-aura-updates .discord-header__channel .discord-header__title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

#chatView.is-aura-updates .discord-header__channel .discord-header__title-wrap strong {
  flex: 0 0 auto;
  overflow: visible;
  text-overflow: clip;
}

#chatView.is-aura-updates .discord-header__channel .discord-header__official-badge {
  flex: 0 0 auto;
}

#chatView.is-aura-updates .aura-updates-versions {
  display: flex !important;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: min(420px, calc(100% - 220px));
  margin: 0;
  padding: 0;
  z-index: 4;
  pointer-events: auto;
}

/* Discord: relative bar */
#app.discord-app.ui-discord #chatView.is-aura-updates .discord-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

#app.discord-app.ui-discord #chatView.is-aura-updates .discord-header__channel {
  flex: 1 1 0;
  max-width: calc(50% - 36px);
  overflow: hidden;
}

#app.discord-app.ui-discord #chatView.is-aura-updates .discord-header__actions {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

/* Telegram: restore stretched floating capsule */
#app.ui-telegram #chatView.is-aura-updates .discord-header {
  position: absolute !important;
  top: var(--tg-header-top) !important;
  left: 16px !important;
  right: 16px !important;
  width: auto !important;
  max-width: var(--tg-middle-column-width) !important;
  height: var(--tg-header-h) !important;
  min-height: var(--tg-header-h) !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

#app.ui-telegram #chatView.is-aura-updates .discord-header__channel {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: calc(50% - 36px) !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 4px 8px 4px 0 !important;
  overflow: hidden !important;
}

#app.ui-telegram #chatView.is-aura-updates .discord-header__channel .discord-header__info {
  flex: 1 1 auto !important;
  flex-direction: row !important;
  align-items: center !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

#app.ui-telegram #chatView.is-aura-updates .discord-header__channel .discord-header__title-wrap {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

#app.ui-telegram #chatView.is-aura-updates .discord-header__channel .discord-header__title-wrap strong {
  flex: 0 0 auto !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

#app.ui-telegram #chatView.is-aura-updates .discord-header__channel .discord-header__official-badge {
  flex: 0 0 auto !important;
  overflow: visible !important;
}

#app.ui-telegram #chatView.is-aura-updates .aura-updates-versions {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 5 !important;
  margin: 0 !important;
  pointer-events: auto !important;
}

#app.ui-telegram #chatView.is-aura-updates .discord-header__actions {
  display: none !important;
}

#chatView.is-aura-updates .aura-updates-versions__chip,
#chatView.is-aura-updates .aura-updates-versions__chip.is-active {
  -webkit-appearance: none !important;
  appearance: none !important;
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

#chatView.is-aura-updates .aura-updates-versions__chip:hover,
#chatView.is-aura-updates .aura-updates-versions__chip.is-active:hover {
  background: rgba(148, 130, 255, 0.1) !important;
  box-shadow: inset 0 0 0 1.5px #9482ff !important;
}

#chatView.is-aura-updates .aura-updates-app-tab {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  margin: 0;
  padding: 7px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(242, 243, 245, 0.78);
  font: 650 13px/1.2 "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#chatView.is-aura-updates .aura-updates-app-tab:hover {
  color: #fff;
  background: rgba(148, 130, 255, 0.12);
}

#chatView.is-aura-updates .aura-updates-app-tab.is-active,
#chatView.is-aura-updates .aura-updates-app-tab[aria-pressed="true"] {
  color: #fff;
  background: rgba(148, 130, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(148, 130, 255, 0.55);
}

#app.ui-telegram #chatView.is-aura-updates .aura-updates-app-tab {
  right: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.aura-updates-app-panel {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: block;
  background:
    radial-gradient(120% 90% at 50% 115%, rgba(40, 24, 72, 0.55), transparent 52%),
    radial-gradient(90% 70% at 12% 18%, rgba(72, 48, 140, 0.35), transparent 55%),
    radial-gradient(80% 60% at 88% 22%, rgba(30, 90, 160, 0.28), transparent 50%),
    radial-gradient(70% 50% at 50% 42%, rgba(20, 16, 40, 0.4), transparent 65%),
    #030308;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.38s;
  overflow: hidden;
}

.aura-updates-app-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.aura-updates-app-panel[hidden] {
  display: none !important;
}

/* Официальный чат: только приложение, без заставки 2.0.0 */
#chatView.is-aura-updates-app-only .aura-updates-versions,
#chatView.is-aura-updates-app-only .aura-updates-app-tab,
#chatView.is-aura-updates-app-only #auraUpdatesSplash {
  display: none !important;
}

#chatView.is-aura-updates-app-only .aura-updates-app-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.aura-updates-app-panel__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aura-updates-app-panel__fx::before,
.aura-updates-app-panel__fx::after {
  content: '';
  position: absolute;
  inset: -20%;
  pointer-events: none;
}

/* Медленная «аврора» */
.aura-updates-app-panel__fx::before {
  background:
    conic-gradient(
      from 210deg at 50% 60%,
      transparent 0deg,
      rgba(120, 90, 255, 0.14) 40deg,
      transparent 90deg,
      rgba(40, 180, 255, 0.1) 150deg,
      transparent 210deg,
      rgba(180, 80, 255, 0.08) 280deg,
      transparent 360deg
    );
  filter: blur(40px);
  opacity: 0.85;
  animation: auraAppFxSpin 28s linear infinite;
}

/* Лучи / объёмный свет */
.aura-updates-app-panel__fx::after {
  background:
    radial-gradient(ellipse 42% 28% at 50% 58%, rgba(148, 130, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 18% 55% at 30% 40%, rgba(90, 200, 255, 0.08), transparent 72%),
    radial-gradient(ellipse 16% 50% at 72% 38%, rgba(180, 100, 255, 0.07), transparent 72%);
  animation: auraAppFxPulse 6.5s ease-in-out infinite;
}

.aura-updates-app-panel__fx-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 130, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 130, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center center;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 10%, transparent 72%);
  opacity: 0.55;
  transform: perspective(700px) rotateX(58deg) translateY(18%) scale(1.35);
  transform-origin: 50% 60%;
  animation: auraAppFxGrid 12s ease-in-out infinite;
}

.aura-updates-app-panel__fx-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 70% at 50% 48%, transparent 35%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 22%, transparent 70%, rgba(0, 0, 0, 0.55) 100%);
}

.aura-updates-app-panel__fx-spark {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 2px rgba(180, 160, 255, 0.65);
  opacity: 0;
  animation: auraAppFxSpark 4.8s ease-in-out infinite;
}

.aura-updates-app-panel__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  z-index: 1;
}

.aura-updates-app-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  padding:
    48px 20px
    max(22px, env(safe-area-inset-bottom))
    20px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(4, 3, 12, 0.35) 18%,
    rgba(4, 3, 12, 0.82) 55%,
    rgba(3, 2, 10, 0.96) 100%
  );
  pointer-events: none;
}

.aura-updates-app-info__card {
  width: min(100%, 420px);
  padding: 18px 18px 16px;
  border-radius: 22px;
  text-align: left;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 42%, rgba(20, 16, 40, 0.35) 100%);
  border: 1px solid rgba(168, 150, 255, 0.22);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.aura-updates-app-info__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.aura-updates-app-info__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow:
    0 10px 24px rgba(88, 101, 242, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.aura-updates-app-info__titles {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.aura-updates-app-info__kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(170, 200, 255, 0.7);
}

.aura-updates-app-info__title {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #f6f4ff;
}

.aura-updates-app-info__text {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(220, 214, 255, 0.68);
}

.aura-updates-app-info__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.aura-updates-app-info__ver {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #e8e4ff;
  background: rgba(90, 200, 255, 0.12);
  border: 1px solid rgba(90, 200, 255, 0.28);
}

.aura-updates-app-info__url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e8e4ff;
  background: rgba(148, 130, 255, 0.14);
  border: 1px solid rgba(148, 130, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (max-width: 720px) {
  .aura-updates-app-info {
    padding-left: 14px;
    padding-right: 14px;
  }

  .aura-updates-app-info__card {
    padding: 16px 15px 14px;
    border-radius: 20px;
  }

  .aura-updates-app-info__title {
    font-size: 1.05rem;
  }

  .aura-updates-app-info__text {
    font-size: 0.88rem;
  }
}

@keyframes auraAppFxSpin {
  from {
    transform: rotate(0deg) scale(1.05);
  }
  to {
    transform: rotate(360deg) scale(1.05);
  }
}

@keyframes auraAppFxPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1) translateY(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.06) translateY(-1.5%);
  }
}

@keyframes auraAppFxGrid {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes auraAppFxSpark {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
  40%,
  60% {
    opacity: 0.9;
    transform: scale(1.2);
  }
}

html.aura-no-motion .aura-updates-app-panel {
  transition: none;
}

html.aura-no-motion .aura-updates-app-panel__fx::before,
html.aura-no-motion .aura-updates-app-panel__fx::after,
html.aura-no-motion .aura-updates-app-panel__fx-grid,
html.aura-no-motion .aura-updates-app-panel__fx-spark {
  animation: none !important;
}

/* Слабые устройства: без blur/анимаций фона */
.aura-updates-app-panel--lite .aura-updates-app-panel__fx::before,
.aura-updates-app-panel--lite .aura-updates-app-panel__fx::after,
.aura-updates-app-panel--lite .aura-updates-app-panel__fx-grid,
.aura-updates-app-panel--lite .aura-updates-app-panel__fx-spark {
  display: none !important;
  animation: none !important;
  filter: none !important;
}

.aura-updates {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(120, 100, 220, 0.22), transparent 55%),
    radial-gradient(90% 60% at 80% 100%, rgba(88, 101, 242, 0.12), transparent 50%),
    #0e0e12;
  color: #f2f3f5;
}

.aura-updates.hidden,
.aura-updates[hidden] {
  display: none !important;
}

#app.ui-telegram .aura-updates {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(135, 116, 225, 0.2), transparent 55%),
    radial-gradient(90% 60% at 20% 100%, rgba(90, 200, 250, 0.08), transparent 50%),
    #0f0f0f;
}

/* Плавный стык список чатов ↔ окно обновлений — только TG desktop */
@media (min-width: 769px) {
  #app.ui-telegram:has(#chatView.is-aura-updates) {
    position: relative;
  }

  #app.ui-telegram:has(#chatView.is-aura-updates) .channel-sidebar {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.04),
      0 1px 2px rgba(0, 0, 0, 0.28),
      10px 0 28px rgba(0, 0, 0, 0.5),
      22px 0 56px rgba(0, 0, 0, 0.38),
      36px 0 72px rgba(8, 8, 8, 0.45) !important;
  }

  #app.discord-app.ui-telegram:has(#chatView.is-aura-updates)::after {
    content: '';
    position: absolute;
    left: calc(var(--tg-float-gap, 16px) + var(--sidebar-width, 420px) - 10px);
    top: var(--tg-float-gap, 16px);
    bottom: var(--tg-float-gap, 16px);
    width: calc(var(--tg-float-gap, 16px) + 68px);
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      rgba(33, 33, 33, 0.88) 0%,
      rgba(24, 24, 24, 0.55) 28%,
      rgba(15, 15, 15, 0.48) 55%,
      rgba(15, 15, 15, 0.16) 78%,
      transparent 100%
    );
  }

  #app.ui-telegram #chatView.is-aura-updates .aura-updates {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0,
      rgba(0, 0, 0, 0.4) 16px,
      #000 48px,
      #000 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      rgba(0, 0, 0, 0.4) 16px,
      #000 48px,
      #000 100%
    );
  }
}

/* TG mobile: без стыка / маски — сплошной экран обновлений */
@media (max-width: 768px) {
  #app.discord-app.ui-telegram:has(#chatView.is-aura-updates)::after {
    content: none !important;
    display: none !important;
  }

  #app.ui-telegram #chatView.is-aura-updates .aura-updates {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}

.aura-updates-splash {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
  padding: 0;
  gap: 0;
  touch-action: none;
}

.aura-updates-splash__stage {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 0;
  max-height: none;
  padding: 8px 16px 20px;
  box-sizing: border-box;
  overflow: hidden;
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  transition:
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease;
  will-change: transform, opacity;
}

.aura-updates-splash__main {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-bottom: 8px;
  box-sizing: border-box;
}

.aura-updates-splash.is-changelog .aura-updates-splash__stage {
  pointer-events: none;
}

.aura-updates-splash.is-changelog .aura-updates-splash__glow {
  opacity: 0.2;
  transition: opacity 0.55s ease;
}

.aura-updates-splash__glow {
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(520px, 90vw);
  height: min(280px, 40vh);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(148, 130, 255, 0.35), transparent 68%);
  filter: blur(28px);
  pointer-events: none;
  animation: auraUpdatesGlow 4.5s ease-in-out infinite;
}

.aura-updates-splash__glow--orb {
  width: min(220px, 40vw);
  height: min(220px, 40vw);
  top: 34%;
  background: radial-gradient(circle, rgba(90, 200, 250, 0.28), transparent 70%);
  animation-delay: -1.4s;
}

.aura-updates-splash__glow--wide {
  top: 58%;
  width: min(680px, 110vw);
  height: min(220px, 32vh);
  background: radial-gradient(circle, rgba(88, 101, 242, 0.22), transparent 70%);
  filter: blur(36px);
  animation-delay: -2.2s;
}

.aura-updates-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aura-updates-fx__ring {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(420px, 78vw);
  height: min(420px, 78vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(185, 176, 255, 0.14);
  box-shadow:
    0 0 40px rgba(148, 130, 255, 0.08),
    inset 0 0 40px rgba(125, 211, 252, 0.04);
  animation: auraUpdatesRing 7s ease-in-out infinite;
}

.aura-updates-fx__ring--delay {
  width: min(540px, 92vw);
  height: min(540px, 92vw);
  border-color: rgba(125, 211, 252, 0.1);
  animation-delay: -2.5s;
  animation-duration: 9s;
}

.aura-updates-fx__spark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 10px rgba(185, 176, 255, 0.7),
    0 0 22px rgba(125, 211, 252, 0.35);
  animation: auraUpdatesSpark 4.8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes auraUpdatesRing {
  0%,
  100% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(0.96);
  }
  50% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes auraUpdatesSpark {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0) scale(0.7);
  }
  50% {
    opacity: 0.95;
    transform: translateY(-10px) scale(1.15);
  }
}

@keyframes auraUpdatesGlow {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/* ——— Version chips (в шапке приложения) ——— */
.aura-updates-versions {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.aura-updates-versions::-webkit-scrollbar {
  display: none;
}

.aura-updates-versions__chip {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  margin: 0;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.aura-updates-versions__chip:hover,
.aura-updates-versions__chip.is-active:hover {
  color: #fff;
  background: rgba(148, 130, 255, 0.1);
  box-shadow: inset 0 0 0 1.5px #9482ff;
}

.aura-updates-versions__chip.is-active {
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}

.aura-updates-versions__chip:focus,
.aura-updates-versions__chip:focus-visible {
  outline: none;
  box-shadow: none;
}

.aura-updates-versions__chip:hover:focus,
.aura-updates-versions__chip:hover:focus-visible,
.aura-updates-versions__chip.is-active:hover:focus,
.aura-updates-versions__chip.is-active:hover:focus-visible {
  box-shadow: inset 0 0 0 1.5px #9482ff;
}

.aura-updates-versions__empty {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  padding: 6px 4px;
}

/* ——— Phones ——— */
.aura-updates-splash__phones {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(40px, 10vw, 100px);
  perspective: 1400px;
  perspective-origin: 50% 40%;
  margin-top: 4px;
  min-height: 0;
  padding-inline: 4px;
  flex: 0 1 auto;
  max-height: min(52vh, 400px);
  transform-style: preserve-3d;
}

.aura-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  --aura-phone-delay: 0s;
  opacity: 0;
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

.aura-phone__float {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform-origin: center bottom;
  max-height: 100%;
  transform-style: preserve-3d;
  filter: drop-shadow(0 28px 32px rgba(0, 0, 0, 0.5));
}

.aura-phone--discord {
  --aura-phone-delay: 0s;
  transform: translateX(-130%) rotateZ(-32deg) rotateY(38deg) scale(0.72);
}

.aura-phone--telegram {
  --aura-phone-delay: 0.12s;
  transform: translateX(130%) rotateZ(32deg) rotateY(-38deg) scale(0.72);
}

.aura-updates-splash__phones.is-ready .aura-phone--discord {
  animation: auraPhoneFlyInLeft 1.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.aura-updates-splash__phones.is-ready .aura-phone--telegram {
  animation: auraPhoneFlyInRight 1.45s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.aura-updates-splash__phones.is-ready .aura-phone--discord .aura-phone__float {
  animation: auraPhoneLevitateL 5.2s ease-in-out 1.5s infinite;
}

.aura-updates-splash__phones.is-ready .aura-phone--telegram .aura-phone__float {
  animation: auraPhoneLevitateR 5.6s ease-in-out 1.6s infinite;
}

.aura-updates-splash.is-changelog .aura-phone__float {
  animation-play-state: paused !important;
}

@keyframes auraPhoneFlyInLeft {
  0% {
    opacity: 0;
    transform: translate3d(-110%, 0, 0) rotateZ(-24deg) rotateY(28deg) scale(0.82);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateZ(-2.5deg) rotateY(14deg) rotateX(5deg) scale(1);
  }
}

@keyframes auraPhoneFlyInRight {
  0% {
    opacity: 0;
    transform: translate3d(110%, 0, 0) rotateZ(24deg) rotateY(-28deg) scale(0.82);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateZ(2.5deg) rotateY(-14deg) rotateX(5deg) scale(1);
  }
}

@keyframes auraPhoneLevitateL {
  0%,
  100% {
    transform: translateY(0) rotateZ(0deg);
  }
  50% {
    transform: translateY(-6px) rotateZ(-0.4deg);
  }
}

@keyframes auraPhoneLevitateR {
  0%,
  100% {
    transform: translateY(0) rotateZ(0deg);
  }
  50% {
    transform: translateY(-7px) rotateZ(0.4deg);
  }
}

html.aura-no-motion #auraUpdatesView .aura-phone--discord,
html.aura-motion-settle #auraUpdatesView .aura-phone--discord,
html.aura-no-motion #auraUpdatesView .aura-phone--telegram,
html.aura-motion-settle #auraUpdatesView .aura-phone--telegram,
html.aura-no-motion #auraUpdatesView .aura-phone__float,
html.aura-motion-settle #auraUpdatesView .aura-phone__float {
  animation-duration: 1.45s !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.35s !important;
}

html.aura-no-motion #auraUpdatesView .aura-updates-splash__phones.is-ready .aura-phone--discord,
html.aura-motion-settle #auraUpdatesView .aura-updates-splash__phones.is-ready .aura-phone--discord {
  animation: auraPhoneFlyInLeft 1.45s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  animation-duration: 1.45s !important;
  animation-iteration-count: 1 !important;
}

html.aura-no-motion #auraUpdatesView .aura-updates-splash__phones.is-ready .aura-phone--telegram,
html.aura-motion-settle #auraUpdatesView .aura-updates-splash__phones.is-ready .aura-phone--telegram {
  animation: auraPhoneFlyInRight 1.45s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both !important;
  animation-duration: 1.45s !important;
  animation-iteration-count: 1 !important;
}

html.aura-no-motion #auraUpdatesView .aura-updates-splash__phones.is-ready .aura-phone--discord .aura-phone__float,
html.aura-motion-settle #auraUpdatesView .aura-updates-splash__phones.is-ready .aura-phone--discord .aura-phone__float {
  animation: auraPhoneLevitateL 5.2s ease-in-out 1.5s infinite !important;
  animation-duration: 5.2s !important;
  animation-iteration-count: infinite !important;
}

html.aura-no-motion #auraUpdatesView .aura-updates-splash__phones.is-ready .aura-phone--telegram .aura-phone__float,
html.aura-motion-settle #auraUpdatesView .aura-updates-splash__phones.is-ready .aura-phone--telegram .aura-phone__float {
  animation: auraPhoneLevitateR 5.6s ease-in-out 1.6s infinite !important;
  animation-duration: 5.6s !important;
  animation-iteration-count: infinite !important;
}

.aura-phone__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.aura-phone__bezel {
  position: relative;
  width: clamp(152px, 34vw, 206px);
  max-height: 100%;
  aspect-ratio: 9 / 19.2;
  border-radius: 28px;
  padding: 9px;
  background:
    linear-gradient(
      152deg,
      #5a5a66 0%,
      #2e2e36 14%,
      #141418 38%,
      #0a0a0c 58%,
      #1c1c22 78%,
      #3f3f4a 100%
    );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22),
    0 32px 56px rgba(0, 0, 0, 0.58),
    0 14px 22px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -3px 6px rgba(0, 0, 0, 0.55),
    inset 2px 0 3px rgba(255, 255, 255, 0.07),
    inset -2px 0 4px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
  isolation: isolate;
}

.aura-phone__bezel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.12) 28%,
    rgba(255, 255, 255, 0.02) 48%,
    rgba(0, 0, 0, 0.55) 72%,
    rgba(255, 255, 255, 0.14) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5;
}

.aura-phone__bezel::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 18px;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.05) 18%,
    transparent 38%,
    transparent 72%,
    rgba(255, 255, 255, 0.03) 100%
  );
  pointer-events: none;
  z-index: 4;
  mix-blend-mode: soft-light;
}

.aura-phone__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 6;
  width: 34%;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #050506, #111114);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.5);
}

.aura-phone__notch::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 18%;
  width: 5px;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a3a55, #0a1020 70%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.15);
}

.aura-phone__screen {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #1e1f22;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.65),
    inset 0 3px 10px rgba(0, 0, 0, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.aura-phone--discord .aura-phone__screen {
  background: #1e1f22;
}

.aura-phone--telegram .aura-phone__screen {
  background: #0f0f0f;
}

.aura-phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 2px;
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  transition:
    opacity 0.7s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}

.aura-phone--discord .aura-phone__status {
  background: #1e1f22;
}

.aura-phone--telegram .aura-phone__status {
  background: #0f0f0f;
  padding: 9px 10px 4px;
}

.aura-phone__signal {
  width: 18px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 30%, rgba(255, 255, 255, 0.7) 30% 100%);
}

.aura-phone__stage {
  position: relative;
  height: calc(100% - 22px);
  overflow: hidden;
}

.aura-phone__list,
.aura-phone__chat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.aura-phone__list {
  padding: 0;
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 0.75s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.75s cubic-bezier(0.33, 1, 0.68, 1);
}

.aura-phone--discord .aura-phone__list {
  background: #2b2d31;
}

.aura-phone--telegram .aura-phone__list {
  background: #0f0f0f;
  padding-bottom: 36px;
}

.aura-phone__rest {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  background:
    radial-gradient(ellipse 70% 45% at 50% 42%, rgba(135, 116, 225, 0.2), transparent 72%),
    #0c0c10;
}

.aura-phone--discord .aura-phone__rest {
  background:
    radial-gradient(ellipse 70% 45% at 50% 42%, rgba(88, 101, 242, 0.26), transparent 72%),
    #111214;
}

.aura-phone__rest-logo {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 10px;
  opacity: 0;
  transform: scale(0.82) translateY(6px);
  filter: drop-shadow(0 6px 16px rgba(88, 101, 242, 0.35));
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.aura-phone__rest b {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.aura-phone__rest span {
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.aura-phone[data-scene='rest'] .aura-phone__rest {
  opacity: 1;
}

.aura-phone[data-scene='rest'] .aura-phone__rest-logo {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition-delay: 0.12s;
}

.aura-phone[data-scene='rest'] .aura-phone__rest b {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.28s;
}

.aura-phone[data-scene='rest'] .aura-phone__rest span {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.42s;
}

.aura-phone:not([data-scene='rest']) .aura-phone__rest-logo,
.aura-phone:not([data-scene='rest']) .aura-phone__rest b,
.aura-phone:not([data-scene='rest']) .aura-phone__rest span {
  transition-delay: 0s;
  transition-duration: 0.35s;
}

.aura-phone__chat {
  opacity: 0;
  transform: translateX(22px);
  pointer-events: none;
  transition:
    opacity 0.75s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.75s cubic-bezier(0.33, 1, 0.68, 1);
}

.aura-phone--discord .aura-phone__chat {
  background: #313338;
}

.aura-phone--telegram .aura-phone__chat {
  background: #0b141a;
}

/* ——— Discord mobile list ——— */
.aura-dc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px 8px;
  background: #1e1f22;
}

.aura-dc-head strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f2f3f5;
}

.aura-dc-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.aura-dc-mail,
.aura-dc-add {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: #2b2d31;
  color: #dbdee1;
}

.aura-dc-mail svg,
.aura-dc-add svg {
  width: 11px;
  height: 11px;
}

.aura-dc-mail svg rect,
.aura-dc-mail svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aura-dc-add svg path {
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
}

.aura-dc-mail b {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 10px;
  height: 10px;
  padding: 0 2px;
  border-radius: 999px;
  background: #f23f43;
  color: #fff;
  font-size: 6px;
  font-weight: 800;
  line-height: 10px;
  text-align: center;
}

.aura-dc-chat-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 6px;
  background: #2b2d31;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.aura-dc-head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: #b5bac1;
}

.aura-dc-search,
.aura-dc-call {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
}

.aura-dc-search svg,
.aura-dc-call svg {
  width: 13px;
  height: 13px;
  display: block;
}

.aura-dc-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 6px 8px;
  margin: 0 4px 2px;
  border-radius: 8px;
}

.aura-dc-row.is-active {
  background: rgba(88, 101, 242, 0.28);
}

.aura-dc-av {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--av, #5865f2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.aura-dc-av > span {
  font-size: 11px;
  font-weight: 750;
  color: #fff;
  line-height: 1;
}

.aura-dc-av > i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #242429;
  box-shadow: 0 0 0 2px #2b2d31;
}

.aura-dc-av > i.is-online {
  background: #23a559;
}

.aura-dc-av--official {
  background: linear-gradient(145deg, #5865f2, #7c3aed);
}

.aura-dc-av--official > span::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.aura-dc-av--sm {
  width: 20px;
  height: 20px;
}

.aura-dc-av--sm > span {
  font-size: 8px;
}

.aura-dc-av--sm > i {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 1.5px #2b2d31;
}

.aura-dc-meta {
  min-width: 0;
}

.aura-dc-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
}

.aura-dc-top b {
  font-size: 9px;
  font-weight: 700;
  color: #f2f3f5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aura-dc-top time {
  font-size: 7px;
  color: #949ba4;
  flex-shrink: 0;
}

.aura-dc-meta em {
  display: block;
  margin-top: 1px;
  font-size: 8px;
  font-style: normal;
  color: #949ba4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aura-dc-back {
  width: 10px;
  height: 10px;
  position: relative;
  flex-shrink: 0;
}

.aura-dc-back::before {
  content: '';
  position: absolute;
  inset: 1px 3px 1px 1px;
  border-left: 1.5px solid #b5bac1;
  border-bottom: 1.5px solid #b5bac1;
  transform: rotate(45deg);
}

.aura-dc-chat-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.aura-dc-chat-title strong {
  font-size: 9px;
  font-weight: 700;
  color: #f2f3f5;
  line-height: 1.1;
}

.aura-dc-chat-title small {
  font-size: 7px;
  color: #23a559;
}

.aura-dc-status {
  display: none;
}

.aura-phone--discord:not([data-scene='wait']) .aura-dc-status--online {
  display: block;
}

.aura-phone--discord[data-scene='wait'] .aura-dc-status--typing {
  display: block;
  color: #b5bac1;
}

.aura-dc-day {
  display: none;
  align-items: center;
  align-self: stretch;
  gap: 6px;
  margin: 2px 2px 6px;
  color: #949ba4;
  font-size: 7px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.aura-phone--discord[data-scene='sent'] .aura-dc-day,
.aura-phone--discord[data-scene='wait'] .aura-dc-day,
.aura-phone--discord[data-scene='reply'] .aura-dc-day {
  display: flex;
}

.aura-dc-day::before,
.aura-dc-day::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.aura-dc-day span {
  flex: 0 0 auto;
}

.aura-dc-composer {
  background: #383a40 !important;
  border-radius: 16px !important;
  margin: 0 6px 7px !important;
  gap: 5px !important;
}

.aura-dc-plus {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #b5bac1;
  background: #2b2d31;
  flex-shrink: 0;
}

.aura-dc-plus svg {
  width: 10px;
  height: 10px;
  display: block;
}

.aura-dc-emoji {
  width: 14px;
  height: 14px;
  color: #b5bac1;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  opacity: 0.9;
}

.aura-dc-emoji svg {
  width: 13px;
  height: 13px;
  display: block;
}

.aura-phone--discord .aura-phone__bubble--in {
  background: #2b2d31;
  border-radius: 8px 8px 8px 4px;
}

.aura-phone--discord .aura-phone__bubble--out {
  background: #5865f2;
  border-radius: 8px 8px 4px 8px;
}

.aura-phone--discord .aura-phone__send {
  background: #5865f2;
}

/* ——— Telegram mobile list (как в Aura, не stock TG) ——— */
.aura-tg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  padding: 10px 10px 6px;
  box-sizing: border-box;
}

.aura-tg-brand {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.01em;
  text-align: left;
}

.aura-tg-burger {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  gap: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.aura-tg-burger i {
  width: 13px;
  height: 1.5px;
  border-radius: 2px;
  background: #fff;
}

.aura-tg-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  padding: 4px;
  flex-shrink: 0;
}

.aura-tg-menu i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.9;
}

.aura-tg-menu--chat {
  margin-left: auto;
  padding: 2px 0;
}

.aura-tg-search {
  margin: 2px 8px 8px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #242424;
  color: #8e8e8e;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.aura-tg-search svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  opacity: 0.85;
}

.aura-tg-capsule {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  width: min(118px, calc(100% - 28px));
  height: 26px;
  padding: 2px;
  border-radius: 999px;
  background: #212121;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 6px 14px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
  box-sizing: border-box;
}

.aura-tg-capsule > span {
  flex: 1 1 0;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 100%;
  border-radius: 999px;
  font-size: 6px;
  font-weight: 700;
  color: #8e8e8e;
  letter-spacing: 0.01em;
}

.aura-tg-capsule > span.is-active {
  color: #fff;
  background: #2b2b2b;
}

.aura-tg-attach {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #8e8e8e;
  display: grid;
  place-items: center;
  opacity: 0.95;
}

.aura-tg-attach svg {
  width: 14px;
  height: 14px;
  display: block;
}

.aura-tg-emoji {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: #8e8e8e;
  display: grid;
  place-items: center;
  opacity: 0.9;
}

.aura-tg-emoji svg {
  width: 12px;
  height: 12px;
  display: block;
}

.aura-tg-row {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  margin: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.aura-tg-row.is-active {
  background: rgba(135, 116, 225, 0.18);
}

.aura-tg-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--av, #766ac8);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 750;
  color: #fff;
  line-height: 1;
}

.aura-tg-av--aura {
  background: linear-gradient(145deg, #8774e1, #5ac8fa);
  font-size: 13px;
}

.aura-tg-av--sm {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.aura-tg-meta {
  min-width: 0;
  padding-right: 16px;
}

.aura-tg-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
}

.aura-tg-top b {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aura-tg-top time {
  font-size: 7px;
  color: #8e8e8e;
  flex-shrink: 0;
}

.aura-tg-meta em {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  font-style: normal;
  color: #8e8e8e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aura-tg-meta em.is-typing {
  color: #8774e1;
}

.aura-tg-muted {
  color: #aaa;
}

.aura-tg-checks {
  display: inline-block;
  width: 10px;
  height: 7px;
  margin-right: 2px;
  position: relative;
  vertical-align: middle;
}

.aura-tg-checks::before,
.aura-tg-checks::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 2.5px;
  border-left: 1.2px solid #5ac8fa;
  border-bottom: 1.2px solid #5ac8fa;
  transform: rotate(-45deg);
  top: 1px;
}

.aura-tg-checks::before {
  left: 0;
  opacity: 0.55;
}

.aura-tg-checks::after {
  left: 3px;
}

.aura-tg-badge {
  position: absolute;
  right: 10px;
  bottom: 9px;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  border-radius: 999px;
  background: #8774e1;
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.aura-tg-badge--alex {
  opacity: 0;
  transform: scale(0.55);
  pointer-events: none;
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.aura-phone--telegram[data-scene='ping'] .aura-tg-badge--alex {
  opacity: 1;
  transform: scale(1);
}

.aura-phone--telegram .aura-phone__chat {
  background: #0b141a;
}

.aura-tg-wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 15%, rgba(135, 116, 225, 0.16), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(90, 200, 250, 0.1), transparent 40%),
    repeating-linear-gradient(
      -18deg,
      transparent 0 10px,
      rgba(255, 255, 255, 0.015) 10px 11px
    ),
    #0b141a;
}

.aura-tg-chat-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 8px 7px;
  border-radius: 0;
  background: rgba(33, 33, 33, 0.94);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.aura-tg-back {
  width: 10px;
  height: 10px;
  position: relative;
  flex-shrink: 0;
}

.aura-tg-back::before {
  content: '';
  position: absolute;
  inset: 1px 3px 1px 1px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
}

.aura-tg-chat-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.aura-tg-chat-title strong {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.aura-tg-chat-title small {
  font-size: 7px;
  color: #8e8e8e;
}

.aura-tg-status {
  display: none;
}

/* В шапке TG статус собеседника: всегда «в сети» (печатает — только Discord, когда ждёт ответ) */
.aura-phone--telegram[data-scene='chat'] .aura-tg-status--online,
.aura-phone--telegram[data-scene='recv'] .aura-tg-status--online,
.aura-phone--telegram[data-scene='typing'] .aura-tg-status--online,
.aura-phone--telegram[data-scene='sent'] .aura-tg-status--online {
  display: block;
  color: #6ebe76;
}

.aura-tg-day {
  display: none;
  align-self: center;
  margin: 2px 0 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.72);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.aura-phone--telegram[data-scene='recv'] .aura-tg-day,
.aura-phone--telegram[data-scene='typing'] .aura-tg-day,
.aura-phone--telegram[data-scene='sent'] .aura-tg-day {
  display: block;
}

.aura-tg-composer {
  position: relative;
  z-index: 1;
  background: transparent !important;
  border-radius: 0 !important;
  margin: 0 5px 7px !important;
  padding: 0 !important;
  gap: 5px !important;
  align-items: center;
}

.aura-tg-field {
  background: #1c1c1c;
  border-radius: 18px;
  padding: 5px 8px;
  min-height: 22px;
}

.aura-phone--telegram .aura-phone__bubbles {
  position: relative;
  z-index: 1;
}

.aura-phone--telegram .aura-phone__bubble {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 4px 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.aura-phone--telegram .aura-phone__bubble--in {
  background: #212121;
  border-radius: 12px 12px 12px 4px;
}

.aura-phone--telegram .aura-phone__bubble--out {
  background: #8774e1;
  border-radius: 12px 12px 4px 12px;
}

.aura-tg-time {
  margin-left: auto;
  font-size: 6px;
  font-weight: 600;
  opacity: 0.72;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.aura-phone--telegram .aura-phone__bubble--out .aura-tg-time {
  color: rgba(255, 255, 255, 0.85);
}

.aura-phone--telegram .aura-phone__bubble--out .aura-tg-checks::before,
.aura-phone--telegram .aura-phone__bubble--out .aura-tg-checks::after {
  border-color: rgba(255, 255, 255, 0.9);
}

.aura-phone--telegram .aura-phone__send {
  background: #8774e1;
}

.aura-phone__field {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.aura-phone__draft {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition:
    opacity 0.2s ease,
    clip-path 0.85s steps(6, end);
}

.aura-phone__send {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #5865f2;
  flex: 0 0 18px;
  opacity: 0.35;
  transform: scale(0.92);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  align-self: center;
}

.aura-phone__bubble--out {
  align-self: flex-end;
  color: #fff;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* JS scenes: Discord ↔ Telegram переписка */
.aura-phone[data-scene='chat'] .aura-phone__list,
.aura-phone[data-scene='typing'] .aura-phone__list,
.aura-phone[data-scene='sent'] .aura-phone__list,
.aura-phone[data-scene='recv'] .aura-phone__list,
.aura-phone[data-scene='wait'] .aura-phone__list,
.aura-phone[data-scene='reply'] .aura-phone__list {
  opacity: 0;
  transform: translateX(-16px);
}

.aura-phone[data-scene='dim'] .aura-phone__list,
.aura-phone[data-scene='rest'] .aura-phone__list {
  opacity: 0;
  transform: scale(0.985);
}

.aura-phone[data-scene='chat'] .aura-phone__chat,
.aura-phone[data-scene='typing'] .aura-phone__chat,
.aura-phone[data-scene='sent'] .aura-phone__chat,
.aura-phone[data-scene='recv'] .aura-phone__chat,
.aura-phone[data-scene='wait'] .aura-phone__chat,
.aura-phone[data-scene='reply'] .aura-phone__chat {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.aura-phone[data-scene='dim'] .aura-phone__chat,
.aura-phone[data-scene='rest'] .aura-phone__chat {
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
}

.aura-phone[data-scene='dim'] .aura-phone__status,
.aura-phone[data-scene='rest'] .aura-phone__status {
  opacity: 0;
  transform: translateY(-2px);
}

.aura-phone[data-scene='typing'] .aura-phone__draft {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.aura-phone[data-scene='sent'] .aura-phone__draft,
.aura-phone[data-scene='wait'] .aura-phone__draft,
.aura-phone[data-scene='reply'] .aura-phone__draft {
  opacity: 0.2;
  clip-path: inset(0 0 0 0);
}

.aura-phone[data-scene='typing'] .aura-phone__send,
.aura-phone[data-scene='sent'] .aura-phone__send,
.aura-phone[data-scene='wait'] .aura-phone__send,
.aura-phone[data-scene='reply'] .aura-phone__send {
  opacity: 1;
  transform: scale(1);
}

.aura-phone[data-scene='sent'] .aura-phone__bubble--out,
.aura-phone[data-scene='wait'] .aura-phone__bubble--out,
.aura-phone[data-scene='reply'] .aura-phone__bubble--out {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.aura-phone__bubble--recv,
.aura-phone__bubble--reply {
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.aura-phone[data-scene='recv'] .aura-phone__bubble--recv,
.aura-phone[data-scene='typing'] .aura-phone__bubble--recv,
.aura-phone[data-scene='sent'] .aura-phone__bubble--recv {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.aura-phone[data-scene='reply'] .aura-phone__bubble--reply {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Telegram list previews while Discord types / sends */
.aura-tg-meta em.aura-tg-preview {
  display: none;
}

.aura-phone--telegram[data-scene='list'] .aura-tg-meta em.aura-tg-preview--idle,
.aura-phone--telegram[data-scene='watch'] .aura-tg-meta em.aura-tg-preview--typing,
.aura-phone--telegram[data-scene='ping'] .aura-tg-meta em.aura-tg-preview--msg {
  display: block;
}

.aura-phone--telegram[data-scene='watch'] .aura-tg-row.is-active,
.aura-phone--telegram[data-scene='ping'] .aura-tg-row.is-active {
  background: rgba(135, 116, 225, 0.22);
}

.aura-phone__bubbles {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: 8px 7px;
}

.aura-phone__bubble {
  max-width: 78%;
  padding: 5px 7px;
  border-radius: 10px;
  font-size: 8px;
  line-height: 1.25;
  font-weight: 600;
}

.aura-phone__bubble--in {
  align-self: flex-start;
  background: #2b2d31;
  color: #dbdee1;
}

.aura-phone--telegram .aura-phone__bubble--in {
  background: #212121;
}

.aura-phone__composer {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 6px 7px;
  padding: 5px 7px;
  border-radius: 14px;
  background: #2b2d31;
  min-height: 22px;
}

.aura-phone--telegram .aura-phone__composer {
  background: #212121;
}

/* Даже при aura-no-motion — сцена заставки должна двигаться */
html.aura-no-motion #auraUpdatesView .aura-phone__list,
html.aura-motion-settle #auraUpdatesView .aura-phone__list,
html.aura-no-motion #auraUpdatesView .aura-phone__chat,
html.aura-motion-settle #auraUpdatesView .aura-phone__chat,
html.aura-no-motion #auraUpdatesView .aura-phone__rest,
html.aura-motion-settle #auraUpdatesView .aura-phone__rest,
html.aura-no-motion #auraUpdatesView .aura-phone__rest-logo,
html.aura-motion-settle #auraUpdatesView .aura-phone__rest-logo,
html.aura-no-motion #auraUpdatesView .aura-phone__rest b,
html.aura-motion-settle #auraUpdatesView .aura-phone__rest b,
html.aura-no-motion #auraUpdatesView .aura-phone__rest span,
html.aura-motion-settle #auraUpdatesView .aura-phone__rest span,
html.aura-no-motion #auraUpdatesView .aura-phone__status,
html.aura-motion-settle #auraUpdatesView .aura-phone__status {
  transition:
    opacity 0.7s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) !important;
  transition-duration: 0.7s !important;
}

html.aura-no-motion #auraUpdatesView .aura-tg-badge--alex,
html.aura-motion-settle #auraUpdatesView .aura-tg-badge--alex {
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
  transition-duration: 0.28s !important;
}

html.aura-no-motion #auraUpdatesView .aura-phone__draft,
html.aura-motion-settle #auraUpdatesView .aura-phone__draft {
  transition:
    opacity 0.2s ease,
    clip-path 0.85s steps(6, end) !important;
  transition-duration: 0.85s !important;
}

html.aura-no-motion #auraUpdatesView .aura-phone__send,
html.aura-motion-settle #auraUpdatesView .aura-phone__send,
html.aura-no-motion #auraUpdatesView .aura-phone__bubble--out,
html.aura-motion-settle #auraUpdatesView .aura-phone__bubble--out {
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
  transition-duration: 0.28s !important;
}

html.aura-no-motion #auraUpdatesView .aura-updates-splash__glow,
html.aura-motion-settle #auraUpdatesView .aura-updates-splash__glow {
  animation: auraUpdatesGlow 4.5s ease-in-out infinite !important;
  animation-duration: 4.5s !important;
  animation-delay: 0s !important;
  animation-iteration-count: infinite !important;
}

/* ——— Copy / CTA ——— */
.aura-updates-splash__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  max-width: 420px;
  width: 100%;
  margin-top: 0;
  padding-bottom: 2px;
  flex: 0 0 auto;
}

.aura-updates-splash__brand {
  margin: 0;
  font-size: clamp(32px, 7vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff 20%, #b9b0ff 55%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aura-updates-splash__version {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.aura-updates-cta {
  appearance: none;
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 6;
  margin: 10px auto 0;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(148, 130, 255, 0.22));
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  pointer-events: none;
  will-change: opacity, transform;
  flex: 0 0 auto;
}

.aura-updates-cta.is-visible {
  pointer-events: auto;
}

.aura-updates-splash.is-changelog .aura-updates-cta {
  opacity: 0 !important;
  pointer-events: none !important;
}

.aura-updates-cta:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(148, 130, 255, 0.32));
  border-color: rgba(255, 255, 255, 0.28);
}

.aura-updates-cta:active {
  transform: translate3d(0, 1px, 0) scale(0.98);
}

/* ——— Changelog panel ——— */
.aura-updates-changelog {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  margin: 0;
  padding: 56px 16px 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  transform: translate3d(0, 110%, 0);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.aura-updates-changelog::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.aura-updates-splash.is-changelog .aura-updates-changelog {
  pointer-events: auto;
}

.aura-updates-changelog__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  flex: 0 0 auto;
  width: min(520px, 100%);
}

.aura-updates-changelog__back {
  appearance: none;
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 5;
  margin: 0;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.aura-updates-changelog__back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.aura-updates-changelog__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(185, 176, 255, 0.7);
}

.aura-updates-changelog__title {
  margin: 0;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.aura-updates-changelog__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(520px, 100%);
  margin: 0 auto;
}

.aura-updates-change {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(155deg, rgba(148, 130, 255, 0.1), transparent 42%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    rgba(18, 18, 24, 0.72);
  border-radius: 20px;
  padding: 20px 22px 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.aura-updates-change.is-active {
  border-color: rgba(180, 165, 255, 0.35);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(148, 130, 255, 0.18);
}

.aura-updates-change__top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  width: 100%;
}

.aura-updates-change__version {
  display: none;
}

.aura-updates-change__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.aura-updates-change__tag--discord {
  color: #aab4ff;
}

.aura-updates-change__tag--telegram {
  color: #8fd4ff;
}

.aura-updates-change__tag--both {
  color: #c9c0ff;
}

.aura-updates-change__title {
  margin: 0 0 14px;
  font-size: clamp(17px, 4.2vw, 20px);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #fff;
  text-align: center;
}

.aura-updates-change__list {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  text-align: left;
}

.aura-updates-change__list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.aura-updates-change__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b9b0ff, #7dd3fc);
  box-shadow: 0 0 0 3px rgba(148, 130, 255, 0.15);
}

.aura-updates-change__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

/* Чат Aura в списке светится, пока не открыли обновление */
.dm-item--official.dm-item--updates-new {
  position: relative;
  background:
    linear-gradient(90deg, rgba(148, 130, 255, 0.22), rgba(148, 130, 255, 0.08) 55%, transparent 100%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(148, 130, 255, 0.42),
    0 0 18px rgba(148, 130, 255, 0.18);
  animation: auraUpdatesDmGlow 2.6s ease-in-out infinite;
}

#app.ui-telegram .dm-item--official.dm-item--updates-new {
  background:
    linear-gradient(90deg, rgba(135, 116, 225, 0.24), rgba(135, 116, 225, 0.08) 55%, transparent 100%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(135, 116, 225, 0.45),
    0 0 16px rgba(135, 116, 225, 0.2);
}

.dm-item--official.dm-item--updates-new .dm-item__avatar {
  box-shadow: 0 0 0 2px rgba(148, 130, 255, 0.45), 0 0 14px rgba(148, 130, 255, 0.35);
}

@keyframes auraUpdatesDmGlow {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(148, 130, 255, 0.32),
      0 0 12px rgba(148, 130, 255, 0.12);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(148, 130, 255, 0.62),
      0 0 22px rgba(148, 130, 255, 0.32);
  }
}

html.aura-no-motion .dm-item--official.dm-item--updates-new,
html.aura-motion-settle .dm-item--official.dm-item--updates-new {
  animation-duration: 2.6s !important;
  animation-iteration-count: infinite !important;
}

@media (max-width: 768px) {
  #app.discord-app.ui-telegram #chatView.is-aura-updates .aura-updates {
    padding-top: calc(var(--tg-header-top, 8px) + var(--tg-header-h, 52px) + 10px);
  }

  /* Discord mobile: 2.0.0 справа, без наезда на Aura / официально */
  #app.discord-app.ui-discord #chatView.is-aura-updates .discord-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-inline: 4px 10px;
  }

  #app.discord-app.ui-discord #chatView.is-aura-updates .discord-header__channel {
    flex: 1 1 auto !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  #app.discord-app.ui-discord #chatView.is-aura-updates .discord-header__channel .discord-header__title-wrap {
    gap: 6px;
  }

  #app.discord-app.ui-discord #chatView.is-aura-updates .aura-updates-versions {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    flex: 0 0 auto !important;
    margin: 0 0 0 auto !important;
    z-index: 2;
  }

  #app.discord-app.ui-discord #chatView.is-aura-updates .discord-header__actions {
    display: none !important;
  }

  /* TG mobile: то же — версия справа, без absolute-центра */
  #app.discord-app.ui-telegram #chatView.is-aura-updates .discord-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    padding-inline: 6px 10px !important;
    overflow: hidden !important;
  }

  #app.discord-app.ui-telegram #chatView.is-aura-updates .discord-header__channel {
    flex: 1 1 auto !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  #app.discord-app.ui-telegram #chatView.is-aura-updates .discord-header__channel .discord-header__title-wrap {
    gap: 6px !important;
  }

  #app.discord-app.ui-telegram #chatView.is-aura-updates .aura-updates-versions {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    flex: 0 0 auto !important;
    margin: 0 0 0 auto !important;
    z-index: 2 !important;
  }

  #app.discord-app.ui-telegram #chatView.is-aura-updates .discord-header__actions {
    display: none !important;
  }

  .aura-updates-splash__stage {
    gap: 6px;
    padding: 6px 12px 16px;
    justify-content: flex-start;
  }

  .aura-updates-splash__main {
    gap: 10px;
  }

  .aura-updates-splash__phones {
    gap: clamp(28px, 7vw, 48px);
    max-height: min(50vh, 360px);
  }

  .aura-phone__bezel {
    width: clamp(138px, 40vw, 176px);
  }

  .aura-updates-changelog {
    padding: 52px 12px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aura-updates-splash__glow,
  .aura-updates-fx__ring,
  .aura-updates-fx__spark {
    animation: none !important;
  }

  .aura-updates-splash__stage,
  .aura-updates-changelog {
    transition: none !important;
  }
}
