:root {
  --bg: #0b0b0f;
  --panel: #15151c;
  --panel-2: #1c1c26;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --primary: #7c5cff;
  --primary-2: #9b84ff;
  --danger: #ef4444;
  --border: #2a2a36;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: radial-gradient(1200px 600px at 20% -10%, #1a1433 0%, var(--bg) 55%);
  color: var(--text);
  font-family: var(--font);
}

.hidden {
  display: none !important;
}

html.aura-known #splash {
  display: none !important;
}

.screen {
  min-height: 100%;
}

/* вЂ”вЂ” Splash: Aura СѓС…РѕРґРёС‚ РІРїРµСЂС‘Рґ, РєР°РјРµСЂР° РґРѕРіРѕРЅСЏРµС‚ вЂ”вЂ” */
.splash {
  position: fixed;
  inset: 0;
  z-index: 30;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  contain: layout paint;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 45%, #101021 0%, #05050c 42%, #010103 100%);
}

.splash-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translateY(0);
}

.splash-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 26%, rgba(0, 0, 0, 0.3) 65%, rgba(0, 0, 0, 0.88) 100%);
}

.splash-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  perspective: 1050px;
  perspective-origin: 50% 48%;
  transform-origin: center;
}

.splash-world {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform-style: preserve-3d;
}

.splash.flying .splash-world {
  will-change: transform, filter, opacity;
}

.splash-world::before,
.splash-world::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: clamp(260px, 44vw, 560px);
  height: clamp(120px, 22vw, 280px);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.25);
  filter: blur(38px);
}

.splash-world::before {
  background:
    radial-gradient(ellipse, rgba(124, 92, 255, 0.62) 0%, rgba(94, 58, 238, 0.2) 42%, transparent 72%);
}

.splash-world::after {
  background:
    radial-gradient(ellipse, rgba(49, 224, 205, 0.28) 0%, rgba(124, 92, 255, 0.14) 48%, transparent 74%);
  filter: blur(58px);
}

.aura-ribbons {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(1120px, 142vw);
  height: min(448px, 57vw);
  overflow: visible;
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform, opacity;
}

.aura-ribbon {
  fill: none;
  stroke: url("#auraRibbonColor");
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  vector-effect: non-scaling-stroke;
}

.splash.aura .aura-ribbons {
  opacity: 1;
  animation: auraFieldBreathe 6s 2.9s ease-in-out infinite alternate;
}

.splash.aura .aura-ribbon {
  animation: ribbonRelease 2.65s cubic-bezier(0.22, 0.72, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 0.04s);
}

.splash.flying .splash-world {
  animation: wordFlight 4.2s linear forwards;
}

.splash.aura .splash-world::before {
  animation: auraCloud 2.8s cubic-bezier(0.22, 0.72, 0.2, 1) forwards, auraBreathe 4.8s 2.8s ease-in-out infinite;
}

.splash.aura .splash-world::after {
  animation: auraCloudWide 3.1s 0.08s cubic-bezier(0.22, 0.72, 0.2, 1) forwards, auraBreatheWide 6s 3.18s ease-in-out infinite;
}

.splash.impact .splash-stage {
  animation: cameraImpact 0.38s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.splash.reveal-ui .splash-world {
  animation: worldLift 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash.reveal-ui .splash-canvas {
  transform: translateY(-5.5vh);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.splash-title {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.025em;
  margin: 0;
  font-size: clamp(72px, 16vw, 140px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.015em;
  color: #f8f7ff;
  text-shadow:
    0 0 18px rgba(196, 181, 253, 0.38),
    0 0 55px rgba(124, 92, 255, 0.25);
}

.letter {
  display: inline-block;
  transform-origin: 50% 85%;
}

.splash.flying .letter {
  will-change: transform;
}

.splash.settled .splash-world,
.splash.settled .letter {
  will-change: auto;
}

.splash.flying:not(.approaching):not(.landed) .letter {
  animation: letterTurbulence 0.14s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.025s);
}

.splash.approaching:not(.landed) .letter {
  animation: letterDrift 0.32s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.045s);
}

.splash.aura .splash-title {
  text-shadow: 0 0 22px rgba(196, 181, 253, 0.52), 0 0 72px rgba(124, 92, 255, 0.34);
}

.splash-ui {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: max(9vh, 58px);
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}

.splash-welcome {
  margin: 0;
  color: rgba(244, 244, 245, 0.92);
  font-size: clamp(16px, 3vw, 24px);
  font-weight: 450;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(5px);
}

.splash-welcome.show {
  animation: welcomeReveal 1.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-btn {
  min-width: 180px;
  margin-top: 0;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.92);
  background: transparent;
  border: 1px solid rgba(196, 181, 253, 0.42);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(124, 92, 255, 0.08),
    0 0 28px rgba(124, 92, 255, 0.12);
  opacity: 0;
  transform: translateY(18px) scale(0.95);
  pointer-events: none;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;
}

.splash-btn.show {
  animation: fadeUp 0.9s ease forwards;
  pointer-events: auto;
}

.splash-btn:hover {
  color: #fff;
  border-color: rgba(196, 181, 253, 0.85);
  background: transparent;
  filter: none;
  box-shadow:
    0 0 0 1px rgba(124, 92, 255, 0.22),
    0 0 36px rgba(124, 92, 255, 0.32);
  transform: translateY(0) scale(1);
}

.splash-btn:active {
  transform: translateY(0) scale(0.98);
}

.splash.leaving {
  pointer-events: none;
  animation: splashLeave 0.6s ease forwards;
}

.login {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 42%, #141028 0%, #08080f 48%, #040408 100%);
  opacity: 0;
  pointer-events: none;
}

.login.show {
  pointer-events: auto;
  animation: loginEnter 0.55s ease forwards;
}

.login-card {
  width: min(400px, 100%);
  padding: 40px 36px 34px;
  border-radius: 24px;
  border: 1px solid rgba(196, 181, 253, 0.18);
  background:
    linear-gradient(165deg, rgba(28, 24, 48, 0.92) 0%, rgba(14, 14, 22, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(124, 92, 255, 0.06),
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(124, 92, 255, 0.08);
  text-align: center;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
}

.login.show .login-card {
  animation: loginCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.login-brand {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 20%, #c4b5fd 70%, #7c5cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(124, 92, 255, 0.25);
}

.login-tagline {
  margin: 12px auto 0;
  max-width: 260px;
  color: rgba(161, 161, 170, 0.92);
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.login-label {
  display: block;
  margin: 28px 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.72);
  text-align: center;
}

.login-input {
  width: 100%;
  background: rgba(8, 8, 14, 0.72);
  border: 1px solid rgba(196, 181, 253, 0.2);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
  text-align: center;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background-color 0.35s ease,
    color 0.35s ease,
    padding 0.3s ease;
}

.login-input::placeholder {
  color: rgba(161, 161, 170, 0.55);
}

.login-input:focus {
  border-color: rgba(196, 181, 253, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.16);
}

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus,
.login-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text, #f4f4f5) !important;
  caret-color: var(--text, #f4f4f5);
  border: 1px solid rgba(196, 181, 253, 0.2);
  /* Chrome иначе заливает поле белым/жёлтым */
  box-shadow: 0 0 0 1000px rgba(8, 8, 14, 0.96) inset !important;
  transition: background-color 99999s ease-out, color 99999s ease-out;
}

.login-input--code {
  letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.login-input[readonly] {
  cursor: text;
  opacity: 1;
  color: inherit;
}

.login-email-wrap {
  position: relative;
}

.login-step--awaiting-code .login-email-wrap .login-input {
  padding-right: 48px;
}

.login-email-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(228, 228, 231, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%) scale(0.82);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    opacity 0.3s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-step--awaiting-code .login-email-clear {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.login-email-clear svg {
  width: 16px;
  height: 16px;
  display: block;
}

.login-email-clear:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.login-input--locked,
.login-input.login-input--locked:focus {
  background: rgba(4, 4, 8, 0.92);
  border-color: rgba(113, 113, 122, 0.35);
  color: rgba(161, 161, 170, 0.92);
  box-shadow: none;
  cursor: default;
}

.login-input--locked:-webkit-autofill,
.login-input--locked:-webkit-autofill:hover,
.login-input--locked:-webkit-autofill:focus,
.login-input--locked:-webkit-autofill:active {
  -webkit-text-fill-color: rgba(161, 161, 170, 0.95) !important;
  box-shadow: 0 0 0 1000px rgba(4, 4, 8, 0.96) inset !important;
}

.login-action-slot {
  position: relative;
  width: 100%;
  height: 52px;
  margin-top: 22px;
}

.login-action-slot__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  box-sizing: border-box;
}

#loginEmailBtn.login-action-slot__face,
#loginCode.login-action-slot__face {
  transform-origin: center center;
  opacity: 1;
  will-change: clip-path;
}

#loginEmailBtn.login-action-slot__face {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
  z-index: 1;
}

#loginCode.login-action-slot__face {
  clip-path: inset(0 0 0 100%);
  pointer-events: none;
  z-index: 2;
  border-radius: 999px;
  text-align: center;
  letter-spacing: 0.28em;
  font-variant-numeric: tabular-nums;
  padding: 0 16px;
}

.login-step--awaiting-code #loginEmailBtn.login-action-slot__face {
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
  z-index: 0;
}

.login-step--awaiting-code #loginCode.login-action-slot__face {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
  z-index: 2;
}

#loginEmailBtn.login-action-slot__face[hidden],
#loginCode.login-action-slot__face[hidden] {
  display: none !important;
}

.login-code-extra {
  margin-top: 10px;
  min-height: 20px;
  opacity: 0;
  pointer-events: none;
}

.login-step--awaiting-code .login-code-extra {
  opacity: 1;
  pointer-events: auto;
}

.login-step {
  display: block;
}

.login-flow {
  position: relative;
  width: 100%;
}

.login-flow.is-swapping {
  overflow: hidden;
}

.login-step.is-swap-out {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  pointer-events: none;
}

.login.is-leaving {
  pointer-events: none;
  animation: loginLeave 0.45s ease forwards;
}

.login.is-leaving .login-card {
  animation: loginCardOut 0.45s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.login-hint {
  margin: 0 0 14px;
  color: rgba(161, 161, 170, 0.95);
  font-size: 13px;
  line-height: 1.4;
}

.login-link {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(196, 181, 253, 0.92);
  font-size: 13px;
  cursor: pointer;
}

.login-link:hover {
  color: #fff;
}

.login-dev-code {
  margin: 12px 0 0;
  color: rgba(167, 243, 208, 0.95);
  font-size: 12px;
  line-height: 1.4;
}

.login-dev-code.hidden {
  display: none;
}

.user-settings__email-status {
  margin: 0 0 12px;
  color: #b5bac1;
  font-size: 14px;
}

.user-settings__email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.user-settings__email-code {
  margin-top: 10px;
}

.login-submit {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.45);
  background: transparent;
  color: rgba(244, 244, 245, 0.95);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.1);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.login-submit:hover {
  color: #fff;
  border-color: rgba(196, 181, 253, 0.85);
  box-shadow: 0 0 34px rgba(124, 92, 255, 0.28);
  transform: translateY(-1px);
}

.login-submit:active {
  transform: translateY(0);
}

.login-submit--ghost {
  margin-top: 18px;
}

.login-submit.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.avatar-picker-card {
  padding-top: 34px;
}

.avatar-picker__title {
  margin: 18px 0 8px;
  color: #f4f4f5;
  font-size: 22px;
  font-weight: 700;
}

.avatar-picker__hint {
  margin: 0 0 22px;
  color: rgba(181, 186, 193, 0.92);
  font-size: 14px;
  line-height: 1.45;
}

.avatar-picker__preview {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto;
  padding: 0;
  border: 2px dashed rgba(196, 181, 253, 0.35);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(35, 36, 40, 0.95));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.avatar-picker__preview:hover {
  border-color: rgba(196, 181, 253, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 28px rgba(124, 92, 255, 0.18);
  transform: translateY(-1px);
}

.avatar-picker__preview span {
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.avatar-picker__preview.has-photo {
  border-style: solid;
  border-color: rgba(196, 181, 253, 0.55);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.avatar-picker__preview.has-photo span {
  opacity: 0;
}

.avatar-picker__skip {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: rgba(181, 186, 193, 0.92);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.avatar-picker__skip:hover {
  color: #f2f3f5;
}

.discord-avatar.has-photo,
.discord-message__avatar.has-photo,
.profile-card__avatar.has-photo,
.header-avatar.has-photo,
.dm-item__avatar.has-photo,
.dm-welcome__avatar.has-photo {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: transparent;
}

.discord-avatar.has-photo > span:not(.avatar-typing-badge),
.profile-card__avatar.has-photo span,
.header-avatar.has-photo span:not(.server-pill__donut) {
  opacity: 0;
}

.avatar-with-typing.is-typing .avatar-typing-badge {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.login-error {
  margin: 18px auto 0;
  width: fit-content;
  max-width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.12);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
}

.login-error.show {
  animation: loginErrorIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login-error.hidden {
  display: none !important;
}

@keyframes loginErrorIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-input.invalid {
  border-color: rgba(248, 113, 113, 0.65);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14), 0 0 28px rgba(239, 68, 68, 0.12);
  animation: loginShake 0.42s ease;
}

@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.ghost-btn {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: 10px;
  background: transparent;
  color: rgba(161, 161, 170, 0.9);
  font-size: 12px;
  cursor: pointer;
}

.ghost-btn:hover {
  color: #fff;
  border-color: rgba(196, 181, 253, 0.4);
}

@keyframes wordFlight {
  0% {
    opacity: 0;
    transform: translate3d(0, 5vh, 310px) scale(1.55);
    filter: blur(5px) brightness(1.3);
    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 0.28);
  }
  8% {
    opacity: 1;
  }
  25% {
    opacity: 0.78;
    transform: translate3d(0, -5vh, -1050px) scale(0.47);
    filter: blur(1.4px) brightness(0.78);
    animation-timing-function: cubic-bezier(0.38, 0.02, 0.18, 1);
  }
  83% {
    opacity: 1;
    transform: translate3d(0, -11vh, -260px) scale(0.8);
    filter: none;
    animation-timing-function: cubic-bezier(0.5, 0, 0.95, 0.5);
  }
  89% {
    transform: translate3d(0, -15vh, -45px) scale(0.96);
    animation-timing-function: cubic-bezier(0.72, 0, 1, 0.62);
  }
  92% {
    transform: translate3d(0, 3.4vh, 0) scale(1.1, 0.8) rotateX(5deg);
    animation-timing-function: cubic-bezier(0.16, 0.78, 0.25, 1);
  }
  96% {
    transform: translate3d(0, -1.4vh, 0) scale(0.97, 1.06);
    animation-timing-function: cubic-bezier(0.2, 0.72, 0.2, 1);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: none;
  }
}

@keyframes letterTurbulence {
  0% {
    transform: translate3d(-1.5px, -0.8px, 0) skewX(-0.7deg);
  }
  100% {
    transform: translate3d(1.5px, 0.9px, 0) skewX(0.7deg);
  }
}

@keyframes letterDrift {
  0% {
    transform: translate3d(-0.55px, -0.35px, 0);
  }
  100% {
    transform: translate3d(0.55px, 0.35px, 0);
  }
}

@keyframes worldLift {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 1;
    transform: translate3d(0, -5.5vh, 0) scale(0.98);
  }
}

@keyframes cameraImpact {
  0% { transform: translateX(0); }
  22% { transform: translateX(-4px); }
  46% { transform: translateX(3px); }
  68% { transform: translateX(-2px); }
  84% { transform: translateX(1px); }
  100% { transform: translateX(0); }
}

@keyframes ribbonRelease {
  0% {
    opacity: 0;
    stroke-dashoffset: 1;
  }
  12% {
    opacity: 0.2;
  }
  65% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.62;
    stroke-dashoffset: 0;
  }
}

@keyframes auraFieldBreathe {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.995, 0.985);
  }
  100% {
    opacity: 0.84;
    transform: translate(-50%, -50%) scale(1.015, 1.03);
  }
}

@keyframes auraCloud {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2, 0.32);
  }
  26% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.52;
    transform: translate(-50%, -50%) scale(1.55, 1.18);
  }
}

@keyframes auraCloudWide {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.15, 0.3) rotate(-5deg);
  }
  35% {
    opacity: 0.62;
  }
  100% {
    opacity: 0.34;
    transform: translate(-50%, -50%) scale(2.15, 1.45) rotate(5deg);
  }
}

@keyframes auraBreathe {
  0%, 100% { opacity: 0.52; }
  50% { opacity: 0.66; }
}

@keyframes auraBreatheWide {
  0%, 100% { opacity: 0.34; }
  50% { opacity: 0.43; }
}

@keyframes welcomeReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splashLeave {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.985);
  }
}

@keyframes loginEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes loginLeave {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes loginCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loginCardOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }
}

.card {
  width: min(420px, calc(100% - 32px));
  margin: 12vh auto 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.55s ease both;
}

.brand {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #fff, var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand.small {
  font-size: 22px;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 12px;
  margin-top: 2px;
}

.label {
  display: block;
  margin: 18px 0 8px;
  font-size: 13px;
  color: var(--muted);
}

.input {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}

.btn {
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #5b3fd6);
  color: white;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn.splash-btn {
  margin-top: 0;
  background: transparent;
  border: 1px solid rgba(196, 181, 253, 0.42);
  border-radius: 999px;
  color: rgba(244, 244, 245, 0.92);
  box-shadow:
    0 0 0 1px rgba(124, 92, 255, 0.08),
    0 0 28px rgba(124, 92, 255, 0.12);
}

.btn.splash-btn:hover {
  filter: none;
  color: #fff;
  background: transparent;
  border-color: rgba(196, 181, 253, 0.85);
  box-shadow:
    0 0 0 1px rgba(124, 92, 255, 0.22),
    0 0 36px rgba(124, 92, 255, 0.32);
}

.btn.splash-btn:active {
  transform: translateY(0) scale(0.98);
}

.error {
  color: var(--danger);
  margin: 12px 0 0;
  font-size: 13px;
}

#app {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: 100vh;
}

.sidebar {
  background: rgba(21, 21, 28, 0.92);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.me {
  font-size: 13px;
  color: var(--primary-2);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-title {
  margin-top: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.online-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1;
}

.online-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
}

.online-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.7);
}

.sidebar-foot {
  font-size: 12px;
}

.chat {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 11, 15, 0.55);
  backdrop-filter: blur(8px);
}

.messages {
  overflow: auto;
  padding: 18px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  max-width: min(680px, 92%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
}

.bubble .meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 4px;
}

.bubble .nick {
  color: var(--primary-2);
  font-weight: 600;
  font-size: 13px;
}

.bubble .time {
  color: var(--muted);
  font-size: 11px;
}

.bubble .body {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.4;
}

.composer {
  display: flex;
  gap: 10px;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--border);
  background: rgba(21, 21, 28, 0.85);
}

.composer .btn {
  margin-top: 0;
  white-space: nowrap;
}

.grow {
  flex: 1;
}

@media (max-width: 800px) {
  #app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}

/* вЂ”вЂ” Interface picker вЂ”вЂ” */
.interface-picker {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 16px;
  background:
    radial-gradient(circle at 15% 15%, rgba(88, 101, 242, 0.2), transparent 34%),
    radial-gradient(circle at 82% 82%, rgba(124, 92, 255, 0.18), transparent 36%),
    #0b0c12;
}

.interface-picker__glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, #000 10%, transparent 78%);
}

.interface-picker__panel {
  position: relative;
  display: grid;
  width: min(1480px, 100%);
  height: min(900px, calc(100vh - 32px));
  min-height: 520px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: auto;
  padding: clamp(26px, 3vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% -15%, rgba(88, 101, 242, 0.12), transparent 36%),
    rgba(14, 15, 23, 0.97);
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  animation: pickerIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.interface-picker__header {
  max-width: 760px;
  margin: 0 auto clamp(22px, 3vh, 34px);
  text-align: center;
}

.interface-picker__logo {
  margin-bottom: 12px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-shadow: 0 0 30px rgba(124, 92, 255, 0.55);
}

.interface-picker__eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.interface-picker__header h1 {
  margin: 0;
  color: #f7f7fb;
  font-size: clamp(34px, 3.6vw, 54px);
  letter-spacing: -0.035em;
}

.interface-picker__header p {
  margin: 12px 0 0;
  color: #9497a7;
  font-size: 15px;
  line-height: 1.55;
}

.interface-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 0;
  gap: clamp(14px, 1.3vw, 22px);
}

.interface-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(160deg, #191b25, #13141c);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.interface-card:not(:disabled):hover {
  z-index: 2;
  transform: translateY(-5px);
  border-color: rgba(124, 135, 255, 0.58);
  background: #1b1d29;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.interface-card.selected {
  border-color: #7c83ff;
  background: linear-gradient(155deg, rgba(88, 101, 242, 0.18), #181a24 60%);
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.18), 0 18px 45px rgba(0, 0, 0, 0.28);
}

.interface-card.is-locked {
  opacity: 0.58;
  cursor: not-allowed;
}

.interface-card__badge {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #5865f2;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.interface-card__badge--quiet {
  background: rgba(124, 92, 255, 0.8);
}

.interface-card__badge--soon {
  background: rgba(255, 255, 255, 0.11);
  color: #c5c7d1;
}

.interface-card__body {
  display: block;
  padding: 16px 10px 10px;
}

.interface-card__body strong,
.interface-card__body small {
  display: block;
}

.interface-card__body strong {
  margin-bottom: 6px;
  font-size: 18px;
}

.interface-card__body small {
  min-height: 34px;
  color: #9699a8;
  font-size: 11px;
  line-height: 1.45;
}

.interface-card__check {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: transparent;
  font-size: 12px;
}

.interface-card.selected .interface-card__check {
  border-color: #5865f2;
  background: #5865f2;
  color: #fff;
}

.interface-preview {
  position: relative;
  display: block;
  height: clamp(190px, 28vh, 310px);
  flex: 1 1 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 15px;
  background: #0e0f15;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.interface-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
  padding-right: 28px;
}

.interface-card__features i {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #858999;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.interface-preview--discord {
  background: linear-gradient(90deg, #1e1f22 0 14%, #2b2d31 14% 43%, #313338 43%);
}

.interface-preview--discord i:nth-child(1),
.interface-preview--discord i:nth-child(2),
.interface-preview--discord i:nth-child(3) {
  left: 5%;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #5865f2;
}

.interface-preview--discord i:nth-child(1) { top: 15px; }
.interface-preview--discord i:nth-child(2) { top: 42px; background: #3ba55c; }
.interface-preview--discord i:nth-child(3) { top: 69px; background: #4e5058; }

.interface-preview--discord i:nth-child(4),
.interface-preview--discord i:nth-child(5) {
  left: 18%;
  width: 20%;
  height: 7px;
  border-radius: 4px;
  background: #4e5058;
}

.interface-preview--discord i:nth-child(4) { top: 34px; }
.interface-preview--discord i:nth-child(5) { top: 52px; width: 16%; }

.interface-preview--discord i:nth-child(6) {
  right: 7%;
  bottom: 16px;
  left: 48%;
  height: 19px;
  border-radius: 5px;
  background: #383a40;
}

.interface-preview--standard {
  background: radial-gradient(circle at 65% 35%, rgba(124, 92, 255, 0.22), transparent 38%), #0f0f18;
}

.interface-preview--standard i:nth-child(1) {
  top: 15px;
  right: 12px;
  bottom: 15px;
  left: 12px;
  border: 1px solid rgba(155, 132, 255, 0.28);
  border-radius: 12px;
}

.interface-preview--standard i:nth-child(2),
.interface-preview--standard i:nth-child(3) {
  left: 26px;
  width: 58%;
  height: 13px;
  border-radius: 8px;
  background: rgba(124, 92, 255, 0.35);
}

.interface-preview--standard i:nth-child(2) { top: 39px; }
.interface-preview--standard i:nth-child(3) { top: 61px; left: 42px; width: 49%; background: rgba(255, 255, 255, 0.1); }

.interface-preview--standard i:nth-child(4) {
  right: 26px;
  bottom: 28px;
  width: 45px;
  height: 18px;
  border-radius: 10px;
  background: #7c5cff;
}

.interface-preview--telegram {
  background: linear-gradient(90deg, #212b36 0 37%, #17212b 37%);
}

.interface-preview--telegram i {
  left: 9%;
  width: 22%;
  height: 8px;
  border-radius: 8px;
  background: #4b5e6f;
}

.interface-preview--telegram i:nth-child(1) { top: 25px; }
.interface-preview--telegram i:nth-child(2) { top: 49px; width: 17%; }
.interface-preview--telegram i:nth-child(3) { top: 73px; width: 24%; }
.interface-preview--telegram i:nth-child(4) { right: 10%; bottom: 22px; left: auto; width: 35%; height: 16px; background: #2b5278; }

.interface-preview--vk {
  background: linear-gradient(90deg, #19191a 0 32%, #222222 32%);
}

.interface-preview--vk i {
  left: 7%;
  width: 20%;
  height: 7px;
  border-radius: 6px;
  background: #555;
}

.interface-preview--vk i:nth-child(1) { top: 25px; background: #2688eb; }
.interface-preview--vk i:nth-child(2) { top: 48px; }
.interface-preview--vk i:nth-child(3) { top: 71px; }
.interface-preview--vk i:nth-child(4) { top: 23px; right: 8%; left: 40%; width: auto; height: 75px; border-radius: 10px; background: #292929; }

.interface-picker__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #777b8d;
  font-size: 12px;
}

.interface-continue {
  display: flex;
  min-width: 170px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 13px 20px;
  border: 0;
  border-radius: 10px;
  background: #5865f2;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.interface-continue:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.interface-continue:not(:disabled):hover {
  background: #4752c4;
  transform: translateY(-1px);
}

@keyframes pickerIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* вЂ”вЂ” Discord-style interface вЂ”вЂ” */
#app.discord-app {
  --discord-brand: #5865f2;
  --discord-green: #23a55a;
  --discord-red: #f23f42;
  --discord-rail: #121214;
  --discord-side: #121214;
  --discord-main: #1a1a1e;
  --discord-input: #222327;
  --discord-user: #0e0e10;
  --discord-text: #f2f3f5;
  --discord-muted: #b5bac1;
  --discord-faint: #949ba4;
  --aura-idle-moon: url("/assets/status-idle-moon.svg?v=4");
  --sidebar-width: 260px;
  --ui-scale: 1.08;
  --rail-width: 72px;
  display: grid;
  grid-template-columns: var(--rail-width) var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: 34px minmax(0, 1fr);
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--discord-main);
  color: var(--discord-text);
  font-family: "gg sans", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  user-select: none;
  -webkit-user-select: none;
}

#messages.discord-messages,
#messages.discord-messages * {
  user-select: text;
  -webkit-user-select: text;
}

#app.discord-app input,
#app.discord-app textarea {
  user-select: text;
  -webkit-user-select: text;
}

.app-toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--discord-side);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  color: #dbdee1;
  position: relative;
}

.app-toolbar__location {
  display: flex;
  max-width: min(720px, 90%);
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.app-toolbar__actions {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
}

.app-toolbar__action {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #b5bac1;
  cursor: pointer;
}

.app-toolbar__action:hover {
  color: #dbdee1;
  background: rgba(255, 255, 255, 0.06);
}

.app-toolbar__action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-toolbar__action--help {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #b5bac1;
  line-height: 0;
}

.app-toolbar__action--help:hover {
  background: transparent;
  color: #dbdee1;
}

.app-toolbar__action--help svg {
  width: 22px;
  height: 22px;
  display: block;
  overflow: visible;
  stroke: none !important;
}

.app-toolbar__action--help svg circle {
  fill: currentColor;
}

.app-toolbar__action--help svg .app-toolbar__help-mark {
  fill: #1e1f22;
  stroke: none;
}

.app-toolbar__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #949ba4;
  font-size: 18px;
  line-height: 1;
}

.app-toolbar__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-toolbar__location strong {
  overflow: hidden;
  color: #f2f3f5;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-rail,
.channel-sidebar,
.discord-content {
  grid-row: 2;
}

#app.discord-app.is-resizing-sidebar {
  cursor: ew-resize;
  user-select: none;
}

#app.discord-app.ui-standard {
  --discord-brand: #7c5cff;
  --discord-rail: #0d0d14;
  --discord-side: #161621;
  --discord-main: #101019;
  --discord-input: #20202d;
  --discord-user: #12121b;
}

.discord-app button,
.discord-app input {
  font: inherit;
}

#app #suggestIdeaBtn.app-toolbar__action--help {
  font-size: 0;
  font-weight: 700;
}

.server-rail {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 0;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 0 72px;
  border-right: 1px solid rgba(0, 0, 0, 0.4);
  background: var(--discord-rail);
  scrollbar-width: none;
}

.server-rail::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.server-rail::-webkit-scrollbar {
  display: none;
}

.server-list {
  display: flex;
  width: 100%;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}

.server-pill {
  position: relative;
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: #313338;
  color: #dbdee1;
  font-weight: 700;
  cursor: pointer;
  transition: border-radius 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.server-pill::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;
  width: 4px;
  height: 0;
  border-radius: 0 4px 4px 0;
  background: #fff;
  transform: translateY(-50%);
  transition: height 0.2s ease;
}

.server-pill:hover,
.server-pill.active {
  border-radius: 16px;
  background: var(--discord-brand);
  color: #fff;
}

.server-pill:hover::before {
  height: 20px;
}

.server-pill.active::before {
  height: 40px;
}

.server-pill--home {
  background: linear-gradient(145deg, #6875f5, #4752c4);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: 16px;
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.35), 0 8px 20px rgba(88, 101, 242, 0.28);
}

.server-pill--home:hover,
.server-pill--home.active {
  border-radius: 14px;
  background: linear-gradient(145deg, #7983f5, #5865f2);
}

.server-pill--home .server-pill__text {
  display: block;
  line-height: 1;
  transform: translateY(0.5px);
}

.server-pill--home .server-pill__donut {
  display: block;
  width: 22px;
  height: 22px;
  border: 3.5px solid #fff;
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.server-pill--home.active::before {
  height: 40px;
  background: #fff;
}

@keyframes dmUnreadEnter {
  from {
    opacity: 0;
    transform: translateY(-44px) scale(0.16);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dmUnreadLeave {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-36px) scale(0.14);
  }
}

@keyframes dmUnreadBadgePop {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.14);
  }
}

@keyframes dmUnreadAvatarPing {
  0% {
    box-shadow:
      inset 0 0 0 2px #fff,
      0 0 0 0 rgba(242, 63, 66, 0.35);
  }

  100% {
    box-shadow:
      inset 0 0 0 2px #fff,
      0 0 0 8px rgba(242, 63, 66, 0);
  }
}

@keyframes auraHomeDmRelease {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.16);
  }

  40% {
    transform: scale(1.025);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.dm-home-stack {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  flex-shrink: 0;
  overflow: visible;
}

.server-rail .dm-home-stack {
  overflow: visible;
}

.server-pill--home {
  z-index: 2;
  position: relative;
}

.dm-unread-rail {
  display: flex;
  z-index: 1;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  overflow: visible;
}

.dm-unread-rail.hidden {
  display: none;
}

.dm-unread-pill {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  overflow: visible;
  transition: border-radius 0.2s ease;
}

.dm-unread-flyer {
  position: fixed;
  z-index: 100000;
  pointer-events: none;
  overflow: visible;
  transform-origin: center center;
}

.dm-unread-flyer__avatar {
  position: absolute;
  inset: 0;
  display: grid;
  border-radius: 50%;
  place-items: center;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow:
    inset 0 0 0 2px #fff,
    0 8px 22px rgba(0, 0, 0, 0.42);
}

.dm-unread-flyer__badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  z-index: 2;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--discord-rail, #121214);
  border-radius: 999px;
  background: #f23f42;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.dm-unread-flyer__badge.is-wide {
  font-size: 10px;
  padding: 0 4px;
  min-width: 24px;
}

.dm-unread-flyer__badge.is-huge {
  font-size: 9px;
  padding: 0 3px;
  min-width: 28px;
}

.dm-unread-pill__shell {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  transform-origin: top center;
}

.dm-unread-pill__shell.is-unread-enter {
  animation: dmUnreadEnter 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dm-unread-pill__shell.is-unread-leave {
  animation: dmUnreadLeave 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

.dm-unread-pill__shell.is-unread-bump {
  animation: dmUnreadBump 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dmUnreadBump {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  45% {
    transform: translateY(-6px) scale(1.08);
  }
}

.dm-unread-pill.is-ping .dm-unread-pill__avatar {
  animation: dmUnreadAvatarPing 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.dm-unread-pill::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;
  width: 4px;
  height: 8px;
  border-radius: 0 4px 4px 0;
  background: #fff;
  transform: translateY(-50%);
  transition: height 0.2s ease;
}

.dm-unread-pill:hover {
  border-radius: 16px;
}

.dm-unread-pill:hover::before {
  height: 20px;
}

.dm-unread-pill__avatar {
  position: absolute;
  inset: 0;
  display: grid;
  border-radius: 50%;
  place-items: center;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px #fff;
  transition: border-radius 0.2s ease;
}

.dm-unread-pill__avatar--official,
.dm-unread-pill__avatar.dm-item__avatar--official {
  background: #5865f2 !important;
  background-image: none !important;
  box-shadow: inset 0 0 0 2px #fff;
}

.dm-unread-pill__avatar--official .server-pill__donut,
.dm-unread-pill__avatar.dm-item__avatar--official .server-pill__donut {
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-sizing: border-box;
}

.dm-unread-pill:hover .dm-unread-pill__avatar {
  border-radius: 16px;
}

.dm-unread-pill__badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  z-index: 2;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--discord-rail, #121214);
  border-radius: 999px;
  background: #f23f42;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transform-origin: center center;
}

.dm-unread-pill__badge.is-wide {
  font-size: 10px;
  padding: 0 4px;
  min-width: 24px;
}

.dm-unread-pill__badge.is-huge {
  font-size: 9px;
  padding: 0 3px;
  min-width: 28px;
}

.dm-unread-pill__badge.is-bump {
  animation: dmUnreadBadgePop 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.server-pill--home.is-dm-alert {
  animation: auraHomeDmRelease 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .dm-unread-pill__shell.is-unread-enter,
  .dm-unread-pill__shell.is-unread-leave,
  .dm-unread-pill__shell.is-unread-bump,
  .dm-unread-pill__badge,
  .dm-unread-pill.is-ping .dm-unread-pill__avatar,
  .server-pill--home.is-dm-alert {
    animation: none !important;
  }
}

.server-pill--action {
  color: #dbdee1;
}

.server-pill__add {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.server-pill__add-circle {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: background 0.2s ease;
}

.server-pill__add-circle::before,
.server-pill__add-circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 1px;
  background: #313338;
  transform: translate(-50%, -50%);
  transition: background 0.2s ease;
}

.server-pill__add-circle::before {
  width: 10px;
  height: 2px;
}

.server-pill__add-circle::after {
  width: 2px;
  height: 10px;
}

.server-pill--action:hover {
  background: linear-gradient(145deg, #7983f5, #5865f2);
  color: #fff;
}

.server-pill:disabled {
  opacity: 0.45;
  cursor: default;
}

.server-rail__divider {
  width: 32px;
  height: 2px;
  border-radius: 1px;
  background: #35363c;
}

.channel-sidebar {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) 52px;
  border-right: 1px solid rgba(0, 0, 0, 0.45);
  background: var(--discord-side);
  overflow: hidden;
}

.sidebar-resize {
  position: absolute;
  top: 0;
  right: -2px;
  z-index: 8;
  width: 4px;
  height: 100%;
  cursor: ew-resize;
  touch-action: none;
  background: transparent;
}

.sidebar-resize::after {
  content: "";
  position: absolute;
  top: 0;
  left: 1px;
  width: 2px;
  height: 100%;
  background: transparent;
  transition: background 0.12s ease;
}

.sidebar-resize:hover::after,
#app.discord-app.is-resizing-sidebar .sidebar-resize::after {
  background: var(--discord-brand);
}

.home-divider {
  height: 1px;
  margin: 8px 10px 10px;
  background: #3f4147;
}

.sidebar-mode {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-mode.hidden {
  display: none;
}

#serverSidebar.sidebar-mode {
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
}

#homeSidebar.sidebar-mode {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-scroll,
.channel-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden auto;
  padding: 12px 8px 8px;
}

.channel-scroll {
  padding: 10px 8px;
}

.home-nav {
  display: grid;
  gap: 2px;
  margin-bottom: 16px;
}

.home-nav__item {
  display: flex;
  width: 100%;
  height: 44px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #949ba4;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.home-nav__item:hover {
  background: rgba(78, 80, 88, 0.32);
  color: #dbdee1;
}

.home-nav__item.active {
  background: rgba(78, 80, 88, 0.6);
  color: #fff;
}

.home-nav__icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  text-align: center;
  color: #abacb2;
  filter: none;
  opacity: 1;
}

