* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

:root {
  --topbar-height: 56px;
}

#site-topbar-root {
  display: block;
  min-height: var(--topbar-height, 72px);
}

#site-topbar-root[data-topbar-auth-only='true']:empty {
  display: none;
  min-height: 0;
  height: 0;
}

body.has-topbar {
  padding-top: var(--topbar-height, 72px);
}

body.has-topbar #site-topbar-root {
  min-height: 0;
  height: 0;
}

html.social-topbar-pending .home-topbar,
html.social-topbar-pending .manage-topbar,
html.social-topbar-pending .annonce-topbar,
body.has-social-topbar .home-topbar,
body.has-social-topbar .manage-topbar,
body.has-social-topbar .annonce-topbar,
[data-hidden-by-social-topbar='true'] {
  display: none !important;
}

body.has-social-topbar .home-shell,
body.has-social-topbar .annonces-shell,
body.has-social-topbar .create-shell,
body.has-social-topbar .manage-shell,
body.has-social-topbar .annonce-shell {
  margin-top: 14px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  background: rgba(8, 19, 29, 0.86);
  border-bottom: none;
  backdrop-filter: blur(14px);
  font-family: "Poppins", sans-serif;
  height: var(--topbar-height, 72px);
  min-height: var(--topbar-height, 72px);
  overflow: visible;
}

@media (min-width: 901px) {
  body.pref-light-mode .topbar {
    height: var(--topbar-height, 72px);
    min-height: var(--topbar-height, 72px);
    padding: 0 22px;
  }
}

.topbar-mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(15,23,42,0.74);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.topbar-mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #f8fafc;
}

.topbar-mobile-drawer-backdrop {
  display: none;
}

.topbar-mobile-drawer {
  display: none;
}

.topbar-brand-link {
  justify-self: start;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  line-height: 0;
  color: #f8fafc;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
}

.topbar-brand-logo {
  width: clamp(220px, 24vw, 300px);
  height: 44px;
  object-fit: contain;
  object-position: center center;
  display: block;
  flex: 0 0 auto;
  filter: saturate(1.08) brightness(1.03);
}

.topbar-brand-alpha {
  display: inline-block;
  margin-left: clamp(-72px, -5vw, -24px);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(248, 250, 252, 0.4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: middle;
  line-height: 1.2;
}

.topbar-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: none;
}

.topbar-link {
  position: relative;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  min-height: 44px;
  padding: 8px 16px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.18s ease;
}

.topbar-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4fc8, #ff7ad8);
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.topbar-link:hover {
  color: #ff7ad8;
}

.topbar-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.topbar-link.active {
  color: #ff7ad8;
}

.topbar-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (min-width: 901px) and (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(170px, 0.82fr) auto minmax(170px, 0.82fr);
    gap: 8px;
    padding: 0 14px;
  }

  .topbar-brand-logo {
    width: clamp(170px, 20vw, 220px);
  }

  .topbar-nav {
    gap: 2px;
  }

  .topbar-link {
    font-size: 14px;
    min-height: 40px;
    padding: 7px 10px 9px;
  }

  .topbar-link::after {
    left: 10px;
    right: 10px;
  }

  .topbar-quick-actions {
    gap: 6px;
  }

  .topbar-icon-btn,
  .topbar-user {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 1181px) and (max-width: 1320px) {
  .topbar {
    grid-template-columns: minmax(210px, 0.88fr) auto minmax(170px, 0.88fr);
    gap: 10px;
    padding: 0 18px;
  }

  .topbar-brand-logo {
    width: clamp(210px, 19vw, 250px);
  }

  .topbar-nav {
    gap: 4px;
  }

  .topbar-link {
    font-size: 15px;
    padding: 7px 11px 9px;
  }

  .topbar-link::after {
    left: 11px;
    right: 11px;
  }
}

.topbar-user-menu {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2147483600;
}

.topbar-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar-icon-btn {
  width: 44px;
  height: 44px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(15,23,42,0.72);
  color: #f8fafc;
  font: inherit;
  cursor: pointer;
}

.topbar-icon-btn:hover {
  border-color: rgba(94, 234, 212, 0.5);
  background: rgba(45,212,191,0.12);
}

.topbar-icon-btn.active {
  border-color: rgba(94, 234, 212, 0.6);
  background: rgba(45,212,191,0.2);
  box-shadow: 0 8px 20px rgba(45,212,191,0.24);
}

.topbar-icon-svg {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-icon-svg .topbar-avatar-menu-icon-img {
  width: 23px;
  height: 23px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(200, 164, 255, 0.38));
}

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

.topbar-icon-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f59e0b, #d97706);
  border: 1px solid rgba(0, 0, 0, 0.24);
  color: #fff7ed;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
  pointer-events: none;
}

body.pref-light-mode .topbar-icon-badge {
  background: linear-gradient(180deg, #f59e0b, #ea580c);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

body.pref-light-mode .tc-presence-avatar::after {
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 1px rgba(215, 154, 197, 0.55);
}

.topbar-user {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(94, 234, 212, 0.34);
  border-radius: 999px;
  background: rgba(15,23,42,0.72);
  color: #f8fafc;
  cursor: pointer;
  overflow: visible;
  position: relative;
}

.topbar-user-menu-badge {
  position: absolute;
  left: -3px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(202, 159, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(54, 31, 86, 0.96), rgba(30, 18, 54, 0.96));
  color: #e9ddff;
  box-shadow:
    0 8px 18px rgba(10, 4, 24, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: translate(-8%, 8%);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  z-index: 4;
}

.topbar-user-menu-badge-chevron {
  width: 7px;
  height: 9px;
  display: block;
  background: currentColor;
  filter: drop-shadow(0 0 5px rgba(202, 159, 255, 0.42));
  -webkit-mask: url('/assets/icons/icône chevron.svg') center / contain no-repeat;
  mask: url('/assets/icons/icône chevron.svg') center / contain no-repeat;
  transform: rotate(90deg);
}

.topbar-user:hover .topbar-user-menu-badge,
.topbar-user[aria-expanded='true'] .topbar-user-menu-badge {
  border-color: rgba(255, 122, 216, 0.48);
  background:
    linear-gradient(180deg, rgba(76, 43, 118, 0.98), rgba(39, 22, 67, 0.98));
  color: #ffd4ef;
  transform: translate(-8%, 8%) scale(1.06);
}

body.pref-light-mode .topbar-user-menu-badge {
  border-color: rgba(190, 24, 93, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 249, 252, 0.96), rgba(250, 230, 244, 0.94));
  color: #7a2858;
  box-shadow:
    0 8px 18px rgba(190, 24, 93, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.56) inset;
}

.topbar-user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.topbar-user-fallback {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-user[data-user-tooltip]:hover::after,
.topbar-user[data-user-tooltip]:focus-visible::after {
  content: attr(data-user-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  width: max-content;
  max-width: min(220px, calc(100vw - 16px));
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(125, 154, 201, 0.38);
  background: linear-gradient(165deg, rgba(8, 18, 38, 0.98), rgba(13, 29, 54, 0.98));
  color: #e2e8f0;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  overflow: hidden;
  writing-mode: horizontal-tb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.42);
  z-index: 1215;
  pointer-events: none;
}

.topbar-user[data-user-tooltip]:hover::before,
.topbar-user[data-user-tooltip]:focus-visible::before {
  content: '';
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  width: 9px;
  height: 9px;
  border-left: 1px solid rgba(125, 154, 201, 0.38);
  border-top: 1px solid rgba(125, 154, 201, 0.38);
  background: rgba(10, 23, 44, 0.98);
  transform: translateX(-50%) rotate(45deg);
  z-index: 1214;
  pointer-events: none;
}

.topbar-user[aria-expanded='true']::before,
.topbar-user[aria-expanded='true']::after {
  content: none;
}

.tc-presence-avatar {
  position: relative;
  overflow: visible !important;
}

.tc-presence-avatar > img,
.tc-presence-avatar > span {
  border-radius: inherit;
  clip-path: inset(0 round 999px);
}

.tc-presence-avatar::after {
  content: '';
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: clamp(9px, calc(100% * 0.24), 14px);
  height: clamp(9px, calc(100% * 0.24), 14px);
  border-radius: 999px;
  transform: translate(50%, 50%);
  border: 2px solid rgba(9, 12, 25, 0.96);
  background: #9ca3af;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12);
  z-index: 2;
  pointer-events: none;
}

.tc-presence-avatar[data-presence-status='online']::after {
  background: #22c55e;
  animation: presencePulse 2.6s ease-in-out infinite;
}

.tc-presence-avatar[data-presence-status='busy']::after {
  background: #ef4444;
}

.tc-presence-avatar[data-presence-status='away']::after {
  background: #f59e0b;
}

.tc-presence-avatar[data-presence-status='offline']::after {
  background: #9ca3af;
}

#global-chat-hub .tc-presence-avatar::after,
#global-chat-windows .tc-presence-avatar::after {
  transform: translate(68%, 68%);
}

.topbar-user.tc-presence-avatar::after {
  transform: translate(68%, 68%);
}

@keyframes presencePulse {
  0%, 100% {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 0 rgba(34, 197, 94, 0.14);
  }
  50% {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 3px rgba(34, 197, 94, 0.09);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-presence-avatar[data-presence-status='online']::after {
    animation: none;
  }
}

.topbar-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(410px, calc(100vw - 28px));
  padding: 12px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% -12%, rgba(255, 78, 210, 0.26), transparent 42%),
    radial-gradient(circle at 106% 4%, rgba(120, 93, 255, 0.26), transparent 48%),
    linear-gradient(160deg, rgba(23, 12, 45, 0.98), rgba(12, 8, 29, 0.98));
  border: 1px solid rgba(202, 159, 255, 0.32);
  box-shadow:
    0 34px 84px rgba(3, 2, 15, 0.64),
    0 0 34px rgba(255, 72, 207, 0.12),
    0 0 0 1px rgba(255, 122, 216, 0.12) inset;
  backdrop-filter: blur(22px);
  color: #f7f0ff;
  z-index: 2147483646;
}

.topbar-user-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  border-left: 1px solid rgba(202, 159, 255, 0.32);
  border-top: 1px solid rgba(202, 159, 255, 0.32);
  background: rgba(23, 12, 45, 0.98);
  pointer-events: none;
}