.home-nav__icon--person {
  color: #abacb2;
}

.home-nav__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-nav__item.active .home-nav__icon {
  color: #fff;
}

.home-dm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 6px;
  color: #949ba4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-dm-header > span {
  transition: color 0.12s ease;
}

.home-dm-header:hover > span {
  color: #fff;
}

.home-dm-header button {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #b5bac1;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.home-dm-header:hover button {
  color: #b5bac1;
}

.home-dm-header button:hover {
  color: #dbdee1;
}

.dm-list {
  min-height: 40px;
}

.home-empty {
  margin: 8px 8px 0;
  color: #6d6f78;
  font-size: 13px;
  line-height: 1.35;
}

.discord-content {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  background: var(--discord-side);
  overflow: hidden;
}

.friends-view,
.chat-view {
  display: grid;
  min-width: 0;
  min-height: 0;
  height: 100%;
  grid-template-rows: 48px minmax(0, 1fr);
}

.friends-view {
  background: var(--discord-main);
  border-radius: 0;
}

.friends-view.hidden,
.chat-view.hidden {
  display: none !important;
}

.friends-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid #2a2b2f;
  box-shadow: none;
}

.friends-header__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f2f3f5;
  font-size: 16px;
}

.friends-header__icon {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #abacb2;
}

.friends-header__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.friends-header__dot {
  color: #3f4147;
  font-size: 18px;
  line-height: 1;
}

.friends-tabs {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: auto hidden;
}

.friends-tab {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #949ba4;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
}

.friends-tab:hover {
  background: rgba(78, 80, 88, 0.3);
  color: #dbdee1;
}

.friends-tab.active {
  background: rgba(78, 80, 88, 0.6);
  color: #fff;
}

.friends-tab.hidden {
  display: none;
}

.friends-add {
  height: 28px;
  margin-left: 4px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--discord-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.friends-add:hover {
  filter: brightness(1.06);
}

.friends-group-btn {
  flex: 0 0 auto;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #b5bac1;
  cursor: pointer;
}

.friends-group-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.friends-group-btn:hover {
  background: rgba(78, 80, 88, 0.35);
  color: #fff;
}

.friends-body {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  padding: 16px 20px 24px;
}

.friends-search {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  height: 34px;
  margin-bottom: 16px;
  padding: 0 12px;
  border: 1px solid #2a2b2f;
  border-radius: 8px;
  background: var(--discord-side);
  color: #fff;
}

.friends-search__icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  color: #fff;
}

.friends-search__icon svg {
  width: 16px;
  height: 16px;
}

.friends-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #dbdee1;
  font-size: 15px;
}

.friends-search input::placeholder {
  color: #949ba4;
}

.friends-search.hidden {
  display: none;
}

.friends-panel {
  min-height: 0;
  overflow: hidden auto;
}

.friends-panel.hidden {
  display: none;
}

.friends-section-title {
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #949ba4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.friends-list {
  display: grid;
}

.friend-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 8px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.friend-row:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: transparent;
}

.friend-row__meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.friend-row__name {
  overflow: hidden;
  color: #f2f3f5;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-row__status {
  overflow: hidden;
  color: #949ba4;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-row__actions {
  display: flex;
  gap: 8px;
  opacity: 0.85;
}

.friend-row__actions button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #1e1f22;
  color: #b5bac1;
  font-size: 15px;
  cursor: pointer;
}

.friend-row__actions button:hover {
  color: #fff;
}

.friends-empty-state {
  display: grid;
  flex: 1;
  place-content: center;
  place-items: center;
  min-height: 0;
  padding: 24px;
  text-align: center;
}

.friends-empty-state.hidden {
  display: none;
}

.friends-empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: #f2f3f5;
  font-size: 20px;
}

.friends-empty-state p {
  max-width: 360px;
  margin: 0;
  color: #b5bac1;
  font-size: 15px;
  line-height: 1.45;
}

.server-header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  background: transparent;
  color: #f2f3f5;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.server-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.server-header strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-header svg {
  width: 18px;
  fill: none;
  stroke: #b5bac1;
  stroke-width: 2;
}

.channel-scroll {
  min-height: 0;
  overflow: hidden auto;
  padding: 10px 8px;
}

.channel-shortcut,
.channel-item {
  display: flex;
  width: 100%;
  height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--discord-muted);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.channel-shortcut:hover,
.channel-item:hover {
  background: rgba(78, 80, 88, 0.32);
  color: #dbdee1;
}

.channel-shortcut {
  margin-bottom: 12px;
}

.channel-shortcut__icon {
  width: 20px;
  color: #b5bac1;
  font-size: 17px;
  text-align: center;
}

.channel-category {
  display: flex;
  height: 28px;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.channel-category__title,
.channel-category__add {
  border: 0;
  background: transparent;
  color: #949ba4;
  cursor: pointer;
}

.channel-category__title {
  min-width: 0;
  padding: 0 3px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.channel-category__add {
  padding: 2px 5px;
  font-size: 18px;
}

.channel-category__add:hover {
  color: #dbdee1;
}

.channel-item {
  position: relative;
  margin: 1px 0;
  font-size: 15px;
}

.channel-item::before {
  content: "#";
  color: #949ba4;
  font-size: 20px;
}

.channel-item.active {
  background: #2c2c30;
  color: #fff;
}

.channel-item.active:hover {
  background: #232428;
}

.channel-item__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-panel {
  position: absolute;
  left: calc(-1 * var(--rail-width));
  bottom: 0;
  z-index: 12;
  display: flex;
  width: calc(var(--rail-width) + 100%);
  min-width: 0;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 0 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.35);
  background: #1a1b1e;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
}

.user-panel__profile {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  border-radius: 8px;
  cursor: pointer;
}

.user-panel__profile:hover {
  background: rgba(255, 255, 255, 0.04);
}

.user-panel__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.user-panel__audio-group {
  display: flex;
  align-items: center;
  border-radius: 8px;
}

.user-panel__audio-group:hover {
  background: rgba(79, 84, 92, 0.32);
}

.user-panel__audio-group.is-muted,
.user-panel__audio-group.is-deafened {
  color: #f23f43;
  background: rgba(242, 63, 67, 0.12);
}

.user-panel__audio-group.is-muted:hover,
.user-panel__audio-group.is-deafened:hover {
  background: rgba(242, 63, 67, 0.2);
}

.user-panel__audio-group .user-panel__action:hover {
  background: transparent;
}

.user-panel__action--chevron {
  width: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  padding: 0 !important;
  height: 32px !important;
  color: inherit;
}

.user-panel__action--chevron svg {
  width: 12px !important;
  height: 12px !important;
  transition: transform 0.18s ease, color 0.12s ease;
}

.user-panel__action--chevron.is-open {
  background: rgba(79, 84, 92, 0.45);
}

.user-panel__action--chevron.is-open svg {
  transform: rotate(180deg);
}

.user-panel__audio-group.is-muted .user-panel__action,
.user-panel__audio-group.is-deafened .user-panel__action,
.user-panel__audio-group.is-muted .user-panel__action--chevron,
.user-panel__audio-group.is-deafened .user-panel__action--chevron {
  color: #f23f43 !important;
}

.user-panel-voice-menu {
  position: fixed;
  z-index: 1700;
  left: 0;
  top: 0;
  width: min(300px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  background: #111214;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  color: #dbdee1;
}

.user-panel-voice-menu.hidden {
  display: none !important;
}

.user-panel-voice-menu__panel {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-panel-voice-menu__panel.hidden {
  display: none !important;
}

.user-panel-voice-menu__flyout {
  position: absolute;
  top: 0;
  left: calc(100% + 6px);
  z-index: 2;
  width: min(260px, calc(100vw - 24px));
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  background: #111214;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.user-panel-voice-menu__flyout.is-left {
  left: auto;
  right: calc(100% + 6px);
}

.user-panel-voice-menu__flyout.hidden {
  display: none !important;
}

.user-panel-voice-menu__row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #dbdee1;
  cursor: pointer;
  text-align: left;
}

.user-panel-voice-menu__row:hover,
.user-panel-voice-menu__row.is-hot {
  background: rgba(79, 84, 92, 0.4);
}

.user-panel-voice-menu__row > svg,
.user-panel-voice-menu__row-chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #b5bac1;
  opacity: 0.9;
  transition: transform 0.16s ease, color 0.12s ease, opacity 0.12s ease;
}

.user-panel-voice-menu__row:hover > svg,
.user-panel-voice-menu__row:hover .user-panel-voice-menu__row-chevron,
.user-panel-voice-menu__row.is-hot > svg,
.user-panel-voice-menu__row.is-hot .user-panel-voice-menu__row-chevron {
  color: #fff;
  opacity: 1;
  transform: translateX(2px);
}

.user-panel-voice-menu__row-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.user-panel-voice-menu__row-text strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.user-panel-voice-menu__row-text small {
  overflow: hidden;
  color: #949ba4;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-panel-voice-menu__row--settings {
  font-size: 14px;
  font-weight: 600;
}

.user-panel-voice-menu__divider {
  height: 1px;
  margin: 4px 6px;
  background: rgba(255, 255, 255, 0.06);
}

.user-panel-voice-menu__slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px 10px;
}

.user-panel-voice-menu__slider-label {
  color: #dbdee1;
  font-size: 14px;
  font-weight: 600;
}

.user-panel-voice-menu__range {
  width: 100%;
  height: 20px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  --voice-slider-fill: 100%;
  /* Fill on the input itself — webkit track often ignores custom props. */
  background: linear-gradient(
    90deg,
    #5865f2 0%,
    #5865f2 var(--voice-slider-fill),
    #4e5058 var(--voice-slider-fill),
    #4e5058 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 6px;
  background-position: center;
  border-radius: 999px;
  cursor: pointer;
}

.user-panel-voice-menu__range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.user-panel-voice-menu__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.user-panel-voice-menu__range::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: #4e5058;
}

.user-panel-voice-menu__range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #5865f2;
}

.user-panel-voice-menu__range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.user-panel-voice-menu__back {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #dbdee1;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.user-panel-voice-menu__back:hover {
  background: rgba(79, 84, 92, 0.35);
}

.user-panel-voice-menu__back svg {
  width: 18px;
  height: 18px;
}

.user-panel-voice-menu__device-list {
  display: flex;
  max-height: min(240px, 40vh);
  flex-direction: column;
  gap: 2px;
  overflow: auto;
}

.user-panel-voice-menu__device {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #dbdee1;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}

.user-panel-voice-menu__device:hover {
  background: rgba(79, 84, 92, 0.4);
}

.user-panel-voice-menu__device.is-active {
  background: rgba(88, 101, 242, 0.18);
}

.user-panel-voice-menu__device-mark {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.user-panel__actions button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b5bac1;
  cursor: pointer;
}

.user-panel__actions button svg {
  width: 20px;
  height: 20px;
  display: block;
}

.user-panel__action--mute .user-panel__icon-mic-off,
.user-panel__action--deafen .user-panel__icon-deafen-off {
  display: none;
}

.user-panel__action--mute.is-muted .user-panel__icon-mic,
.user-panel__action--deafen.is-deafened .user-panel__icon-deafen {
  display: none;
}

.user-panel__action--mute.is-muted .user-panel__icon-mic-off,
.user-panel__action--deafen.is-deafened .user-panel__icon-deafen-off {
  display: block;
}

.user-panel__action--mute.is-muted,
.user-panel__action--deafen.is-deafened {
  color: #f23f43;
}

.user-panel__audio-group .user-panel__action--mute.is-muted,
.user-panel__audio-group .user-panel__action--deafen.is-deafened {
  background: transparent;
}

.user-panel__action--mute.is-muted:hover,
.user-panel__action--deafen.is-deafened:hover {
  color: #fa777c;
}

.user-panel__actions button:hover {
  background: rgba(78, 80, 88, 0.45);
  color: #fff;
}

.discord-workspace {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 240px;
  background: var(--discord-main);
}

.discord-workspace.members-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.discord-workspace.members-hidden .members-panel {
  display: none;
}

.members-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden auto;
  padding: 16px 8px;
  background: var(--discord-main);
  border-left: 1px solid rgba(0, 0, 0, 0.25);
}

.date-separator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 32px 10px;
  color: #949ba4;
  font-size: 12px;
  font-weight: 600;
}

.date-separator::before,
.date-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.date-separator span {
  flex: 0 0 auto;
}

.dm-welcome {
  display: grid;
  gap: 8px;
  padding: 16px 16px 24px;
}

.dm-welcome__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
}

.dm-welcome__name {
  margin: 8px 0 0;
  color: #f2f3f5;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
}

.dm-welcome__user {
  margin: 0;
  color: #b5bac1;
  font-size: 16px;
}

.dm-welcome__text {
  margin: 8px 0 0;
  color: #dbdee1;
  font-size: 15px;
  line-height: 1.45;
}

.discord-avatar {
  position: relative;
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865f2, #9b84ff);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.discord-avatar > i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 3px solid var(--discord-main);
  border-radius: 50%;
  background: #80848e;
  box-sizing: border-box;
  cursor: default;
  pointer-events: auto;
}

.discord-avatar > i.is-online {
  background: var(--discord-green);
}

.discord-avatar > i:not(.is-online):not(.is-idle):not(.is-dnd) {
  --offline-inner: var(--discord-main);
}

.discord-avatar > i:not(.is-online):not(.is-idle):not(.is-dnd)::after,
.header-avatar i:not(.is-online):not(.is-idle):not(.is-dnd)::after,
.dm-item__avatar > i:not(.is-online):not(.is-idle):not(.is-dnd)::after,
.mention-picker__avatar i:not(.is-online):not(.is-idle):not(.is-dnd)::after,
.profile-card__avatar i:not(.is-online):not(.is-idle):not(.is-dnd)::after,
.dm-profile__avatar > i:not(.is-online):not(.is-idle):not(.is-dnd)::after,
.profile-expand__avatar > i:not(.is-online):not(.is-idle):not(.is-dnd)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  height: 46%;
  border-radius: 50%;
  background: var(--offline-inner, #161618);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.discord-avatar > i.is-idle,
.header-avatar i.is-idle,
.dm-item__avatar > i.is-idle,
.mention-picker__avatar i.is-idle,
.profile-card__avatar i.is-idle,
.dm-profile__avatar i.is-idle,
.profile-expand__avatar > i.is-idle {
  background-color: #f0b232;
  background-image: none;
  overflow: hidden;
}

.discord-avatar > i.is-idle::after,
.header-avatar i.is-idle::after,
.dm-item__avatar > i.is-idle::after,
.mention-picker__avatar i.is-idle::after,
.profile-card__avatar i.is-idle::after,
.dm-profile__avatar i.is-idle::after,
.profile-expand__avatar > i.is-idle::after {
  content: '';
  position: absolute;
  top: -18%;
  left: -22%;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: var(--idle-ring, var(--discord-main));
  transform: none;
}

.discord-avatar > i.is-idle {
  --idle-ring: var(--discord-main);
}

.header-avatar i.is-idle,
.dm-item__avatar > i.is-idle {
  --idle-ring: var(--discord-side);
}

.mention-picker__avatar i.is-idle {
  --idle-ring: #111214;
}

.profile-card__avatar i.is-idle {
  --idle-ring: #242429;
}

.dm-profile__avatar i.is-idle {
  --idle-ring: #222327;
}

.profile-expand__avatar > i.is-idle {
  --idle-ring: #111214;
}

.profile-card__status-icon.is-idle,
.profile-status-menu__dot.is-idle,
.aura-status-menu__dot.is-idle {
  position: relative;
  overflow: hidden;
  background-color: #f0b232;
  background-image: none;
  box-shadow: none;
}

.profile-card__status-icon.is-idle::after,
.profile-status-menu__dot.is-idle::after,
.aura-status-menu__dot.is-idle::after {
  content: '';
  position: absolute;
  top: -18%;
  left: -22%;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: #111214;
  transform: none;
}

.profile-card__status-icon.is-idle::after {
  background: #242429;
}

.discord-avatar > i.is-dnd,
.header-avatar i.is-dnd,
.dm-item__avatar > i.is-dnd,
.mention-picker__avatar i.is-dnd,
.profile-card__avatar i.is-dnd,
.profile-card__status-icon.is-dnd,
.profile-status-menu__dot.is-dnd,
.aura-status-menu__dot.is-dnd {
  background: #f23f42;
}

.discord-avatar > i.is-dnd::after,
.header-avatar i.is-dnd::after,
.dm-item__avatar > i.is-dnd::after,
.mention-picker__avatar i.is-dnd::after,
.profile-card__avatar i.is-dnd::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52%;
  height: 20%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.discord-avatar > i.is-dnd::after {
  background: var(--discord-main);
}

.header-avatar i.is-dnd::after,
.dm-item__avatar > i.is-dnd::after {
  background: var(--discord-side);
}

.mention-picker__avatar i.is-dnd::after {
  background: #111214;
}

.profile-card__avatar i.is-dnd::after {
  background: #242429;
}

.profile-card__status-icon.is-dnd,
.profile-status-menu__dot.is-dnd,
.aura-status-menu__dot.is-dnd {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath fill='white' fill-rule='evenodd' d='M5 0a5 5 0 100 10A5 5 0 005 0zm-2.6 4h5.2a1 1 0 010 2H2.4a1 1 0 010-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath fill='white' fill-rule='evenodd' d='M5 0a5 5 0 100 10A5 5 0 005 0zm-2.6 4h5.2a1 1 0 010 2H2.4a1 1 0 010-2z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.profile-card__status-icon.is-dnd::after,
.profile-status-menu__dot.is-dnd::after,
.aura-status-menu__dot.is-dnd::after {
  content: none;
}

.avatar-with-typing .avatar-typing-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 18px;
  padding: 0 5px;
  border: 3px solid var(--discord-main);
  border-radius: 999px;
  background: #23a55a;
  box-sizing: border-box;
  pointer-events: none;
}

.avatar-with-typing.is-typing .avatar-typing-badge {
  display: inline-flex;
}

.avatar-with-typing.is-typing > i {
  opacity: 0;
}

.avatar-typing-badge {
  opacity: 1;
  visibility: visible;
}

.avatar-typing-badge span {
  position: static;
  display: block;
  flex: 0 0 auto;
  width: 3px;
  height: 3px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  animation: avatarTypingPulse 1.2s infinite ease-in-out both;
}

.avatar-typing-badge span:nth-child(1) {
  animation-delay: 0s;
}

.avatar-typing-badge span:nth-child(2) {
  animation-delay: 0.15s;
}

.avatar-typing-badge span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes avatarTypingPulse {
  0%,
  70%,
  100% {
    opacity: 0.35;
    background: rgba(255, 255, 255, 0.35);
  }

  35% {
    opacity: 1;
    background: #fff;
  }
}

.dm-item__avatar.avatar-with-typing .avatar-typing-badge {
  right: -5px;
  bottom: -5px;
  height: 16px;
  padding: 0 4px;
  border-color: var(--discord-side);
}

.member-item .avatar-with-typing .avatar-typing-badge {
  border-color: #1a1a1e;
  z-index: 5;
}

.member-item .discord-avatar.avatar-with-typing {
  overflow: visible;
}

.friend-row .avatar-with-typing .avatar-typing-badge {
  border-color: var(--discord-main);
}

.discord-avatar--me {
  flex-basis: 34px;
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.discord-avatar--me i {
  border-color: var(--discord-user);
  width: 13px;
  height: 13px;
  border-width: 2.5px;
  right: -1px;
  bottom: -1px;
}

.discord-avatar--me i:not(.is-online):not(.is-idle):not(.is-dnd) {
  --offline-inner: var(--discord-user);
}

.user-panel__identity {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.user-panel__identity strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-panel__identity span {
  color: #b5bac1;
  font-size: 11px;
}

.user-panel__presence {
  display: block;
  overflow: hidden;
  color: #b5bac1;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-panel__bio {
  display: block;
  overflow: hidden;
  color: #dbdee1;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-panel__bio.hidden,
.user-panel__presence.hidden {
  display: none !important;
}

.user-panel__status-wrap {
  position: relative;
  align-self: flex-start;
  max-width: 100%;
}

.user-panel__status-wrap::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 14px;
}

.user-panel__status-trigger {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-height: 22px;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  margin-left: -6px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #b5bac1;
  font: inherit;
  font-size: 11px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.user-panel__status-trigger:hover,
.user-panel__status-wrap.is-open .user-panel__status-trigger {
  background: rgba(255, 255, 255, 0.06);
  color: #dbdee1;
}

.user-panel__status-trigger #myPresenceLabel {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-panel__status-chevron {
  flex: 0 0 auto;
  color: #6d6f78;
  font-size: 14px;
  line-height: 1;
  transition: color 0.16s ease, transform 0.16s ease;
}

.user-panel__status-trigger:hover .user-panel__status-chevron,
.user-panel__status-wrap.is-open .user-panel__status-chevron {
  color: #949ba4;
  transform: translateX(1px);
}

.user-panel__status-menu {
  left: 0;
  top: auto;
  bottom: calc(100% + 8px);
  z-index: 110;
  min-width: 232px;
  transform: translateY(6px) scale(0.98);
  transform-origin: bottom left;
}

.user-panel__status-wrap.is-open .user-panel__status-menu,
.user-panel__status-wrap:focus-within .user-panel__status-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.user-panel__actions {
  display: flex;
  gap: 4px;
}

.user-panel__actions button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dbdee1;
  cursor: pointer;
}

.user-panel__actions button svg {
  width: 20px;
  height: 20px;
}

.user-panel__action--mute .user-panel__icon-mic-off,
.user-panel__action--deafen .user-panel__icon-deafen-off {
  display: none;
}

.user-panel__action--mute.is-muted .user-panel__icon-mic,
.user-panel__action--deafen.is-deafened .user-panel__icon-deafen {
  display: none;
}

.user-panel__action--mute.is-muted .user-panel__icon-mic-off,
.user-panel__action--deafen.is-deafened .user-panel__icon-deafen-off {
  display: block;
}

.user-panel__action--mute.is-muted,
.user-panel__action--deafen.is-deafened {
  color: #f23f43;
}

.user-panel__audio-group .user-panel__action--mute.is-muted,
.user-panel__audio-group .user-panel__action--deafen.is-deafened {
  background: transparent;
}

.user-panel__action--mute.is-muted:hover,
.user-panel__action--deafen.is-deafened:hover {
  color: #fa777c;
}

.user-panel__actions button:hover {
  background: rgba(78, 80, 88, 0.45);
}

.discord-content {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  background: var(--discord-side);
  overflow: hidden;
}

.chat-view {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  height: 100%;
  grid-template-rows: 48px minmax(0, 1fr);
}

.discord-header {
  position: relative;
  z-index: 3;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 8px 0 0;
  padding: 0 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  background: var(--discord-side);
}

.discord-header__channel {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.discord-header__channel .hash {
  color: #949ba4;
  font-size: 25px;
}

.discord-header__channel .hash.hidden,
.discord-header__divider.hidden,
#channelTopic.hidden,
.header-avatar.hidden {
  display: none;
}

.header-avatar {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.header-avatar i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  z-index: 2;
  width: 12px;
  height: 12px;
  border: 2px solid var(--discord-side);
  border-radius: 50%;
  background: #80848e;
  box-sizing: border-box;
  cursor: default;
  pointer-events: auto;
}

.header-avatar i.is-online {
  background: var(--discord-green);
}

.header-avatar i:not(.is-online):not(.is-idle):not(.is-dnd) {
  --offline-inner: var(--discord-side);
}

.discord-header__channel strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-header__title--editable {
  cursor: pointer;
  border-radius: 4px;
}

.discord-header__title--editable:hover {
  background: rgba(255, 255, 255, 0.06);
}

.discord-header__channel.is-dm-peer .header-avatar {
  cursor: pointer;
}

.discord-header__channel.is-dm-peer .discord-header__title--editable:hover {
  text-decoration: underline;
  background: transparent;
}

.discord-header__channel.is-group .discord-header__title--editable,
.discord-header__channel.is-group .discord-header__title--editable:hover {
  background: transparent;
}

.discord-header__title-wrap {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.discord-header__info {
  display: contents;
}

.discord-header__channel.is-group {
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 8px;
  margin: -4px -8px;
  user-select: none;
  -webkit-user-select: none;
}

.discord-header__channel.is-group:hover {
  background: rgba(78, 80, 88, 0.4);
}

.discord-header__channel.is-group .discord-header__title--editable,
.discord-header__channel.is-group .header-avatar,
.discord-header__channel.is-group .discord-header__edit {
  user-select: none;
  -webkit-user-select: none;
}

.discord-header__edit {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #b5bac1;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.discord-header__channel.is-group:hover .discord-header__edit,
.discord-header__title-wrap:hover .discord-header__edit {
  opacity: 1;
}

.discord-header__edit:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.discord-header__channel.is-group .discord-header__edit,
.discord-header__channel.is-group .discord-header__edit:hover {
  background: transparent;
  color: #dbdee1;
}

/* —— Edit group modal (Discord-like) —— */
.discord-modal--group-edit {
  width: min(440px, 100%);
  padding: 28px 28px 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #313338;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 16px 40px rgba(0, 0, 0, 0.45);
}

.discord-modal--group-edit h2 {
  margin: 0 40px 8px 0;
  color: #f2f3f5;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.01em;
  text-align: left;
}

.discord-modal--group-edit .group-edit-lead {
  margin: 0 0 22px !important;
  max-width: none;
  color: #b5bac1 !important;
  font-size: 14px !important;
  line-height: 20px !important;
  text-align: left !important;
}

.discord-modal--group-edit .modal-close {
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #b5bac1;
  font-size: 30px;
  font-weight: 300;
  line-height: 34px;
  transition: color 0.12s ease, background 0.12s ease;
}

.discord-modal--group-edit .modal-close:hover {
  background: rgba(78, 80, 88, 0.5);
  color: #fff;
}

.group-edit-body {
  display: grid;
  gap: 22px;
  padding: 0 0 6px;
}

.group-edit-avatar {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 4px 0 2px;
}

.group-edit-avatar__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.group-edit-avatar__preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #4e5058;
  color: #dbdee1;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.group-edit-avatar__btn:hover .group-edit-avatar__preview {
  transform: scale(1.02);
  box-shadow:
    0 0 0 1px rgba(88, 101, 242, 0.35),
    0 14px 32px rgba(0, 0, 0, 0.45);
}

.group-edit-avatar__preview::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.group-edit-avatar__btn:hover .group-edit-avatar__preview::after {
  opacity: 1;
}

.group-edit-avatar__letter {
  display: none;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.group-edit-avatar__people {
  display: none;
  position: relative;
  z-index: 1;
  color: #b5bac1;
}

.group-edit-avatar__preview.is-default .group-edit-avatar__people {
  display: grid;
  place-items: center;
}

.group-edit-avatar__preview.has-photo {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.group-edit-avatar__preview.has-photo .group-edit-avatar__letter,
.group-edit-avatar__preview.has-photo .group-edit-avatar__people {
  display: none !important;
}

.group-edit-avatar__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 3;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 4px solid #313338;
  border-radius: 50%;
  background: #1e1f22;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.group-edit-avatar__btn:hover .group-edit-avatar__badge {
  background: #5865f2;
  color: #fff;
  transform: scale(1.06);
}

.group-edit-avatar__remove {
  padding: 2px 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #ed4245;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}

.group-edit-avatar__remove.hidden {
  display: none;
}

.group-edit-avatar__remove:hover {
  color: #ff6b6e;
  background: rgba(237, 66, 69, 0.1);
  text-decoration: none;
}

.group-edit-name {
  display: grid;
  gap: 8px;
  margin: 0;
}

.group-edit-name__label {
  color: #b5bac1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 16px;
  text-transform: uppercase;
}

.group-edit-name input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #1e1f22;
  color: #dbdee1;
  font-family: inherit;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  outline: 0;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.group-edit-name input::placeholder {
  color: #6d6f78;
  font-weight: 400;
}

.group-edit-name input:hover {
  border-color: #3f4147;
}

.group-edit-name input:focus {
  border-color: #5865f2;
  background: #1a1b1e;
  box-shadow: none;
}

.discord-modal--group-edit .discord-modal__actions,
.discord-modal--group-edit .group-edit-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin: 24px -28px 0;
  padding: 18px 28px;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 0 0 12px 12px;
  background: #2b2d31;
}

.discord-modal--group-edit .modal-secondary--fill,
.discord-modal--group-edit .modal-primary--fill {
  width: auto;
  min-width: 108px;
  height: 38px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.1s ease;
}

.discord-modal--group-edit .modal-secondary--fill {
  background: #4e5058;
  color: #fff;
}

.discord-modal--group-edit .modal-secondary--fill:hover {
  background: #6d6f78;
  text-decoration: none;
}

.discord-modal--group-edit .modal-primary--fill {
  background: #5865f2;
  color: #fff;
}

.discord-modal--group-edit .modal-primary--fill:hover {
  background: #4752c4;
}

.discord-modal--group-edit .modal-primary--fill:active,
.discord-modal--group-edit .modal-secondary--fill:active {
  transform: translateY(1px);
}

#editGroupModal.modal-backdrop {
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.72);
}

#app.discord-app.ui-discord .discord-modal--group-edit {
  background: #313338 !important;
}


.discord-header__title-input {
  min-width: 120px;
  max-width: min(360px, 50vw);
  padding: 2px 8px;
  border: 1px solid #5865f2;
  border-radius: 4px;
  background: #1a1a1e;
  color: #f2f3f5;
  font: 600 16px/1.2 inherit;
  outline: none;
}

.discord-header__title-input.hidden {
  display: none;
}

.discord-system-message {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0 0;
  padding: 0 16px;
  min-height: 36px;
  color: #949ba4;
  font-size: 14px;
  line-height: 1.375;
  text-align: left;
}

.channel-welcome + .discord-system-message,
.date-separator + .discord-system-message {
  margin-top: 0;
}

.discord-system-message + .discord-system-message {
  margin-top: 2px;
}

.discord-system-message__icon {
  display: grid;
  width: 40px;
  height: 36px;
  place-items: center;
  color: #949ba4;
}

.discord-system-message__icon svg {
  width: 22px;
  height: 22px;
}

.discord-system-message--group-leave .discord-system-message__icon,
.discord-system-message--group-kick .discord-system-message__icon {
  color: #ed4245;
}

.discord-system-message--group-join .discord-system-message__icon {
  color: #23a559;
}

.discord-system-message--call-started,
.discord-system-message--call-ended {
  font-size: 15px;
  min-height: 40px;
}

.discord-system-message--call-started .discord-system-message__icon,
.discord-system-message--call-ended .discord-system-message__icon {
  color: #23a559;
  height: 40px;
}

.discord-system-message--call-started .discord-system-message__icon svg,
.discord-system-message--call-ended .discord-system-message__icon svg {
  width: 22px;
  height: 22px;
  transform: rotate(15deg);
}

.discord-system-message--call-started .discord-system-message__time,
.discord-system-message--call-ended .discord-system-message__time {
  font-size: 13px;
}

.discord-system-message__content {
  min-width: 0;
  overflow-wrap: anywhere;
}

.discord-system-message__nick {
  color: #f2f3f5;
  font-weight: 700;
  cursor: pointer;
  border-radius: 3px;
}

.discord-system-message__nick.discord-message__nick--link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 1px;
}

.discord-system-message__action {
  color: #949ba4;
  font-weight: 400;
}

.discord-system-message__group-rename-name {
  color: #f2f3f5;
  font-weight: 700;
}

.discord-system-message__time {
  margin-left: 6px;
  color: #949ba4;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.discord-system-message--group-rename .discord-system-message__icon {
  color: #949ba4 !important;
}

.discord-system-message--group-rename .discord-system-message__icon svg {
  fill: currentColor;
  stroke: none;
}

.discord-system-message__edit-group {
  border: 0;
  padding: 0;
  margin-left: 6px;
  background: transparent;
  color: #0078d2 !important;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
}

.discord-system-message__edit-group:hover {
  text-decoration: underline;
}

.discord-header__divider {
  width: 1px;
  height: 24px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.08);
}

.discord-header__channel > #channelTopic,
.discord-header__info > #channelTopic {
  overflow: hidden;
  color: #b5bac1;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-header__actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.discord-header__actions > button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b5bac1;
  font-size: 17px;
  cursor: pointer;
}

.discord-header__actions > button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f2f3f5;
}

.discord-workspace {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 8px;
  padding: 0 8px 8px;
  background: var(--discord-side);
}

.discord-workspace.members-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.discord-workspace.members-hidden .members-panel {
  display: none;
}

.discord-chat {
  display: grid;
  position: relative;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  overflow: hidden;
  border-radius: 12px;
  background: var(--discord-main);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.members-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden auto;
  padding: 16px 8px;
  border-radius: 12px;
  background: var(--discord-main);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.discord-messages {
  min-height: 0;
  overflow: hidden auto;
  padding: 16px 0 12px;
}

.dm-welcome {
  display: grid;
  gap: 10px;
  padding: 16px 16px 20px;
}

.dm-welcome__avatars {
  display: flex;
  align-items: center;
}

.dm-welcome__avatars .dm-welcome__avatar {
  margin-left: -10px;
}

.dm-welcome__avatars .dm-welcome__avatar:first-child {
  margin-left: 0;
}

.dm-welcome__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 4px solid var(--discord-main);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.dm-welcome__avatar--sm {
  width: 56px;
  height: 56px;
  font-size: 18px;
  border-width: 3px;
}

.dm-welcome__name {
  margin: 4px 0 0;
  color: #f2f3f5;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.dm-welcome__user {
  margin: 0;
  color: #b5bac1;
  font-size: 15px;
}

.dm-welcome__text {
  margin: 4px 0 0;
  color: #dbdee1;
  font-size: 15px;
  line-height: 1.45;
}

.dm-welcome__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.dm-welcome__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.dm-welcome__btn--primary {
  background: var(--discord-brand);
}

.dm-welcome__btn--primary:hover {
  filter: brightness(1.06);
}

.dm-welcome__btn--muted {
  background: #4e5058;
}

.dm-welcome__btn--muted:hover {
  background: #6d6f78;
}

.group-invite-card {
  position: relative;
  max-width: 420px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(124, 92, 255, 0.22);
  border-radius: var(--radius, 14px);
  background:
    linear-gradient(
      165deg,
      rgba(124, 92, 255, 0.14) 0%,
      rgba(28, 28, 38, 0.96) 42%,
      var(--discord-input, #20202d) 100%
    );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 16px 40px rgba(0, 0, 0, 0.28),
    0 0 32px rgba(124, 92, 255, 0.08);
}

.group-invite-card__glow {
  position: absolute;
  top: -48px;
  right: -24px;
  z-index: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.34) 0%, transparent 72%);
  pointer-events: none;
}

.group-invite-card.is-accepted {
  border-color: rgba(124, 92, 255, 0.16);
  background:
    linear-gradient(
      165deg,
      rgba(62, 201, 122, 0.1) 0%,
      rgba(28, 28, 38, 0.96) 42%,
      var(--discord-input, #20202d) 100%
    );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 16px 40px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(62, 201, 122, 0.08);
}

.group-invite-card.is-sent {
  opacity: 0.92;
}

.group-invite-card__header {
  position: relative;
  z-index: 1;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.1), transparent 88%);
}

.group-invite-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 16px;
}

.group-invite-card__hero {
  display: flex;
  align-items: center;
  gap: 14px;
}