.topbar-avatar-menu-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.028)),
    rgba(19, 10, 39, 0.42);
  overflow: visible;
}

.topbar-avatar-menu-avatar {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 17px;
  padding: 3px;
  background: linear-gradient(135deg, #ff4fd8, #7c5cff 58%, #47f4bf);
  box-shadow:
    0 14px 30px rgba(255, 79, 216, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.topbar-avatar-menu-avatar::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 14px;
  background: rgba(13, 8, 28, 0.82);
}

.topbar-avatar-menu-avatar-img,
.topbar-avatar-menu-avatar-fallback {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 14px;
}

.topbar-avatar-menu-avatar-img {
  display: block;
  object-fit: cover;
}

.topbar-avatar-menu-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff4fd8, #7c5cff);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 900;
}

.topbar-avatar-menu-avatar.tc-presence-avatar::after {
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(17, 8, 35, 0.98);
}

.topbar-avatar-menu-identity {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
  overflow: visible;
}

.topbar-avatar-menu-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.15;
}

.topbar-avatar-menu-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-avatar-menu-verified {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
  color: #38bdf8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.45));
}

.topbar-avatar-menu-verified svg,
.topbar-avatar-premium-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.topbar-avatar-menu-plan {
  color: #cbb9ec;
  font-size: 0.74rem;
  font-weight: 700;
}

.topbar-avatar-presence-chip {
  appearance: none;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: #d8fff0;
  background: rgba(56, 255, 184, 0.1);
  border: 1px solid rgba(83, 238, 192, 0.3);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.topbar-avatar-presence-chip:hover,
.topbar-avatar-presence-chip.is-open {
  transform: translateY(-1px);
  color: #ffffff;
  background: rgba(56, 255, 184, 0.16);
  border-color: rgba(83, 238, 192, 0.52);
}

.topbar-avatar-presence-chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  display: inline-block;
  margin-left: 1px;
  color: #cbb9ec;
  background: currentColor;
  -webkit-mask: url('/assets/icons/icône chevron.svg') center / contain no-repeat;
  mask: url('/assets/icons/icône chevron.svg') center / contain no-repeat;
  transform: rotate(90deg);
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.topbar-avatar-presence-chip:hover .topbar-avatar-presence-chevron,
.topbar-avatar-presence-chip.is-open .topbar-avatar-presence-chevron {
  color: #d8fff0;
}

.topbar-avatar-presence-chip.is-open .topbar-avatar-presence-chevron {
  transform: rotate(-90deg);
}

.topbar-avatar-presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #53eec0;
  box-shadow: 0 0 10px rgba(83, 238, 192, 0.56);
}

.topbar-avatar-presence-chip--away {
  color: #ffe6a8;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.32);
}

.topbar-avatar-presence-chip--away .topbar-avatar-presence-dot {
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.48);
}