.group-invite-card__icon-wrap {
  flex: 0 0 auto;
  padding: 2px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.85), rgba(155, 132, 255, 0.45));
  box-shadow: 0 10px 24px rgba(124, 92, 255, 0.24);
}

.group-invite-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--discord-side, #161621);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.group-invite-card__icon.has-photo {
  background-size: cover;
  background-position: center;
}

.group-invite-card__info {
  min-width: 0;
}

.group-invite-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-2, #9b84ff);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.group-invite-card__eyebrow svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.9;
}

.group-invite-card__title {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--discord-text, #f4f4f5);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-invite-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.group-invite-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--discord-muted, #b5bac1);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.group-invite-card__note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--discord-muted, #b5bac1);
  font-size: 13px;
  line-height: 1.45;
}

.group-invite-card__actions {
  display: flex;
}

.group-invite-card__btn {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary, #7c5cff) 0%, var(--primary-2, #9b84ff) 100%);
  box-shadow: 0 8px 22px rgba(124, 92, 255, 0.34);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    filter 0.14s ease;
}

.group-invite-card__btn svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.group-invite-card__btn:hover:not(:disabled) {
  filter: brightness(1.05);
  box-shadow: 0 10px 26px rgba(124, 92, 255, 0.42);
  transform: translateY(-1px);
}

.group-invite-card__btn:active:not(:disabled) {
  transform: translateY(0);
}

.group-invite-card__btn:disabled {
  opacity: 0.72;
  cursor: default;
  transform: none;
}

.group-invite-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--discord-muted, #b5bac1);
  font-size: 12px;
  font-weight: 600;
}

.group-invite-card__status.is-pending {
  color: var(--primary-2, #9b84ff);
  background: rgba(124, 92, 255, 0.12);
  border-color: rgba(124, 92, 255, 0.18);
}

.group-invite-card__status.is-accepted {
  background: rgba(62, 201, 122, 0.12);
  border-color: rgba(62, 201, 122, 0.18);
  color: #6ee7a8;
}

.group-invite-card__status svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.discord-message--invite .discord-message__content {
  min-width: 0;
}

.discord-message {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  margin: 0;
  padding: 2px 16px;
  border-radius: 0;
}

.discord-message:not(.is-compact) {
  margin-top: 17px;
}

.discord-message.is-compact {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.channel-welcome + .discord-message:not(.is-compact),
.date-separator + .discord-message:not(.is-compact) {
  margin-top: 0;
}

.discord-message:hover {
  background: rgba(2, 2, 3, 0.06);
}

.discord-message.is-compact .discord-message__content {
  width: auto;
  min-width: 0;
  max-width: 100%;
  padding-top: 0;
}

.discord-message.is-compact .discord-message__body {
  width: 100%;
  margin: 0;
  padding: 2px 0;
  line-height: 1.375;
}

.discord-message.is-compact .discord-message__avatar {
  position: relative;
  width: 40px;
  height: 22px;
  margin: 0;
  overflow: visible;
  background: none !important;
  border-radius: 0;
  place-items: start end;
}

.discord-message__compact-time {
  position: absolute;
  top: 4px;
  right: 2px;
  left: auto;
  width: max-content;
  max-width: 48px;
  margin: 0;
  overflow: hidden;
  color: #949ba4;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  text-align: right;
  text-overflow: clip;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.discord-message.is-compact:hover .discord-message__compact-time {
  opacity: 1;
}

.discord-message__avatar {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  margin: 2px 0 0;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.discord-message__avatar--link {
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.discord-message__avatar.is-avatar-bouncing {
  animation: messageAvatarHop 0.16s ease-in-out !important;
  overflow: visible !important;
  z-index: 2 !important;
  transform-origin: center bottom !important;
}

@keyframes messageAvatarHop {
  0% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(3px);
  }

  100% {
    transform: translateY(0);
  }
}

#app.discord-app.ui-discord .discord-message__avatar--link {
  overflow: visible !important;
}

#app.discord-app.ui-discord .discord-message__avatar.is-avatar-bouncing {
  animation: messageAvatarHop 0.16s ease-in-out !important;
  overflow: visible !important;
  z-index: 2 !important;
  transform-origin: center bottom !important;
}

#auraHome.is-avatar-bouncing,
#app.discord-app.ui-discord #auraHome.is-avatar-bouncing {
  animation: messageAvatarHop 0.16s ease-in-out !important;
  overflow: visible !important;
  z-index: 2 !important;
  transform-origin: center bottom !important;
}

.discord-message__content {
  min-width: 0;
  padding-top: 2px;
}

.discord-message__header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.25;
}

.discord-message__nick {
  color: #f2f3f5;
  font-size: 16px;
  font-weight: 500;
  font-style: normal;
}

.discord-message__nick--link {
  cursor: pointer;
  border-radius: 3px;
}

.discord-message__nick--link:hover {
  color: #f2f3f5;
  text-decoration: underline;
  text-underline-offset: 1px;
}

.discord-message__time {
  color: #949ba4;
  font-size: 11px;
  font-weight: 400;
}

.discord-message__body {
  color: #dbdee1;
  font-size: 16px;
  line-height: 1.375;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.discord-message.is-editing .discord-message__toolbar {
  display: none;
}

.discord-message__edit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  margin: 2px 0 4px;
  white-space: normal;
}

.discord-message__edit-box {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 100%;
  min-height: 44px;
  padding: 2px 6px 2px 14px;
  border-radius: 8px;
  background: #383a40;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.discord-message__edit-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  max-height: 280px;
  margin: 0;
  padding: 10px 0;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: #dbdee1;
  font: inherit;
  font-size: 16px;
  line-height: 1.375;
  overflow-y: auto;
  white-space: pre-wrap;
}

.discord-message__edit-emoji {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #b5bac1;
  line-height: 0;
  cursor: pointer;
}

.discord-message__edit-emoji:hover {
  color: #dbdee1;
  background: rgba(255, 255, 255, 0.04);
}

.discord-message__edit-emoji svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
  margin: 0;
}

.discord-message__edit-ops {
  color: #949ba4;
  font-size: 12px;
  line-height: 1.35;
  user-select: none;
}

.discord-message__edit-link {
  padding: 0;
  border: 0;
  background: none;
  color: #00a8fc;
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: none;
}

.discord-message__edit-link:hover {
  text-decoration: underline;
}

.discord-message__edited {
  display: inline;
  margin-left: 2px;
  color: #949ba4;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.375;
  vertical-align: baseline;
  white-space: nowrap;
  user-select: none;
  cursor: default;
}

.discord-message__body.is-emoji-only {
  line-height: 1.15;
  letter-spacing: 0.06em;
}

.discord-message__text.is-emoji-only {
  line-height: 1.15;
  letter-spacing: 0.06em;
}

.discord-message__body.is-emoji-only.is-emoji-jumbo,
.discord-message__text.is-emoji-only.is-emoji-jumbo {
  font-size: 56px;
}

.discord-message__body.is-emoji-only.is-emoji-large,
.discord-message__text.is-emoji-only.is-emoji-large {
  font-size: 42px;
}

.discord-message__body.is-emoji-only:not(.is-emoji-jumbo):not(.is-emoji-large),
.discord-message__text.is-emoji-only:not(.is-emoji-jumbo):not(.is-emoji-large) {
  font-size: 32px;
}

.discord-message__body.is-emoji-only:not(.is-emoji-jumbo):not(.is-emoji-large) {
  font-size: 32px;
}

.discord-message__toolbar {
  position: absolute;
  top: -15px;
  right: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 7px;
  background: #242429;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.discord-message:hover .discord-message__toolbar,
.discord-message.is-actions-open .discord-message__toolbar {
  opacity: 1;
  pointer-events: auto;
}

.discord-message.is-actions-open {
  position: relative;
  z-index: 100;
}

.discord-message.is-actions-open .discord-message__toolbar {
  z-index: 101;
}

.discord-message__toolbar-btn,
.discord-message__toolbar-more > .discord-message__toolbar-btn {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #949ba4;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.discord-message__toolbar-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.discord-message__toolbar-add-react {
  color: #b5bac1;
}

.discord-message__toolbar-add-react svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  fill: none;
  stroke: currentColor;
}

.discord-message__toolbar-add-react svg circle[fill='currentColor'] {
  fill: currentColor;
  stroke: none;
}

.discord-message__toolbar-add-react svg circle[fill='none'],
.discord-message__toolbar-add-react svg path {
  fill: none;
  stroke: currentColor;
}

.discord-message__toolbar-add-react:hover {
  color: #f2f3f5;
}

.discord-message__toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #b5bac1;
  transform: scale(1.08);
}

.discord-message__toolbar-more {
  position: relative;
}

.discord-message__toolbar-sep {
  width: 1px;
  height: 18px;
  margin: 0 2px;
  background: rgba(79, 84, 92, 0.72);
}

.discord-message__toolbar-react {
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
  overflow: visible;
}

.discord-message__toolbar-react:hover {
  transform: scale(1.12);
}

.discord-message__reactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  line-height: 0;
}

.discord-message__reactions.is-empty {
  display: none;
}

.discord-message__reaction {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #2b2d31;
  color: #dbdee1;
  line-height: 0;
  vertical-align: middle;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.discord-message__reaction:hover {
  background: #35373c;
}

.discord-message__reaction.is-me {
  border-color: rgba(88, 101, 242, 0.55);
  background: rgba(88, 101, 242, 0.15);
}

.discord-message__reaction-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 16px;
  line-height: 1;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

.discord-message__reaction-count {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: #b5bac1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.discord-message__reaction.is-me .discord-message__reaction-count {
  color: #c9cdfb;
}

.discord-message__reaction-add {
  position: relative;
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #2b2d31;
  color: #b5bac1;
  line-height: 0;
  overflow: hidden;
  vertical-align: middle;
  cursor: pointer;
}

.discord-message__reactions.is-empty .discord-message__reaction-add {
  display: none;
}

.discord-message__reaction-add:hover {
  background: #35373c;
  color: #f2f3f5;
}

.discord-message__reaction-add svg {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 16px;
  height: 16px;
  margin: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.discord-message__link {
  color: #00a8fc;
  text-decoration: none;
  word-break: break-all;
}

.discord-message__link:hover {
  text-decoration: underline;
}

.discord-md-bold {
  font-weight: 700;
}

.discord-md-italic {
  font-style: italic;
}

.discord-md-underline {
  text-decoration: underline;
}

.discord-md-strike {
  text-decoration: line-through;
}

.discord-md-code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #1e1f22;
  color: #dbdee1;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.875em;
}

.discord-md-codeblock {
  display: block;
  margin: 6px 0;
  padding: 8px;
  overflow-x: auto;
  border-radius: 6px;
  background: #1e1f22;
  color: #dbdee1;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.discord-md-spoiler {
  display: inline;
  padding: 0 2px;
  border-radius: 3px;
  background: #1e1f22;
  color: transparent;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
  user-select: none;
}

.discord-md-spoiler:not(.is-revealed) * {
  color: transparent !important;
  background: transparent !important;
  text-decoration: none !important;
}

.discord-md-spoiler.is-revealed {
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  user-select: text;
  cursor: text;
}

.discord-message__embeds {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  max-width: min(520px, 100%);
}

.discord-message__embed {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 4px;
  background: #2b2d31;
  border: 1px solid rgba(0, 0, 0, 0.22);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.discord-message__embed--youtube .discord-embed__accent {
  background: #ff0000;
}

.discord-embed__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px 14px;
}

.discord-embed__provider {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.discord-embed__provider:hover {
  text-decoration: underline;
}

.discord-embed__title {
  color: #00a8fc;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  word-break: break-word;
}

.discord-embed__title:hover {
  text-decoration: underline;
}

.discord-embed__author {
  color: #dbdee1;
  font-size: 13px;
  line-height: 1.3;
  min-height: 1.3em;
}

.discord-embed__author--pending {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.discord-embed__author[hidden] {
  display: none;
}

.discord-embed__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 4px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: #000;
}

.discord-embed__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background-color: #111;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.discord-embed__play::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.discord-embed__play-icon {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 48px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  transition: transform 0.12s ease;
}

.discord-embed__play-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.discord-embed__play-bg {
  fill: #212121;
  fill-opacity: 0.85;
  transition: fill 0.12s ease, fill-opacity 0.12s ease;
}

.discord-embed__play:hover .discord-embed__play-bg {
  fill: #f00;
  fill-opacity: 1;
}

.discord-embed__play:hover .discord-embed__play-icon {
  transform: scale(1.06);
}

.discord-embed__media.is-playing iframe,
.discord-message__embed--youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pins-header-wrap {
  position: relative;
  display: grid;
  place-items: center;
  overflow: visible;
}

.pins-toggle-btn .pin-icon {
  width: 24px;
  height: 24px;
}

.pins-toggle-btn.is-open {
  color: #fff;
}

.pin-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: url('/icons/pin.png') center / contain no-repeat;
  mask: url('/icons/pin.png') center / contain no-repeat;
}

.pins-panel {
  position: absolute;
  top: 56px;
  left: auto;
  right: 12px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(480px, calc(100vw - 48px));
  min-width: min(360px, calc(100vw - 48px));
  max-height: min(520px, 70vh);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  background: #111214;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.pins-panel.hidden {
  display: none;
}

.pins-panel__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  color: #f2f3f5;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.pins-panel__header strong {
  overflow: hidden;
  flex: 1 1 auto;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pins-panel__close {
  display: none;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #b5bac1;
  cursor: pointer;
}

.pins-panel__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.pins-panel__close svg {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0 auto;
}

.pins-panel__header svg,
.pins-panel__header .pin-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  color: #b5bac1;
}

.pins-panel__body {
  flex: 1 1 auto;
  overflow: auto;
  min-height: 180px;
  padding: 12px;
}

.pins-panel__empty {
  display: grid;
  gap: 12px;
  place-items: center;
  min-height: 220px;
  padding: 20px 12px;
  text-align: center;
  color: #dbdee1;
}

.pins-panel__empty-art {
  width: 120px;
  height: 120px;
}

.pins-panel__empty-art svg {
  width: 100%;
  height: 100%;
}

.pins-panel__empty p {
  margin: 0;
  max-width: 280px;
  color: #b5bac1;
  font-size: 14px;
  line-height: 1.4;
}

.pins-panel__item {
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: #2b2d31;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.pins-panel__item:hover {
  background: #35373c;
}

.pins-panel__item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.pins-panel__nick {
  color: #f2f3f5;
  font-size: 14px;
}

.pins-panel__time {
  color: #949ba4;
  font-size: 12px;
  white-space: nowrap;
}

.pins-panel__preview {
  overflow: hidden;
  color: #dbdee1;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pins-panel__tip {
  display: grid;
  gap: 4px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.28);
  background: #1e1f22;
  color: #dbdee1;
  font-size: 13px;
  line-height: 1.35;
}

.pins-panel__tip-label {
  color: #23a559;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.discord-message__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 8;
  display: flex;
  min-width: 260px;
  width: max-content;
  max-width: min(340px, calc(100vw - 24px));
  flex-direction: column;
  padding: 6px 8px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  background: #111214;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.55);
  user-select: none;
  -webkit-user-select: none;
}

.discord-message__menu.is-fixed,
.discord-message__menu.is-fixed-left {
  position: fixed;
  z-index: 320;
  margin: 0;
}

.chat-view.has-voice-call .discord-message.is-actions-open .discord-message__menu {
  z-index: 200;
}

.discord-message__menu.hidden {
  display: none;
}

.discord-message__menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #dbdee1;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.discord-message__menu-icon {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  color: #b5bac1;
}

.discord-message__menu-icon svg,
.discord-message__menu-icon .pin-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.discord-message__menu-label {
  min-width: 0;
  white-space: nowrap;
}

.discord-message__menu-item:hover {
  background: #5865f2;
  color: #fff;
}

.discord-message__menu-item:hover .discord-message__menu-icon {
  color: #fff;
}

.discord-message__menu-item.is-danger {
  color: #f23f43;
}

.discord-message__menu-item.is-danger .discord-message__menu-icon {
  color: #f23f43;
}

.discord-message__menu-item.is-danger:hover {
  background: #da373c;
  color: #fff;
}

.discord-message__menu-item.is-danger:hover .discord-message__menu-icon {
  color: #fff;
}

.discord-message__menu-sep {
  height: 1px;
  margin: 4px 4px;
  background: rgba(78, 80, 88, 0.48);
}

.discord-message.has-reply:not(.is-compact) {
  margin-top: 10px;
}

/* Discord-like repliedMessage: full-width row above avatar+contents */
.discord-message__reply {
  position: relative;
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
  min-width: 0;
  max-width: 100%;
  min-height: 18px;
  margin: 0 0 4px;
  padding-left: 56px; /* 40px avatar + 16px gap — same indent as content */
  color: #949ba4;
  font-size: 0.875rem;
  line-height: 1.125rem;
  user-select: none;
}

.discord-message.is-compact .discord-message__reply {
  grid-column: auto;
  padding-left: 0;
  margin-bottom: 2px;
}

/* Discord repliedMessageClickableSpine: L via borders, not SVG */
.discord-message__reply-spine {
  position: absolute;
  top: 50%;
  left: 19px; /* optical center of 40px avatar (2px border) */
  z-index: 1;
  box-sizing: border-box;
  width: 34px;
  height: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 2px solid #4e5058;
  border-left: 2px solid #4e5058;
  border-top-left-radius: 6px;
  background: transparent;
  cursor: pointer;
}

/* Spine lights only on spine itself or replied text — not on @nick */
.discord-message__reply-spine:hover,
.discord-message__reply-spine:focus-visible,
.discord-message__reply:has(.discord-message__reply-text:hover) .discord-message__reply-spine {
  border-top-color: #b5bac1;
  border-left-color: #b5bac1;
  outline: none;
}

.discord-message.is-compact .discord-message__reply-spine {
  display: none;
}

.discord-message__reply-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.discord-message__reply-avatar {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
}

.discord-message__reply-avatar--official .server-pill__donut {
  width: 8px;
  height: 8px;
  border-width: 2px;
}

.discord-message__reply-nick {
  flex: 0 0 auto;
  overflow: hidden;
  color: #949ba4;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none;
}

.discord-message__reply-nick::before {
  content: '@';
}

.discord-message__reply-text {
  min-width: 0;
  overflow: hidden;
  color: #dbdee1;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none;
}

.discord-message__reply-nick:hover {
  color: #949ba4;
  text-decoration: underline;
  text-underline-offset: 1px;
}

.discord-message__reply-bar:hover .discord-message__reply-text {
  color: #dbdee1;
  text-decoration: none;
}

.discord-message__forward {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 12px;
  max-width: 100%;
  margin: 2px 0 0;
}

.discord-message__forward-quote {
  width: 4px;
  min-height: 100%;
  border-radius: 4px;
  background: #4e5058;
}

.discord-message__forward-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discord-message__forward-header {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #949ba4;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.discord-message__forward-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #949ba4;
}

.discord-message__forward-label {
  color: #949ba4;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.discord-message__forward-content .discord-message__text {
  color: #dbdee1;
  white-space: pre-wrap;
  word-break: break-word;
}

.discord-message__forward-content .discord-message__attachment {
  margin-top: 4px;
}

.composer-reply-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 -10px;
  padding: 5px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px 10px 0 0;
  background: #2b2d31;
}

.composer-reply-preview.hidden {
  display: none;
}

/* Discord: «Отвечает на …» */
.composer-reply-preview__discord {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
}

.composer-reply-preview__label {
  min-width: 0;
  overflow: hidden;
  color: #dbdee1;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.composer-reply-preview__discord .composer-reply-preview__name {
  color: #fff;
  font-weight: 500;
}

/* Telegram shutter — hidden outside TG UI */
.composer-reply-preview__telegram {
  display: none;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 8px;
}

.composer-reply-preview__icon {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #f0a060;
}

.composer-reply-preview__icon svg {
  width: 20px;
  height: 20px;
}

.composer-reply-preview__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  padding-left: 8px;
  border-left: 2px solid #f0a060;
}

.composer-reply-preview__telegram .composer-reply-preview__name {
  overflow: hidden;
  color: #f0a060;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.composer-reply-preview__text {
  overflow: hidden;
  color: #dbdee1;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.composer-reply-preview__close {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #949ba4;
  cursor: pointer;
}

.composer-reply-preview__close svg {
  width: 16px;
  height: 16px;
}

.composer-reply-preview__close:hover {
  color: #dbdee1;
}

#app.discord-app.ui-discord .discord-composer.has-reply {
  padding-top: 0;
}

.discord-message__reply-meta {
  display: inline-flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
  overflow: hidden;
}

.forward-message-modal__footer {
  display: none;
  padding: 10px 12px 12px;
}

.forward-message-modal__submit {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #5865f2;
  color: #fff;
  font: 600 14px/1.2 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

.forward-message-modal__submit:disabled {
  opacity: 0.45;
  cursor: default;
}

.forward-target__check {
  display: none;
}

.discord-message__forward-who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.discord-message__forward-avatar {
  display: none;
}

.discord-message__forward-name {
  overflow: hidden;
  color: inherit;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.forward-message-modal .invite-modal__list {
  max-height: min(52vh, 420px);
  margin-top: 6px;
  gap: 4px;
}

.forward-message-modal__search {
  position: relative;
}

.forward-message-modal__search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #949ba4;
  pointer-events: none;
  transform: translateY(-50%);
}

.forward-message-modal__search-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

#forwardMessageModal .forward-message-modal__search input {
  padding: 0 16px 0 44px !important;
  border: 1px solid #3f4147 !important;
  border-radius: 10px !important;
  background: #1e1f22 !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  transition:
    border-color 0.14s ease,
    background 0.14s ease,
    box-shadow 0.14s ease;
}

#forwardMessageModal .forward-message-modal__search input:hover {
  border-color: #4e5058 !important;
  background: #1a1b1e !important;
}

#forwardMessageModal .forward-message-modal__search input:focus {
  border-color: #5865f2 !important;
  background: #1a1b1e !important;
  box-shadow:
    inset 0 0 0 1px rgba(88, 101, 242, 0.18),
    0 0 0 3px rgba(88, 101, 242, 0.22);
}

#forwardMessageModal .forward-message-modal__search input:focus + .forward-message-modal__search-icon,
#forwardMessageModal .forward-message-modal__search:focus-within .forward-message-modal__search-icon {
  color: #b5bac1;
}

.forward-message-modal__empty {
  display: grid;
  gap: 6px;
  margin: 36px 16px;
  color: #949ba4;
  text-align: center;
}

.forward-message-modal__empty strong {
  color: #dbdee1;
  font-size: 16px;
  font-weight: 600;
}

.forward-message-modal__empty span {
  font-size: 13px;
  line-height: 1.4;
}

.forward-target {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dbdee1;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.forward-target:hover {
  background: rgba(78, 80, 88, 0.5);
}

.forward-target:hover .forward-target__arrow {
  opacity: 1;
  transform: translateX(0);
}

.forward-target:hover .forward-target__title {
  color: #fff;
}

.forward-target__meta {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.forward-target__title {
  display: block;
  overflow: hidden;
  color: #f2f3f5;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.forward-target__sub {
  display: block;
  overflow: hidden;
  color: #949ba4;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.forward-target__avatar {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: visible;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865f2, #9b84ff);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.forward-target__avatar.has-photo {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: transparent;
}

.forward-target__avatar .avatar-letter {
  line-height: 1;
}

.forward-target__avatar > i {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #80848e;
  box-sizing: border-box;
  box-shadow: 0 0 0 4px #313338;
}

.forward-target:hover .forward-target__avatar > i {
  box-shadow: 0 0 0 4px #3f4147;
}

.forward-target__avatar > i.is-online {
  background: #23a55a;
}

.forward-target__avatar > i:not(.is-online):not(.is-idle):not(.is-dnd) {
  --offline-inner: #313338;
}

.forward-target:hover .forward-target__avatar > i:not(.is-online):not(.is-idle):not(.is-dnd) {
  --offline-inner: #3f4147;
}

.forward-target__avatar > i:not(.is-online):not(.is-idle):not(.is-dnd)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  height: 46%;
  border-radius: 50%;
  background: var(--offline-inner, #313338);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.forward-target__avatar--channel {
  background: #5865f2;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.forward-target__arrow {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  color: #b5bac1;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.12s ease, transform 0.12s ease, color 0.12s ease;
}

.forward-target__arrow svg {
  width: 16px;
  height: 16px;
}

.forward-target:hover .forward-target__arrow {
  color: #dbdee1;
}

.forward-target__icon {
  display: none;
}

.discord-mention {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(88, 101, 242, 0.35);
  color: #dee0fc;
  font-weight: 500;
  cursor: pointer;
}

.discord-mention:hover {
  background: #5865f2;
  color: #fff;
}

.discord-mention.is-me {
  background: rgba(250, 166, 26, 0.18);
  color: #faa61a;
}

.discord-mention.is-me:hover {
  background: rgba(250, 166, 26, 0.28);
  color: #fff;
}

.discord-composer {
  display: flex;
  min-height: 44px;
  align-items: center;
  margin: 0 16px 16px;
  border-radius: 8px;
  background: var(--discord-input);
}

.discord-composer.is-drop-target {
  box-shadow: inset 0 0 0 2px rgba(88, 101, 242, 0.75);
}

.discord-composer input,
.discord-composer textarea {
  min-width: 0;
  flex: 1;
  padding: 11px 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #dbdee1;
  font: inherit;
  font-size: 15px;
}

.discord-composer textarea {
  display: block;
  max-height: min(45vh, 420px);
  overflow-x: hidden;
  overflow-y: auto;
  resize: none;
  line-height: 1.375;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  field-sizing: content;
}

.aura-context-menu {
  position: fixed;
  z-index: 120;
  min-width: 188px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #111214;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.aura-context-menu.hidden {
  display: none;
}

.aura-context-menu__sep {
  height: 1px;
  margin: 4px 6px;
  background: rgba(78, 80, 88, 0.6);
}

.aura-context-menu__sep.hidden {
  display: none !important;
}

.aura-context-menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #dbdee1;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.aura-context-menu button.hidden {
  display: none !important;
}

.aura-context-menu button:hover {
  background: #5865f2;
  color: #fff;
}

.aura-context-menu button.danger {
  color: #f23f42;
}

.aura-context-menu button.danger:hover {
  background: #f23f42;
  color: #fff;
}

.user-panel {
  position: absolute;
  left: calc(-1 * var(--rail-width) + 8px);
  bottom: 8px;
  z-index: 12;
  display: flex;
  width: calc(var(--rail-width) + 100% - 16px);
  min-width: 0;
  height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px 0 8px;
  border: 0;
  border-radius: 8px;
  background: #232428;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.home-nav__item,
.channel-item,
.dm-item,
.friend-row {
  border-radius: 8px;
}

.server-pill {
  border-radius: 50%;
}

.discord-header__channel strong {
  font-size: 15px;
  white-space: nowrap;
}

.discord-header__divider {
  width: 1px;
  height: 24px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.08);
}

.discord-header__channel > span:last-child {
  overflow: hidden;
  color: #b5bac1;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-header__actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.discord-header__actions > button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b5bac1;
  font-size: 17px;
  cursor: pointer;
}

.discord-header__actions > button:hover {
  color: #f2f3f5;
}

.discord-search {
  display: flex;
  width: 144px;
  height: 28px;
  align-items: center;
  margin-left: 8px;
  padding: 0 8px 0 10px;
  border: 1px solid #2a2b2f;
  border-radius: 8px;
  background: #1e1f22;
  transition: width 0.16s ease;
}

.discord-search__lead {
  display: none;
}

.tg-search-calendar {
  display: none !important;
}

.tg-search-date-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.discord-search.hidden {
  display: none !important;
}

.discord-search:focus-within {
  width: 220px;
  border-color: #3f4147;
}

.discord-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #dbdee1;
  font-size: 13px;
}

.discord-search input::placeholder {
  color: #949ba4;
}

.discord-search input[type="search"]::-webkit-search-cancel-button {
  appearance: none;
}

.discord-search__action {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b5bac1;
  cursor: pointer;
}

.discord-search__action:hover {
  color: #f2f3f5;
}

.discord-search__glyph {
  display: grid;
  place-items: center;
}

.discord-search__glyph svg {
  width: 14px;
  height: 14px;
}

.discord-search__glyph--clear {
  display: none;
}

.discord-search.has-value .discord-search__glyph--search {
  display: none;
}

.discord-search.has-value .discord-search__glyph--clear {
  display: grid;
}

.discord-search__icon {
  display: flex;
  flex: 0 0 auto;
  margin-left: 6px;
  color: #b5bac1;
}

.discord-search__icon svg {
  width: 14px;
  height: 14px;
}

.discord-message.is-search-hit {
  background: rgba(88, 101, 242, 0.08);
}

.discord-message.is-reply-ping {
  background: rgba(240, 178, 50, 0.1);
  box-shadow: inset 2px 0 0 #f0b232;
}

.discord-message.is-reply-ping:hover {
  background: rgba(240, 178, 50, 0.1);
  box-shadow: inset 2px 0 0 #f0b232;
}

.discord-chat {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) 24px auto;
}

.discord-messages {
  min-height: 0;
  overflow: hidden auto;
  padding: 18px 0 12px;
}

.channel-welcome {
  padding: 38px 16px 28px;
}

.channel-welcome__icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  background: #41434a;
  color: #fff;
  font-size: 39px;
  font-weight: 600;
}

.channel-welcome h2 {
  margin: 0 0 6px;
  color: #f2f3f5;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.channel-welcome p {
  margin: 0;
  color: #b5bac1;
  font-size: 15px;
}

.discord-message {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  margin: 0;
  padding: 3px 16px;
}

.discord-message:not(.is-compact) {
  margin-top: 17px;
}

.discord-message.is-compact {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.discord-message__avatar {
  display: grid;
  width: 40px;
  height: 40px;
  margin: 2px 0 0;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.discord-message__content {
  min-width: 0;
}

.discord-message__header {
  display: flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1.3;
}

.discord-message__nick {
  color: #f2f3f5;
  font-size: 15px;
  font-weight: 600;
}

.discord-message__time {
  color: #949ba4;
  font-size: 11px;
}

.discord-message__body {
  color: #dbdee1;
  font-size: 15px;
  line-height: 1.42;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.discord-typing {
  min-height: 24px;
  padding: 4px 16px 0;
  color: #b5bac1;
  font-size: 11px;
}

.discord-composer {
  display: flex;
  min-height: 44px;
  align-items: center;
  margin: 0 16px 24px;
  border-radius: 8px;
  background: #1a1b1e;
}

.discord-composer button {
  border: 0;
  background: transparent;
  color: #b5bac1;
  cursor: pointer;
}

.discord-composer__add {
  flex: 0 0 48px;
  font-size: 24px;
}

.discord-composer input,
.discord-composer textarea {
  min-width: 0;
  flex: 1;
  padding: 11px 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #dbdee1;
  font: inherit;
  font-size: 15px;
}

.discord-composer textarea {
  display: block;
  max-height: min(45vh, 420px);
  overflow-x: hidden;
  overflow-y: auto;
  resize: none;
  line-height: 1.375;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  field-sizing: content;
}

.discord-composer__attach {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  height: 100%;
}

.discord-composer__add {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #949ba4;
  cursor: pointer;
}

.discord-composer__add svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.discord-composer__add:hover,
.discord-composer__attach.is-open .discord-composer__add {
  color: #f2f3f5;
}

.composer-attach-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 40;
  min-width: 220px;
  padding: 6px 8px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  background: #111214;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.composer-attach-menu.hidden {
  display: none !important;
}

.composer-attach-menu__item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #dbdee1;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.composer-attach-menu__item:hover {
  background: rgba(78, 80, 88, 0.4);
  color: #fff;
}

.composer-attach-menu__icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #b5bac1;
}

.composer-attach-menu__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.discord-composer input::placeholder,
.discord-composer textarea::placeholder {
  color: #6d6f78;
}

.discord-composer__tools {
  display: flex;
  align-items: center;
  padding-right: 8px;
}

.discord-composer__tools button {
  min-width: 28px;
  height: 30px;
  padding: 0 4px;
  color: #949ba4;
  font-size: 13px;
  font-weight: 700;
}

.discord-composer__tools button.discord-composer__emoji {
  box-sizing: border-box;
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 0;
  aspect-ratio: 1 / 1;
  align-self: center;
}

.discord-composer button:hover {
  color: #f2f3f5;
}

.members-panel {
  min-height: 0;
  overflow: hidden auto;
  padding: 18px 8px;
  background: var(--discord-main);
}

.member-section {
  margin-bottom: 20px;
}

.member-section__title {
  margin: 0 8px 7px;
  color: #949ba4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.member-invite-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 8px);
  margin: 4px 4px 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: #2b2d31;
  color: #f2f3f5;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.member-invite-btn svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.member-invite-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-invite-btn:hover {
  background: #35373c;
  color: #fff;
}

.member-list:has(.member-invite-btn) .member-section {
  margin-bottom: 8px;
}

.members-panel--profile {
  padding: 12px;
}

.dm-profile {
  display: flex;
  min-height: 100%;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #222327;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  opacity: 1;
  transform: translateX(0);
}

.dm-profile__scroll {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden auto;
}

/* Discord: scroll only wraps TG widgets — don't steal space from profile body */
#app:not(.ui-telegram) .dm-profile__scroll {
  display: contents;
}

.tg-profile-hero {
  display: contents;
}

.tg-profile-identity {
  display: contents;
}

.dm-profile.hidden {
  display: none !important;
}

.dm-profile__banner {
  position: relative;
  height: 120px;
  flex: 0 0 auto;
  border-radius: 12px 12px 0 0;
  background: #5865f2;
  overflow: hidden;
}

.profile-card__banner {
  position: relative;
  height: 100px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, #5865f2, #242429);
}

.profile-banner-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-banner-actions.is-hidden {
  display: none;
}

.profile-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  line-height: 0;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.profile-banner-btn:hover {
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
}

.profile-banner-btn svg {
  display: block;
  width: 18px;
  height: 18px;
}

.profile-banner-btn--more svg {
  width: 16px;
  height: 16px;
}

.profile-banner-btn.is-hidden {
  display: none;
}

.profile-relation-menu {
  position: fixed;
  z-index: 240;
  min-width: 196px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #111214;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.profile-relation-menu.hidden {
  display: none !important;
}

.profile-relation-menu__item {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #dbdee1;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.profile-relation-menu__item:hover {
  background: rgba(237, 66, 69, 0.14);
  color: #ff878a;
}

.profile-relation-menu__item.is-hidden {
  display: none;
}

.dm-profile__body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 58px 16px 16px;
}

.dm-profile__footer {
  flex: 0 0 auto;
  padding: 0 16px 16px;
}

.dm-profile__full-btn {
  display: block;
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: #2b2d31;
  color: #f2f3f5;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.dm-profile__full-btn:hover {
  background: #35373c;
  color: #fff;
}

.dm-profile__avatar-btn {
  position: absolute;
  top: -52px;
  left: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
}

.dm-profile__avatar {
  position: relative;
  width: 104px;
  height: 104px;
  border: 7px solid #222327;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: visible;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
}

.dm-profile__avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.12s ease;
}

.dm-profile__avatar-btn:hover .dm-profile__avatar::after {
  background: rgba(0, 0, 0, 0.45);
}

.dm-profile__avatar i {
  z-index: 2;
  right: -3px;
  bottom: -3px;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 6px #222327;
  box-sizing: border-box;
}

.dm-profile__nick {
  display: block;
  color: #f2f3f5;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.dm-profile__nick:hover {
  text-decoration: underline;
}