.topbar-avatar-presence-chip--busy {
  color: #ffd5dc;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.32);
}

.topbar-avatar-presence-chip--busy .topbar-avatar-presence-dot {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.48);
}

.topbar-avatar-presence-chip--offline {
  color: #dce2ee;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.32);
}

.topbar-avatar-presence-chip--offline .topbar-avatar-presence-dot {
  background: #94a3b8;
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.38);
}

.topbar-avatar-menu-sparkles {
  position: absolute;
  top: 8px;
  right: 22px;
  z-index: 0;
  width: 74px;
  height: 56px;
  background: url('/assets/icons/icone-etoiles-violettes.svg') center / contain no-repeat;
  opacity: 0.78;
  filter:
    drop-shadow(0 0 12px rgba(216, 122, 255, 0.3))
    drop-shadow(0 0 22px rgba(124, 92, 255, 0.16));
  pointer-events: none;
}

.topbar-avatar-premium-card {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(255, 122, 216, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 78, 210, 0.18), rgba(124, 92, 255, 0.11)),
    rgba(255, 255, 255, 0.045);
  color: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 16px 34px rgba(255, 78, 210, 0.13),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.topbar-avatar-premium-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 122, 216, 0.56);
  background:
    linear-gradient(135deg, rgba(255, 78, 210, 0.24), rgba(124, 92, 255, 0.16)),
    rgba(255, 255, 255, 0.06);
}

.topbar-avatar-premium-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #ffe98d;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 79, 216, 0.24));
}

.topbar-avatar-premium-icon svg {
  width: 17px;
  height: 17px;
}

.topbar-avatar-premium-icon .topbar-avatar-menu-icon-img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.topbar-avatar-premium-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.topbar-avatar-premium-copy strong {
  font-size: 0.84rem;
  line-height: 1.15;
}

.topbar-avatar-premium-copy span {
  color: #d9c9f6;
  font-size: 0.7rem;
  line-height: 1.35;
}

.topbar-avatar-menu-separator {
  height: 1px;
  margin: 10px 0;
  background: linear-gradient(90deg, transparent, rgba(202, 159, 255, 0.26), transparent);
}

.topbar-avatar-menu-section-title {
  margin: 0 2px 7px;
  color: #a995c7;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-avatar-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.topbar-avatar-shortcut {
  position: relative;
  min-width: 0;
  min-height: 58px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  padding: 8px 6px;
  border: 1px solid rgba(202, 159, 255, 0.18);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.026)),
    rgba(255, 255, 255, 0.032);
  color: #efe8ff;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.topbar-avatar-shortcut:hover,
.topbar-avatar-shortcut.active {
  transform: translateY(-1px);
  border-color: rgba(255, 122, 216, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 122, 216, 0.16), rgba(124, 92, 255, 0.14)),
    rgba(255, 255, 255, 0.045);
  color: #ffffff;
}

.topbar-avatar-shortcut-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  color: #ffd4ef;
  border: 0;
  background: transparent;
}

.topbar-avatar-shortcut-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.topbar-avatar-shortcut-icon .topbar-avatar-menu-icon-img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(200, 164, 255, 0.34));
}

.topbar-avatar-shortcut-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.topbar-avatar-shortcut-badge,
.topbar-avatar-shortcut .topbar-user-dropdown-item-badge {
  position: absolute;
  top: 8px;
  right: 8px;
}

.topbar-avatar-tools-list {
  display: grid;
  gap: 3px;
}

.topbar-user-dropdown-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #efe8ff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.topbar-avatar-tool-item {
  min-height: 39px;
}

.topbar-user-dropdown-item-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.topbar-user-dropdown-item-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #ffd4ef;
  transition:
    color 0.18s ease;
}

.topbar-user-dropdown-item-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.topbar-user-dropdown-item-icon .topbar-avatar-menu-icon-img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(200, 164, 255, 0.32));
}

.topbar-user-dropdown-item-trailing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #bfaee0;
  font-size: 0.7rem;
  font-weight: 800;
}

.topbar-user-dropdown-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  color: #a995c7;
  font-size: 17px;
  line-height: 1;
  transition: transform 0.18s ease, color 0.18s ease;
}

.topbar-user-dropdown-item:hover .topbar-user-dropdown-chevron,
.topbar-avatar-premium-card:hover .topbar-user-dropdown-chevron {
  color: #ffffff;
  transform: translateX(2px);
}

.topbar-user-dropdown-item-badge,
.topbar-avatar-shortcut-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff7ad8, #f59e0b);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(255, 122, 216, 0.22);
}

.topbar-user-dropdown-submenu {
  position: relative;
  margin: 0;
}

.topbar-user-dropdown-item--submenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topbar-user-dropdown-submenu-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  opacity: 0.95;
  transition: transform 0.18s ease;
}

.topbar-user-dropdown-item--submenu.is-open .topbar-user-dropdown-submenu-arrow {
  transform: rotate(180deg);
}

.topbar-user-dropdown-submenu-panel {
  padding: 10px;
  border-radius: 15px;
  border: 1px solid rgba(202, 159, 255, 0.24);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 122, 216, 0.14), transparent 45%),
    linear-gradient(160deg, rgba(24, 13, 45, 0.98), rgba(14, 9, 31, 0.98));
  box-shadow:
    0 26px 64px rgba(3, 2, 15, 0.54),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.topbar-presence-floating-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(252px, calc(100vw - 48px));
  transform: none;
  z-index: 4;
}

.topbar-presence-floating-panel.is-flipped {
  right: 0;
  left: auto;
}

.topbar-presence-panel-title {
  margin: 2px 2px 8px;
  color: #a995c7;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-user-dropdown-item--presence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 9px;
  color: #d9c9f6;
  font-weight: 700;
  border: 1px solid transparent;
}

.topbar-presence-option-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar-presence-option-copy {
  display: grid;
  gap: 2px;
}

.topbar-presence-option-copy span:first-child {
  color: #f7f0ff;
  font-size: 0.78rem;
  line-height: 1.1;
}

.topbar-presence-option-copy span:last-child {
  color: #a995c7;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.2;
}

.topbar-presence-option-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.45);
  background: #94a3b8;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.45);
}

.topbar-presence-option-dot--auto {
  background: linear-gradient(135deg, #38bdf8, #a78bfa);
}

.topbar-presence-option-dot--online {
  background: #22c55e;
}

.topbar-presence-option-dot--busy {
  background: #ef4444;
}

.topbar-presence-option-dot--away {
  background: #f59e0b;
}

.topbar-presence-option-dot--offline {
  background: #94a3b8;
}

.topbar-presence-option-check {
  min-width: 16px;
  text-align: center;
  color: #53eec0;
  font-weight: 900;
}

.topbar-user-dropdown-item--presence.is-selected {
  border-color: rgba(83, 238, 192, 0.28);
  background: linear-gradient(135deg, rgba(83, 238, 192, 0.12), rgba(124, 92, 255, 0.1));
  color: #f8fafc;
}

.topbar-presence-duration-btn {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #efe8ff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.topbar-presence-duration-btn:hover {
  border-color: rgba(255, 122, 216, 0.2);
  background: linear-gradient(135deg, rgba(255, 122, 216, 0.12), rgba(124, 92, 255, 0.12));
}

.topbar-presence-panel-note {
  margin: 8px 2px 0;
  color: #9f8bbb;
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1.35;
}

.topbar-user-dropdown-item:hover {
  background:
    linear-gradient(135deg, rgba(255, 122, 216, 0.12), rgba(124, 92, 255, 0.12));
  border-color: rgba(255, 122, 216, 0.2);
  color: #ffffff;
  transform: translateX(1px);
}

.topbar-user-dropdown-item.active {
  background:
    linear-gradient(135deg, rgba(255, 79, 200, 0.2), rgba(124, 92, 255, 0.2));
  border-color: rgba(255, 122, 216, 0.32);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(124, 92, 255, 0.16);
}

.topbar-user-dropdown-item:hover .topbar-user-dropdown-item-icon {
  color: #ffffff;
}

.topbar-user-dropdown-item.danger {
  min-height: 40px;
  justify-content: center;
  color: #d64a83;
  border-color: rgba(248, 113, 113, 0.22);
  background: rgba(248, 113, 113, 0.055);
}

.topbar-user-dropdown-item.danger .topbar-user-dropdown-item-icon {
  color: #d64a83;
}

.topbar-user-dropdown-item.danger:hover {
  background: rgba(220,38,38,0.12);
}

.topbar-avatar-logout-btn .topbar-user-dropdown-item-main {
  flex: 0 0 auto;
  justify-content: center;
  gap: 8px;
}

.topbar-avatar-logout-btn .topbar-user-dropdown-item-icon {
  width: 21px;
  height: 21px;
}

.topbar-avatar-logout-btn .topbar-avatar-menu-icon-img {
  width: 19px;
  height: 19px;
  filter: drop-shadow(0 0 7px rgba(214, 74, 131, 0.42));
}

.topbar-user-dropdown-item--mobile-only {
  display: none;
}

body.pref-light-mode #site-topbar-root .topbar-user-dropdown {
  background:
    radial-gradient(circle at 10% -12%, rgba(244, 114, 182, 0.2), transparent 42%),
    radial-gradient(circle at 106% 4%, rgba(147, 51, 234, 0.16), transparent 48%),
    linear-gradient(160deg, rgba(255, 252, 254, 0.98), rgba(255, 242, 249, 0.98));
  border-color: rgba(190, 24, 93, 0.22);
  color: #4a1633;
  box-shadow:
    0 24px 58px rgba(190, 24, 93, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.76) inset;
}