.dm-profile__about {
  margin-top: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.dm-profile__about.hidden {
  display: none !important;
}

.dm-profile__bio {
  margin: 0;
  color: #f2f3f5;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.dm-profile__since {
  margin-top: 18px;
}

.dm-profile__since h3 {
  margin: 0 0 8px;
  color: #f2f3f5;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.dm-profile__since p {
  margin: 0;
  color: #b5bac1;
  font-size: 16px;
  line-height: 1.35;
}

.member-item {
  display: flex;
  position: relative;
  height: 42px;
  align-items: center;
  gap: 11px;
  padding: 0 30px 0 8px;
  border-radius: 4px;
  color: #b5bac1;
}

.member-item:hover {
  background: rgba(78, 80, 88, 0.32);
  color: #dbdee1;
}

.member-item.offline {
  opacity: 1;
  color: #6d6f78;
}

.member-item.offline .discord-avatar {
  filter: brightness(0.58) saturate(0.55);
  opacity: 0.78;
}

.member-item.offline .member-item__name {
  color: #6d6f78;
}

.member-item.offline:hover {
  color: #b5bac1;
}

.member-item.offline:hover .member-item__name {
  color: #b5bac1;
}

.member-item.offline:hover .discord-avatar {
  filter: brightness(0.72) saturate(0.7);
  opacity: 0.9;
}

.member-item .discord-avatar {
  position: relative;
  flex-basis: 32px;
  width: 32px;
  height: 32px;
  overflow: visible;
}

.member-item__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-item__owner {
  display: inline-flex;
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 6px;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: #faaf09;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.45));
  pointer-events: auto;
  cursor: help;
  transform: translateY(-50%);
}

.member-item__owner svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.member-item__kick {
  display: inline-flex;
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 6px;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 4px;
  color: #949ba4;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  transform: translateY(-50%);
  transition:
    opacity 0.12s ease,
    background 0.12s ease,
    color 0.12s ease;
}

.member-item:hover .member-item__kick,
.member-item:focus-within .member-item__kick {
  opacity: 1;
}

.member-item__kick:hover {
  background: rgba(237, 66, 69, 0.16);
  color: #ed4245;
  opacity: 1;
}

.profile-card__kick {
  width: 100%;
  margin-top: 8px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: rgba(237, 66, 69, 0.14);
  color: #ed4245;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}

.profile-card__kick:hover {
  background: rgba(237, 66, 69, 0.24);
  color: #ff6b6e;
}

.profile-card__kick.hidden {
  display: none !important;
}

/* вЂ”вЂ” Discord dialogs вЂ”вЂ” */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  animation: modalFade 0.18s ease both;
}

.discord-modal {
  position: relative;
  width: min(480px, 100%);
  padding: 30px;
  border-radius: 8px;
  background: #313338;
  color: #f2f3f5;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.discord-modal--small {
  width: min(430px, 100%);
}

.discord-modal--idea {
  width: min(500px, 100%);
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #2b2d31;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 28px 80px rgba(0, 0, 0, 0.55);
}

.suggest-idea-close {
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  color: #b5bac1;
  font-size: 0;
  transition: background 0.12s ease, color 0.12s ease;
}

.suggest-idea-close svg {
  width: 18px;
  height: 18px;
}

.suggest-idea-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f2f3f5;
}

.suggest-idea-hero {
  position: relative;
  flex: 0 0 auto;
  padding: 28px 28px 20px;
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(88, 101, 242, 0.28), transparent 55%),
    linear-gradient(180deg, #32353b 0%, #2b2d31 100%);
}

.suggest-idea-hero::after {
  content: '';
  position: absolute;
  right: 24px;
  bottom: 0;
  left: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.suggest-idea-hero__icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #6a75f5 0%, #5865f2 55%, #4752c4 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(88, 101, 242, 0.35);
}

.suggest-idea-hero__icon svg {
  width: 28px;
  height: 28px;
}

.discord-modal--idea h2 {
  margin: 0;
  color: #f2f3f5;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.suggest-idea-photos {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.suggest-idea-photos__label {
  margin: 0;
  color: #b5bac1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.suggest-idea-photos__label em {
  margin-left: 4px;
  color: #949ba4;
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.suggest-idea-cats {
  margin-bottom: 4px;
}

.tg-idea-modal .suggest-idea-hero {
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(135, 116, 225, 0.32), transparent 55%),
    linear-gradient(180deg, #2a2a2e 0%, #212121 100%);
}

.tg-idea-modal .suggest-idea-hero__icon {
  background: linear-gradient(145deg, #e8a017, #c27a00);
  box-shadow: 0 10px 24px rgba(232, 160, 23, 0.32);
}

.tg-idea-modal .modal-primary {
  background: #8774e1;
}

.tg-idea-modal .modal-primary:hover {
  background: #9584ea;
}

.suggest-idea-lead {
  margin: 8px auto 0;
  max-width: 34em;
  color: #b5bac1;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.suggest-idea-body {
  display: grid;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 22px 28px 12px;
  overflow: auto;
}

.discord-modal--idea .discord-field textarea {
  min-height: 110px;
  max-height: 220px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.45;
}

.discord-modal--idea .discord-field > span {
  margin-bottom: 6px;
  color: #949ba4;
  letter-spacing: 0.03em;
}

.discord-modal--idea .discord-field input,
.discord-modal--idea .discord-field textarea {
  border: 1px solid transparent;
  border-radius: 8px;
  background: #1e1f22;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.discord-modal--idea .discord-field input:hover,
.discord-modal--idea .discord-field textarea:hover {
  background: #1a1b1e;
}

.discord-modal--idea .discord-field input:focus,
.discord-modal--idea .discord-field textarea:focus {
  border-color: #5865f2;
  background: #1e1f22;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.22);
}

.suggest-idea-field {
  margin-top: 0;
}

.suggest-idea-error {
  margin: 0;
  color: #f23f43;
  font-size: 13px;
  line-height: 1.35;
}

.suggest-idea-error.hidden {
  display: none;
}

.discord-modal--idea .discord-modal__actions.suggest-idea-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 16px 28px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 0 0 8px 8px;
  background: #232428;
}

.discord-modal--idea .modal-secondary {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: #f2f3f5;
  transition: background 0.12s ease, color 0.12s ease;
}

.discord-modal--idea .modal-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.discord-modal--idea .modal-primary {
  min-height: 38px;
  min-width: 118px;
  padding: 0 18px;
  border-radius: 8px;
  background: linear-gradient(145deg, #6a75f5 0%, #5865f2 55%, #4752c4 100%);
  box-shadow: 0 6px 16px rgba(88, 101, 242, 0.28);
}

.discord-modal--idea .modal-primary:hover {
  filter: brightness(1.06);
}

.discord-field textarea {
  width: 100%;
  min-height: 110px;
  padding: 10px 12px;
  border: 0;
  border-radius: 3px;
  outline: 0;
  resize: vertical;
  background: #1e1f22;
  color: #f2f3f5;
  font: inherit;
  line-height: 1.4;
}

.discord-field textarea:focus {
  box-shadow: 0 0 0 1px #00a8fc;
}

.discord-modal--dm {
  width: min(440px, 100%);
  padding: 20px 20px 0;
}

.discord-modal--dm h2 {
  margin-right: 28px;
  font-size: 20px;
  text-align: left;
}

.dm-modal__limit {
  margin: 6px 0 14px !important;
  color: #b5bac1;
  font-size: 14px;
  line-height: 1.35;
  text-align: left !important;
}

.dm-modal__search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.dm-modal__search input {
  padding-left: 12px;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
}

.dm-modal__search input::-webkit-search-decoration,
.dm-modal__search input::-webkit-search-cancel-button,
.dm-modal__search input::-webkit-search-results-button {
  display: none;
  appearance: none;
  -webkit-appearance: none;
}

.discord-modal--dm .dm-modal__search input:focus {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  outline: none;
}

.dm-modal__selected {
  margin-bottom: 12px;
}

.dm-modal__selected-title,
.dm-modal__list-title {
  margin: 0 0 8px;
  color: #b5bac1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dm-modal__selected-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dm-modal__chip {
  display: flex;
  min-width: 0;
  flex: 1 1 140px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(78, 80, 88, 0.34);
}

.dm-modal__chip-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.dm-modal__chip-avatar > i {
  width: 14px;
  height: 14px;
  border-width: 2px;
  right: -1px;
  bottom: -1px;
}

.dm-modal__chip-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dm-modal__chip-name {
  overflow: hidden;
  color: #f2f3f5;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-modal__chip-note {
  overflow: hidden;
  color: #949ba4;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-modal__list-title {
  margin-top: 2px;
}

.dm-modal__hint {
  margin: 0 0 10px;
  color: #949ba4;
  font-size: 12px;
  line-height: 1.35;
}

.dm-people-list {
  display: grid;
  max-height: min(360px, 48vh);
  gap: 2px;
  overflow: hidden auto;
  margin: 0 -8px;
  padding: 0 8px 8px;
}

.dm-person {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.dm-person:hover,
.dm-person.is-selected {
  background: rgba(78, 80, 88, 0.4);
}

.dm-person__meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dm-person__nick {
  overflow: hidden;
  color: #f2f3f5;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-person__user {
  overflow: hidden;
  color: #949ba4;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-person__check {
  width: 20px;
  height: 20px;
  border: 1px solid #80848e;
  border-radius: 4px;
  background: #1e1f22;
}

.dm-person.is-selected .dm-person__check {
  display: grid;
  place-items: center;
  border-color: #5865f2;
  background: #5865f2;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.dm-person.is-selected .dm-person__check::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.dm-person.is-locked {
  cursor: default;
  opacity: 0.92;
}

.dm-person.is-locked:hover {
  background: rgba(78, 80, 88, 0.28);
}

.dm-people-empty {
  margin: 24px 8px;
  color: #949ba4;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.discord-modal__actions--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px -20px 0;
  padding: 16px 20px;
}

.modal-secondary--fill {
  background: #4e5058;
  text-align: center;
}

.modal-secondary--fill:hover {
  background: #6d6f78;
  text-decoration: none;
}

.modal-primary--fill:disabled {
  opacity: 0.45;
  cursor: default;
}

.dm-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 8px !important;
  overflow: hidden;
}

.channel-item.dm-item::before {
  content: none;
  display: none;
}

.dm-item__avatar {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.dm-item__avatar > i {
  position: absolute;
  right: -3px;
  bottom: -3px;
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 3px solid var(--discord-side);
  border-radius: 50%;
  background: #80848e;
  box-sizing: border-box;
  cursor: default;
  pointer-events: auto;
}

.dm-item__avatar > i.is-online {
  background: #23a55a;
}

.dm-item--incoming-call .dm-item__avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  z-index: 3;
  border-radius: 50%;
  border: 2px solid #23a559;
  pointer-events: none;
  animation: voiceCallRingRipple 1.8s ease-out infinite;
}

.dm-item--incoming-call .dm-item__name {
  color: #23a559;
}

.dm-item__avatar > i:not(.is-online):not(.is-idle):not(.is-dnd) {
  --offline-inner: var(--discord-side);
}

.dm-item__avatar .avatar-letter {
  position: relative;
  z-index: 0;
  line-height: 1;
}

.dm-item__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-size: 15px;
}

.discord-modal--server {
  width: min(440px, 100%);
  text-align: center;
}

.discord-modal--server .discord-field {
  text-align: left;
}

/* Create server modal — polished layout */
#createServerModal .discord-modal--server {
  width: min(440px, 100%) !important;
  padding: 28px 28px 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #313338 !important;
  text-align: left !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

#createServerModal .discord-modal--server .modal-close {
  top: 14px !important;
  right: 14px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #b5bac1 !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

#createServerModal .discord-modal--server .modal-close:hover {
  background: rgba(78, 80, 88, 0.45) !important;
  color: #fff !important;
}

#createServerModal .server-create-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 4px 0 22px;
  text-align: center;
}

#createServerModal .server-create-hero__icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #6a75f5 0%, #5865f2 55%, #4752c4 100%);
  color: #fff;
  box-shadow:
    0 10px 24px rgba(88, 101, 242, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#createServerModal .server-create-hero__icon svg {
  width: 28px;
  height: 28px;
}

#createServerModal .discord-modal--server h2,
#createServerModal #createServerTitle {
  margin: 2px 0 0 !important;
  color: #f2f3f5 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 28px !important;
  letter-spacing: -0.02em !important;
  text-align: center !important;
}

#createServerModal .server-create-lead {
  margin: 0 !important;
  max-width: 320px;
  color: #b5bac1 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

#createServerModal .server-create-body {
  display: grid;
  gap: 12px;
  padding: 0 0 4px;
}

#createServerModal .server-create-field {
  display: grid;
  gap: 8px;
}

#createServerModal .server-create-field__label {
  color: #b5bac1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#createServerModal .server-create-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #1e1f22;
  color: #f2f3f5;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

#createServerModal .server-create-field input::placeholder {
  color: #6d6f78;
}

#createServerModal .server-create-field input:hover {
  border-color: rgba(255, 255, 255, 0.06);
}

#createServerModal .server-create-field input:focus {
  border-color: #5865f2;
  box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.35);
}

#createServerModal .server-create-actions {
  display: flex !important;
  grid-template-columns: none !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 12px !important;
  width: auto !important;
  max-width: none !important;
  margin: 24px -28px 0 !important;
  padding: 18px 28px !important;
  border: 0 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.25) !important;
  border-radius: 0 0 12px 12px !important;
  background: #2b2d31 !important;
  box-sizing: border-box !important;
}

#createServerModal .server-create-actions .modal-secondary--fill,
#createServerModal .server-create-actions .modal-primary--fill {
  width: auto !important;
  min-width: 108px !important;
  height: 38px !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

#createServerModal .server-create-actions .modal-secondary--fill {
  background: #4e5058 !important;
  color: #fff !important;
}

#createServerModal .server-create-actions .modal-secondary--fill:hover {
  background: #6d6f78 !important;
}

#createServerModal .server-create-actions .modal-primary--fill {
  background: #5865f2 !important;
  color: #fff !important;
}

#createServerModal .server-create-actions .modal-primary--fill:hover {
  background: #4752c4 !important;
}

.discord-composer__tools {
  display: none;
}

.discord-modal__icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 13px;
  place-items: center;
  border-radius: 16px;
  background: #5865f2;
  font-size: 28px;
}

.discord-modal h2 {
  margin: 0;
  font-size: 23px;
  text-align: center;
}

.discord-modal > p {
  margin: 9px auto 22px;
  color: #b5bac1;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #b5bac1;
  font-size: 25px;
  cursor: pointer;
}

.space-kind {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.space-kind__option {
  display: grid;
  grid-template-columns: 36px 1fr;
  padding: 13px;
  border: 1px solid #4e5058;
  border-radius: 8px;
  background: #2b2d31;
  color: #dbdee1;
  text-align: left;
  cursor: pointer;
}

.space-kind__option > span {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 23px;
}

.space-kind__option strong {
  font-size: 14px;
}

.space-kind__option small {
  margin-top: 2px;
  color: #949ba4;
  font-size: 11px;
}

.space-kind__option.active {
  border-color: #5865f2;
  background: rgba(88, 101, 242, 0.14);
}

.discord-field {
  display: block;
}

.discord-field > span {
  display: block;
  margin-bottom: 8px;
  color: #b5bac1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.discord-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 3px;
  outline: 0;
  background: #1e1f22;
  color: #f2f3f5;
}

.discord-field input:focus {
  box-shadow: 0 0 0 1px #00a8fc;
}

.discord-field__hash {
  display: flex;
  align-items: center;
  border-radius: 3px;
  background: #1e1f22;
}

.discord-field__hash b {
  padding-left: 12px;
  color: #949ba4;
  font-size: 20px;
}

.discord-field__hash input {
  background: transparent;
}

.discord-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 24px -30px -30px;
  padding: 16px 30px;
  border-radius: 0 0 8px 8px;
  background: #2b2d31;
}

/* Idea modal has padding:0 — do not inherit negative action margins */
.discord-modal--idea > .discord-modal__actions.suggest-idea-actions {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  padding: 16px 28px 20px;
}

.discord-modal--dm .discord-modal__actions,
.discord-modal__actions--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px -20px 0;
  padding: 16px 20px;
  border-radius: 0 0 8px 8px;
  background: #2b2d31;
  box-sizing: border-box;
  width: auto;
}

.modal-secondary,
.modal-primary {
  padding: 10px 18px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.modal-secondary {
  background: transparent;
}

.modal-secondary:hover {
  text-decoration: underline;
}

.modal-primary {
  background: #5865f2;
}

.modal-primary:hover {
  background: #4752c4;
}

.aura-toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 16px 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 42%),
    linear-gradient(135deg, rgba(43, 45, 49, 0.98), rgba(24, 25, 28, 0.98));
  color: #f2f3f5;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.98);
  transition:
    opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.aura-toast::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--discord-brand, #5865f2);
  opacity: 0.95;
}

.aura-toast[data-tone='success']::before {
  background: #23a55a;
}

.aura-toast[data-tone='warn']::before {
  background: #faaf09;
}

.aura-toast__icon {
  position: relative;
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.16);
  color: #a6adff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.aura-toast[data-tone='success'] .aura-toast__icon {
  background: rgba(35, 165, 90, 0.18);
  color: #47d17a;
}

.aura-toast[data-tone='warn'] .aura-toast__icon {
  background: rgba(250, 175, 9, 0.16);
  color: #ffcc4d;
}

.aura-toast__icon::before {
  content: 'i';
}

.aura-toast[data-tone='success'] .aura-toast__icon::before {
  content: '✓';
  font-size: 15px;
}

.aura-toast[data-tone='warn'] .aura-toast__icon::before {
  content: '!';
  font-size: 16px;
}

.aura-toast__text {
  flex: 1;
  min-width: 0;
  padding-right: 2px;
}

.aura-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.friend-request-prompt {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 240;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px 12px;
  width: min(360px, calc(100vw - 40px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(30, 31, 34, 0.98);
  color: #f2f3f5;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  transform-origin: left bottom;
  animation: friendRequestPromptIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.friend-request-prompt.hidden,
.friend-request-prompt[hidden] {
  display: none !important;
}

.friend-request-prompt__avatar {
  grid-column: 1;
  grid-row: 1;
  width: 48px;
  height: 48px;
  min-width: 48px;
}

.friend-request-prompt__copy {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.friend-request-prompt__copy strong {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-request-prompt__copy span {
  color: #b5bac1;
  font-size: 13px;
  line-height: 1.25;
}

.friend-request-prompt__actions {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.friend-request-prompt__actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.friend-request-prompt__actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.friend-request-prompt__reject {
  background: #3f4147;
}

.friend-request-prompt__reject:hover:not(:disabled) {
  background: #4e5058;
}

.friend-request-prompt__accept {
  background: var(--discord-brand, #5865f2);
}

.friend-request-prompt__accept:hover:not(:disabled) {
  filter: brightness(1.08);
}

@keyframes friendRequestPromptIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1000px) {
  .interface-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discord-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .members-panel {
    display: none;
  }
}

  @media (max-width: 720px) {
  .interface-picker {
    padding: 16px;
  }

  .interface-picker__panel {
    padding: 26px 18px;
  }

  .interface-picker__footer {
    align-items: stretch;
    flex-direction: column;
  }

  #app.discord-app {
    grid-template-columns: 60px var(--sidebar-width) minmax(0, 1fr);
    grid-template-rows: 34px minmax(0, 1fr);
  }

  .server-pill {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .discord-header__actions > button,
  .discord-search {
    display: none;
  }
}

@media (max-width: 540px) {
  .interface-grid {
    grid-template-columns: 1fr;
  }

  .interface-preview {
    height: 105px;
  }

  #app.discord-app {
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: 34px minmax(0, 1fr);
  }

  .channel-sidebar {
    display: none;
  }

  .discord-composer {
    margin-right: 8px;
    margin-left: 8px;
  }
}

/* вЂ”вЂ” Original Aura interface (not a Discord recolor) вЂ”вЂ” */
.server-pill__label {
  display: none;
  font-style: normal;
}

#app.discord-app.ui-standard {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background:
    radial-gradient(circle at 8% 0%, rgba(124, 92, 255, 0.24), transparent 32%),
    radial-gradient(circle at 92% 100%, rgba(45, 212, 191, 0.1), transparent 30%),
    #090910;
  font-family: var(--font);
}

.ui-standard .app-toolbar {
  display: none;
}

.ui-standard .server-rail {
  grid-row: 1;
  grid-column: 1 / 3;
  align-items: center;
  flex-direction: row;
  gap: 8px;
  overflow: auto hidden;
  padding: 8px 12px;
  border: 1px solid rgba(196, 181, 253, 0.13);
  border-radius: 18px;
  background: rgba(18, 18, 29, 0.88);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
}

.ui-standard .server-list {
  width: auto;
  align-items: center;
  flex-direction: row;
  gap: 8px;
}

.ui-standard .server-rail__divider {
  flex: 0 0 1px;
  width: 1px;
  height: 30px;
  background: rgba(196, 181, 253, 0.16);
}

.ui-standard .server-pill {
  display: flex;
  width: auto;
  min-width: 46px;
  height: 44px;
  flex: 0 0 auto;
  flex-basis: auto;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 0 13px;
  overflow: hidden;
  border: 1px solid rgba(196, 181, 253, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  color: #b6b4c5;
  font-size: 12px;
  font-weight: 650;
}

.ui-standard .server-pill::before {
  display: none;
}

.ui-standard .server-pill:hover,
.ui-standard .server-pill.active {
  border-radius: 13px;
  border-color: rgba(155, 132, 255, 0.45);
  background: rgba(124, 92, 255, 0.14);
  color: #fff;
}

.ui-standard .server-pill__add {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 8px;
  background: rgba(124, 92, 255, 0.18);
}

.ui-standard .server-pill__add-circle {
  width: 18px;
  height: 18px;
}

.ui-standard .server-pill__add-circle::before {
  width: 8px;
  height: 2px;
}

.ui-standard .server-pill__add-circle::after {
  width: 2px;
  height: 8px;
}

.ui-standard .server-pill__label {
  display: block;
  max-width: 120px;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-standard .server-pill--home {
  border-color: rgba(155, 132, 255, 0.26);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(124, 92, 255, 0.06));
}

.ui-standard .server-pill--home .server-pill__text {
  color: #efeaff;
  font-size: 12px;
}

.ui-standard .server-pill--action {
  color: #b6b4c5;
}

.ui-standard .server-pill--action:hover {
  background: rgba(124, 92, 255, 0.14);
  color: #fff;
}

.ui-standard .server-pill--action:disabled {
  display: none;
}

.ui-standard .channel-sidebar {
  grid-row: 2;
  grid-column: 1;
  overflow: hidden;
  border: 1px solid rgba(196, 181, 253, 0.11);
  border-radius: 20px;
  background:
    linear-gradient(170deg, rgba(27, 25, 43, 0.96), rgba(15, 15, 24, 0.96));
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.28);
}

.ui-standard .server-header {
  height: 64px;
  padding: 0 20px;
  border-bottom-color: rgba(196, 181, 253, 0.1);
  box-shadow: none;
}

.ui-standard .server-header strong {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.ui-standard .channel-scroll {
  padding: 16px 12px;
}

.ui-standard .channel-category {
  margin: 0 4px 8px;
}

.ui-standard .channel-category__title {
  color: #817e92;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.ui-standard .channel-category__add {
  color: #817e92;
}

.ui-standard .channel-item {
  height: 44px;
  margin: 3px 0;
  gap: 11px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #aaa7ba;
}

.ui-standard .channel-item::before {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #777487;
  font-size: 16px;
}

.ui-standard .channel-item:hover {
  border-color: rgba(196, 181, 253, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.ui-standard .channel-item.active {
  border-color: rgba(155, 132, 255, 0.22);
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.18), rgba(124, 92, 255, 0.05));
  color: #f4f2ff;
}

.ui-standard .channel-item.active::before {
  background: rgba(124, 92, 255, 0.24);
  color: #c4b5fd;
}

.ui-standard .user-panel {
  margin: 5px 8px 8px;
  padding: 0 10px;
  border: 1px solid rgba(196, 181, 253, 0.09);
  border-radius: 14px;
  background: rgba(7, 7, 12, 0.45);
}

.ui-standard .user-panel__actions button {
  color: #a6a2b5;
}

.ui-standard .discord-content {
  grid-row: 2;
  grid-column: 2;
  overflow: hidden;
  border: 1px solid rgba(196, 181, 253, 0.11);
  border-radius: 20px;
  background:
    radial-gradient(circle at 80% 0%, rgba(124, 92, 255, 0.08), transparent 38%),
    rgba(15, 15, 24, 0.96);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.28);
}

.ui-standard .discord-header {
  min-height: 64px;
  padding: 0 22px;
  border-bottom-color: rgba(196, 181, 253, 0.09);
  box-shadow: none;
}

.ui-standard .discord-header__channel .hash {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  background: rgba(124, 92, 255, 0.18);
  color: #c4b5fd;
  font-size: 20px;
}

.ui-standard .discord-header__channel strong {
  font-size: 16px;
}

.ui-standard .discord-header__divider {
  background: rgba(196, 181, 253, 0.11);
}

.ui-standard .discord-header__actions > button {
  display: none;
}

.ui-standard .discord-search {
  width: 180px;
  height: 32px;
  border: 1px solid rgba(196, 181, 253, 0.1);
  border-radius: 10px;
  background: rgba(8, 8, 13, 0.55);
}

.ui-standard .discord-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.ui-standard .members-panel {
  display: none;
}

.ui-standard .discord-chat {
  grid-template-rows: minmax(0, 1fr) 26px auto;
}

.ui-standard .discord-messages {
  padding: 24px 10px 12px;
}

.ui-standard .channel-welcome {
  padding: 24px 22px 32px;
}

.ui-standard .channel-welcome__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7c5cff, #5b3fd6);
  box-shadow: 0 15px 38px rgba(124, 92, 255, 0.22);
  font-size: 31px;
}

.ui-standard .channel-welcome h2 {
  font-size: 26px;
}

.ui-standard .discord-message {
  grid-template-columns: 46px minmax(0, 1fr);
  margin: 8px 12px;
  padding: 0;
}

.ui-standard .discord-message:hover {
  background: transparent;
}

.ui-standard .discord-message__avatar {
  width: 35px;
  height: 35px;
  margin: 4px 0 0;
  font-size: 11px;
}

.ui-standard .discord-message__content {
  width: fit-content;
  max-width: min(680px, 78%);
  padding: 10px 14px;
  border: 1px solid rgba(196, 181, 253, 0.09);
  border-radius: 7px 17px 17px;
  background: rgba(255, 255, 255, 0.045);
}

.ui-standard .discord-message__header {
  margin-bottom: 3px;
}

.ui-standard .discord-message__nick {
  color: #c4b5fd;
  font-size: 13px;
}

.ui-standard .discord-message__body {
  color: #eceaf4;
  font-size: 14px;
}

.ui-standard .discord-message.is-me {
  grid-template-columns: minmax(0, 1fr) 46px;
}

.ui-standard .discord-message.is-me .discord-message__avatar {
  grid-row: 1;
  grid-column: 2;
  margin-left: 11px;
}

.ui-standard .discord-message.is-me .discord-message__content {
  grid-row: 1;
  grid-column: 1;
  justify-self: end;
  border-color: rgba(155, 132, 255, 0.26);
  border-radius: 17px 7px 17px 17px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.48), rgba(91, 63, 214, 0.38));
}

.ui-standard .discord-message.is-me .discord-message__header {
  justify-content: flex-end;
}

.ui-standard .discord-message.is-me .discord-message__nick,
.ui-standard .discord-message.is-me .discord-message__body {
  color: #fff;
}

.ui-standard .discord-message.is-me .discord-message__time {
  color: rgba(255, 255, 255, 0.55);
}

.ui-standard .discord-typing {
  padding-left: 24px;
  color: #8e8a9f;
}

.ui-standard .discord-composer {
  min-height: 50px;
  margin: 0 20px 20px;
  border: 1px solid rgba(196, 181, 253, 0.12);
  border-radius: 15px;
  background: rgba(31, 30, 44, 0.86);
  box-shadow: 0 13px 36px rgba(0, 0, 0, 0.18);
}

.ui-standard .discord-composer__add {
  color: #9b84ff;
}

.ui-standard .discord-composer__tools button {
  color: #918da1;
}

@media (max-width: 760px) {
  #app.discord-app.ui-standard {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .ui-standard .server-pill__label {
    max-width: 72px;
  }

  .ui-standard .discord-header__channel > span:last-child,
  .ui-standard .discord-search {
    display: none;
  }
}

@media (max-width: 560px) {
  #app.discord-app.ui-standard {
    grid-template-columns: minmax(0, 1fr);
  }

  .ui-standard .channel-sidebar {
    display: none;
  }

  .ui-standard .discord-content {
    grid-column: 1;
  }
}

/* вЂ”вЂ” Detailed interface card previews вЂ”вЂ” */
.interface-preview[class*="interface-preview--"] i {
  position: static;
  inset: auto;
  display: block;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
}

.interface-preview--discord {
  display: grid;
  grid-template-columns: 12% 25% 45% 18%;
  background: #313338;
}