body.pref-light-mode #site-topbar-root .topbar-user-dropdown::before {
  border-color: rgba(190, 24, 93, 0.22);
  background: rgba(255, 249, 253, 0.98);
}

body.pref-light-mode #site-topbar-root .topbar-avatar-menu-header,
body.pref-light-mode #site-topbar-root .topbar-avatar-shortcut,
body.pref-light-mode #site-topbar-root .topbar-avatar-premium-card,
body.pref-light-mode #site-topbar-root .topbar-user-dropdown-submenu-panel {
  border-color: rgba(190, 24, 93, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 244, 249, 0.7)),
    rgba(255,255,255,0.72);
}

body.pref-light-mode #site-topbar-root .topbar-avatar-menu-name,
body.pref-light-mode #site-topbar-root .topbar-avatar-premium-copy strong,
body.pref-light-mode #site-topbar-root .topbar-presence-option-copy span:first-child {
  color: #4a1633;
}

body.pref-light-mode #site-topbar-root .topbar-avatar-menu-plan,
body.pref-light-mode #site-topbar-root .topbar-avatar-premium-copy span,
body.pref-light-mode #site-topbar-root .topbar-presence-panel-note,
body.pref-light-mode #site-topbar-root .topbar-user-dropdown-item-trailing,
body.pref-light-mode #site-topbar-root .topbar-avatar-menu-section-title,
body.pref-light-mode #site-topbar-root .topbar-presence-panel-title,
body.pref-light-mode #site-topbar-root .topbar-presence-option-copy span:last-child {
  color: #7a526c;
}

body.pref-light-mode #site-topbar-root .topbar-user-dropdown-item-icon {
  color: #7a2858;
}

body.pref-light-mode #site-topbar-root .topbar-user-dropdown-item:hover {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.16), rgba(192, 132, 252, 0.14));
  border-color: rgba(190, 24, 93, 0.18);
  color: #5a1738;
}

body.pref-light-mode #site-topbar-root .topbar-user-dropdown-item:hover .topbar-user-dropdown-item-icon {
  color: #5a1738;
}

body.pref-light-mode #site-topbar-root .topbar-user-dropdown-item.active {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.2), rgba(192, 132, 252, 0.16));
  border-color: rgba(190, 24, 93, 0.2);
  color: #4a1633;
  box-shadow: 0 10px 22px rgba(190, 24, 93, 0.1);
}

body.pref-light-mode #site-topbar-root .topbar-user-dropdown-item-badge,
body.pref-light-mode #site-topbar-root .topbar-avatar-shortcut-badge {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

body.pref-light-mode #site-topbar-root .topbar-avatar-shortcut {
  color: #5a1738;
}

body.pref-light-mode #site-topbar-root .topbar-avatar-premium-icon {
  color: #7a2858;
  border: 0;
  background: transparent;
}

body.pref-light-mode #site-topbar-root .topbar-avatar-shortcut-icon {
  color: #7a2858;
  border-color: transparent;
  background: transparent;
}

body.pref-light-mode #site-topbar-root .topbar-user-dropdown-submenu-panel {
  box-shadow:
    0 24px 58px rgba(190, 24, 93, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.76) inset;
}

body.pref-light-mode .topbar-presence-option-dot {
  border-color: rgba(255,255,255,0.88);
  box-shadow: 0 0 0 1px rgba(213, 150, 184, 0.45);
}

body.pref-light-mode #site-topbar-root .topbar-user-dropdown-item--presence.is-selected {
  border-color: rgba(16, 185, 129, 0.28);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(192, 132, 252, 0.12));
  color: #164e3b;
}