.preview-discord__servers,
.preview-discord__channels,
.preview-discord__chat,
.preview-discord__members {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.preview-discord__servers {
  align-items: center;
  gap: 7px;
  padding: 10px 4px;
  background: #1e1f22;
}

.interface-preview--discord .preview-discord__servers i {
  display: grid;
  width: clamp(15px, 2vw, 25px);
  height: clamp(15px, 2vw, 25px);
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #313338;
  color: #b5bac1;
  font-size: 6px;
  font-style: normal;
  font-weight: 800;
}

.interface-preview--discord .preview-discord__servers i.active {
  border-radius: 8px;
  background: #5865f2;
  color: #fff;
}

.preview-discord__channels {
  padding: 10px 7px 32px;
  background: #2b2d31;
}

.preview-discord__channels b {
  margin-bottom: 17px;
  overflow: hidden;
  color: #f2f3f5;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-discord__channels small,
.preview-discord__members small {
  margin-bottom: 5px;
  overflow: hidden;
  color: #949ba4;
  font-size: 5px;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.interface-preview--discord .preview-discord__channels > i {
  margin: 1px 0;
  padding: 5px;
  overflow: hidden;
  border-radius: 3px;
  color: #949ba4;
  font-size: 6px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.interface-preview--discord .preview-discord__channels > i.active {
  background: #404249;
  color: #fff;
}

.preview-discord__channels > em {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: 27px;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  overflow: hidden;
  background: #232428;
  color: #f2f3f5;
  font-size: 6px;
  font-style: normal;
  white-space: nowrap;
}

.preview-discord__channels > em u {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #eb459e, #5865f2);
  text-decoration: none;
}

.preview-discord__chat {
  padding: 0 8px 34px;
  background: #313338;
}

.preview-discord__chat > b {
  display: flex;
  height: 29px;
  align-items: center;
  gap: 4px;
  margin: 0 -8px 12px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  color: #f2f3f5;
  font-size: 7px;
}

.preview-discord__chat > b u {
  color: #949ba4;
  font-size: 12px;
  text-decoration: none;
}

.mini-message {
  display: flex;
  gap: 5px;
  margin: 7px 0;
}

.interface-preview--discord .mini-message > i {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border-radius: 50%;
  background: #5865f2;
  color: #fff;
  font-size: 6px;
  font-style: normal;
}

.mini-message:nth-of-type(3) > i {
  background: #23a55a;
}

.mini-message em,
.mini-message strong,
.mini-message small {
  display: block;
}

.mini-message em {
  min-width: 0;
  font-style: normal;
}

.mini-message strong {
  color: #f2f3f5;
  font-size: 6px;
}

.mini-message small {
  margin-top: 2px;
  overflow: hidden;
  color: #dbdee1;
  font-size: 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.interface-preview .mini-composer {
  position: absolute;
  right: 8px;
  bottom: 9px;
  left: 8px;
  height: 18px;
  padding: 5px 7px;
  overflow: hidden;
  border-radius: 5px;
  background: #383a40;
  color: #949ba4;
  font-size: 5px;
  font-style: normal;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-discord__members {
  gap: 5px;
  padding: 35px 5px 8px;
  background: #2b2d31;
}

.interface-preview--discord .preview-discord__members > i {
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  color: #b5bac1;
  font-size: 5px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-discord__members > i u {
  display: grid;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  place-items: center;
  border-radius: 50%;
  background: #5865f2;
  color: #fff;
  text-decoration: none;
}

.interface-preview--standard {
  display: grid;
  grid-template-rows: 20% 80%;
  grid-template-columns: 31% 69%;
  gap: 3px;
  padding: 5px;
  background:
    radial-gradient(circle at 75% 25%, rgba(124, 92, 255, 0.18), transparent 40%),
    #090910;
}

.preview-standard__spaces {
  display: flex;
  grid-row: 1;
  grid-column: 1 / 3;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  padding: 4px;
  border: 1px solid rgba(196, 181, 253, 0.12);
  border-radius: 7px;
  background: rgba(18, 18, 29, 0.94);
}

.preview-standard__spaces b,
.interface-preview--standard .preview-standard__spaces i {
  display: flex;
  height: 21px;
  align-items: center;
  gap: 3px;
  padding: 0 5px;
  overflow: hidden;
  border: 1px solid rgba(196, 181, 253, 0.12);
  border-radius: 6px;
  color: #c7c3d6;
  font-size: 5px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-standard__spaces b {
  border-color: rgba(155, 132, 255, 0.34);
  background: rgba(124, 92, 255, 0.14);
}

.preview-standard__spaces u {
  color: #9b84ff;
  text-decoration: none;
}

.preview-standard__channels {
  position: relative;
  display: flex;
  grid-row: 2;
  grid-column: 1;
  flex-direction: column;
  margin-top: 3px;
  padding: 9px 6px;
  overflow: hidden;
  border: 1px solid rgba(196, 181, 253, 0.11);
  border-radius: 8px;
  background: linear-gradient(170deg, rgba(27, 25, 43, 0.96), rgba(15, 15, 24, 0.96));
}

.preview-standard__channels b {
  margin-bottom: 13px;
  overflow: hidden;
  color: #f4f2ff;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-standard__channels small {
  margin-bottom: 4px;
  color: #817e92;
  font-size: 5px;
  letter-spacing: 0.08em;
}

.interface-preview--standard .preview-standard__channels i {
  margin: 1px 0;
  padding: 5px;
  overflow: hidden;
  border-radius: 5px;
  color: #aaa7ba;
  font-size: 5px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.interface-preview--standard .preview-standard__channels i.active {
  border: 1px solid rgba(155, 132, 255, 0.2);
  background: rgba(124, 92, 255, 0.14);
  color: #fff;
}

.preview-standard__chat {
  position: relative;
  display: flex;
  grid-row: 2;
  grid-column: 2;
  flex-direction: column;
  margin: 3px 0 0 3px;
  padding: 8px 7px 31px;
  overflow: hidden;
  border: 1px solid rgba(196, 181, 253, 0.11);
  border-radius: 8px;
  background: rgba(15, 15, 24, 0.96);
}

.preview-standard__chat > b {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 7px;
}

.preview-standard__chat > b u {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 5px;
  background: rgba(124, 92, 255, 0.2);
  color: #c4b5fd;
  text-decoration: none;
}

.standard-bubble {
  display: flex;
  max-width: 90%;
  gap: 4px;
  margin: 4px 0;
}

.interface-preview--standard .standard-bubble > i {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  place-items: center;
  border-radius: 50%;
  background: #eb459e;
  color: #fff;
  font-size: 5px;
  font-style: normal;
}

.standard-bubble em {
  padding: 5px 7px;
  border: 1px solid rgba(196, 181, 253, 0.1);
  border-radius: 3px 8px 8px;
  background: rgba(255, 255, 255, 0.05);
  font-style: normal;
}

.standard-bubble strong,
.standard-bubble small {
  display: block;
}

.standard-bubble strong {
  color: #c4b5fd;
  font-size: 5px;
}

.standard-bubble small {
  margin-top: 2px;
  color: #e8e6ef;
  font-size: 5px;
  white-space: nowrap;
}

.standard-bubble.is-me {
  align-self: flex-end;
}

.standard-bubble.is-me em {
  order: 1;
  border-color: rgba(155, 132, 255, 0.25);
  border-radius: 8px 3px 8px 8px;
  background: rgba(124, 92, 255, 0.35);
}

.interface-preview--standard .standard-bubble.is-me > i {
  order: 2;
  background: #7c5cff;
}

.interface-preview--standard .mini-composer {
  background: rgba(31, 30, 44, 0.96);
}

.interface-preview--telegram {
  display: grid;
  grid-template-columns: 42% 58%;
  background: #17212b;
}

.preview-telegram__list,
.preview-telegram__chat {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
}

.preview-telegram__list {
  padding: 9px 6px;
  background: #212b36;
}

.preview-telegram__list > b {
  color: #fff;
  font-size: 8px;
}

.preview-telegram__list > u {
  margin: 7px 0;
  padding: 5px;
  border-radius: 5px;
  background: #17212b;
  color: #71808d;
  font-size: 5px;
  text-decoration: none;
}

.interface-preview--telegram .preview-telegram__list > i {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 2px;
  overflow: hidden;
  font-style: normal;
}

.preview-telegram__list > i > em {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border-radius: 50%;
  background: #2b5278;
  color: #fff;
  font-size: 5px;
  font-style: normal;
}

.preview-telegram__list strong,
.preview-telegram__list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-telegram__list strong {
  color: #fff;
  font-size: 6px;
}

.preview-telegram__list small {
  margin-top: 2px;
  color: #71808d;
  font-size: 5px;
  font-weight: 400;
}

.preview-telegram__chat {
  padding: 36px 8px 30px;
  background:
    radial-gradient(circle at 50% 50%, rgba(43, 82, 120, 0.1), transparent 45%),
    #17212b;
}

.preview-telegram__chat > b {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 29px;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  background: #212b36;
  color: #fff;
  font-size: 6px;
}

.interface-preview--telegram .preview-telegram__chat > b i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #2b5278;
  font-style: normal;
}

.preview-telegram__chat > b small {
  color: #71808d;
  font-size: 4px;
}

.preview-telegram__chat > em {
  align-self: flex-start;
  margin: 7px 0;
  padding: 6px 8px;
  border-radius: 3px 9px 9px;
  background: #182533;
  color: #d8e4ee;
  font-size: 5px;
  font-style: normal;
}

.preview-telegram__chat > em.mine {
  align-self: flex-end;
  border-radius: 9px 3px 9px 9px;
  background: #2b5278;
}

.interface-preview--telegram .mini-composer {
  background: #212b36;
  color: #71808d;
}

.interface-preview--vk {
  display: grid;
  grid-template-rows: 20% 80%;
  grid-template-columns: 31% 69%;
  background: #19191a;
}

.preview-vk__top {
  display: flex;
  grid-row: 1;
  grid-column: 1 / 3;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: #222;
}

.preview-vk__top b {
  color: #2688eb;
  font-size: 8px;
}

.preview-vk__top u {
  height: 17px;
  flex: 1;
  padding: 4px 7px;
  border-radius: 5px;
  background: #292929;
  color: #666;
  font-size: 5px;
  text-decoration: none;
}

.interface-preview--vk .preview-vk__top i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #2688eb;
  color: #fff;
  font-size: 5px;
  font-style: normal;
}

.preview-vk__nav {
  display: flex;
  grid-row: 2;
  grid-column: 1;
  flex-direction: column;
  gap: 3px;
  padding: 11px 7px;
  background: #19191a;
}

.interface-preview--vk .preview-vk__nav i {
  padding: 5px;
  overflow: hidden;
  border-radius: 4px;
  color: #888;
  font-size: 5px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.interface-preview--vk .preview-vk__nav i:first-child {
  background: rgba(38, 136, 235, 0.12);
  color: #71aaeb;
}

.preview-vk__dialogs {
  display: flex;
  grid-row: 2;
  grid-column: 2;
  flex-direction: column;
  gap: 3px;
  padding: 10px 7px;
  overflow: hidden;
  border-left: 1px solid #2d2d2e;
  background: #222;
}

.preview-vk__dialogs > b {
  margin-bottom: 4px;
  color: #ddd;
  font-size: 7px;
}

.interface-preview--vk .preview-vk__dialogs > i {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 2px;
  overflow: hidden;
  font-style: normal;
}

.preview-vk__dialogs > i u {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  border-radius: 50%;
  background: #2688eb;
  color: #fff;
  font-size: 5px;
  text-decoration: none;
}

.preview-vk__dialogs em,
.preview-vk__dialogs small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-vk__dialogs em {
  min-width: 0;
  color: #ddd;
  font-size: 6px;
  font-style: normal;
}

.preview-vk__dialogs small {
  margin-top: 2px;
  color: #777;
  font-size: 5px;
}

@media (max-width: 1000px) {
  .interface-preview {
    height: 180px;
    flex: 0 0 180px;
  }
}

@media (max-height: 700px) and (min-width: 1001px) {
  .interface-picker__panel {
    padding: 20px 30px;
  }

  .interface-picker__header {
    margin-bottom: 14px;
  }

  .interface-picker__logo {
    margin-bottom: 4px;
    font-size: 22px;
  }

  .interface-picker__eyebrow {
    margin-bottom: 4px;
    font-size: 9px;
  }

  .interface-picker__header h1 {
    font-size: 34px;
  }

  .interface-picker__header p {
    margin-top: 6px;
    font-size: 12px;
  }

  .interface-preview {
    height: 140px;
    flex: 0 0 140px;
  }

  .interface-card__body {
    padding-top: 10px;
  }

  .interface-card__body strong {
    margin-bottom: 3px;
    font-size: 16px;
  }

  .interface-card__body small {
    min-height: 28px;
    font-size: 10px;
  }

  .interface-card__features {
    margin-top: 6px;
  }

  .interface-picker__footer {
    margin-top: 12px;
    padding-top: 12px;
  }
}

/* вЂ”вЂ” Flat Discord layout (no floating blocks) вЂ”вЂ” */
#app.discord-app {
  --discord-rail: #121214;
  --discord-side: #121214;
  --discord-main: #1a1a1e;
  --discord-input: #222327;
  --discord-user: #0e0e10;
}

.app-toolbar {
  background: var(--discord-side);
}

.discord-content {
  background: var(--discord-main) !important;
}

.friends-view {
  background: var(--discord-main) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.discord-workspace {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 240px !important;
  gap: 0 !important;
  padding: 0 !important;
  background: var(--discord-main) !important;
  overflow: hidden;
}

.discord-workspace.members-hidden {
  grid-template-columns: minmax(0, 1fr) !important;
}

.discord-chat {
  display: grid !important;
  position: relative;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto auto auto !important;
  border-radius: 0 !important;
  background: var(--discord-main) !important;
  box-shadow: none !important;
  overflow: hidden;
}

.discord-messages {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  overflow: hidden auto;
  overflow-anchor: none;
  padding: 16px 0 12px;
}

.discord-messages::before {
  content: "";
  flex: 1 0 auto;
}

.members-panel {
  position: relative !important;
  top: auto;
  right: auto;
  bottom: auto;
  z-index: 6;
  width: 240px;
  min-width: 240px;
  margin: 0 !important;
  padding: 16px 8px !important;
  border: 0 !important;
  border-left: 1px solid rgba(0, 0, 0, 0.35) !important;
  border-radius: 0 !important;
  background: #1a1a1e !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: hidden auto;
}

.discord-workspace.members-hidden .members-panel {
  display: none !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  box-shadow: none !important;
}

.user-panel {
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 5;
  display: flex !important;
  width: 100% !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.4) !important;
  border-radius: 0 !important;
  background: var(--discord-user) !important;
  box-shadow: none !important;
}

.user-panel__profile {
  border-radius: 4px;
}

.channel-sidebar {
  background: var(--discord-side) !important;
}

.server-rail {
  background: var(--discord-rail) !important;
  border-right: 1px solid rgba(0, 0, 0, 0.5);
}

.home-nav__item,
.channel-item,
.dm-item,
.friend-row {
  border-radius: 4px !important;
}

.discord-header {
  background: var(--discord-main);
  border-bottom: 1px solid #2a2b2f;
  box-shadow: none;
}

.discord-composer {
  margin: 0 16px 16px !important;
  border-radius: 8px;
  background: var(--discord-input);
}

/* Jump to latest messages (Telegram-style FAB) */
.scroll-to-bottom-host {
  position: absolute;
  z-index: 8;
  right: 22px;
  bottom: 78px;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.scroll-to-bottom {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(43, 45, 49, 0.92);
  color: #dbdee1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(0.88);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.2, 0.9, 0.2, 1),
    background 0.12s ease,
    color 0.12s ease;
}

.scroll-to-bottom-host.is-visible .scroll-to-bottom {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-to-bottom svg {
  width: 24px;
  height: 24px;
}

.scroll-to-bottom:hover {
  background: #35373c;
  color: #fff;
}

.scroll-to-bottom:active {
  transform: translateY(0) scale(0.94);
}

html.aura-no-motion .scroll-to-bottom {
  transition: none;
}

.discord-modal--dm {
  overflow: hidden;
  box-sizing: border-box;
}

.discord-modal--dm .discord-modal__actions,
.discord-modal__actions--split {
  margin-left: -20px !important;
  margin-right: -20px !important;
  margin-bottom: 0 !important;
  width: calc(100% + 40px) !important;
  max-width: none;
  box-sizing: border-box;
}

/* вЂ”вЂ” Polish pass: stripes, floating user panel, members slide вЂ”вЂ” */
.channel-sidebar {
  grid-template-rows: minmax(0, 1fr) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-right: 1px solid rgba(0, 0, 0, 0.55) !important;
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.35);
}

.server-rail {
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.home-scroll,
.channel-scroll {
  padding-bottom: 76px !important;
}

.user-panel {
  position: absolute !important;
  left: 8px !important;
  right: 8px !important;
  bottom: 8px !important;
  z-index: 20 !important;
  display: flex !important;
  width: auto !important;
  height: 58px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 1px solid rgba(0, 0, 0, 0.35) !important;
  border-radius: 8px !important;
  background: #1a1a1e !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
}

.user-panel__identity strong {
  font-size: 14px;
}

.user-panel__actions button {
  width: 32px !important;
  height: 32px !important;
}

.user-panel__actions button.user-panel__action--chevron {
  width: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  padding: 0 !important;
}

.friends-header__title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.friends-header__dot {
  color: #4e5058;
  font-size: 18px;
  line-height: 1;
}

.header-bullet {
  margin-right: 2px;
  color: #80848e;
  font-size: 18px;
  line-height: 1;
}

.header-bullet.hidden {
  display: none !important;
}

.friends-section-title {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 6px !important;
}

.friends-list {
  gap: 0 !important;
}

.friend-row {
  border: 0 !important;
  border-radius: 0 !important;
  border-top: 1px solid #2a2b2f !important;
}

.friend-row:hover {
  border-radius: 4px !important;
}

.dm-item {
  border-bottom: 1px solid transparent;
}

.discord-header {
  position: relative;
  z-index: 50;
}

.discord-header__actions {
  position: relative;
  z-index: 8;
  transition: transform 0.22s ease;
}

.chat-view.members-open .discord-header__actions {
  transform: translateX(-248px);
}

.chat-view.pins-open .discord-header {
  z-index: 80;
}

.pins-header-wrap {
  position: relative;
  display: grid;
  place-items: center;
  overflow: visible;
  z-index: 2;
}

.members-toggle-btn {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #b5bac1;
  cursor: pointer;
}

.members-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.members-toggle-btn:hover,
.members-toggle-btn.is-open {
  background: transparent;
  color: #fff;
}

.members-toggle-btn.is-disabled,
.members-toggle-btn:disabled {
  color: #4e5058;
  cursor: not-allowed;
  opacity: 0.55;
}

.members-toggle-btn.is-disabled:hover,
.members-toggle-btn:disabled:hover {
  background: transparent;
  color: #4e5058;
}

.members-toggle-btn.hidden {
  display: none !important;
}

.invite-group-btn svg,
.add-friends-dm-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.members-panel {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 6;
  width: 240px;
  min-width: 240px;
  margin: 0 !important;
  padding: 14px 8px !important;
  border: 0 !important;
  border-left: 1px solid rgba(0, 0, 0, 0.35) !important;
  border-radius: 0 !important;
  background: #1a1a1e !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: hidden auto;
}

.discord-workspace.members-hidden .members-panel {
  display: none !important;
  opacity: 1;
  pointer-events: auto;
  box-shadow: none !important;
}

.discord-chat {
  padding-right: 0 !important;
}

.chat-view.members-open .discord-chat {
  padding-right: 0 !important;
}

.sidebar-resize {
  right: -6px !important;
  width: 14px !important;
  z-index: 30 !important;
}

.sidebar-resize::after {
  left: 6px !important;
  width: 3px !important;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-resize:hover::after,
#app.discord-app.is-resizing-sidebar .sidebar-resize::after {
  background: var(--discord-brand) !important;
}

#app.discord-app.is-resizing-sidebar {
  cursor: ew-resize !important;
}

#app.discord-app.is-resizing-sidebar * {
  cursor: ew-resize !important;
  user-select: none !important;
}

/* Discord scrollbars — fat pill, no arrow buttons.
   scrollbar-width/color break ::-webkit-scrollbar in Chromium — Firefox-only below. */
.home-scroll::-webkit-scrollbar,
.channel-scroll::-webkit-scrollbar,
.friends-panel::-webkit-scrollbar,
.discord-messages::-webkit-scrollbar,
.members-panel::-webkit-scrollbar,
.dm-people-list::-webkit-scrollbar,
.dm-list::-webkit-scrollbar,
.discord-composer textarea::-webkit-scrollbar,
#inviteGroupModal .invite-modal__list::-webkit-scrollbar,
#createDmModal .invite-modal__list::-webkit-scrollbar,
#forwardMessageModal .invite-modal__list::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

.home-scroll::-webkit-scrollbar-button,
.channel-scroll::-webkit-scrollbar-button,
.friends-panel::-webkit-scrollbar-button,
.discord-messages::-webkit-scrollbar-button,
.members-panel::-webkit-scrollbar-button,
.dm-people-list::-webkit-scrollbar-button,
.dm-list::-webkit-scrollbar-button,
.discord-composer textarea::-webkit-scrollbar-button,
#inviteGroupModal .invite-modal__list::-webkit-scrollbar-button,
#createDmModal .invite-modal__list::-webkit-scrollbar-button,
#forwardMessageModal .invite-modal__list::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.home-scroll::-webkit-scrollbar-corner,
.channel-scroll::-webkit-scrollbar-corner,
.friends-panel::-webkit-scrollbar-corner,
.discord-messages::-webkit-scrollbar-corner,
.members-panel::-webkit-scrollbar-corner,
.dm-people-list::-webkit-scrollbar-corner,
.dm-list::-webkit-scrollbar-corner,
.discord-composer textarea::-webkit-scrollbar-corner,
#inviteGroupModal .invite-modal__list::-webkit-scrollbar-corner,
#createDmModal .invite-modal__list::-webkit-scrollbar-corner,
#forwardMessageModal .invite-modal__list::-webkit-scrollbar-corner {
  background: transparent;
}

.home-scroll::-webkit-scrollbar-track,
.channel-scroll::-webkit-scrollbar-track,
.friends-panel::-webkit-scrollbar-track,
.discord-messages::-webkit-scrollbar-track,
.members-panel::-webkit-scrollbar-track,
.dm-people-list::-webkit-scrollbar-track,
.dm-list::-webkit-scrollbar-track,
.discord-composer textarea::-webkit-scrollbar-track,
#inviteGroupModal .invite-modal__list::-webkit-scrollbar-track,
#createDmModal .invite-modal__list::-webkit-scrollbar-track,
#forwardMessageModal .invite-modal__list::-webkit-scrollbar-track {
  background: transparent;
}

.home-scroll::-webkit-scrollbar-thumb,
.channel-scroll::-webkit-scrollbar-thumb,
.friends-panel::-webkit-scrollbar-thumb,
.members-panel::-webkit-scrollbar-thumb,
.dm-people-list::-webkit-scrollbar-thumb,
.dm-list::-webkit-scrollbar-thumb,
.discord-composer textarea::-webkit-scrollbar-thumb,
#inviteGroupModal .invite-modal__list::-webkit-scrollbar-thumb,
#createDmModal .invite-modal__list::-webkit-scrollbar-thumb,
#forwardMessageModal .invite-modal__list::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 8px;
  background-color: #4e5058;
  background-clip: padding-box;
  min-height: 48px;
}

/* Chat: thumb only while pointer is in the chat column */
.discord-messages::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 8px;
  background-color: transparent;
  background-clip: padding-box;
  min-height: 48px;
}

.discord-chat:hover .discord-messages::-webkit-scrollbar-thumb,
.discord-chat.is-pointer-inside .discord-messages::-webkit-scrollbar-thumb {
  background-color: #4e5058;
}

.home-scroll::-webkit-scrollbar-thumb:hover,
.channel-scroll::-webkit-scrollbar-thumb:hover,
.friends-panel::-webkit-scrollbar-thumb:hover,
.members-panel::-webkit-scrollbar-thumb:hover,
.dm-people-list::-webkit-scrollbar-thumb:hover,
.dm-list::-webkit-scrollbar-thumb:hover,
.discord-composer textarea::-webkit-scrollbar-thumb:hover,
#inviteGroupModal .invite-modal__list::-webkit-scrollbar-thumb:hover,
#createDmModal .invite-modal__list::-webkit-scrollbar-thumb:hover,
#forwardMessageModal .invite-modal__list::-webkit-scrollbar-thumb:hover,
.discord-chat:hover .discord-messages::-webkit-scrollbar-thumb:hover,
.discord-chat.is-pointer-inside .discord-messages::-webkit-scrollbar-thumb:hover {
  background-color: #6d6f78;
  background-clip: padding-box;
}

@supports not selector(::-webkit-scrollbar) {
  .home-scroll,
  .channel-scroll,
  .friends-panel,
  .members-panel,
  .dm-people-list,
  .dm-list,
  .discord-composer textarea,
  #inviteGroupModal .invite-modal__list,
  #createDmModal .invite-modal__list,
  #forwardMessageModal .invite-modal__list {
    scrollbar-width: auto;
    scrollbar-color: #4e5058 transparent;
  }

  .discord-messages {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
  }

  .discord-chat:hover .discord-messages,
  .discord-chat.is-pointer-inside .discord-messages {
    scrollbar-color: #4e5058 transparent;
  }
}

.dm-people-list {
  margin: 0 !important;
  padding-right: 4px !important;
}

.discord-modal--dm {
  background: #1a1a1e !important;
}

/* —— Invite modal + create DM modal (Discord-like) —— */
#inviteGroupModal.modal-backdrop,
#createDmModal.modal-backdrop,
#forwardMessageModal.modal-backdrop {
  display: grid;
  place-items: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.72);
}

#inviteGroupModal.modal-backdrop.hidden,
#createDmModal.modal-backdrop.hidden,
#forwardMessageModal.modal-backdrop.hidden {
  display: none !important;
}

#inviteGroupModal .invite-modal,
#createDmModal .invite-modal,
#forwardMessageModal .invite-modal {
  position: relative;
  box-sizing: border-box;
  width: min(540px, 100%);
  max-height: min(720px, 90vh);
  padding: 24px 24px 16px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #313338;
  color: #f2f3f5;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 16px 40px rgba(0, 0, 0, 0.45);
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#inviteGroupModal .invite-modal__close,
#createDmModal .invite-modal__close,
#forwardMessageModal .invite-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b5bac1;
  font-size: 30px;
  font-weight: 300;
  line-height: 34px;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}

#inviteGroupModal .invite-modal__close:hover,
#createDmModal .invite-modal__close:hover,
#forwardMessageModal .invite-modal__close:hover {
  background: rgba(78, 80, 88, 0.5);
  color: #fff;
}

#inviteGroupModal .invite-modal__title,
#createDmModal .invite-modal__title,
#forwardMessageModal .invite-modal__title {
  margin: 0 40px 6px 0;
  color: #f2f3f5;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.01em;
  text-align: left;
}

#inviteGroupModal .invite-modal__sub,
#createDmModal .invite-modal__sub,
#forwardMessageModal .invite-modal__sub {
  margin: 0 0 18px;
  color: #b5bac1;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-align: left;
}

#inviteGroupModal .invite-modal__search,
#createDmModal .invite-modal__search,
#forwardMessageModal .invite-modal__search {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 0 0 10px;
}

#inviteGroupModal .invite-modal__search input,
#createDmModal .invite-modal__search input,
#forwardMessageModal .invite-modal__search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: 0;
  background: #1e1f22;
  color: #dbdee1;
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.12s ease, background 0.12s ease;
}

#inviteGroupModal .invite-modal__search input::placeholder,
#createDmModal .invite-modal__search input::placeholder,
#forwardMessageModal .invite-modal__search input::placeholder {
  color: #6d6f78;
}

#inviteGroupModal .invite-modal__search input:hover,
#createDmModal .invite-modal__search input:hover,
#forwardMessageModal .invite-modal__search input:hover {
  border-color: #3f4147;
}

#inviteGroupModal .invite-modal__search input:focus,
#createDmModal .invite-modal__search input:focus,
#forwardMessageModal .invite-modal__search input:focus {
  border-color: #5865f2;
  background: #1a1b1e;
}

#inviteGroupModal .invite-modal__add {
  flex: 0 0 auto;
  min-width: 110px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #5865f2;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease;
}

#inviteGroupModal .invite-modal__add:hover:not(:disabled) {
  background: #4752c4;
}

#inviteGroupModal .invite-modal__add:disabled {
  background: #3c4270;
  color: rgba(255, 255, 255, 0.45);
  cursor: not-allowed;
}

#inviteGroupModal .invite-modal__hint,
#createDmModal .invite-modal__hint {
  margin: 0 0 14px;
  color: #949ba4;
  font-size: 13px;
  line-height: 18px;
  text-align: left;
}

#inviteGroupModal .invite-modal__list,
#createDmModal .invite-modal__list,
#forwardMessageModal .invite-modal__list {
  display: grid;
  align-content: start;
  gap: 2px;
  max-height: min(420px, 50vh);
  margin: 0 -8px 4px;
  padding: 2px 8px 8px;
  overflow: hidden auto;
}

#inviteGroupModal .invite-modal__empty,
#createDmModal .invite-modal__empty,
#forwardMessageModal .invite-modal__empty {
  margin: 28px 12px;
  color: #949ba4;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

#inviteGroupModal .invite-person,
#createDmModal .invite-person {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: visible;
  user-select: none;
  transition: background 0.12s ease;
}

#inviteGroupModal .invite-person:hover,
#inviteGroupModal .invite-person.is-selected,
#createDmModal .invite-person:hover,
#createDmModal .invite-person.is-selected {
  background: rgba(78, 80, 88, 0.5);
}

#inviteGroupModal .invite-person__avatar,
#createDmModal .invite-person__avatar {
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
  overflow: visible !important;
  font-size: 14px !important;
}

#inviteGroupModal .invite-person__avatar > i,
#createDmModal .invite-person__avatar > i {
  right: 0 !important;
  bottom: 0 !important;
  width: 10px !important;
  height: 10px !important;
  border: 0 !important;
  /* рамка-вырез цвета фона модалки */
  box-shadow: 0 0 0 4px #313338 !important;
}

#inviteGroupModal .invite-person:hover .invite-person__avatar > i,
#inviteGroupModal .invite-person.is-selected .invite-person__avatar > i,
#createDmModal .invite-person:hover .invite-person__avatar > i,
#createDmModal .invite-person.is-selected .invite-person__avatar > i {
  box-shadow: 0 0 0 4px #3f4147 !important;
}

#createDmModal .invite-person__avatar > i:not(.is-online):not(.is-idle):not(.is-dnd),
#inviteGroupModal .invite-person__avatar > i:not(.is-online):not(.is-idle):not(.is-dnd) {
  --offline-inner: #313338;
}

#inviteGroupModal .invite-person:hover .invite-person__avatar > i:not(.is-online):not(.is-idle):not(.is-dnd),
#inviteGroupModal .invite-person.is-selected .invite-person__avatar > i:not(.is-online):not(.is-idle):not(.is-dnd),
#createDmModal .invite-person:hover .invite-person__avatar > i:not(.is-online):not(.is-idle):not(.is-dnd),
#createDmModal .invite-person.is-selected .invite-person__avatar > i:not(.is-online):not(.is-idle):not(.is-dnd) {
  --offline-inner: #3f4147;
}

#inviteGroupModal .invite-person__avatar > i.is-idle,
#createDmModal .invite-person__avatar > i.is-idle {
  background-color: #f0b232;
  background-image: none;
  overflow: hidden;
  --idle-ring: #313338;
}

#inviteGroupModal .invite-person:hover .invite-person__avatar > i.is-idle,
#inviteGroupModal .invite-person.is-selected .invite-person__avatar > i.is-idle,
#createDmModal .invite-person:hover .invite-person__avatar > i.is-idle,
#createDmModal .invite-person.is-selected .invite-person__avatar > i.is-idle {
  --idle-ring: #3f4147;
}

#inviteGroupModal .invite-person__avatar > i.is-idle::after,
#createDmModal .invite-person__avatar > i.is-idle::after {
  content: '';
  position: absolute;
  top: -18%;
  left: -22%;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: var(--idle-ring, #313338);
  transform: none;
}

#inviteGroupModal .invite-person__meta,
#createDmModal .invite-person__meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

#inviteGroupModal .invite-person__nick,
#createDmModal .invite-person__nick {
  overflow: hidden;
  color: #f2f3f5;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#inviteGroupModal .invite-person__user,
#createDmModal .invite-person__user {
  overflow: hidden;
  color: #949ba4;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#inviteGroupModal .invite-person__check,
#createDmModal .invite-person__check {
  width: 24px;
  height: 24px;
  border: 1px solid #80848e;
  border-radius: 6px;
  background: transparent;
  transition: border-color 0.12s ease, background 0.12s ease;
}

#inviteGroupModal .invite-person.is-selected .invite-person__check,
#createDmModal .invite-person.is-selected .invite-person__check {
  display: grid;
  place-items: center;
  border-color: #5865f2;
  background: #5865f2;
}

#inviteGroupModal .invite-person.is-selected .invite-person__check::after,
#createDmModal .invite-person.is-selected .invite-person__check::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

#createDmModal .invite-person.is-locked {
  cursor: default;
  background: rgba(0, 0, 0, 0.24);
  opacity: 0.82;
  pointer-events: none;
}

#createDmModal .invite-person.is-locked:hover,
#createDmModal .invite-person.is-locked.is-selected {
  background: rgba(0, 0, 0, 0.24);
}

#createDmModal .invite-person.is-locked .invite-person__nick {
  color: #b5bac1;
}

#createDmModal .invite-person.is-locked .invite-person__user {
  color: #6d6f78;
}

#createDmModal .invite-person.is-locked .invite-person__avatar > span,
#createDmModal .invite-person.is-locked .invite-person__avatar.has-photo {
  opacity: 0.72;
  filter: saturate(0.75);
}

#createDmModal .invite-person.is-locked .invite-person__avatar > i {
  opacity: 1;
  filter: none;
}

#createDmModal .invite-person.is-locked .invite-person__check,
#createDmModal .invite-person.is-locked .invite-person__check--done {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  border-color: #3f4147;
  background: #1e1f22;
}

#createDmModal .invite-person.is-locked .invite-person__check::after,
#createDmModal .invite-person.is-locked .invite-person__check--done::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #949ba4;
  border-bottom: 2px solid #949ba4;
  transform: rotate(-45deg) translate(1px, -1px);
}

.dm-create-modal.is-from-dm .invite-modal__list {
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dm-create-modal.is-from-dm .invite-modal__hint {
  margin-bottom: 10px;
}

#createDmModal .invite-modal {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 20px 44px rgba(0, 0, 0, 0.5);
}

#createDmModal .invite-person:not(.is-locked):hover {
  background: rgba(78, 80, 88, 0.42);
}

#createDmModal .invite-person:not(.is-locked).is-selected {
  background: rgba(88, 101, 242, 0.12);
}

#createDmModal .invite-person:not(.is-locked).is-selected:hover {
  background: rgba(88, 101, 242, 0.16);
}

.dm-create-modal__submit:not(:disabled) {
  background: #5865f2 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.28);
}

.dm-create-modal__submit:not(:disabled):hover {
  background: #4752c4 !important;
}

#createDmModal .dm-create-modal__search {
  display: block;
}

#createDmModal .invite-modal__search input {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

#createDmModal .invite-modal__search input::-webkit-search-decoration,
#createDmModal .invite-modal__search input::-webkit-search-cancel-button,
#createDmModal .invite-modal__search input::-webkit-search-results-button {
  display: none;
  appearance: none;
  -webkit-appearance: none;
}

.dm-create-modal__footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px -24px -16px;
  padding: 16px 24px;
  border-radius: 0 0 12px 12px;
  background: #2b2d31;
}

.dm-create-modal.is-from-dm .dm-create-modal__footer {
  grid-template-columns: 1fr;
}

.dm-create-modal.is-from-dm #createDmCancel {
  display: none;
}

.dm-create-modal__submit {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.dm-create-modal__submit:disabled {
  background: #3c4270 !important;
  color: rgba(255, 255, 255, 0.45) !important;
  cursor: not-allowed;
}

/* —— Discord-only polish (Standard не трогаем) —— */
#app.discord-app.ui-discord {
  position: relative;
  --discord-main: #1a1a1e;
  --discord-input: #222327;
  --aura-bottom-bar-h: 62px;
  --aura-bottom-bar-gap: 8px;
  background: var(--discord-rail);
}

#app.discord-app.ui-discord .discord-content,
#app.discord-app.ui-discord .friends-view,
#app.discord-app.ui-discord .discord-workspace,
#app.discord-app.ui-discord .discord-chat,
#app.discord-app.ui-discord .discord-header,
#app.discord-app.ui-discord .members-panel {
  background: #1a1a1e !important;
}

#app.discord-app.ui-discord .app-toolbar {
  position: relative;
  border-bottom: none !important;
}

#app.discord-app.ui-discord .app-toolbar::after {
  content: none;
}

#app.discord-app.ui-discord .server-rail {
  border-right: none !important;
}

#app.discord-app.ui-discord .channel-sidebar {
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

#app.discord-app.ui-discord .discord-content {
  border-radius: 0;
  overflow: hidden;
  /* Same row as sidebar → same Y as sidebar border-top (no toolbar step) */
  border-top: 1px solid #2a2b2f !important;
  box-shadow: none;
}

#app.discord-app.ui-discord .user-panel {
  position: absolute !important;
  left: 8px !important;
  bottom: var(--aura-bottom-bar-gap) !important;
  z-index: 40 !important;
  display: flex !important;
  width: calc(var(--rail-width) + var(--sidebar-width) - 16px) !important;
  height: var(--aura-bottom-bar-h) !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.35) !important;
  border-top: 0 !important;
  border-radius: 10px !important;
  background: #121214 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4) !important;
}

#app.discord-app.ui-discord .user-panel {
  background: #1a1a1e !important;
  border: 1px solid rgba(0, 0, 0, 0.28) !important;
  overflow: visible !important;
}

#app.discord-app.ui-discord .user-panel__profile {
  gap: 10px !important;
  padding: 4px 6px !important;
  cursor: pointer;
}

#app.discord-app.ui-discord .user-panel__identity strong {
  font-size: 14px;
}

#app.discord-app.ui-discord .channel-sidebar {
  grid-template-rows: minmax(0, 1fr) !important;
  overflow: hidden !important;
  border-top-left-radius: 8px !important;
}

#app.discord-app.ui-discord .home-scroll,
#app.discord-app.ui-discord .channel-scroll,
#app.discord-app.ui-discord .server-rail {
  padding-bottom: 84px !important;
}

#app.discord-app.ui-discord #homeSidebar {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  border-top-left-radius: 8px !important;
}

#app.discord-app.ui-discord #homeSidebar.hidden,
#app.discord-app.ui-discord #serverSidebar.hidden {
  display: none !important;
}

#app.discord-app.ui-discord .home-scroll {
  flex: 1 !important;
  min-height: 0 !important;
  border-top-left-radius: 8px !important;
  background: var(--discord-side) !important;
  overflow: hidden auto !important;
}

#app.discord-app.ui-discord .discord-workspace {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  padding: 0 !important;
  background: #1a1a1e !important;
  overflow: hidden !important;
}

#app.discord-app.ui-discord .discord-workspace.members-hidden {
  grid-template-columns: minmax(0, 1fr) !important;
}

#app.discord-app.ui-discord .members-panel,
#app.discord-app.ui-discord .discord-workspace.members-hidden .members-panel,
#app.discord-app.ui-discord .discord-workspace.members-hidden .members-panel.members-panel--profile {
  display: flex !important;
  flex-direction: column !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: 280px !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 18px 10px !important;
  border: 0 !important;
  border-left: 1px solid #2a2b2f !important;
  border-radius: 0 !important;
  background: #1a1a1e !important;
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.22);
  transform: translate3d(110%, 0, 0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  overflow: hidden !important;
  z-index: 8 !important;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

#app.discord-app.ui-discord .members-panel.members-panel--profile {
  width: 360px !important;
  padding: 12px !important;
  border-left: 0 !important;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.28);
}

#app.discord-app.ui-discord .members-panel.is-open {
  transform: translate3d(0, 0, 0) !important;
  pointer-events: auto !important;
}

/* Групповой звонок: участники сразу под сценой (и при закрытой/выезжающей панели) */
#app.discord-app.ui-discord .members-panel.members-panel--under-voice,
#app.discord-app.ui-discord .discord-workspace.voice-members-under .members-panel,
.chat-view.has-voice-call .members-panel.members-panel--under-voice {
  top: var(--voice-call-stage-h, 280px) !important;
  bottom: 0 !important;
  height: calc(100% - var(--voice-call-stage-h, 280px)) !important;
  z-index: 9 !important;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

#app.discord-app.ui-discord .discord-workspace > .voice-call-stage,
.discord-workspace > .voice-call-stage {
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  z-index: 8;
}

#app.discord-app.ui-discord .discord-chat {
  transition: margin-right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  margin-right: 0;
}

#app.discord-app.ui-discord .discord-workspace:has(.members-panel.is-open) .discord-chat {
  margin-right: 280px;
}

#app.discord-app.ui-discord .discord-workspace:has(.members-panel.members-panel--profile.is-open) .discord-chat {
  margin-right: 360px;
}

#app.discord-app.ui-discord .members-panel.members-panel--profile .dm-profile {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

#app.discord-app.ui-discord .discord-workspace.no-members-panel-motion .members-panel,
#app.discord-app.ui-discord .discord-workspace.no-members-panel-motion .discord-chat,
html.aura-no-motion #app.discord-app.ui-discord .members-panel,
html.aura-no-motion #app.discord-app.ui-discord .discord-workspace.members-hidden .members-panel,
html.aura-no-motion #app.discord-app.ui-discord .discord-workspace.members-hidden .members-panel.members-panel--profile,
html.aura-no-motion #app.discord-app.ui-discord .discord-chat,
html.aura-no-motion #app.discord-app.ui-discord .discord-workspace:has(.members-panel.is-open) .discord-chat,
html.aura-no-motion #app.discord-app.ui-discord .discord-workspace:has(.members-panel.members-panel--profile.is-open) .discord-chat {
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  #app.discord-app.ui-discord .members-panel,
  #app.discord-app.ui-discord .discord-workspace.members-hidden .members-panel,
  #app.discord-app.ui-discord .discord-chat {
    transition: none !important;
  }
}

#app.discord-app.ui-discord .chat-view.members-open .discord-header__actions,
#app.discord-app.ui-discord .discord-header__actions {
  transform: none !important;
}

#app.discord-app.ui-discord .chat-view.members-open .discord-chat {
  padding-right: 0 !important;
}

#app.discord-app.ui-discord .member-item {
  gap: 12px !important;
}

#app.discord-app.ui-discord .server-pill,
#app.discord-app.ui-discord .server-pill--home {
  border-radius: 18px !important;
}

#app.discord-app.ui-discord .server-pill:hover,
#app.discord-app.ui-discord .server-pill.active,
#app.discord-app.ui-discord .server-pill--home:hover,
#app.discord-app.ui-discord .server-pill--home.active {
  border-radius: 14px !important;
}

#app.discord-app.ui-discord .home-nav__item {
  border-radius: 8px !important;
  gap: 14px !important;
}

#app.discord-app.ui-discord .home-nav__icon {
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
}

#app.discord-app.ui-discord .home-nav__icon svg {
  width: 26px !important;
  height: 26px !important;
}

#app.discord-app.ui-discord .discord-composer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: auto;
  min-height: var(--aura-bottom-bar-h);
  margin: 0 16px var(--aura-bottom-bar-gap) !important;
  border-radius: 10px !important;
  background: #222327 !important;
  box-sizing: border-box;
  padding: 0 10px;
  overflow: visible;
}

#app.discord-app.ui-discord .discord-composer__row {
  display: flex;
  min-height: var(--aura-bottom-bar-h);
  align-items: stretch;
  gap: 4px;
  padding: 0;
  box-sizing: border-box;
  cursor: text;
}

#app.discord-app.ui-discord .discord-composer__field {
  display: contents;
}

#app.discord-app.ui-discord .composer-attach-menu__item--tg {
  display: none !important;
}

#app.discord-app.ui-discord .composer-attach-menu__item--discord {
  display: flex;
}

#app.discord-app.ui-discord .tg-left-header,
#app.discord-app.ui-discord .tg-composer-action,
#app.discord-app.ui-discord .composer-add-icon--clip,
#app.discord-app.ui-discord .home-nav__label--short {
  display: none !important;
}

#app.discord-app.ui-discord .dm-item:not(.dm-item--official) .dm-item__subtitle,
#app.discord-app.ui-discord .dm-item:not(.dm-item--official) .dm-item__subtitle-row,
#app.discord-app.ui-discord .dm-item__meta-time,
#app.discord-app.ui-discord .dm-item__badge,
#app.discord-app.ui-discord .discord-message__time--inline {
  display: none !important;
}

#app.discord-app.ui-discord .discord-composer__row.is-multiline {
  align-items: flex-end;
  padding: 6px 0;
}

#app.discord-app.ui-discord .discord-composer input,
#app.discord-app.ui-discord .discord-composer textarea {
  align-self: stretch;
  height: auto;
  min-height: var(--aura-bottom-bar-h);
  max-height: min(45vh, 420px);
  margin: 0;
  padding: 18px 8px;
  line-height: 1.375;
  box-sizing: border-box;
}

#app.discord-app.ui-discord .discord-composer__attach,
#app.discord-app.ui-discord .discord-composer__tools {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

#app.discord-app.ui-discord .discord-composer__add {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #949ba4;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

#app.discord-app.ui-discord .discord-composer__add .composer-add-icon--plus {
  width: 26px;
  height: 26px;
  stroke-width: 2.4;
}

#app.discord-app.ui-discord .discord-composer__emoji {
  box-sizing: border-box;
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  flex: 0 0 36px;
  padding: 0;
  aspect-ratio: 1 / 1;
  align-self: center;
}

#app.discord-app.ui-discord .discord-composer__row.is-multiline .discord-composer__add,
#app.discord-app.ui-discord .discord-composer__row.is-multiline .discord-composer__tools {
  margin-bottom: 4px;
}

#app.discord-app.ui-discord .discord-composer__add:hover,
#app.discord-app.ui-discord .discord-composer__attach.is-open .discord-composer__add {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(78, 80, 88, 0.45);
  color: #fff;
}

.composer-attach-preview {
  padding: 18px 16px 0;
}

.composer-attach-preview.hidden {
  display: none !important;
}

.composer-attach-preview__card {
  width: min(216px, 100%);
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  background: #2b2d31;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.composer-attach-preview__media {
  position: relative;
  overflow: visible;
  border-radius: 4px;
  background: #1e1f22;
}

.composer-attach-preview__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 4px;
  background: #1e1f22;
  cursor: zoom-in;
}

.composer-attach-preview__audio {
  display: none;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 4px;
  background: #1e1f22;
  color: #b5bac1;
}

.composer-attach-preview__audio svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.composer-attach-preview__card.is-audio .composer-attach-preview__thumb {
  display: none;
}

.composer-attach-preview__card.is-audio .composer-attach-preview__audio {
  display: grid;
}

.composer-attach-preview__card.is-audio .composer-attach-preview__thumb {
  cursor: default;
}

.discord-message__attachment--audio {
  overflow: visible;
  line-height: normal;
}

.discord-message__audio {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 14px 16px 16px;
  overflow: visible;
  border-radius: 8px;
  background: var(--discord-main, #1a1a1e);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
}

.discord-message__audio-meta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.discord-message__audio-icon {
  flex: 0 0 auto;
  display: grid;
  width: 30px;
  height: 36px;
  place-items: center;
  color: #00a8fc;
}

.discord-message__audio-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.discord-message__audio-meta-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discord-message__audio-name {
  display: block;
  overflow: hidden;
  color: #00a8fc;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-message__audio-name:hover {
  text-decoration: underline;
}

.discord-message__audio-size {
  color: #b5bac1;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.discord-message__audio-el {
  display: none;
}

.discord-message__audio-controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 0 8px 0 6px;
  overflow: visible;
  border-radius: 18px;
  background: #000;
  box-sizing: border-box;
}

.discord-message__audio-play,
.discord-message__audio-volume-btn {
  flex: 0 0 auto;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.discord-message__audio-play:hover,
.discord-message__audio-volume-btn:hover {
  color: #dbdee1;
}

.discord-message__audio-play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.discord-message__audio-volume-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.discord-message__audio-time {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}

.discord-message__audio-time-sep {
  opacity: 0.85;
}

.discord-message__audio-seek {
  flex: 1 1 auto;
  min-width: 40px;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.discord-message__audio-seek-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #4e5058;
  overflow: visible;
}

.discord-message__audio-seek-progress {
  position: relative;
  width: 0%;
  height: 100%;
  border-radius: 2px;
  background: #5865f2;
}

.discord-message__audio-seek-grabber {
  position: absolute;
  top: 50%;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5865f2;
  transform: translate(50%, -50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.discord-message__audio-volume {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-message__audio-volume-popup {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 92px;
  padding: 10px 0;
  border-radius: 8px;
  background: #1e1f22;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.discord-message__audio-volume-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
}

.discord-message__audio-volume:hover .discord-message__audio-volume-popup,
.discord-message__audio-volume:focus-within .discord-message__audio-volume-popup {
  opacity: 1;
  pointer-events: auto;
}

.discord-message__audio-volume-bar {
  position: relative;
  width: 6px;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #4e5058;
  cursor: pointer;
}

.discord-message__audio-volume-fill {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  border-radius: 4px;
  background: #5865f2;
  pointer-events: none;
}

.composer-attach-preview__actions {
  position: absolute;
  top: -14px;
  right: -4px;
  z-index: 2;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: #1e1f22;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.composer-attach-preview__actions button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #dbdee1;
  cursor: pointer;
}

.composer-attach-preview__actions button:hover {
  background: rgba(78, 80, 88, 0.55);
  color: #fff;
}

.composer-attach-preview__actions button.is-danger {
  color: #f23f43;
}

.composer-attach-preview__actions button.is-danger:hover {
  background: rgba(242, 63, 67, 0.18);
  color: #ff6b6e;
}

.composer-attach-preview__actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.composer-attach-preview__name {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: #dbdee1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-message__attachment-name {
  display: none !important;
}

.discord-message__attachment {
  position: relative;
  display: inline-flex;
  width: max-content;
  max-width: min(420px, 100%);
  margin-top: 6px;
  line-height: 0;
  vertical-align: top;
  overflow: hidden;
  border-radius: 8px;
}

.discord-message__attachment.discord-message__attachment--audio {
  display: block;
  width: min(460px, 100%);
  max-width: min(460px, 100%);
  overflow: visible;
  line-height: normal;
}

.discord-message__attachment--audio .discord-message__audio {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.discord-message__attachment--voice {
  display: block;
  width: min(280px, 100%);
  max-width: min(280px, 100%);
  overflow: visible;
  line-height: normal;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.tg-voice-note {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
  min-width: 160px;
  padding: 4px 0;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.tg-voice-note__play {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #5865f2;
  color: #fff;
  cursor: pointer;
  line-height: 0;
}

.tg-voice-note__play svg {
  width: 18px;
  height: 18px;
}

.tg-voice-note__wave {
  width: 100%;
  height: 22px;
  cursor: pointer;
}

.tg-voice-note__canvas {
  display: block;
  width: 100%;
  height: 22px;
}

.tg-voice-note__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted, #949ba4);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.tg-voice-note__unread {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tg-voice-note.is-played .tg-voice-note__unread {
  display: none;
}

.tg-voice-note__audio {
  display: none;
}

.discord-message__attachment img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
}

.discord-message__attachment-edit {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(15, 16, 19, 0.82);
  color: #f2f3f5;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.12s ease, background 0.12s ease;
}

.discord-message__attachment-actions {
  position: absolute;
  top: -10px;
  right: -6px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border-radius: 8px;
  background: #1e1f22;
  border: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.discord-message__attachment:hover .discord-message__attachment-actions,
.discord-message__attachment-actions:focus-within {
  opacity: 1;
  pointer-events: auto;
}

.discord-message__attachment-action {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #b5bac1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.discord-message__attachment-action:hover {
  background: rgba(79, 84, 92, 0.4);
  color: #f2f3f5;
}

.discord-message__attachment-action svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.discord-message__attachment:hover .discord-message__attachment-edit,
.discord-message__attachment-edit:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.discord-message__attachment-edit:hover {
  background: rgba(30, 31, 34, 0.95);
  color: #fff;
}

.discord-message__attachment-edit svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-upload {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: min(520px, 100%);
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  background: #2b2d31;
}

.chat-upload__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: #5865f2;
  color: #fff;
}

.chat-upload__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-upload__meta {
  min-width: 0;
}

.chat-upload__name {
  display: block;
  overflow: hidden;
  color: #f2f3f5;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-upload__bar {
  position: relative;
  width: 100%;
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #1e1f22;
}

.chat-upload__fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #5865f2;
  transition: width 0.12s linear;
}

.chat-upload__cancel {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #b5bac1;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.chat-upload__cancel:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f2f3f5;
}

.discord-message--upload {
  opacity: 0.95;
}

.discord-message--upload .discord-message__body {
  margin-top: 2px;
}

.media-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.85);
}

.media-viewer.hidden {
  display: none !important;
}

.media-viewer__top {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  pointer-events: none;
}

.media-viewer__author {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  pointer-events: auto;
}

.media-viewer__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.media-viewer__action {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #1e1f22;
  color: #dbdee1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.media-viewer__action:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: #2b2d31;
  color: #fff;
}

.media-viewer__action svg {
  width: 20px;
  height: 20px;
}

.media-viewer__close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #1e1f22;
  color: #dbdee1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.media-viewer__close:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: #2b2d31;
  color: #fff;
}

.media-viewer__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.media-viewer__avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  background: #232428;
}

.media-viewer__avatar .avatar-letter {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.media-viewer__meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.media-viewer__nick {
  overflow: hidden;
  color: #f2f3f5;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-viewer__time {
  overflow: hidden;
  color: #b5bac1;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-viewer__stage {
  display: grid;
  flex: 1;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 72px 24px 24px;
  cursor: zoom-out;
}

.media-viewer__image {
  max-width: min(100%, 1200px);
  max-height: calc(100vh - 96px);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  cursor: default;
  user-select: none;
}

#app.discord-app.ui-discord .discord-chat {
  position: relative;
}

.mention-picker {
  position: absolute;
  right: 16px;
  bottom: calc(var(--aura-bottom-bar-gap) + var(--aura-bottom-bar-h) + 8px);
  left: 16px;
  z-index: 30;
  max-height: min(280px, 40vh);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  background: #111214;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.mention-picker.hidden {
  display: none;
}

.mention-picker__heading {
  padding: 8px 12px 6px;
  color: #949ba4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mention-picker__list {
  max-height: calc(min(280px, 40vh) - 32px);
  overflow: hidden auto;
  padding: 0 6px 6px;
}

.mention-picker__item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #dbdee1;
  cursor: pointer;
  text-align: left;
}

.mention-picker__item.is-active,
.mention-picker__item:hover {
  background: #404249;
}

.mention-picker__avatar {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865f2, #eb459e);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.mention-picker__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mention-picker__avatar i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 14px;
  height: 14px;
  border: 2px solid #111214;
  border-radius: 50%;
  background: #80848e;
  box-sizing: border-box;
  cursor: default;
  pointer-events: auto;
}

.mention-picker__avatar i.is-online {
  background: #23a559;
}

.mention-picker__avatar i:not(.is-online):not(.is-idle):not(.is-dnd) {
  --offline-inner: #111214;
}

.mention-picker__name {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#app.discord-app.ui-discord .dm-welcome {
  gap: 6px !important;
  padding: 20px 16px 28px !important;
}

#app.discord-app.ui-discord .dm-welcome__avatar {
  width: 80px !important;
  height: 80px !important;
  margin-bottom: 8px;
  font-size: 32px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

#app.discord-app.ui-discord .dm-welcome__name {
  margin: 2px 0 0 !important;
  font-size: 32px !important;
  letter-spacing: -0.02em;
}

#app.discord-app.ui-discord .dm-welcome__user {
  margin: 0 !important;
  color: #b5bac1 !important;
  font-size: 16px !important;
}

#app.discord-app.ui-discord .dm-welcome__text {
  margin: 10px 0 0 !important;
  max-width: 520px;
  color: #dbdee1 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

#app.discord-app.ui-discord .dm-welcome--official {
  align-items: flex-start !important;
  gap: 0 !important;
  padding: 24px 16px 32px !important;
  text-align: left !important;
}

#app.discord-app.ui-discord .dm-welcome--official .dm-welcome__avatar--official {
  width: 96px !important;
  height: 96px !important;
  margin: 0 0 16px !important;
  border: 0 !important;
  box-shadow: none !important;
}

#app.discord-app.ui-discord .dm-welcome--official .dm-welcome__name {
  margin: 0 0 10px !important;
  font-size: 32px !important;
}

#app.discord-app.ui-discord .dm-welcome--official .dm-welcome__text {
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  padding-right: 8px !important;
  color: #dbdee1 !important;
  font-size: 16px !important;
  line-height: 1.375 !important;
}

.aura-tooltip,
.server-tooltip {
  position: fixed;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(280px, calc(100vw - 24px));
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #111214;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.aura-tooltip.is-multiline,
.server-tooltip.is-multiline {
  white-space: pre-line;
  text-align: center;
  font-weight: 500;
  line-height: 1.35;
}

.aura-tooltip[data-placement='top']::after,
.server-tooltip[data-placement='top']::after {
  content: '';
  position: absolute;
  left: var(--arrow-x, 50%);
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: #111214;
  transform: translateX(-50%) rotate(45deg);
}

.aura-tooltip[data-placement='right']::before,
.server-tooltip[data-placement='right']::before {
  content: '';
  position: absolute;
  top: var(--arrow-y, 50%);
  left: -4px;
  width: 8px;
  height: 8px;
  background: #111214;
  transform: translateY(-50%) rotate(45deg);
}

.aura-tooltip[data-placement='bottom']::before,
.server-tooltip[data-placement='bottom']::before {
  content: '';
  position: absolute;
  top: -4px;
  left: var(--arrow-x, 50%);
  width: 8px;
  height: 8px;
  background: #111214;
  transform: translateX(-50%) rotate(45deg);
}

.aura-tooltip[data-placement='left']::after,
.server-tooltip[data-placement='left']::after {
  content: '';
  position: absolute;
  top: var(--arrow-y, 50%);
  right: -4px;
  width: 8px;
  height: 8px;
  background: #111214;
  transform: translateY(-50%) rotate(45deg);
}

.aura-tooltip.hidden,
.server-tooltip.hidden {
  display: none !important;
}

.header-bullet.hidden {
  display: none !important;
}

/* Profile card popover */
.profile-card {
  position: fixed;
  z-index: 90;
  width: 320px;
  overflow: visible;
  border-radius: 8px;
  background: #242429;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.profile-card.hidden {
  display: none !important;
}

.profile-card__body {
  position: relative;
  padding: 52px 16px 16px;
}

.profile-card--other .profile-card__body {
  padding-bottom: 14px;
}

.profile-card__avatar-btn {
  position: absolute;
  top: -40px;
  left: 16px;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.profile-card__avatar {
  position: relative;
  top: auto;
  left: auto;
  width: 88px;
  height: 88px;
  border: 6px solid #242429;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: visible;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  pointer-events: none;
}

.profile-card__avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.12s ease;
}

.profile-card__avatar-btn:hover .profile-card__avatar::after {
  background: rgba(0, 0, 0, 0.45);
}

.profile-card__avatar i {
  position: absolute;
  z-index: 2;
  right: -3px;
  bottom: -3px;
  width: 26px;
  height: 26px;
  border: 5px solid #242429;
  border-radius: 50%;
  background: #80848e;
  box-sizing: border-box;
}

.profile-card__avatar i.is-online {
  background: #23a55a;
}

.profile-card__avatar i:not(.is-online):not(.is-idle):not(.is-dnd) {
  --offline-inner: #242429;
}

.profile-card__nick {
  display: block;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f2f3f5;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.profile-card__nick:hover {
  text-decoration: underline;
}

.profile-card__presence {
  margin: 6px 0 0;
  color: #b5bac1;
  font-size: 13px;
  font-weight: 500;
}

.profile-card__bio {
  margin: 0;
  color: #f2f3f5;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.profile-card__about {
  margin-top: 8px;
}

.profile-card__about.hidden {
  display: none !important;
}

.profile-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  overflow: visible;
}

.profile-card__group {
  overflow: visible;
  border-radius: 8px;
  background: #2b2d31;
}

.profile-card__edit {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: #dbdee1;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.profile-card__edit:hover {
  background: #35373c;
}

.profile-card__edit-icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  color: #b5bac1;
}

.profile-card__edit-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-card__edit::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-card__group:has(.profile-card__status-wrap.hidden) .profile-card__edit {
  border-radius: 8px;
}

.profile-card__group:has(.profile-card__status-wrap.hidden) .profile-card__edit::after {
  display: none;
}

.profile-card__status-wrap {
  position: relative;
}

.profile-card__status-wrap::before {
  content: '';
  position: absolute;
  left: 100%;
  top: 0;
  width: 14px;
  height: 100%;
  z-index: 4;
}

.profile-card__status-trigger {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 0 0 8px 8px;
  background: transparent;
  color: #dbdee1;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: visible;
  transition: background 0.12s ease;
}

.profile-card__status-trigger:hover,
.profile-card__status-wrap.is-open .profile-card__status-trigger,
.profile-card__status-wrap:focus-within .profile-card__status-trigger {
  background: #35373c;
}

.profile-card__status-leading {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 10px;
}

#profileCardStatusLabel {
  overflow: hidden;
  color: #dbdee1;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card__status-split {
  flex: 0 0 1px;
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.12);
}

.profile-card__status-trailing {
  display: flex;
  flex: 0 0 auto;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  overflow: visible;
}

.profile-card__status-mute {
  display: flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  overflow: visible;
  color: #b5bac1;
}

.profile-card__status-mute svg {
  width: 18px;
  height: 18px;
  display: block;
  overflow: visible;
}

.profile-card__status-chevron {
  color: #b5bac1;
  font-size: 18px;
  line-height: 1;
  transition:
    transform 0.16s ease,
    color 0.16s ease;
}

.profile-card__status-wrap.is-open .profile-card__status-chevron,
.profile-card__status-wrap:hover .profile-card__status-chevron {
  color: #dbdee1;
  transform: translateX(1px);
}

.profile-card__status-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  overflow: visible;
  border-radius: 50%;
  background: #80848e;
}

.profile-card__status-icon.is-online {
  background: #23a55a;
}

.profile-status-menu {
  position: absolute;
  left: calc(100% + 12px);
  top: auto;
  bottom: 0;
  z-index: 5;
  min-width: 232px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #111214;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-8px) scale(0.96);
  transform-origin: left bottom;
  transition:
    opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.18s ease;
}

.profile-card__status-wrap.is-open .profile-status-menu,
.profile-card__status-wrap:hover .profile-status-menu,
.profile-card__status-wrap:focus-within .profile-status-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.profile-status-menu__header {
  padding: 4px 10px 8px;
  color: #949ba4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-status-menu__item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #dbdee1;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.profile-status-menu__item:hover {
  background: rgba(79, 84, 92, 0.48);
  color: #f2f3f5;
}

.profile-status-menu__item.is-active {
  background: rgba(88, 101, 242, 0.18);
  color: #f2f3f5;
}

.profile-status-menu__item.is-active:hover {
  background: rgba(88, 101, 242, 0.26);
}

.profile-status-menu__divider {
  height: 1px;
  margin: 6px 8px;
  background: rgba(255, 255, 255, 0.12);
}

.profile-status-menu__item--neutral .profile-status-menu__meta strong {
  font-weight: 500;
}

.profile-status-menu__meta {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.profile-status-menu__meta strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.profile-status-menu__meta span {
  color: #949ba4;
  font-size: 11px;
  line-height: 1.25;
}

.profile-status-menu__item:hover .profile-status-menu__meta span {
  color: #b5bac1;
}

.profile-status-menu__check {
  flex: 0 0 auto;
  opacity: 0;
  color: #f2f3f5;
  font-size: 14px;
  font-weight: 700;
  transform: scale(0.85);
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
}

.profile-status-menu__item.is-active .profile-status-menu__check {
  opacity: 1;
  transform: scale(1);
}

.profile-status-menu__dot {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
  position: relative;
}

.profile-status-menu__dot.is-online {
  background: #23a55a;
}

.profile-card__copy {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dbdee1;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease;
}

.profile-card__copy:hover {
  background: #35373c;
}

.profile-card__copy-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 4px;
  background: #4e5058;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.profile-card__message {
  margin-top: 14px;
}

.profile-card__message input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #18181c;
  color: #dbdee1;
  font-size: 14px;
}

.profile-card__message input::placeholder {
  color: #949ba4;
}

.profile-card__message input:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.65);
}

#app.discord-app.ui-discord .discord-message {
  grid-template-columns: 40px minmax(0, 1fr) !important;
  column-gap: 16px !important;
  align-items: start !important;
  padding: 2px 16px !important;
  margin-top: 0 !important;
}

#app.discord-app.ui-discord .discord-message:hover,
#app.discord-app.ui-discord .discord-message:focus,
#app.discord-app.ui-discord .discord-message:focus-within {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

#app.discord-app.ui-discord .discord-message.is-reply-ping,
#app.discord-app.ui-discord .discord-message.is-reply-ping:hover,
#app.discord-app.ui-discord .discord-message.is-reply-ping:focus,
#app.discord-app.ui-discord .discord-message.is-reply-ping:focus-within {
  background: rgba(240, 178, 50, 0.1) !important;
  box-shadow: inset 2px 0 0 #f0b232 !important;
}

#app.discord-app.ui-discord .discord-message:not(.is-compact) {
  margin-top: 17px !important;
}

#app.discord-app.ui-discord .discord-message.has-reply:not(.is-compact) {
  margin-top: 10px !important;
}

#app.discord-app.ui-discord .discord-message.is-compact {
  width: 100% !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#app.discord-app.ui-discord .channel-welcome + .discord-message:not(.is-compact),
#app.discord-app.ui-discord .date-separator + .discord-message:not(.is-compact) {
  margin-top: 0 !important;
}

#app.discord-app.ui-discord .discord-message__avatar {
  width: 40px !important;
  height: 40px !important;
  margin: 2px 0 0 !important;
}

#app.discord-app.ui-discord .discord-message.is-compact .discord-message__avatar {
  width: 40px !important;
  height: 22px !important;
  min-height: 22px !important;
  margin: 0 !important;
  overflow: visible !important;
}

#app.discord-app.ui-discord .discord-message__content {
  min-width: 0 !important;
  max-width: 100% !important;
  padding-left: 0 !important;
}

#app.discord-app.ui-discord .discord-message.is-compact .discord-message__content {
  width: auto !important;
  padding-top: 0 !important;
}

#app.discord-app.ui-discord .discord-message.is-compact .discord-message__body {
  width: 100% !important;
  margin: 0 !important;
  padding: 2px 0 !important;
}

#app.discord-app.ui-discord .member-item {
  width: 100%;
  height: 48px;
  padding-right: 30px;
  border: 0;
  background: transparent;
  color: #b5bac1;
  font: inherit;
  text-align: left;
  cursor: pointer;
  gap: 14px !important;
}

#app.discord-app.ui-discord .member-item .discord-avatar {
  flex-basis: 36px !important;
  width: 36px !important;
  height: 36px !important;
  font-size: 13px !important;
  overflow: visible !important;
}

#app.discord-app.ui-discord .member-item .discord-avatar > i {
  width: 15px;
  height: 15px;
  border-width: 2.5px;
  border-color: var(--discord-side, #2b2d31);
  right: -1px;
  bottom: -1px;
}

#app.discord-app.ui-discord .member-item .discord-avatar > i.is-idle {
  --idle-ring: var(--discord-side, #2b2d31);
}

#app.discord-app.ui-discord .member-item .discord-avatar > i.is-dnd::after {
  background: var(--discord-side, #2b2d31);
}

#app.discord-app.ui-discord .member-item .discord-avatar > i:not(.is-online):not(.is-idle):not(.is-dnd) {
  --offline-inner: var(--discord-side, #2b2d31);
}

#app.discord-app.ui-discord .member-item__name {
  font-size: 15px !important;
}

#app.discord-app.ui-discord .member-section__title {
  margin-bottom: 8px !important;
  font-size: 12px !important;
}

#app.discord-app.ui-discord .member-item.offline {
  color: #6d6f78;
}

#app.discord-app.ui-discord .member-item.offline .member-item__name {
  color: #6d6f78 !important;
}

#app.discord-app.ui-discord .member-item.offline .discord-avatar {
  filter: brightness(0.58) saturate(0.55);
  opacity: 0.78;
}

#app.discord-app.ui-discord .member-item.offline:hover {
  color: #b5bac1;
}

#app.discord-app.ui-discord .member-item.offline:hover .member-item__name {
  color: #b5bac1 !important;
}

#app.discord-app.ui-discord .member-item.offline:hover .discord-avatar {
  filter: brightness(0.72) saturate(0.7);
  opacity: 0.9;
}

#app.discord-app.ui-discord .member-item:hover {
  background: rgba(78, 80, 88, 0.32);
  color: #dbdee1;
}

#app.discord-app.ui-discord .dm-item {
  gap: 16px !important;
}

#app.discord-app.ui-discord .user-panel__profile {
  gap: 14px !important;
}

#app.discord-app.ui-discord .friend-row {
  grid-template-columns: 40px minmax(0, 1fr) auto !important;
  gap: 16px !important;
  border-top: 1px solid #2a2b2f !important;
}

#app.discord-app.ui-discord .friend-row:hover {
  border-top-color: #2a2b2f !important;
}

#app.discord-app.ui-discord .friends-header,
#app.discord-app.ui-discord .discord-header {
  border-bottom: 1px solid #2a2b2f !important;
  box-shadow: none !important;
}

#app.discord-app.ui-discord .discord-header__divider {
  background: #2a2b2f;
}

#app.discord-app.ui-discord .user-panel__actions {
  gap: 4px;
  margin-right: 2px;
}

#app.discord-app.ui-discord .user-panel__actions button,
#app.discord-app.ui-discord .user-panel__action {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px;
  color: #b5bac1;
  transition: color 0.12s ease, background 0.12s ease;
}

#app.discord-app.ui-discord .user-panel__actions button.user-panel__action--chevron,
#app.discord-app.ui-discord .user-panel__action--chevron {
  width: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  padding: 0 !important;
  height: 32px !important;
  border-radius: 8px;
}

#app.discord-app.ui-discord .user-panel__audio-group:hover .user-panel__action,
#app.discord-app.ui-discord .user-panel__audio-group .user-panel__action:hover {
  background: transparent;
  color: inherit;
}

#app.discord-app.ui-discord .user-panel__actions button:hover,
#app.discord-app.ui-discord .user-panel__action:hover {
  background: rgba(79, 84, 92, 0.4);
  color: #dbdee1;
}

#app.discord-app.ui-discord .user-panel__actions button svg,
#app.discord-app.ui-discord .user-panel__action svg {
  width: 20px;
  height: 20px;
}

#app.discord-app.ui-discord .user-panel__action--chevron svg {
  width: 12px !important;
  height: 12px !important;
  transition: transform 0.18s ease, color 0.12s ease;
}

#app.discord-app.ui-discord .user-panel__action--chevron.is-open svg {
  transform: rotate(180deg);
}

#app.discord-app.ui-discord .user-panel__audio-group.is-muted .user-panel__action,
#app.discord-app.ui-discord .user-panel__audio-group.is-deafened .user-panel__action,
#app.discord-app.ui-discord .user-panel__audio-group.is-muted button,
#app.discord-app.ui-discord .user-panel__audio-group.is-deafened button {
  color: #f23f43 !important;
}

#app.discord-app.ui-discord .user-panel__audio-group.is-muted button:hover,
#app.discord-app.ui-discord .user-panel__audio-group.is-deafened button:hover {
  color: #fa777c !important;
  background: transparent;
}

#app.discord-app.ui-discord .user-panel__action--mute .user-panel__icon-mic-off,
#app.discord-app.ui-discord .user-panel__action--deafen .user-panel__icon-deafen-off {
  display: none;
}

#app.discord-app.ui-discord .user-panel__action--mute.is-muted .user-panel__icon-mic,
#app.discord-app.ui-discord .user-panel__action--deafen.is-deafened .user-panel__icon-deafen {
  display: none;
}

#app.discord-app.ui-discord .user-panel__action--mute.is-muted .user-panel__icon-mic-off,
#app.discord-app.ui-discord .user-panel__action--deafen.is-deafened .user-panel__icon-deafen-off {
  display: block;
}

#app.discord-app.ui-discord .user-panel__action--mute.is-muted,
#app.discord-app.ui-discord .user-panel__action--deafen.is-deafened {
  color: #f23f43;
  background: transparent;
}

#app.discord-app.ui-discord .user-panel__action--mute.is-muted:hover,
#app.discord-app.ui-discord .user-panel__action--deafen.is-deafened:hover {
  color: #fa777c;
  background: transparent;
}

#app.discord-app.ui-discord .members-toggle-btn {
  width: 44px !important;
  height: 44px !important;
}

#app.discord-app.ui-discord .members-toggle-btn svg {
  width: 28px !important;
  height: 28px !important;
}

#app.discord-app.ui-discord .discord-search {
  width: 148px;
  height: 30px;
  margin-left: 10px;
  border-radius: 8px;
  border-color: #2a2b2f;
  background: #121214;
}

#app.discord-app.ui-discord .discord-search:focus-within {
  width: 240px;
}

/* Home sidebar: rounded top-left; only top + left borders (curve), no right/bottom. */
#app.discord-app.ui-discord .channel-sidebar:has(#homeSidebar:not(.hidden)) {
  border-top: 1px solid #2a2b2f !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-right: none !important;
  border-bottom: none !important;
  border-top-left-radius: 16px !important;
  background: var(--discord-side) !important;
  box-shadow: none !important;
  overflow: hidden !important;
  z-index: 6;
}

#app.discord-app.ui-discord:has(#homeSidebar:not(.hidden))::after {
  content: "";
  position: absolute;
  top: 34px;
  left: var(--rail-width);
  z-index: 5;
  width: 16px;
  height: 16px;
  background: var(--discord-rail);
  pointer-events: none;
}

#app.discord-app.ui-discord #homeSidebar {
  border-top-left-radius: 15px !important;
  background: var(--discord-side) !important;
  overflow: hidden !important;
}

#app.discord-app.ui-discord .home-scroll {
  border-radius: 15px 0 0 0 !important;
  background: var(--discord-side) !important;
  contain: paint;
  clip-path: none;
}

#app.discord-app.ui-discord .friends-search {
  background: var(--discord-side) !important;
  border: 1px solid #2a2b2f !important;
  border-radius: 8px !important;
}

#app.discord-app.ui-discord .friends-add.active {
  background: #4752c4;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#app.discord-app.ui-discord .add-friend-panel {
  flex: 1;
  min-height: 0;
  padding: 4px 8px 24px;
  color: #dbdee1;
}

#app.discord-app.ui-discord .add-friend-panel.hidden {
  display: none !important;
}

#app.discord-app.ui-discord .add-friend-panel h2 {
  margin: 0 0 8px;
  color: #f2f3f5;
  font-size: 20px;
  font-weight: 700;
}

#app.discord-app.ui-discord .add-friend-panel > p {
  margin: 0 0 16px;
  color: #b5bac1;
  font-size: 14px;
}

#app.discord-app.ui-discord .add-friend-form {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  border: 1px solid #111214;
  border-radius: 10px;
  background: #18181c;
}

#app.discord-app.ui-discord .add-friend-form:focus-within {
  border-color: #00a8fc;
}

#app.discord-app.ui-discord .add-friend-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f2f3f5;
  font-size: 15px;
}

#app.discord-app.ui-discord .add-friend-form input::placeholder {
  color: #80848e;
}

#app.discord-app.ui-discord .add-friend-form button {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 5px;
  background: #5865f2;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

#app.discord-app.ui-discord .add-friend-form button:disabled {
  opacity: 0.5;
  cursor: default;
}

#app.discord-app.ui-discord .add-friend-feedback {
  min-height: 20px;
  margin: 10px 2px 0 !important;
  color: #23a55a !important;
  font-size: 13px !important;
}

#app.discord-app.ui-discord .add-friend-feedback.is-error {
  color: #f23f42 !important;
}

#app.discord-app.ui-discord .friend-request-row {
  cursor: default;
}

#app.discord-app.ui-discord .friend-request-action--accept:hover {
  background: #248046;
  color: #fff;
}

#app.discord-app.ui-discord .friend-request-action--reject:hover {
  background: #da373c;
  color: #fff;
}

@media (max-width: 760px) {
  #app.discord-app.ui-discord .add-friend-form {
    align-items: stretch;
    flex-direction: column;
  }

  #app.discord-app.ui-discord .add-friend-form button {
    width: 100%;
  }
}

/* Chat view transitions */
#app.discord-app .discord-content.is-chat-transitioning {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  overflow: hidden !important;
  perspective: 1200px;
}

#app.discord-app .discord-content.is-chat-transitioning > .friends-view,
#app.discord-app .discord-content.is-chat-transitioning > .chat-view {
  grid-area: 1 / 1 !important;
  min-height: 0 !important;
  transform-origin: center center;
  backface-visibility: hidden;
}

#app.discord-app .discord-content.is-chat-transitioning > .friends-view {
  z-index: 1;
}

#app.discord-app .discord-content.is-chat-transitioning > .chat-view {
  z-index: 2;
}

#app.discord-app .chat-view.is-switching-out {
  animation: auraChatPanelOut 0.26s cubic-bezier(0.4, 0, 0.8, 0.45) forwards !important;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

#app.discord-app .chat-view.is-switching-in {
  animation: auraChatPanelIn 0.42s cubic-bezier(0.16, 1, 0.28, 1) forwards !important;
  will-change: transform, opacity, filter;
}

#app.discord-app .chat-view.is-panel-entering {
  animation: auraChatPanelEnter 0.46s cubic-bezier(0.16, 1, 0.28, 1) forwards !important;
  will-change: transform, opacity, filter;
}

#app.discord-app .friends-view.is-panel-leaving {
  animation: auraFriendsPanelOut 0.28s cubic-bezier(0.4, 0, 0.75, 0.35) forwards !important;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

#app.discord-app .friends-view.is-panel-entering {
  animation: auraFriendsPanelIn 0.38s cubic-bezier(0.16, 1, 0.28, 1) forwards !important;
  will-change: transform, opacity, filter;
}

@keyframes auraChatPanelOut {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translate3d(-18px, 0, 0) scale(0.972);
    filter: blur(8px);
  }
}