body.pref-light-mode #site-topbar-root .topbar-user-dropdown-item.danger {
  color: #d64a83;
}

body.pref-light-mode #site-topbar-root .topbar-user-dropdown-item.danger:hover {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(244, 114, 182, 0.12));
  border-color: rgba(244, 63, 94, 0.18);
}

body.pref-light-mode .topbar-user-dropdown-item.danger .topbar-user-dropdown-item-icon {
  color: #d64a83;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 0 10px;
  }

  .topbar-mobile-menu-btn {
    display: inline-flex;
  }

  .topbar-brand-link {
    justify-self: start;
    font-size: 18px;
    gap: 0;
    white-space: nowrap;
  }

  .topbar-brand-logo {
    width: clamp(170px, 36vw, 230px);
    height: 42px;
  }

  .topbar-brand-alpha {
    margin-left: -18px;
  }

  .topbar-nav,
  .topbar-quick-actions {
    display: none;
  }

  .topbar-user-menu {
    gap: 0;
  }

  .topbar-user {
    width: 40px;
    height: 40px;
  }

  .topbar-user-menu-badge {
    left: -2px;
    bottom: -1px;
    width: 17px;
    height: 17px;
    transform: translate(-6%, 6%);
  }

  .topbar-user:hover .topbar-user-menu-badge,
  .topbar-user[aria-expanded='true'] .topbar-user-menu-badge {
    transform: translate(-6%, 6%) scale(1.06);
  }

  .topbar-user-dropdown-item--mobile-only {
    display: flex;
  }

  .topbar-user-dropdown {
    right: -2px;
    width: min(360px, calc(100vw - 16px));
    max-height: calc(100vh - var(--topbar-height, 56px) - 18px);
    padding: 12px;
    overflow-y: auto;
  }

  .topbar-avatar-menu-header {
    min-height: 82px;
    padding: 12px;
  }

  .topbar-avatar-menu-avatar {
    width: 56px;
    height: 56px;
    border-radius: 20px;
  }

  .topbar-avatar-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-avatar-shortcut {
    min-height: 72px;
  }

  .topbar-presence-floating-panel {
    position: static;
    width: 100%;
    margin-top: 10px;
    transform: none;
  }

  .topbar-presence-floating-panel.is-flipped {
    right: auto;
  }

  .topbar-avatar-menu-sparkles {
    right: 18px;
    width: 66px;
    height: 50px;
  }

  .topbar-mobile-drawer-backdrop {
    display: block;
    position: fixed;
    inset: var(--topbar-height, 72px) 0 0;
    z-index: 1188;
    background: rgba(2, 6, 23, 0.5);
  }

  .topbar-mobile-drawer {
    display: block;
    position: fixed;
    left: 8px;
    top: var(--topbar-height, 72px);
    bottom: 8px;
    width: min(322px, calc(100vw - 16px));
    z-index: 1189;
    padding: 14px 10px 16px;
    overflow-y: auto;
    border: 1px solid rgba(124, 99, 208, 0.38);
    border-radius: 16px;
    background:
      radial-gradient(120% 80% at 0% 0%, rgba(255, 74, 184, 0.16), rgba(255, 74, 184, 0) 42%),
      radial-gradient(120% 90% at 100% 90%, rgba(61, 103, 255, 0.14), rgba(61, 103, 255, 0) 45%),
      linear-gradient(180deg, rgba(13, 10, 40, 0.98), rgba(8, 7, 27, 0.98));
    box-shadow: 0 26px 42px rgba(3, 3, 14, 0.56);
  }

  .topbar-mobile-drawer.hidden,
  .topbar-mobile-drawer-backdrop.hidden {
    display: none !important;
  }

  .topbar-mobile-profile {
    display: grid;
    gap: 10px;
    padding: 6px 4px 12px;
  }

  .topbar-mobile-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }

  .topbar-mobile-brand-logo {
    width: 108px;
    height: 34px;
    object-fit: contain;
    display: block;
  }

  .topbar-mobile-brand-alpha {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(138, 124, 191, 0.38);
    background: rgba(126, 109, 191, 0.18);
    color: #d8d4ee;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .topbar-mobile-userline {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .topbar-mobile-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 16px rgba(255, 82, 197, 0.3);
  }

  .topbar-mobile-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .topbar-mobile-user-meta {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .topbar-mobile-user-name {
    color: #f4f2ff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
  }

  .topbar-mobile-user-presence {
    font-size: 14px;
    font-weight: 500;
  }

  .topbar-mobile-user-presence--online { color: #53ef84; }
  .topbar-mobile-user-presence--busy { color: #ff7171; }
  .topbar-mobile-user-presence--away { color: #ffb356; }
  .topbar-mobile-user-presence--offline { color: #bec3d4; }

  .topbar-mobile-menu-section {
    margin-top: 8px;
  }

  .topbar-mobile-menu-title {
    padding: 0 4px 8px;
    color: #ff62c5;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
  }

  .topbar-mobile-menu-group {
    border: 1px solid rgba(118, 100, 192, 0.34);
    border-radius: 14px;
    background: rgba(22, 17, 54, 0.78);
    overflow: hidden;
  }

  .topbar-mobile-link {
    width: 100%;
    border: 0;
    border-radius: 0;
    min-height: 52px;
    padding: 0 14px;
    background: transparent;
    color: #e8e4f7;
    font: inherit;
    font-weight: 500;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .topbar-mobile-link + .topbar-mobile-link {
    border-top: 1px solid rgba(129, 110, 200, 0.22);
  }

  .topbar-mobile-link-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }

  .topbar-mobile-link-icon {
    width: 24px;
    min-width: 24px;
    text-align: center;
    color: #c9c3ef;
    font-size: 20px;
    line-height: 1;
  }

  .topbar-mobile-link-end {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d6cff5;
    font-size: 22px;
    line-height: 1;
  }

  .topbar-mobile-link.active {
    color: #ffffff;
    background:
      radial-gradient(90% 120% at 0% 50%, rgba(110, 83, 244, 0.52), transparent 60%),
      linear-gradient(130deg, rgba(80, 50, 180, 0.9), rgba(188, 70, 169, 0.86));
    box-shadow: inset 0 0 0 1px rgba(255, 142, 220, 0.42), 0 8px 18px rgba(43, 26, 111, 0.36);
  }

  .topbar-mobile-link.active .topbar-mobile-link-icon {
    color: #fdfbff;
  }

  .topbar-mobile-pill {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ff5bbf, #ff2f99);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 6px 12px rgba(255, 51, 161, 0.34);
  }

  .topbar-mobile-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ff58bc;
    box-shadow: 0 0 10px rgba(255, 88, 188, 0.58);
  }

  body.pref-light-mode .topbar-mobile-menu-btn {
    border-color: rgba(190, 24, 93, 0.28);
    background: rgba(255,255,255,0.9);
  }

  body.pref-light-mode .topbar-mobile-menu-btn span {
    background: #6e2b52;
  }

  body.pref-light-mode .topbar-mobile-drawer-backdrop {
    background: rgba(91, 33, 68, 0.16);
  }

  body.pref-light-mode .topbar-mobile-drawer {
    border-right-color: rgba(190, 24, 93, 0.24);
    background:
      radial-gradient(circle at top left, rgba(244,114,182,0.15), transparent 34%),
      radial-gradient(circle at right, rgba(96,165,250,0.1), transparent 30%),
      rgba(255, 250, 253, 0.98);
    box-shadow: 24px 0 42px rgba(190, 24, 93, 0.18);
  }

  body.topbar-mobile-menu-open > :not(#site-topbar-root):not(#bug-report-modal):not(#bug-report-success-modal):not(#global-chat-hub):not(#global-chat-windows) {
    transform: none;
    transition: none;
  }

  body:not(.topbar-mobile-menu-open) > :not(#site-topbar-root):not(#bug-report-modal):not(#bug-report-success-modal):not(#global-chat-hub):not(#global-chat-windows) {
    transition: none;
  }
}

@media (max-width: 420px) {
  .topbar-brand-link {
    font-size: 16px;
  }

  .topbar-brand-logo {
    width: clamp(150px, 50vw, 200px);
    height: 38px;
  }

  .topbar-brand-alpha {
    font-size: 10px;
  }
}

/* Final palette override */
.topbar {
  background: #040418;
}

.topbar-nav {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Hard lock (must stay last): topbar palette */
.topbar {
  background: #040418 !important;
}

.topbar-nav {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Active topbar item: text + underline only (no violet pill background) */
.topbar-link.active,
.topbar-link[aria-current="page"] {
  background: transparent !important;
  box-shadow: none !important;
  color: #ff7ad8 !important;
}

.topbar-link.active::after,
.topbar-link[aria-current="page"]::after {
  opacity: 1 !important;
  transform: scaleX(1) !important;
}