@keyframes auraChatPanelIn {
  0% {
    opacity: 0;
    transform: translate3d(24px, 0, 0) scale(0.972);
    filter: blur(8px);
  }

  55% {
    opacity: 0.92;
    filter: blur(2px);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes auraChatPanelEnter {
  0% {
    opacity: 0;
    transform: translate3d(36px, 0, 0) scale(0.965);
    filter: blur(10px);
  }

  60% {
    opacity: 0.95;
    filter: blur(2px);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes auraFriendsPanelOut {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translate3d(-14px, 0, 0) scale(0.978);
    filter: blur(6px);
  }
}

@keyframes auraFriendsPanelIn {
  0% {
    opacity: 0;
    transform: translate3d(-20px, 0, 0) scale(0.978);
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

/* Interface switch — Discord ↔ Telegram (subtle crossfade) */
#app.discord-app.is-interface-switching {
  pointer-events: none;
}

#app.discord-app.is-interface-switching-out {
  animation-duration: 0.18s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  will-change: opacity, transform;
}

#app.discord-app.is-interface-switching-in {
  animation-duration: 0.22s;
  animation-timing-function: cubic-bezier(0.22, 0.82, 0.2, 1);
  animation-fill-mode: forwards;
  will-change: opacity, transform;
}

#app.discord-app[data-iface-dir="to-telegram"].is-interface-switching-out {
  animation-name: auraIfaceOutToTelegram;
}

#app.discord-app[data-iface-dir="to-telegram"].is-interface-switching-in {
  animation-name: auraIfaceInToTelegram;
}

#app.discord-app[data-iface-dir="to-discord"].is-interface-switching-out {
  animation-name: auraIfaceOutToDiscord;
}

#app.discord-app[data-iface-dir="to-discord"].is-interface-switching-in {
  animation-name: auraIfaceInToDiscord;
}

/* After switch classes are removed, never keep faded/transformed root */
#app.discord-app:not(.is-interface-switching-out):not(.is-interface-switching-in) {
  opacity: 1;
  transform: none;
  filter: none;
}

#app.discord-app .chat-view:not(.is-switching-out):not(.is-switching-in):not(.is-panel-entering),
#app.discord-app .friends-view:not(.is-panel-leaving):not(.is-panel-entering) {
  opacity: 1;
  transform: none;
  filter: none;
}

@keyframes auraIfaceOutToTelegram {
  to {
    opacity: 0.42;
    transform: translate3d(-10px, 0, 0);
  }
}

@keyframes auraIfaceInToTelegram {
  from {
    opacity: 0.42;
    transform: translate3d(10px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes auraIfaceOutToDiscord {
  to {
    opacity: 0.42;
    transform: translate3d(10px, 0, 0);
  }
}

@keyframes auraIfaceInToDiscord {
  from {
    opacity: 0.42;
    transform: translate3d(-10px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

html.aura-no-motion-interface #app.discord-app.is-interface-switching-out,
html.aura-no-motion-interface #app.discord-app.is-interface-switching-in {
  animation: none !important;
}

.aura-status-menu {
  position: fixed;
  z-index: 200;
  min-width: 248px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #111214;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(0, 0, 0, 0.28);
}

.aura-status-menu.hidden {
  display: none !important;
}

.aura-status-menu__header {
  padding: 4px 10px 8px;
  color: #949ba4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.aura-status-menu__item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #dbdee1;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.aura-status-menu__item:hover {
  background: rgba(79, 84, 92, 0.48);
  color: #f2f3f5;
}

.aura-status-menu__item.is-active {
  background: rgba(88, 101, 242, 0.18);
  color: #f2f3f5;
}

.aura-status-menu__meta {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.aura-status-menu__meta strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.aura-status-menu__meta span {
  color: #949ba4;
  font-size: 11px;
  line-height: 1.25;
}

.aura-status-menu__check {
  flex: 0 0 auto;
  opacity: 0;
  color: #f2f3f5;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.aura-status-menu__item.is-active .aura-status-menu__check {
  opacity: 1;
}

.aura-status-menu__dot {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
  background: #80848e;
  position: relative;
}

.aura-status-menu__dot.is-online {
  background: #23a55a;
}

/* Edit group modal — hard overrides for generic .discord-modal rules */
#editGroupModal .discord-modal--group-edit {
  width: min(440px, 100%) !important;
  padding: 28px 28px 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #313338 !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

#editGroupModal .discord-modal--group-edit h2 {
  margin: 0 40px 22px 0 !important;
  color: #f2f3f5 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 24px !important;
  text-align: left !important;
}

#editGroupModal .discord-modal--group-edit .group-edit-lead {
  display: none !important;
}

#editGroupModal .group-edit-body {
  padding-top: 6px !important;
}

#editGroupModal .group-edit-avatar {
  padding-top: 10px !important;
}

#editGroupModal .discord-modal--group-edit .discord-modal__actions,
#editGroupModal .discord-modal--group-edit .group-edit-actions {
  display: flex !important;
  grid-template-columns: none !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 12px !important;
  width: auto !important;
  max-width: none !important;
  margin: 24px -28px 0 !important;
  padding: 18px 28px !important;
  border: 0 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.25) !important;
  border-radius: 0 0 12px 12px !important;
  background: #2b2d31 !important;
  box-sizing: border-box !important;
}

#editGroupModal .discord-modal--group-edit .modal-secondary--fill,
#editGroupModal .discord-modal--group-edit .modal-primary--fill {
  width: auto !important;
  min-width: 108px !important;
  height: 38px !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

#editGroupModal .discord-modal--group-edit .modal-secondary--fill {
  background: #4e5058 !important;
  color: #fff !important;
  transition: background 0.12s ease !important;
}

#editGroupModal .discord-modal--group-edit .modal-secondary--fill:hover {
  background: #6d6f78 !important;
}

#editGroupModal .discord-modal--group-edit .modal-primary--fill {
  background: #5865f2 !important;
  color: #fff !important;
  transition: background 0.12s ease !important;
}

#editGroupModal .discord-modal--group-edit .modal-primary--fill:hover {
  background: #4752c4 !important;
}

#editGroupModal .group-edit-avatar__remove {
  color: #ed4245 !important;
}

#editGroupModal .group-edit-avatar__remove:hover {
  color: #ff6b6e !important;
}

/* —— Expanded profile (from DM side panel) —— */
#profileExpandModal.modal-backdrop {
  display: grid;
  place-items: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.72);
  z-index: 95;
}

#profileExpandModal.modal-backdrop.hidden {
  display: none !important;
}

.profile-expand {
  position: relative;
  box-sizing: border-box;
  width: min(360px, 100%);
  overflow: hidden;
  border-radius: 12px;
  background: #111214;
  color: #f2f3f5;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 18px 48px rgba(0, 0, 0, 0.5);
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.profile-expand__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #dbdee1;
  font-size: 26px;
  font-weight: 300;
  line-height: 30px;
  cursor: pointer;
}

.profile-expand__close:hover {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}

.profile-expand__banner {
  height: 120px;
  background: #5865f2;
}

.profile-expand__body {
  position: relative;
  padding: 58px 16px 16px;
}

.profile-expand__avatar {
  position: absolute;
  top: -52px;
  left: 16px;
  width: 104px !important;
  height: 104px !important;
  border: 7px solid #111214;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: visible;
  color: #fff;
  font-size: 36px !important;
  font-weight: 700;
}

.profile-expand__avatar.is-viewable {
  cursor: zoom-in;
}

.profile-expand__avatar.is-viewable:hover {
  filter: brightness(1.06);
}

.profile-expand__avatar > i {
  position: absolute;
  right: -3px;
  bottom: -3px;
  z-index: 2;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 6px #111214;
  box-sizing: border-box;
}

.profile-expand__avatar > i.is-dnd::after,
.dm-profile__avatar > i.is-dnd::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 58%;
  height: 22%;
  border-radius: 999px;
  background: #111214;
  transform: translate(-50%, -50%);
}

.profile-expand__avatar > i.is-idle {
  --idle-ring: #111214;
}

.profile-expand__avatar > i:not(.is-online):not(.is-idle):not(.is-dnd) {
  --offline-inner: #111214;
}

.dm-profile__avatar > i {
  position: absolute;
  z-index: 2;
  right: -3px;
  bottom: -3px;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 6px #222327;
  box-sizing: border-box;
}

.dm-profile__avatar > i:not(.is-online):not(.is-idle):not(.is-dnd) {
  --offline-inner: #222327;
}

.profile-expand__nick {
  display: block;
  margin: 0;
  color: #f2f3f5;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.profile-expand__presence {
  margin: 6px 0 0;
  color: #b5bac1;
  font-size: 14px;
  font-weight: 500;
}

.profile-expand__bio {
  margin: 0;
  color: #f2f3f5;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.profile-expand__about {
  margin-top: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.profile-expand__about.hidden {
  display: none !important;
}

.profile-expand__since {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #1e1f22;
}

.profile-expand__since h3 {
  margin: 0 0 8px;
  color: #f2f3f5;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.profile-expand__since p {
  margin: 0;
  color: #dbdee1;
  font-size: 15px;
  font-weight: 600;
}

.profile-expand__message {
  margin-top: 14px;
}

.profile-expand__message.hidden {
  display: none !important;
}

.profile-expand__message input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: 0;
  background: #1e1f22;
  color: #dbdee1;
  font: inherit;
  font-size: 15px;
}

.profile-expand__message input::placeholder {
  color: #6d6f78;
}

.profile-expand__message input:focus {
  border-color: #5865f2;
}


/* —— User settings (Discord-like) —— */
.user-settings {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(88, 101, 242, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.82);
  animation: modalFade 0.18s ease both;
}

.user-settings.hidden {
  display: none !important;
}

.user-settings__layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  width: min(1100px, calc(100vw - 32px));
  height: min(900px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  background: #202024;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 28px 90px rgba(0, 0, 0, 0.55);
  animation: modalPop 0.26s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.user-settings__sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  padding: 24px 14px 18px 18px;
  background: #1a1a1e;
  overflow: auto;
  border-right: 1px solid rgba(0, 0, 0, 0.35);
}

.user-settings__side-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 8px 10px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.user-settings__side-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #5865f2;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.user-settings__side-avatar img,
.user-settings__avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-settings__side-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-settings__side-meta strong {
  overflow: hidden;
  color: #f2f3f5;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-settings__side-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #00a8fc;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: default;
}

.user-settings__nav-label {
  margin: 8px 10px 4px;
  color: #949ba4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.user-settings__nav-sep {
  height: 1px;
  margin: 12px 10px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
}

.user-settings__nav .user-settings__nav-label:first-child {
  margin-top: 0;
}

.user-settings__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-settings__nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #b5bac1;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.user-settings__nav-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.9;
}

.user-settings__nav-item:hover {
  background: rgba(79, 84, 92, 0.35);
  color: #f2f3f5;
}

.user-settings__nav-item.is-active {
  background: rgba(79, 84, 92, 0.55);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.user-settings__main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 120px),
    #202024;
}

.user-settings__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b5bac1;
  cursor: pointer;
}

.user-settings__close-ring {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid #b5bac1;
  border-radius: 50%;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease, transform 0.14s ease;
}

.user-settings__close-ring svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
}

.user-settings__close:hover,
.user-settings__close:hover .user-settings__close-ring {
  color: #f2f3f5;
  border-color: #f2f3f5;
}

.user-settings__close:hover .user-settings__close-ring {
  background: rgba(255, 255, 255, 0.04);
  transform: scale(1.04);
}

.user-settings__close-hint {
  color: #949ba4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.user-settings__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 56px 48px 148px;
  scroll-padding-bottom: 120px;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.user-settings__scroll::-webkit-scrollbar {
  width: 10px;
}

.user-settings__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.user-settings__scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(181, 186, 193, 0.35);
  background-clip: padding-box;
}

.user-settings__scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(181, 186, 193, 0.55);
  background-clip: padding-box;
}

.user-settings__header {
  margin-bottom: 22px;
  padding-right: 56px;
}

.user-settings__title {
  margin: 0 0 8px;
  color: #f2f3f5;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.user-settings__lead {
  margin: 0;
  max-width: 46ch;
  color: #b5bac1;
  font-size: 14px;
  line-height: 1.45;
}

.user-settings__preview {
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 10px;
  background: #1e1f22;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.user-settings__preview-banner {
  height: 96px;
  background: linear-gradient(90deg, #5865f2 0%, #5865f2 28%, #1e1f22 100%);
}

.user-settings__preview-body {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-height: 72px;
  padding: 0 18px 18px;
}

.user-settings__avatar-btn {
  position: relative;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  margin-top: -44px;
  padding: 0;
  border: 7px solid #1e1f22;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.user-settings__avatar-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.user-settings__avatar-preview {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #5865f2;
}

.user-settings__avatar-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.14s ease;
}

.user-settings__avatar-btn:hover .user-settings__avatar-overlay {
  opacity: 1;
}

.user-settings__preview-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 4px;
  min-width: 0;
}

.user-settings__preview-meta strong {
  overflow: hidden;
  color: #f2f3f5;
  font-size: 20px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-settings__preview-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 88px;
  margin-top: -44px;
}

.user-settings__preview-status-dot {
  position: absolute;
  z-index: 2;
  right: -1px;
  bottom: -1px;
  width: 26px;
  height: 26px;
  border: 5px solid #1e1f22;
  border-radius: 50%;
  background: #80848e;
  box-sizing: border-box;
  cursor: default;
  pointer-events: auto;
  overflow: visible;
}

.user-settings__preview-status-dot.is-online {
  background: #23a55a;
}

.user-settings__preview-status-dot.is-idle {
  overflow: hidden;
  background-color: #f0b232;
  background-image: none;
}

.user-settings__preview-status-dot.is-idle::after {
  content: '';
  position: absolute;
  top: -18%;
  left: -22%;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: #1e1f22;
}

.user-settings__preview-status-dot.is-dnd {
  background: #f23f42;
}

.user-settings__preview-status-dot.is-dnd::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52%;
  height: 20%;
  border-radius: 999px;
  background: #1e1f22;
  transform: translate(-50%, -50%);
}

.user-settings__preview-status-dot:not(.is-online):not(.is-idle):not(.is-dnd)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  height: 46%;
  border-radius: 50%;
  background: #1e1f22;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.user-settings__avatar-preview--static {
  position: relative;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 7px solid #1e1f22;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.user-settings__avatar-preview--static::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.14s ease;
  pointer-events: none;
}

.user-settings__avatar-preview--static:hover::after {
  opacity: 1;
}

.user-settings__card {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  background: #2b2d31;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.user-settings__card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.user-settings__card-head .user-settings__section-title {
  margin: 0;
}

.user-settings__section-title {
  margin: 0 0 12px;
  color: #f2f3f5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.user-settings__section-title--inline {
  margin: 0 0 4px;
}

.user-settings__toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.user-settings__toggle-copy {
  min-width: 0;
  flex: 1;
}

.user-settings__toggle-copy .user-settings__hint {
  margin: 0;
}

.user-settings__switch {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #4e5058;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease;
}

.user-settings__switch::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}

.user-settings__switch[aria-checked='true'] {
  background: #23a559;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.18),
    0 0 0 3px rgba(35, 165, 89, 0.18);
}

.user-settings__switch[aria-checked='true']::before {
  opacity: 1;
}

.user-settings__switch:focus-visible {
  outline: 2px solid rgba(88, 101, 242, 0.85);
  outline-offset: 2px;
}

.user-settings__switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 1px 1px rgba(0, 0, 0, 0.2);
  transform: translateX(0) scale(1);
  transition:
    transform 0.38s cubic-bezier(0.34, 1.45, 0.64, 1),
    width 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease;
  will-change: transform;
}

.user-settings__switch[aria-checked='true'] .user-settings__switch-knob {
  transform: translateX(18px) scale(1);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.user-settings__switch:active .user-settings__switch-knob {
  width: 24px;
  transform: translateX(0) scale(0.96);
}

.user-settings__switch[aria-checked='true']:active .user-settings__switch-knob {
  width: 24px;
  transform: translateX(14px) scale(0.96);
}

html.aura-no-motion *,
html.aura-no-motion *::before,
html.aura-no-motion *::after {
  transition: none !important;
  transition-duration: 0.001ms !important;
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
}

/* Экран входа: анимация почта→код всегда, даже при выключенных UI-анимациях */
html.aura-no-motion #login.is-leaving,
html.aura-motion-settle #login.is-leaving {
  animation: loginLeave 0.45s ease forwards !important;
  animation-duration: 0.45s !important;
}

html.aura-no-motion #login.is-leaving .login-card,
html.aura-motion-settle #login.is-leaving .login-card {
  animation: loginCardOut 0.45s cubic-bezier(0.4, 0, 1, 1) forwards !important;
  animation-duration: 0.45s !important;
}

html.aura-no-motion #login .login-input,
html.aura-motion-settle #login .login-input {
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background-color 0.35s ease,
    color 0.35s ease,
    padding 0.3s ease !important;
  transition-duration: 0.35s !important;
  animation-duration: 0.35s !important;
}

html.aura-no-motion #login .login-email-clear,
html.aura-motion-settle #login .login-email-clear {
  transition:
    background 0.2s ease,
    color 0.2s ease,
    opacity 0.3s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1) !important;
  transition-duration: 0.36s !important;
  animation-duration: 0.36s !important;
}

html.aura-no-motion #login #loginEmailBtn.login-submit,
html.aura-motion-settle #login #loginEmailBtn.login-submit,
html.aura-no-motion #login #loginCode,
html.aura-motion-settle #login #loginCode,
html.aura-no-motion #login .login-code-extra,
html.aura-motion-settle #login .login-code-extra {
  transition: opacity 0.26s ease !important;
  transition-duration: 0.26s !important;
}

/* Modals/settings must stay fully visible when motion is off */
html.aura-no-motion .user-settings,
html.aura-no-motion .user-settings__layout {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

html.aura-no-motion .modal-backdrop,
html.aura-no-motion .profile-card,
html.aura-no-motion .profile-expand,
html.aura-no-motion .media-viewer,
html.aura-no-motion .aura-toast {
  animation: none !important;
  transition: none !important;
}

html.aura-no-motion .aura-toast.show {
  transform: none;
}

html.aura-motion-settle *,
html.aura-motion-settle *::before,
html.aura-motion-settle *::after {
  transition: none !important;
  transition-duration: 0.001ms !important;
}

/* Composer mic↔send keeps motion even when UI animations are off */
html.aura-no-motion .tg-composer-action__icon,
html.aura-motion-settle .tg-composer-action__icon,
html.aura-no-motion .tg-composer-action__icon *,
html.aura-motion-settle .tg-composer-action__icon * {
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1) !important;
  animation: none !important;
}

html.aura-no-motion #login .login-input,
html.aura-motion-settle #login .login-input {
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background-color 0.35s ease,
    color 0.35s ease,
    padding 0.3s ease !important;
  transition-duration: 0.35s !important;
}

html.aura-no-motion #login .login-email-clear,
html.aura-motion-settle #login .login-email-clear {
  transition:
    background 0.2s ease,
    color 0.2s ease,
    opacity 0.3s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1) !important;
  transition-duration: 0.36s !important;
}

html.aura-no-motion #login #loginEmailBtn.login-submit,
html.aura-motion-settle #login #loginEmailBtn.login-submit,
html.aura-no-motion #login #loginCode,
html.aura-motion-settle #login #loginCode,
html.aura-no-motion #login .login-code-extra,
html.aura-motion-settle #login .login-code-extra {
  transition: opacity 0.26s ease !important;
  transition-duration: 0.26s !important;
}

html.aura-no-motion .user-settings__switch .user-settings__switch-knob,
html.aura-motion-settle .user-settings__switch .user-settings__switch-knob {
  animation: none !important;
  transition:
    transform 0.38s cubic-bezier(0.34, 1.45, 0.64, 1),
    width 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease !important;
}

.user-settings__avatar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-settings__hint {
  margin: 0;
  color: #949ba4;
  font-size: 12px;
  line-height: 1.35;
}

.user-settings__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-settings__field > span {
  color: #b5bac1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.user-settings__field input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  outline: 0;
  background: #1e1f22;
  color: #dbdee1;
  font: inherit;
  font-size: 15px;
  transition: box-shadow 0.12s ease;
}

.user-settings__field input:focus {
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.55);
}

.user-settings__select {
  width: 100%;
  height: 42px;
  padding: 0 36px 0 14px;
  border: 0;
  border-radius: 6px;
  outline: 0;
  appearance: none;
  background-color: #1e1f22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b5bac1' d='M1.4 1.4 6 6l4.6-4.6L12 2.8 6 8.8 0 2.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  color: #dbdee1;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: box-shadow 0.12s ease;
}

.user-settings__select:focus {
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.55);
}

.user-settings__select option {
  background: #1e1f22;
  color: #dbdee1;
}

.user-settings__field + .user-settings__field {
  margin-top: 14px;
}

.user-settings__voice-slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-settings__voice-slider + .user-settings__voice-slider {
  margin-top: 18px;
}

.user-settings__voice-slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #b5bac1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.user-settings__voice-slider-value {
  color: #dbdee1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}

.user-settings__voice-range {
  width: 100%;
  height: 8px;
  margin: 0;
  appearance: none;
  background: transparent;
  --voice-slider-fill: 100%;
  cursor: pointer;
}

.user-settings__voice-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #5865f2 0%,
    #5865f2 var(--voice-slider-fill),
    #4e5058 var(--voice-slider-fill),
    #4e5058 100%
  );
}

.user-settings__voice-range::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.user-settings__voice-range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #4e5058;
}

.user-settings__voice-range::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: #5865f2;
}

.user-settings__voice-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.user-settings__card .user-settings__toggle-row {
  margin-top: 4px;
}

.user-settings__field textarea {
  width: 100%;
  min-height: 108px;
  padding: 12px 14px;
  border: 0;
  border-radius: 6px;
  outline: 0;
  resize: vertical;
  background: #1e1f22;
  color: #dbdee1;
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  transition: box-shadow 0.12s ease;
}

.user-settings__field textarea:focus {
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.55);
}

.user-settings__preview-bio {
  margin: 4px 0 0;
  color: #b5bac1;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.user-settings__logout-card {
  margin-top: 8px;
}

.user-settings__hint--logout {
  margin: 0 0 16px;
  max-width: 42ch;
}

.user-settings__logout-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.user-settings__animation-list .user-settings__toggle-row + .user-settings__toggle-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.user-settings__anim-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid rgba(88, 101, 242, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(88, 101, 242, 0.14) 0%, rgba(88, 101, 242, 0.03) 42%, #2b2d31 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

.user-settings__anim-hero-glow {
  position: absolute;
  top: -40px;
  right: -20px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.28) 0%, transparent 68%);
  pointer-events: none;
}

.user-settings__anim-hero-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.user-settings__anim-hero-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(88, 101, 242, 0.35), rgba(88, 101, 242, 0.12));
  color: #dee0ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.user-settings__anim-hero-icon svg {
  width: 26px;
  height: 26px;
}

.user-settings__anim-hero-title {
  margin: 0 0 4px;
  color: #f2f3f5;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.user-settings__anim-hero-copy .user-settings__hint {
  margin: 0;
  max-width: 36ch;
}

.user-settings__anim-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.user-settings__anim-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(35, 165, 90, 0.16);
  color: #57f287;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.user-settings__anim-status-pill.is-off {
  background: rgba(242, 63, 66, 0.14);
  color: #fa777c;
}

.user-settings__switch--hero {
  flex-shrink: 0;
}

.user-settings__anim-section {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  background: #2b2d31;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.user-settings__anim-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.user-settings__anim-section-head .user-settings__section-title {
  margin: 0;
}

.user-settings__anim-section-head .user-settings__hint {
  margin: 0;
  text-align: right;
}

.user-settings__anim-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.user-settings__anim-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 88px;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  background: #313338;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.user-settings__anim-card:hover:not(:disabled) {
  border-color: rgba(88, 101, 242, 0.28);
  background: #35373c;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.user-settings__anim-card:focus-visible {
  outline: 2px solid #5865f2;
  outline-offset: 2px;
}

.user-settings__anim-card.is-off:not(.is-disabled) {
  opacity: 0.82;
}

.user-settings__anim-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #dee0ff;
}

.user-settings__anim-card-icon svg {
  width: 22px;
  height: 22px;
}

.user-settings__anim-card-icon--chat {
  background: linear-gradient(145deg, rgba(88, 101, 242, 0.34), rgba(88, 101, 242, 0.12));
}

.user-settings__anim-card-icon--members {
  background: linear-gradient(145deg, rgba(35, 165, 90, 0.28), rgba(35, 165, 90, 0.1));
  color: #9be7b5;
}

.user-settings__anim-card-icon--avatars {
  background: linear-gradient(145deg, rgba(240, 178, 50, 0.28), rgba(240, 178, 50, 0.1));
  color: #ffd67a;
}

.user-settings__anim-card-icon--ui {
  background: linear-gradient(145deg, rgba(235, 69, 158, 0.28), rgba(235, 69, 158, 0.1));
  color: #ff9fd4;
}

.user-settings__anim-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.user-settings__anim-card-body .user-settings__hint {
  margin: 0;
  line-height: 1.35;
}

.user-settings__anim-card .user-settings__animation-switch {
  flex: 0 0 auto;
  pointer-events: none;
}

.user-settings__animation-list.is-disabled,
.user-settings__animation-list .user-settings__anim-card.is-disabled {
  opacity: 0.55;
}

.user-settings__animation-list.is-disabled .user-settings__anim-card {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 760px) {
  .user-settings__anim-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .user-settings__anim-hero-actions {
    justify-content: space-between;
  }

  .user-settings__anim-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-settings__anim-section-head .user-settings__hint {
    text-align: left;
  }

  .user-settings__anim-grid {
    grid-template-columns: 1fr;
  }
}

.user-settings__animation-list .user-settings__toggle-row.is-disabled {
  opacity: 0.55;
}

.user-settings__toggle-title {
  display: block;
  color: #f2f3f5;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.user-settings__hint--spaced {
  margin: 0 0 14px;
}

.user-settings__switch.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

html.aura-no-motion-interface .modal-backdrop,
html.aura-no-motion-interface .profile-card,
html.aura-no-motion-interface .profile-expand,
html.aura-no-motion-interface .media-viewer,
html.aura-no-motion-interface .aura-toast {
  animation: none !important;
  transition: none !important;
}

html.aura-no-motion-interface .aura-toast.show {
  transform: none;
}

html.aura-no-motion-avatars .discord-message__avatar.is-avatar-bouncing,
html.aura-no-motion-avatars #app.discord-app.ui-discord .discord-message__avatar.is-avatar-bouncing,
html.aura-no-motion-avatars #auraHome.is-avatar-bouncing,
html.aura-no-motion-avatars #app.discord-app.ui-discord #auraHome.is-avatar-bouncing {
  animation: none !important;
}

.user-settings__char-count {
  margin: 8px 0 0;
  color: #949ba4;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.user-settings__char-count.is-low {
  color: #f0b232;
}

.user-settings__char-count.is-empty {
  color: #ed4245;
}

.user-settings__error {
  margin: 10px 0 0;
  color: #fa777c;
  font-size: 13px;
}

.user-settings__error.hidden {
  display: none;
}

.user-settings__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 2px 18px;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease, filter 0.12s ease, transform 0.12s ease;
}

.user-settings__btn--primary {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 6px 16px rgba(88, 101, 242, 0.28);
}

.user-settings__btn--primary:hover {
  background: #4752c4;
  filter: brightness(1.03);
}

.user-settings__btn--primary:active {
  transform: translateY(1px);
}

.user-settings__btn--primary:disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

.user-settings__btn--danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(237, 66, 69, 0.28);
  border-radius: 6px;
  background: rgba(237, 66, 69, 0.12);
  color: #f38688;
  box-shadow: none;
  font-weight: 600;
}

.user-settings__btn--danger:hover {
  background: rgba(237, 66, 69, 0.2);
  border-color: rgba(237, 66, 69, 0.42);
  color: #fff;
  text-decoration: none;
}

.user-settings__btn--danger:active {
  transform: translateY(1px);
  background: rgba(237, 66, 69, 0.26);
}

.user-settings__btn--ghost {
  background: transparent;
  color: #fff;
}

.user-settings__btn--ghost:hover {
  text-decoration: underline;
}

.user-settings__main:has(.user-settings__savebar:not(.hidden)) .user-settings__scroll {
  padding-bottom: 168px;
}

.user-settings__savebar {
  position: absolute;
  right: 32px;
  bottom: 18px;
  left: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  background: rgba(17, 18, 20, 0.94);
  color: #dbdee1;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 500;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.user-settings__savebar.hidden {
  display: none;
}

.user-settings__savebar-text {
  min-width: 0;
}

.user-settings__savebar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

@media (max-width: 820px) {
  .user-settings {
    padding: 12px;
  }

  .user-settings__layout {
    grid-template-columns: 1fr;
    width: min(640px, calc(100vw - 24px));
    height: min(calc(100vh - 24px), 920px);
    max-height: calc(100vh - 24px);
  }

  .user-settings__sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .user-settings__scroll {
    padding: 52px 20px 148px;
  }

  .user-settings__main:has(.user-settings__savebar:not(.hidden)) .user-settings__scroll {
    padding-bottom: 176px;
  }

  .user-settings__savebar {
    right: 16px;
    left: 16px;
    flex-wrap: wrap;
  }
}

.user-settings__side-avatar .avatar-letter,
.user-settings__avatar-preview .avatar-letter {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.user-settings__side-avatar .avatar-letter {
  font-size: 14px;
}

.user-settings__banner-preview {
  display: block;
  width: 100%;
  height: 120px;
  border-radius: 8px;
  background: linear-gradient(90deg, #5865f2 0%, #5865f2 28%, #1e1f22 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.user-settings__banner-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  align-items: center;
}

.user-settings__banner-label {
  margin: 16px 0 0;
  color: #b5bac1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.user-settings__banner-swatch {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--swatch, #5865f2);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.user-settings__banner-swatch:hover {
  transform: scale(1.08);
}

.user-settings__banner-swatch.is-selected {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.55);
}

.user-settings__banner-custom-wrap {
  position: relative;
  flex: 0 0 auto;
  width: auto;
}

.user-settings__banner-custom-wrap .user-settings__banner-custom-btn {
  width: auto;
  min-width: 0;
}

.user-settings__color-picker {
  position: fixed;
  z-index: 200;
  width: min(280px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #1e1f22;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.user-settings__color-picker.hidden {
  display: none !important;
}

.user-settings__color-picker-sv {
  position: relative;
  height: 148px;
  overflow: hidden;
  border-radius: 8px;
  background: hsl(var(--picker-hue, 230), 100%, 50%);
  cursor: crosshair;
  touch-action: none;
}

.user-settings__color-picker-sv-white,
.user-settings__color-picker-sv-black {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.user-settings__color-picker-sv-white {
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}

.user-settings__color-picker-sv-black {
  background: linear-gradient(to top, #000, rgba(0, 0, 0, 0));
}

.user-settings__color-picker-cursor {
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.user-settings__color-picker-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.user-settings__color-picker-preview {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #5865f2;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.28);
}

.user-settings__color-picker-hue {
  flex: 1 1 auto;
  width: 100%;
  height: 14px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #f00 0%,
    #ff0 17%,
    #0f0 33%,
    #0ff 50%,
    #00f 67%,
    #f0f 83%,
    #f00 100%
  );
  appearance: none;
  cursor: pointer;
}

.user-settings__color-picker-hue::-webkit-slider-runnable-track {
  height: 14px;
  border-radius: 999px;
  background: transparent;
}

.user-settings__color-picker-hue::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -1px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.user-settings__color-picker-hue::-moz-range-track {
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.user-settings__color-picker-hue::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.user-settings__color-picker-hex {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.user-settings__color-picker-hex > span {
  flex: 0 0 auto;
  color: #949ba4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.user-settings__color-picker-hex input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #111214;
  color: #f2f3f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.user-settings__color-picker-hex input:focus {
  outline: none;
  border-color: rgba(88, 101, 242, 0.65);
  box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.35);
}

.user-settings__banner-custom-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.user-settings__banner-custom-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: linear-gradient(180deg, #2f3136 0%, #1e1f22 100%);
  color: #dbdee1;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.14s ease,
    background 0.14s ease,
    transform 0.14s ease,
    box-shadow 0.14s ease;
}

.user-settings__banner-custom-btn:hover {
  border-color: rgba(88, 101, 242, 0.55);
  background: linear-gradient(180deg, #35373c 0%, #232428 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(0, 0, 0, 0.22);
}

.user-settings__banner-custom-btn.is-selected {
  border-color: #5865f2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(88, 101, 242, 0.35);
}

.user-settings__banner-custom-swatch {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #5865f2;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 2px 6px rgba(0, 0, 0, 0.25);
}

.user-settings__banner-custom-meta {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
  padding-right: 2px;
}

.user-settings__banner-custom-meta strong {
  color: #f2f3f5;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}

.user-settings__banner-custom-meta small {
  color: #949ba4;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.03em;
}

.user-settings__banner-custom-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #b5bac1;
  opacity: 0.85;
}


.dm-profile__banner.has-banner,
.profile-card__banner.has-banner,
.profile-expand__banner.has-banner,
.user-settings__preview-banner.has-banner,
.user-settings__banner-preview.has-banner {
  /* custom color selected */
}



.user-settings__iface-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.user-settings__iface-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%),
    #2b2d31;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.user-settings__iface-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: transparent;
  opacity: 0;
  transition: opacity 0.16s ease, background 0.16s ease;
}

.user-settings__iface-card:hover {
  border-color: rgba(88, 101, 242, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.user-settings__iface-card.is-selected {
  border-color: #5865f2;
  background:
    linear-gradient(180deg, rgba(88, 101, 242, 0.14), transparent 46%),
    #2b2d31;
  box-shadow:
    0 0 0 1px rgba(88, 101, 242, 0.28),
    0 14px 32px rgba(0, 0, 0, 0.3);
}

.user-settings__iface-card.is-selected::before {
  opacity: 1;
  background: linear-gradient(90deg, #5865f2, #8790f8 55%, transparent);
}

.user-settings__iface-card.is-locked {
  opacity: 0.78;
  cursor: pointer;
}

.user-settings__iface-card.is-locked:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transform: none;
}

.user-settings__iface-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  background: #23a559;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.user-settings__iface-badge--soon {
  background: rgba(78, 80, 88, 0.95);
  color: #dbdee1;
}

.user-settings__iface-preview {
  position: relative;
  display: block;
  height: 128px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: #111214;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.iface-mini {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.iface-mini b,
.iface-mini em,
.iface-mini i,
.iface-mini s,
.iface-mini u,
.iface-mini__composer {
  display: block;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  font-style: normal;
  font-weight: 400;
  text-decoration: none;
}

.iface-mini b {
  height: 7px;
  width: 42%;
  background: rgba(255, 255, 255, 0.16);
}

.iface-mini em {
  height: 6px;
  width: 68%;
  background: rgba(255, 255, 255, 0.07);
}

.iface-mini u {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border-radius: 0;
}

.iface-mini u > i {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #5865f2;
}

.iface-mini u > s {
  flex: 1 1 auto;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.iface-mini__composer {
  height: 12px;
  margin-top: auto;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
}

.iface-mini--discord {
  grid-template-columns: 18px 54px minmax(0, 1fr) 36px;
  background: #313338;
}

.iface-mini--discord .iface-mini__rail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  padding: 8px 0;
  background: #1e1f22;
}

.iface-mini--discord .iface-mini__rail > i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5865f2;
}

.iface-mini--discord .iface-mini__rail > i:nth-child(2) {
  background: #23a559;
}

.iface-mini--discord .iface-mini__rail > i:nth-child(3) {
  background: #4e5058;
}

.iface-mini--discord .iface-mini__side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 7px;
  background: #2b2d31;
}

.iface-mini--discord .iface-mini__side em:nth-child(2) {
  width: 78%;
  background: rgba(88, 101, 242, 0.35);
}

.iface-mini--discord .iface-mini__main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 10px 8px 8px;
  background: #313338;
}

.iface-mini--discord .iface-mini__members {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 7px;
  background: #2b2d31;
}

.iface-mini--discord .iface-mini__members em {
  width: 100%;
  height: 8px;
}

.iface-mini--standard {
  grid-template-columns: 72px minmax(0, 1fr);
  background:
    radial-gradient(circle at 72% 28%, rgba(124, 92, 255, 0.22), transparent 42%),
    #12131a;
}

.iface-mini--standard .iface-mini__side {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 9px;
  background: rgba(18, 19, 28, 0.85);
  border-right: 1px solid rgba(124, 92, 255, 0.12);
}

.iface-mini--standard .iface-mini__side em:nth-child(3) {
  width: 74%;
  background: rgba(124, 92, 255, 0.35);
}

.iface-mini--standard .iface-mini__main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px 8px;
}

.iface-mini--standard .is-bubble {
  gap: 6px;
  padding: 6px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.iface-mini--standard .is-bubble.is-me {
  margin-left: 18px;
  background: rgba(124, 92, 255, 0.18);
}

.iface-mini--standard .is-bubble > i {
  background: #7c5cff;
}

.iface-mini--telegram {
  grid-template-columns: 42% minmax(0, 1fr);
  background: #0e1621;
}

.iface-mini--telegram .iface-mini__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 8px;
  background: #17212b;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.iface-mini--telegram .iface-mini__list u > i {
  background: #2aabee;
}

.iface-mini--telegram .iface-mini__main {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(42, 171, 238, 0.08), transparent 28%),
    #0e1621;
}

.iface-mini--telegram .iface-mini__main > em {
  width: 58%;
  height: 14px;
  border-radius: 8px 8px 8px 3px;
  background: #182533;
}

.iface-mini--telegram .iface-mini__main > em.is-me {
  align-self: flex-end;
  width: 48%;
  border-radius: 8px 8px 3px 8px;
  background: #2b5278;
}

.iface-mini--vk {
  grid-template-rows: 22px 18px minmax(0, 1fr);
  background: #19191a;
}

.iface-mini--vk .iface-mini__top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  background: #222222;
}

.iface-mini--vk .iface-mini__top b {
  width: 28px;
  height: 6px;
}

.iface-mini--vk .iface-mini__top em {
  flex: 1 1 auto;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.iface-mini--vk .iface-mini__top > i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #447bba;
}

.iface-mini--vk .iface-mini__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 3px 8px;
  background: #1b1b1c;
}

.iface-mini--vk .iface-mini__nav > i {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.iface-mini--vk .iface-mini__nav > i:first-child {
  background: rgba(68, 123, 186, 0.55);
}

.iface-mini--vk .iface-mini__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 8px;
}

.iface-mini--vk .iface-mini__list u > i {
  background: #447bba;
}

.user-settings__iface-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px 4px;
}

.user-settings__iface-body strong {
  color: #f2f3f5;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.user-settings__iface-body small {
  color: #b5bac1;
  font-size: 12.5px;
  line-height: 1.4;
}

.user-settings__iface-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
  padding-right: 28px;
}

.user-settings__iface-tags i {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #949ba4;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.user-settings__iface-card.is-selected .user-settings__iface-tags i {
  background: rgba(88, 101, 242, 0.16);
  color: #c9cdfb;
}

.user-settings__iface-check {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #5865f2;
  color: #fff;
  opacity: 0;
  transform: scale(0.82);
  box-shadow: 0 8px 18px rgba(88, 101, 242, 0.35);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.user-settings__iface-check svg {
  width: 14px;
  height: 14px;
}

.user-settings__iface-card.is-selected .user-settings__iface-check {
  opacity: 1;
  transform: scale(1);
}

.user-settings__iface-note {
  margin: 16px 2px 0;
  color: #949ba4;
  font-size: 12.5px;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .user-settings__iface-grid {
    grid-template-columns: 1fr;
  }
}

/* Emoji picker */
.discord-composer {
  position: relative;
}

.discord-composer__tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding-right: 2px;
}

.discord-composer__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #949ba4;
  line-height: 0;
  aspect-ratio: 1 / 1;
  align-self: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.discord-composer__emoji svg {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
  margin: 0;
}

.discord-composer__emoji:hover,
.discord-composer__emoji[aria-expanded='true'] {
  background: rgba(78, 80, 88, 0.55);
  color: #fee75c;
  transform: translateY(-1px);
}

.emoji-picker {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 50;
  display: flex;
  width: min(420px, calc(100vw - 36px));
  height: min(460px, 60vh);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: #313338;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 16px 40px rgba(0, 0, 0, 0.55);
  animation: emojiPickerIn 0.14s ease-out;
}

@keyframes emojiPickerIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.emoji-picker.hidden {
  display: none !important;
}

.emoji-picker__search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin: 12px 12px 8px;
  padding: 0 10px;
  border-radius: 8px;
  background: #1e1f22;
  box-sizing: border-box;
}

.emoji-picker__search-icon {
  position: static;
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  color: #949ba4;
  pointer-events: none;
}

.emoji-picker__search-icon svg {
  width: 16px;
  height: 16px;
}

#app.discord-app.ui-discord .emoji-picker__search input,
.emoji-picker__search input {
  width: auto;
  min-width: 0;
  flex: 1;
  align-self: center;
  height: 20px !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: #dbdee1;
  font: inherit;
  font-size: 14px;
  line-height: 20px !important;
  outline: none;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: textfield;
}

.emoji-picker__search input::-webkit-search-decoration,
.emoji-picker__search input::-webkit-search-cancel-button,
.emoji-picker__search input::-webkit-search-results-button,
.emoji-picker__search input::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

.emoji-picker__search input::placeholder {
  color: #949ba4;
  line-height: 20px;
  opacity: 1;
  transform: none;
}

.emoji-picker__search:focus-within {
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.45);
}

.emoji-picker__cats {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 4px 10px 8px;
  overflow: auto hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  scrollbar-width: none;
}

.emoji-picker__cats::-webkit-scrollbar {
  display: none;
}

.emoji-picker__cat {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  opacity: 0.72;
  transition: background 0.12s ease, opacity 0.12s ease, transform 0.12s ease;
}

.emoji-picker__cat:hover {
  background: #393c41;
  opacity: 1;
  transform: translateY(-1px);
}

.emoji-picker__cat.is-active {
  background: #404249;
  opacity: 1;
  box-shadow: inset 0 -2px 0 #5865f2;
}

.emoji-picker__main {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.emoji-picker__heading {
  padding: 10px 14px 6px;
  color: #b5bac1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.emoji-picker__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  padding: 0 8px 10px;
  overflow: hidden auto;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: #1a1b1e transparent;
}

.emoji-picker__grid::-webkit-scrollbar {
  width: 8px;
}

.emoji-picker__grid::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #1a1b1e;
  background-clip: padding-box;
}

#app.discord-app.ui-discord .emoji-picker__item,
.emoji-picker__item {
  display: grid;
  width: 100%;
  min-height: 52px;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 42px !important;
  line-height: 1;
  transition: background 0.1s ease, transform 0.1s ease;
}

#app.discord-app.ui-discord .emoji-picker__item:hover,
#app.discord-app.ui-discord .emoji-picker__item:focus-visible,
.emoji-picker__item:hover,
.emoji-picker__item:focus-visible {
  background: #5865f2;
  outline: none;
  transform: scale(1.06);
}

.emoji-picker__empty {
  grid-column: 1 / -1;
  padding: 40px 16px;
  color: #949ba4;
  font-size: 13px;
  text-align: center;
}

.emoji-picker__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.28);
  background: #2b2d31;
}

.emoji-picker__preview {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 8px;
  background: #1e1f22;
  font-size: 22px;
  line-height: 1;
}

.emoji-picker__preview-name {
  overflow: hidden;
  color: #dbdee1;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#app.discord-app.ui-discord .discord-composer input,
#app.discord-app.ui-discord .discord-composer textarea {
  padding-right: 8px;
}

/* —— Chat search panel (Discord-style) —— */
.chat-search-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  display: flex;
  width: 420px;
  max-width: min(420px, 100%);
  flex-direction: column;
  margin: 0;
  padding: 12px 12px 0;
  border-left: 1px solid #2a2b2f;
  background: var(--discord-side, #121214);
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.chat-search-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#app.discord-app.ui-discord .chat-search-panel {
  background: var(--discord-side) !important;
}

#app.discord-app.ui-discord .chat-search-panel.is-open {
  z-index: 40;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#app.discord-app.ui-discord .discord-workspace.search-open .members-panel {
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

#app.discord-app.ui-discord .discord-workspace.search-open .discord-chat {
  margin-right: 0 !important;
  transition: none !important;
}

.discord-workspace.search-open .members-panel {
  visibility: hidden !important;
  pointer-events: none !important;
}

.chat-search-panel__head {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 2px 2px 0;
}

.chat-search-panel__count {
  color: #f2f3f5;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.chat-search-sort {
  position: relative;
  flex: 0 0 auto;
}

.chat-search-sort__btn {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #1e1f22;
  color: #dbdee1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.chat-search-sort__btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.chat-search-sort__btn:hover {
  background: #2b2d31;
  color: #fff;
}

.chat-search-sort__btn.is-open,
.chat-search-sort__btn[aria-expanded='true'] {
  background: #2b2d31;
  border-color: rgba(88, 101, 242, 0.45);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.18);
}

.chat-search-sort__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: flex;
  min-width: 240px;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #111214;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 16px 40px rgba(0, 0, 0, 0.55);
}

.chat-search-sort__menu.hidden {
  display: none !important;
}

.chat-search-sort__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dbdee1;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.chat-search-sort__option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.chat-search-sort__option.is-active {
  color: #fff;
}

.chat-search-sort__radio {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid #4e5058;
  border-radius: 50%;
  background: transparent;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.chat-search-sort__option.is-active .chat-search-sort__radio {
  border-color: #5865f2;
  background: #5865f2;
  box-shadow:
    inset 0 0 0 3.5px #111214,
    0 0 0 3px rgba(88, 101, 242, 0.22);
}

.chat-search-panel__meta,
.chat-search-panel__tools,
.chat-search-panel__tool {
  display: none !important;
}

.chat-search-panel__group {
  flex: 0 0 auto;
  margin: 4px 2px 8px;
  color: #949ba4;
  font-size: 12px;
  font-weight: 700;
}

.chat-search-panel__group.hidden {
  display: none !important;
}

.chat-search-panel__results {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0 2px 8px;
}

.chat-search-panel__pager {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 12px 2px 14px;
  border-top: 1px solid #2a2b2f;
}

.chat-search-panel__pager.hidden {
  display: none !important;
}

.chat-search-panel__nav {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #f2f3f5;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.chat-search-panel__nav span {
  font-weight: 700;
}

.chat-search-panel__nav:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.chat-search-panel__nav:hover:not(:disabled) span {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-search-panel__nav:disabled {
  color: #4e5058;
  cursor: default;
}

.chat-search-panel__nav:disabled span {
  text-decoration: none;
}

.chat-search-panel__nav svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

#app.discord-app.ui-discord .chat-search-panel__nav {
  color: #f2f3f5 !important;
  font-weight: 700 !important;
}

#app.discord-app.ui-discord .chat-search-panel__nav span {
  font-weight: 700 !important;
}

#app.discord-app.ui-discord .chat-search-panel__nav:hover:not(:disabled) {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

#app.discord-app.ui-discord .chat-search-panel__nav:disabled {
  color: #4e5058 !important;
  background: transparent !important;
}

.chat-search-panel__pages {
  display: flex;
  flex: 1 1 auto;
  gap: 2px;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.chat-search-panel__page {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #b5bac1;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.chat-search-panel__page:hover:not(.is-current):not(.is-ellipsis) {
  background: rgba(255, 255, 255, 0.06);
  color: #dbdee1;
}

.chat-search-panel__page.is-current {
  background: #5865f2;
  color: #fff;
  cursor: default;
}

.chat-search-panel__page.is-ellipsis {
  width: auto;
  min-width: 24px;
  cursor: default;
  color: #949ba4;
  font-size: 16px;
  font-weight: 700;
}

.chat-search-panel__empty {
  margin: 28px 8px;
  color: #949ba4;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.chat-search-panel__empty--none {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  margin: 0;
  padding: 32px 24px;
  gap: 22px;
}

.chat-search-empty__art {
  position: relative;
  width: 168px;
  height: 168px;
}

.chat-search-empty__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #3f4147;
  opacity: 0.9;
}

.chat-search-empty__glass {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-46%, -54%) rotate(-18deg);
}

.chat-search-empty__text {
  margin: 0;
  max-width: 280px;
  color: #f2f3f5;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.chat-search-result {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  margin: 0 0 6px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--discord-main, #1a1a1e);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.chat-search-result + .chat-search-result {
  margin-top: 0;
}

.chat-search-result:hover,
.chat-search-result.is-active {
  background: #1e1f24;
}

.chat-search-result__avatar {
  width: 40px;
  height: 40px;
  margin-top: 2px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
}

.chat-search-result__avatar span,
.chat-search-result__avatar .avatar-letter,
.chat-search-result__avatar img {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  object-fit: cover;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.chat-search-result__body {
  min-width: 0;
}

.chat-search-result__head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: baseline;
  margin-bottom: 4px;
}

.chat-search-result__nick {
  color: #f2f3f5;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

.chat-search-result__time {
  color: #949ba4;
  font-size: 12px;
  font-weight: 400;
}

.chat-search-result__text {
  overflow: hidden;
  color: #dbdee1 !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.375;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-search-result__text mark {
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  color: #dbdee1 !important;
  font-weight: 400;
}

#app.discord-app.ui-discord .chat-search-result {
  background: var(--discord-main, #1a1a1e) !important;
  color: #dbdee1 !important;
}

#app.discord-app.ui-discord .chat-search-result:hover,
#app.discord-app.ui-discord .chat-search-result.is-active {
  background: #1e1f24 !important;
  box-shadow: none !important;
}

#app.discord-app.ui-discord .chat-search-result__text,
#app.discord-app.ui-discord .chat-search-result__text mark {
  color: #dbdee1 !important;
}

.discord-message.is-search-jump {
  animation: aura-search-jump 1.6s ease;
}

@keyframes aura-search-jump {
  0%,
  100% {
    background: transparent;
  }
  15%,
  55% {
    background: rgba(88, 101, 242, 0.18);
  }
}

@media (max-width: 980px) {
  .chat-search-panel {
    width: min(100%, 360px);
  }
}

/* —— Official Aura updates chat —— */
.dm-item--official .dm-item__avatar,
.dm-item__avatar--official,
.dm-welcome__avatar--official,
.discord-message__avatar--official,
#dmHeaderAvatar.dm-item__avatar--official,
.header-avatar.dm-item__avatar--official {
  display: grid !important;
  place-items: center;
  background: #5865f2 !important;
  background-image: none !important;
  overflow: hidden;
}

.dm-item--official .server-pill__donut,
.dm-item__avatar--official .server-pill__donut,
.dm-welcome__avatar--official .server-pill__donut,
.discord-message__avatar--official .server-pill__donut,
.header-avatar.dm-item__avatar--official .server-pill__donut,
#dmHeaderAvatar.dm-item__avatar--official .server-pill__donut {
  display: block;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-sizing: border-box;
  opacity: 1 !important;
}

.dm-welcome__avatar--official .server-pill__donut {
  width: 34px;
  height: 34px;
  border-width: 5px;
}

.dm-welcome__title-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.dm-welcome__official-badge,
.dm-item__official-badge,
.discord-header__official-badge,
.discord-message__official-badge {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 18px;
  padding: 0 5px;
  border: 0;
  border-radius: 3px;
  background: #5865f2;
  color: #fff;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 18px;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.dm-welcome__official-badge .official-badge__icon,
.dm-item__official-badge .official-badge__icon,
.discord-header__official-badge .official-badge__icon,
.discord-message__official-badge .official-badge__icon,
.dm-welcome__official-badge svg,
.dm-item__official-badge svg,
.discord-header__official-badge svg,
.discord-message__official-badge svg {
  display: block;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  margin: 0;
  overflow: visible;
  transform: translateY(-0.5px);
}

.official-badge__icon path {
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.official-badge__label {
  display: block;
  height: 18px;
  margin: 0;
  padding: 0;
  color: #fff;
  font: inherit;
  line-height: 18px;
  text-transform: uppercase;
  transform: translateY(-1px);
}

.dm-item--official {
  height: auto;
  min-height: 52px;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  align-items: center;
}

.dm-item__content {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dm-item__title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.dm-item--official .dm-item__name {
  flex: 0 1 auto;
  font-weight: 650;
  color: #f2f3f5;
}

.dm-item__subtitle {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #949ba4;
  font-size: 15px;
  line-height: 1.25;
  text-align: left;
}

.dm-item__official-badge {
  flex: 0 0 auto;
}

.dm-welcome--official {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  max-width: 100%;
  padding: 24px 16px 32px;
  box-sizing: border-box;
  text-align: left;
}

.dm-welcome--official .dm-welcome__avatar--official {
  width: 96px;
  height: 96px;
  margin: 0 0 16px;
  border: 0;
  box-shadow: none;
}

.dm-welcome--official .dm-welcome__avatar--official .server-pill__donut {
  width: 40px;
  height: 40px;
  border-width: 6px;
}

.dm-welcome--official .dm-welcome__name {
  margin: 0 0 10px;
  color: #f2f3f5;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.dm-welcome__title-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.dm-welcome__title-row .dm-welcome__name {
  margin: 0;
}

.dm-welcome--official .dm-welcome__text {
  margin: 0;
  width: 100%;
  max-width: none;
  padding-right: 8px;
  box-sizing: border-box;
  color: #dbdee1;
  font-size: 16px;
  line-height: 1.375;
}

.discord-header__channel.is-official {
  gap: 10px;
}

.discord-header__channel.is-official .discord-header__title-wrap {
  gap: 8px;
}

.discord-header__channel.is-official strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.discord-message.is-official .discord-message__header {
  gap: 8px;
}

.discord-composer.is-official-readonly {
  display: none !important;
}

.official-composer-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #222327;
  min-height: 52px;
  box-sizing: border-box;
}

.official-composer-notice.hidden {
  display: none !important;
}

.official-composer-notice__icon {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-top: 0;
}

.official-composer-notice__shield {
  display: block;
  width: 44px;
  height: 44px;
}

.official-composer-notice__badge {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #222327;
  border-radius: 50%;
  background: #5865f2;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.official-composer-notice__badge svg {
  width: 12px;
  height: 12px;
}

.official-composer-notice__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #f2f3f5;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

#app.discord-app.ui-discord .official-composer-notice {
  margin: 0 16px var(--aura-bottom-bar-gap) !important;
  min-height: var(--aura-bottom-bar-h);
  border-radius: 10px !important;
}

.discord-composer.is-official-readonly textarea {
  cursor: default;
}

/* ===== Voice call (1:1 DM) ===== */
.discord-header__actions > .voice-call-btn.is-in-call {
  color: #3ba55d !important;
}

.discord-header__actions > .voice-call-btn svg {
  width: 24px !important;
  height: 24px !important;
  fill: currentColor;
  stroke: none;
}

#app.discord-app.ui-discord .discord-header__actions > .voice-call-btn svg {
  width: 24px !important;
  height: 24px !important;
}

.voice-call-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}

.voice-call-overlay.hidden {
  display: none !important;
}

.voice-call-overlay.is-toast {
  place-items: end center;
  padding: 20px 20px 28px;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.voice-call-overlay.is-toast .voice-call-card {
  pointer-events: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.voice-call-bg,
.voice-call-chrome {
  display: none;
}

.voice-call-btn__label {
  display: none;
}

.voice-call-btn__icon {
  display: grid;
  place-items: center;
}

.voice-call-btn__mic-off {
  display: none;
}

.voice-call-btn--mute.is-muted .voice-call-btn__mic {
  display: none;
}

.voice-call-btn--mute.is-muted .voice-call-btn__mic-off {
  display: block;
}

.voice-call-mini-bar {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 1410;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, calc(100vw - 24px));
  padding: 6px 6px 6px 8px;
  border-radius: 14px;
  background: rgba(33, 33, 33, 0.94);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.voice-call-mini-bar.hidden {
  display: none !important;
}

.voice-call-mini-bar__main {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 4px 8px 4px 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.voice-call-mini-bar__main:hover {
  background: rgba(255, 255, 255, 0.06);
}

.voice-call-mini-bar__avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #5865f2;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.voice-call-mini-bar__avatar.has-photo span {
  display: none;
}

.voice-call-mini-bar__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.voice-call-mini-bar__text strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-call-mini-bar__text small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-call-mini-bar__hangup {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  cursor: pointer;
}

.voice-call-mini-bar__hangup svg {
  width: 18px;
  height: 18px;
  transform: rotate(135deg);
}

.voice-call-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(360px, 100%);
  padding: 36px 28px 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #2b2d31 0%, #1e1f22 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.voice-call-avatar {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #5865f2;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.voice-call-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-call-title {
  margin: 8px 0 0;
  color: #f2f3f5;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.voice-call-status {
  margin: 0;
  color: #b5bac1;
  font-size: 14px;
}

.voice-call-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.voice-call-actions .voice-call-btn {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
}

.voice-call-actions .voice-call-btn.hidden {
  display: none !important;
}

.voice-call-actions .voice-call-btn svg {
  width: 24px;
  height: 24px;
}

.voice-call-actions .voice-call-btn:hover {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.voice-call-actions .voice-call-btn--accept {
  background: #23a559;
}

.voice-call-actions .voice-call-btn--reject,
.voice-call-actions .voice-call-btn--hangup {
  background: #ed4245;
}

.voice-call-actions .voice-call-btn--reject svg,
.voice-call-actions .voice-call-btn--hangup svg {
  transform: rotate(135deg);
}

.voice-call-actions .voice-call-btn--mute {
  background: #4e5058;
}

.voice-call-actions .voice-call-btn--mute.is-muted {
  background: #ed4245;
}

#voiceCallRemoteAudio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Шторка звонка: поверх workspace на всю ширину */
.voice-call-stage {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  box-sizing: border-box;
  width: auto;
  height: var(--voice-call-stage-h, 280px);
  min-height: 200px;
  max-height: none;
  padding: 28px 16px 64px;
  background: #000;
  border-bottom: 0;
  overflow: hidden;
  user-select: none;
  pointer-events: auto;
}

.voice-call-stage.hidden {
  display: none !important;
}

.voice-call-stage.is-resizing {
  cursor: ns-resize;
}

.voice-call-stage__resize {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  height: 8px;
  cursor: ns-resize;
  touch-action: none;
  background: transparent;
}

.voice-call-stage__resize::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: transparent;
  transition: background 0.12s ease;
}

.voice-call-stage__resize:hover::after,
.voice-call-stage.is-resizing .voice-call-stage__resize::after {
  background: #5865f2;
}

body.is-voice-stage-resizing {
  cursor: ns-resize !important;
  user-select: none !important;
}

body.is-voice-stage-resizing * {
  cursor: ns-resize !important;
  user-select: none !important;
}

.chat-view.has-voice-call .discord-composer {
  position: relative;
  z-index: 9;
}

.chat-view.has-voice-call .discord-typing {
  position: relative;
  z-index: 9;
}

.voice-call-audio-sinks {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.voice-call-stage__participants {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
  width: 100%;
  min-height: 0;
}

.voice-call-stage__participants:has(.voice-call-tile:nth-child(4)) {
  gap: 18px;
}

.voice-call-stage__participants:has(.voice-call-tile:nth-child(4)) .voice-call-tile {
  width: 76px;
  height: 76px;
}

.voice-call-stage__participants:has(.voice-call-tile:nth-child(4)) .voice-call-tile__avatar.discord-avatar,
.voice-call-stage__participants:has(.voice-call-tile:nth-child(4)) .voice-call-tile__avatar {
  flex-basis: 64px !important;
  width: 64px !important;
  height: 64px !important;
  min-width: 64px;
}

.voice-call-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 0;
  box-sizing: border-box;
  width: 92px;
  height: 92px;
  padding: 6px;
}

.voice-call-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  border: 3px solid transparent;
  pointer-events: none;
  transition: border-color 0.1s ease, box-shadow 0.1s ease;
}

.voice-call-tile.is-speaking::before {
  border-color: #23a559;
  box-shadow: 0 0 0 2px rgba(35, 165, 90, 0.35), 0 0 12px rgba(35, 165, 90, 0.45);
}

.voice-call-tile__avatar.discord-avatar,
.voice-call-tile__avatar {
  position: relative;
  display: grid;
  flex: 0 0 80px !important;
  width: 80px !important;
  height: 80px !important;
  min-width: 80px;
  min-height: 80px;
  max-width: 80px;
  max-height: 80px;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border-radius: 50% !important;
  background: #5865f2;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  box-shadow: none;
  transition: none;
}

.voice-call-tile.hidden {
  display: none !important;
}

.voice-call-tile.is-connecting .voice-call-tile__avatar,
.voice-call-tile.is-ringing .voice-call-tile__avatar {
  opacity: 0.62;
  filter: brightness(0.78);
}

.voice-call-tile.is-connecting .voice-call-tile__avatar {
  animation: voiceCallPulse 1.5s ease-in-out infinite;
}

.voice-call-tile.is-ringing::before {
  border-color: rgba(88, 101, 242, 0.55);
  animation: voiceCallRingRipple 1.8s ease-out infinite;
}

.voice-call-tile.is-ringing::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  border: 3px solid rgba(88, 101, 242, 0.35);
  pointer-events: none;
  animation: voiceCallRingRipple 1.8s ease-out infinite 0.45s;
}

.voice-call-tile__avatar::after {
  display: none;
}

.voice-call-tile__avatar img,
.voice-call-tile__avatar.has-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-call-tile__avatar i {
  display: none !important;
}

.voice-call-tile__name {
  display: none !important;
}

/* При звонке шапка сливается с чёрным фоном сцены */
.chat-view.has-voice-call > .discord-header {
  position: relative;
  z-index: 30;
  background: #000 !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

#app.discord-app.ui-discord .chat-view.has-voice-call > .discord-header {
  background: #000 !important;
  border-bottom: none !important;
  z-index: 30;
}

.chat-view.has-voice-call.pins-open > .discord-header {
  z-index: 90;
}

.chat-view.has-voice-call .pins-header-wrap {
  z-index: 40;
}

.chat-view.has-voice-call .pins-panel {
  z-index: 100;
}

.chat-view.has-voice-call .discord-workspace,
.chat-view.has-voice-call .discord-chat {
  background: #1a1a1e !important;
}

.voice-call-stage__bar {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}

.voice-call-stage__incoming {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #2b2d31;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.voice-call-stage__incoming.hidden {
  display: none !important;
}

.voice-call-stage__join {
  min-width: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: #23a559;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
  white-space: nowrap;
}

.voice-call-stage__join:hover {
  background: #1e8e4c;
  transform: translateY(-1px);
}

.voice-call-stage__group.hidden {
  display: none !important;
}

.voice-call-stage__group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: 10px;
  background: #2b2d31;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.voice-call-stage__ctrl {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f2f3f5;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.voice-call-stage__caret {
  display: grid;
  align-self: center;
  width: 22px;
  height: 32px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #b5bac1;
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
  transition: background 0.12s ease, color 0.12s ease;
}

.voice-call-stage__caret:hover,
.voice-call-stage__caret.is-open {
  background: rgba(79, 84, 92, 0.55);
  color: #fff;
}

.voice-call-stage__caret svg {
  width: 14px;
  height: 14px;
  transform: none;
  transition: none;
}

.voice-call-stage__caret.is-open svg {
  transform: none;
}

.voice-settings-sheet {
  position: fixed;
  z-index: 1600;
  left: 0;
  top: 0;
  width: min(320px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  background: #111214;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  text-align: left;
}

.voice-settings-sheet.hidden {
  display: none !important;
}

.voice-settings-sheet__panel {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.voice-settings-sheet__panel.hidden {
  display: none !important;
}

.voice-settings-sheet__row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #dbdee1;
  cursor: pointer;
  text-align: left;
}

.voice-settings-sheet__row.is-hot,
.voice-settings-sheet__row:hover {
  background: rgba(78, 80, 88, 0.4);
}

.voice-settings-flyout {
  position: fixed;
  z-index: 1601;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: min(280px, calc(100vw - 24px));
  max-height: min(320px, calc(100vh - 24px));
  padding: 6px;
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  background: #111214;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

.voice-settings-flyout.hidden {
  display: none !important;
}

.voice-settings-sheet__row-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.voice-settings-sheet__row-text strong {
  color: #f2f3f5;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.voice-settings-sheet__row-text small {
  overflow: hidden;
  color: #b5bac1;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-settings-sheet__row > svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #b5bac1;
}

.voice-settings-sheet__divider {
  height: 1px;
  margin: 6px 4px;
  background: rgba(78, 80, 88, 0.55);
}

.voice-settings-sheet__slider-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px 10px;
}

.voice-settings-sheet__slider-label {
  color: #f2f3f5;
  font-size: 14px;
  font-weight: 600;
}

.voice-settings-sheet__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #4e5058;
  outline: none;
  cursor: pointer;
}

.voice-settings-sheet__slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #5865f2 0%,
    #5865f2 var(--voice-slider-fill, 100%),
    #4e5058 var(--voice-slider-fill, 100%),
    #4e5058 100%
  );
}

.voice-settings-sheet__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.voice-settings-sheet__slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #4e5058;
}

.voice-settings-sheet__slider::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #5865f2;
}

.voice-settings-sheet__slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.voice-settings-sheet__check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #f2f3f5;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.voice-settings-sheet__check:hover {
  background: rgba(78, 80, 88, 0.4);
}

.voice-settings-sheet__check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.voice-settings-sheet__check-box {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid #80848e;
  border-radius: 4px;
  background: #1e1f22;
}

.voice-settings-sheet__check input:checked + .voice-settings-sheet__check-box {
  border-color: #5865f2;
  background: #5865f2;
}

.voice-settings-sheet__check input:checked + .voice-settings-sheet__check-box::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.voice-settings-sheet__back {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-bottom: 4px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #f2f3f5;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.voice-settings-sheet__back:hover {
  background: rgba(78, 80, 88, 0.4);
}

.voice-settings-sheet__back svg {
  width: 18px;
  height: 18px;
  color: #b5bac1;
}

.voice-settings-sheet__device-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 240px;
  overflow: auto;
}

.voice-settings-sheet__device {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #dbdee1;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.voice-settings-sheet__device:hover {
  background: rgba(78, 80, 88, 0.4);
}

.voice-settings-sheet__device.is-active {
  color: #fff;
  background: rgba(88, 101, 242, 0.28);
}

.voice-settings-sheet__device-mark {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: #5865f2;
}

.voice-call-stage__ctrl:hover:not(:disabled) {
  background: rgba(79, 84, 92, 0.55);
  color: #fff;
}

.voice-call-stage__ctrl:disabled {
  cursor: default;
  opacity: 1;
}

.voice-call-stage__ctrl.is-off {
  color: #f2f3f5;
}

.voice-call-stage__ctrl svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

.voice-call-stage__ctrl .voice-call-stage__icon-mic-off {
  display: none;
}

.voice-call-stage__ctrl.is-muted {
  background: #ed4245;
  color: #fff;
}

.voice-call-stage__ctrl.is-muted:hover:not(:disabled) {
  background: #f04747;
}

.voice-call-stage__ctrl.is-muted .voice-call-stage__icon-mic {
  display: none;
}

.voice-call-stage__ctrl.is-muted .voice-call-stage__icon-mic-off {
  display: block;
  width: 20px;
  height: 20px;
}

.voice-call-stage__ctrl--hangup {
  width: 56px;
  height: 52px;
  border-radius: 10px;
  background: #ed4245;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.voice-call-stage__ctrl--hangup:hover:not(:disabled) {
  background: #da373c;
  filter: none;
}

.voice-call-stage__ctrl--hangup svg {
  width: 24px;
  height: 24px;
  transform: rotate(135deg);
}

@keyframes voiceCallPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(88, 101, 242, 0);
  }
}

@keyframes voiceCallRingRipple {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.22);
    opacity: 0;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .voice-call-stage {
    min-height: 180px;
    padding: 20px 12px 56px;
  }

  .voice-call-stage__participants {
    gap: 20px;
  }

  .voice-call-tile {
    width: 76px;
    height: 76px;
    padding: 6px;
  }

  .voice-call-tile__avatar.discord-avatar,
  .voice-call-tile__avatar {
    flex-basis: 64px !important;
    width: 64px !important;
    height: 64px !important;
    min-width: 64px;
    min-height: 64px;
    max-width: 64px;
    max-height: 64px;
    font-size: 22px;
  }

  .voice-call-stage__bar {
    gap: 8px;
    bottom: 10px;
  }

  .voice-call-stage__group {
    padding: 4px;
  }

  .voice-call-stage__ctrl {
    width: 36px;
    height: 36px;
  }

  .voice-call-stage__caret {
    width: 14px;
    height: 36px;
  }

  .voice-call-stage__ctrl--hangup {
    width: 44px;
    height: 44px;
  }
}


/* ===== Server joke overlay «НЕТ» ===== */
.server-no-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.server-no-overlay.hidden {
  display: none !important;
}

.server-no-overlay__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(220, 40, 40, 0.28), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(88, 101, 242, 0.18), transparent 45%),
    #050507;
}

.server-no-overlay__noise {
  position: absolute;
  inset: -20%;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: serverNoNoise 0.35s steps(2) infinite;
  pointer-events: none;
}

.server-no-overlay__flash {
  position: absolute;
  inset: 0;
  background: rgba(255, 40, 40, 0.22);
  opacity: 0;
  pointer-events: none;
  animation: serverNoFlash 2.4s ease-in-out infinite;
}

.server-no-overlay__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.server-no-overlay__particle {
  position: absolute;
  top: -12px;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #fff, #ff4d4d);
  opacity: 0.75;
  animation-name: serverNoFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.server-no-overlay__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  animation: serverNoShake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.server-no-overlay__glitch {
  position: relative;
  margin: 0;
  color: #fff;
  font-size: clamp(72px, 18vw, 160px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 0.9;
  text-shadow:
    0 0 24px rgba(255, 60, 60, 0.55),
    0 0 60px rgba(255, 60, 60, 0.25);
  animation: serverNoPulse 1.6s ease-in-out infinite;
}

.server-no-overlay__glitch::before,
.server-no-overlay__glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent;
}

.server-no-overlay__glitch::before {
  left: 3px;
  color: #5eead4;
  clip-path: inset(0 0 55% 0);
  animation: serverNoGlitchA 2.2s infinite linear alternate-reverse;
}

.server-no-overlay__glitch::after {
  left: -3px;
  color: #ff4d6d;
  clip-path: inset(45% 0 0 0);
  animation: serverNoGlitchB 1.7s infinite linear alternate-reverse;
}

.server-no-overlay__sub {
  margin: 0;
  max-width: 28ch;
  color: #c4c7ce;
  font-size: clamp(15px, 2.4vw, 20px);
  font-weight: 600;
  line-height: 1.4;
}

.server-no-overlay__back {
  margin-top: 10px;
  min-width: 160px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: #5865f2;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.35);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.server-no-overlay__back:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(88, 101, 242, 0.45);
}

.server-no-overlay__back:active {
  transform: translateY(1px);
}

@keyframes serverNoNoise {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-3%, 2%); }
}

@keyframes serverNoFlash {
  0%, 88%, 100% { opacity: 0; }
  90% { opacity: 1; }
  93% { opacity: 0.15; }
  96% { opacity: 0.7; }
}

@keyframes serverNoFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.85; }
  100% { transform: translateY(110vh) rotate(220deg); opacity: 0; }
}

@keyframes serverNoShake {
  0% { transform: translate(0, 0) scale(0.92); opacity: 0; }
  20% { transform: translate(-8px, 3px) scale(1.02); opacity: 1; }
  40% { transform: translate(7px, -4px) scale(1); }
  60% { transform: translate(-5px, 2px); }
  80% { transform: translate(3px, -1px); }
  100% { transform: translate(0, 0); }
}

@keyframes serverNoPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.03); filter: brightness(1.15); }
}

@keyframes serverNoGlitchA {
  0% { transform: translate(0); }
  20% { transform: translate(-4px, 2px); }
  40% { transform: translate(3px, -1px); }
  60% { transform: translate(-2px, 0); }
  80% { transform: translate(5px, 1px); }
  100% { transform: translate(0); }
}

@keyframes serverNoGlitchB {
  0% { transform: translate(0); }
  25% { transform: translate(4px, -2px); }
  50% { transform: translate(-5px, 1px); }
  75% { transform: translate(2px, 2px); }
  100% { transform: translate(0); }
}

@media (prefers-reduced-motion: reduce) {
  .server-no-overlay__noise,
  .server-no-overlay__flash,
  .server-no-overlay__particle,
  .server-no-overlay__content,
  .server-no-overlay__glitch,
  .server-no-overlay__glitch::before,
  .server-no-overlay__glitch::after {
    animation: none !important;
  }
}
