:root {
  --bg: #070911;
  --side: #0b0e16;
  --panel: #0e111b;
  --raised: #151927;
  --line: #ffffff0d;
  --text: #f7f8fb;
  --muted: #8891a3;
  --green: #a8ed55;
  --cyan: #56d6ff;
  --violet: #9878ff;
  --red: #ff6577;
  --glow: 0 0 28px #a8ed5524;
}

[data-theme="violet"] {
  --green: #a98bff;
  --cyan: #ef8fff;
  --glow: 0 0 28px #a98bff24;
}

[data-theme="cyan"] {
  --green: #54dcff;
  --cyan: #8bf8d5;
  --glow: 0 0 28px #54dcff24;
}

[data-theme="rose"] {
  --green: #ff7aa8;
  --cyan: #ffc1d6;
  --violet: #b889ff;
  --glow: 0 0 28px #ff7aa824;
}

[data-theme="sunset"] {
  --green: #ffad5c;
  --cyan: #ffd166;
  --violet: #ff718d;
  --glow: 0 0 28px #ffad5c24;
}

.high-contrast {
  --bg: #000;
  --side: #050505;
  --panel: #090909;
  --line: #ffffff38;
  --muted: #c4c8ce;
}

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
}

.pick-person.disabled {
  opacity: .55;
  cursor: not-allowed;
}

.pick-person.disabled input {
  cursor: not-allowed;
}

.compact-dashboard {
  min-height: 100%;
}

.friends-dashboard {
  position: relative;
  min-height: 100%;
  padding: 8px 0 30px;
  isolation: isolate;
}

.friends-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 210px;
  margin-bottom: 16px;
  padding: 35px 40px;
  border: 1px solid #ffffff10;
  border-radius: 25px;
  background:
    radial-gradient(circle at 88% 18%, #a8ed5520, transparent 30%),
    linear-gradient(120deg, #1a202de8, #11151fd9 55%, #162018d9);
  box-shadow: 0 30px 80px #0004, inset 0 1px #ffffff12;
}

.friends-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#ffffff04 1px, transparent 1px), linear-gradient(90deg, #ffffff04 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}

.friends-hero::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 25px var(--green);
  animation: scanLine 2.4s ease-in-out infinite;
}

.friends-hero > * {
  position: relative;
  z-index: 1;
}

.friends-hero h1 {
  margin: 15px 0 8px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -2.5px;
}

.friends-hero p {
  max-width: 520px;
  margin: 0;
  color: #9da6b4;
  font-size: 11px;
  line-height: 1.7;
}

.friends-emblem span {
  transform: rotate(8deg);
}

.friends-hero .primary-action,
.servers-hero .primary-action,
.game-hero > button {
  flex: 0 0 auto;
}

.friends-hero .hero-emblem,
.servers-hero .hero-emblem,
.game-hero .hero-emblem {
  margin-left: auto;
}

.primary-action {
  min-width: 140px;
  min-height: 46px;
  border: 1px solid #a8ed5550;
  border-radius: 16px;
  color: #08100b;
  background: linear-gradient(145deg, #c8ff79, #8ee23f);
  font-weight: 1000;
  box-shadow: 0 12px 30px #a8ed5520;
  cursor: pointer;
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px #a8ed5530;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.dashboard-stats article {
  position: relative;
  overflow: hidden;
  min-height: 90px;
  border: 1px solid #ffffff10;
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(145deg, #131927, #0c111a);
  box-shadow: inset 0 1px #ffffff0b;
}

.dashboard-stats article::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  right: -24px;
  bottom: -32px;
  border-radius: 999px;
  background: var(--green);
  filter: blur(34px);
  opacity: .14;
}

.dashboard-stats span {
  color: #858fa1;
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: 1.4px;
}

.dashboard-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 25px;
  line-height: 1;
}

.dashboard-stats small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.friend-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  border: 1px solid #ffffff10;
  border-radius: 20px;
  padding: 14px;
  color: var(--text);
  background: linear-gradient(145deg, #121824, #0d121b);
  text-align: left;
  box-shadow: inset 0 1px #ffffff0b;
}

.friend-card-main:hover {
  transform: translateY(-2px);
  border-color: #a8ed5538;
  background: linear-gradient(145deg, #182131, #101722);
}

.friend-card-main.has-unread {
  border-color: #a8ed5548;
  background:
    radial-gradient(circle at 100% 0%, #a8ed551c, transparent 28%),
    linear-gradient(145deg, #172131, #101722);
  box-shadow: inset 3px 0 var(--green), 0 18px 44px #0003;
}

.friend-card-main > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.friend-card-main strong {
  font-size: 14px;
}

.friend-card-main small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.friend-card-main b {
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--green);
  background: #a8ed5510;
  font-size: 10px;
}

.unread-dm-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.unread-dm-strip::-webkit-scrollbar {
  display: none;
}

.unread-dm-strip > span {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: 1.6px;
}

.unread-dm-strip button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid #a8ed5530;
  border-radius: 16px;
  padding: 7px 9px;
  color: var(--text);
  background: linear-gradient(145deg, #151b27, #0d121b);
  box-shadow: inset 0 1px #ffffff0b;
}

.unread-dm-strip .user-avatar {
  width: 28px;
  height: 28px;
}

.unread-dm-strip strong {
  font-size: 11px;
}

.unread-dm-strip b {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #10170b;
  background: var(--green);
  font-size: 9px;
}

.friends-request-panel {
  margin-bottom: 18px;
  border: 1px solid #ffffff10;
  border-radius: 22px;
  padding: 16px;
  background:
    radial-gradient(circle at 92% 10%, #a8ed5518, transparent 30%),
    linear-gradient(145deg, #121824, #0d121b);
  box-shadow: inset 0 1px #ffffff0b, 0 18px 50px #0003;
}

.friends-request-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.friend-request-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #ffffff10;
  border-radius: 18px;
  padding: 12px;
  background: #ffffff05;
}

.friend-request-card .user-avatar {
  width: 38px;
  height: 38px;
}

.friend-request-card strong,
.friend-request-card small {
  display: block;
}

.friend-request-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.friend-request-card footer {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.friend-request-card footer button,
.friend-request-card footer b {
  border: 1px solid #a8ed5530;
  border-radius: 12px;
  padding: 8px 10px;
  color: #10160b;
  background: linear-gradient(145deg, #c8ff79, #8ee23f);
  font-size: 10px;
  font-weight: 1000;
}

.friend-request-card footer button:last-child {
  border-color: #ffffff12;
  color: #cbd3dd;
  background: #ffffff08;
}

.friend-request-card footer b {
  color: var(--green);
  background: #a8ed5510;
}

#groupAddFriendSearch {
  width: 100%;
  min-height: 42px;
  margin: 8px 0;
  border: 1px solid #ffffff12;
  border-radius: 14px;
  padding: 0 13px;
  color: var(--text);
  background: #ffffff06;
}

#groupAddFriendSearch:focus {
  border-color: #a8ed5545;
  box-shadow: 0 0 0 3px #a8ed5510;
}

.servers-dashboard {
  position: relative;
  min-height: 100%;
  padding: 8px 0 30px;
  isolation: isolate;
}

.servers-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 210px;
  margin-bottom: 16px;
  padding: 35px 40px;
  border: 1px solid #ffffff10;
  border-radius: 25px;
  background:
    radial-gradient(circle at 88% 18%, #a8ed5520, transparent 30%),
    linear-gradient(120deg, #1a202de8, #11151fd9 55%, #162018d9);
  box-shadow: 0 30px 80px #0004, inset 0 1px #ffffff12;
}

.servers-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#ffffff04 1px, transparent 1px), linear-gradient(90deg, #ffffff04 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}

.servers-hero > * {
  position: relative;
  z-index: 1;
}

.servers-hero::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 25px var(--green);
  animation: scanLine 2.4s ease-in-out infinite;
}

.servers-hero h1 {
  max-width: 700px;
  margin: 15px 0 8px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -2.5px;
}

.servers-hero p {
  max-width: 520px;
  margin: 0;
  color: #9da6b4;
  font-size: 11px;
  line-height: 1.7;
}

.servers-emblem span {
  transform: rotate(-4deg);
}

.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.server-card-main {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  min-height: 132px;
  border: 1px solid #ffffff10;
  border-radius: 24px;
  padding: 16px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 15%, #a8ed5517, transparent 34%),
    linear-gradient(145deg, #121824, #0d121b);
  text-align: left;
  box-shadow: inset 0 1px #ffffff0b;
  cursor: pointer;
}

.server-card-main:hover {
  transform: translateY(-3px);
  border-color: #a8ed5548;
  box-shadow: 0 22px 50px #0005, 0 0 28px #a8ed5510;
}

.server-card-main.has-live-voice {
  border-color: #a8ed5545;
  background:
    radial-gradient(circle at 12% 15%, #a8ed5526, transparent 34%),
    linear-gradient(145deg, #152033, #0d121b);
  box-shadow: inset 3px 0 var(--green), 0 20px 50px #0004;
}

.server-orb {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #11180a;
  background: linear-gradient(145deg, #c8ff79, #8ee23f);
  font-size: 18px;
  font-weight: 1000;
  box-shadow: 0 12px 34px #a8ed5522;
}

.server-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.server-card-copy strong {
  font-size: 16px;
}

.server-card-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.server-channel-pills {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.server-channel-pills i {
  border: 1px solid #ffffff10;
  border-radius: 999px;
  padding: 7px 9px;
  color: #cbd5df;
  background: #ffffff06;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
}

.server-channel-pills i.live {
  border-color: #a8ed5545;
  color: #10170b;
  background: linear-gradient(145deg, #c8ff79, #8ee23f);
  box-shadow: 0 0 18px #a8ed5526;
}

[data-density="compact"] .side-item {
  min-height: 38px;
  padding-block: 5px;
}

[data-density="compact"] .message {
  margin-bottom: 1px;
  padding-block: 6px;
}

[data-density="compact"] .channel-item,
[data-density="compact"] .person {
  padding-block: 4px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #35402f transparent;
}

body {
  background:
    radial-gradient(circle at 43% -20%, #4e6e2928 0, transparent 33%),
    radial-gradient(circle at 93% 20%, #456cff10 0, transparent 28%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  z-index: 50;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(#ffffff018 1px, transparent 1px), linear-gradient(90deg, #ffffff018 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #0006, transparent 55%);
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #08100b;
  background: var(--green);
  font-weight: 900;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

button {
  transition: transform .18s ease, color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

button:not(:disabled):active {
  transform: scale(.96);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.app {
  grid-template-columns: 76px 286px minmax(400px, 1fr) 250px;
  background: transparent;
}

body.sidebar-collapsed .app {
  grid-template-columns: 76px minmax(520px, 1fr) 250px;
}

body.sidebar-collapsed .sidebar {
  position: fixed;
  z-index: 18;
  left: 76px;
  top: 0;
  bottom: 0;
  width: 286px;
  min-width: 286px;
  overflow: hidden;
  transform: translateX(-104%);
  transition: transform .2s ease, opacity .2s ease;
  opacity: 0;
  pointer-events: none;
  box-shadow: 24px 0 70px #0008;
}

body.sidebar-collapsed.sidebar-peek .sidebar {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

body.sidebar-collapsed .rail:hover + .sidebar,
body.sidebar-collapsed .sidebar:hover {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.main,
.messages {
  min-height: 0;
}

.rail {
  position: relative;
  z-index: 3;
  gap: 10px;
  padding: 17px 10px;
  border-right-color: #ffffff0b;
  background: #070910e8;
  backdrop-filter: blur(18px);
}

.rail-profile-dock {
  margin-top: auto;
  display: grid;
  gap: 9px;
  padding-top: 10px;
}

.rail-profile-dock button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff12;
  border-radius: 15px;
  color: #d9e3d0;
  background: #121621;
  font-size: 15px;
  font-weight: 900;
  overflow: hidden;
}

#railAvatarButton {
  padding: 0;
  border-color: #a8ed5528;
  background: #151b29;
  box-shadow: 0 0 0 1px #0008, 0 10px 24px #0005;
}

.rail-profile-dock img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.rail-profile-dock svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#railLogoutButton {
  color: #ff98a5;
  border-color: #ff657724;
  background: #ff65770c;
}

#railLogoutButton:hover {
  color: #fff;
  border-color: #ff657766;
  background: #ff657722;
}

.logo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #c2ff72, #88dc39);
  box-shadow: 0 8px 28px #a8ed5530, inset 0 1px #fff8;
}

.logo::after {
  content: "";
  position: absolute;
  width: 80%;
  height: 18%;
  top: 7%;
  left: 10%;
  border-radius: 50%;
  background: #fff6;
  filter: blur(5px);
}

.rail-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 15px;
  background: #121621;
}

.rail-btn svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-btn:hover,
.rail-btn.active {
  transform: translateY(-1px);
  border-color: #c6ff7c45;
  background: linear-gradient(145deg, #b9fa69, #88d83e);
  box-shadow: 0 0 20px #a8ed5520;
}

.rail-btn:hover svg,
.rail-btn.active svg {
  filter: drop-shadow(0 0 10px #10150a55);
}

.sidebar,
.people {
  background: #0a0d14d9;
  backdrop-filter: blur(20px);
}

.sidebar {
  border-right-color: #ffffff0b;
}

.sidebar header {
  height: 76px;
  padding: 0 19px;
  background: linear-gradient(180deg, #ffffff04, transparent);
}

.sidebar header strong {
  font-size: 16px;
  letter-spacing: -.4px;
}

.sidebar-collapse-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-left: auto;
  border: 1px solid #ffffff10;
  border-radius: 12px;
  color: #aeb8c6;
  background: #151b29;
}

.sidebar-collapse-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-collapse-button.pinned {
  color: #08100b;
  border-color: #a8ed5555;
  background: linear-gradient(145deg, #c7ff7a, #8fe13f);
}

#groupsSection.hidden,
#friendsSection.hidden {
  display: none;
}

.online-dot {
  animation: onlinePulse 2.4s ease-in-out infinite;
}

@keyframes onlinePulse {
  50% { box-shadow: 0 0 0 8px #a8ed5500, 0 0 18px #a8ed5580; }
}

.side-scroll {
  padding: 18px 10px;
}

.section-title {
  margin-bottom: 4px;
  padding-inline: 9px;
  color: #8992a4;
}

.section-title span {
  background: linear-gradient(90deg, #b3bdca, #667080);
  background-clip: text;
  color: transparent;
}

.section-title button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
}

.section-title button:hover {
  background: #a8ed5516;
  color: var(--green);
}

.group-tree {
  position: relative;
  margin-bottom: 11px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 13px;
}

.group-tree:has(.side-item.active),
.group-tree:has(.channel-item.active) {
  border-color: #a8ed551c;
  background: linear-gradient(135deg, #a8ed550b, transparent 70%);
}

.side-item {
  position: relative;
  min-height: 47px;
  border: 1px solid transparent;
}

.side-item:hover,
.side-item.active {
  border-color: #ffffff0b;
  background: linear-gradient(100deg, #202632, #171c26);
}

.side-item.active {
  box-shadow: inset 3px 0 var(--green), 0 8px 20px #0002;
}

.side-icon {
  background: linear-gradient(145deg, #2b3340, #1b212b);
  box-shadow: inset 0 1px #ffffff0b;
}

.group-tree .side-icon {
  border-color: color-mix(in srgb, var(--group-accent) 25%, transparent);
  color: var(--group-accent);
  background: color-mix(in srgb, var(--group-accent) 10%, #1b212b);
  font-size: 7px;
}

.group-tree .side-item.active {
  box-shadow: inset 3px 0 var(--group-accent), 0 8px 20px #0002;
}

.channel-row {
  position: relative;
  margin: 2px 0 2px 31px;
}

.channel-category {
  margin-top: 8px;
}

.channel-category > span {
  display: block;
  margin: 0 0 4px 34px;
  color: #606b79;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.channel-row::before {
  content: "";
  position: absolute;
  left: -15px;
  top: -7px;
  width: 10px;
  height: 22px;
  border-left: 1px solid #ffffff12;
  border-bottom: 1px solid #ffffff12;
  border-radius: 0 0 0 7px;
}

.channel-item {
  min-height: 29px;
  padding: 6px 9px;
}

.channel-item:hover,
.channel-item.active {
  background: linear-gradient(90deg, #a8ed5515, #ffffff05);
  color: #eaf2e2;
}

.channel-item.voice-live {
  border-color: #a8ed5520;
  color: #dfead8;
  background: linear-gradient(90deg, #a8ed5512, #ffffff04);
}

.channel-item.voice-active {
  border-color: #a8ed5535;
  color: #f5fff1;
  background: linear-gradient(90deg, #a8ed5520, #ffffff06);
  box-shadow: inset 2px 0 var(--green), 0 10px 24px #0003;
}

.channel-item.active span {
  text-shadow: 0 0 12px var(--green);
}

.voice-live-pill {
  margin-left: auto;
  border: 1px solid #a8ed5540;
  border-radius: 999px;
  padding: 3px 6px;
  color: #11180a;
  background: linear-gradient(145deg, #c8ff79, #8ee23f);
  font-size: 6px;
  font-weight: 1000;
  letter-spacing: .6px;
  box-shadow: 0 0 14px #a8ed5530;
}

.voice-member-list {
  display: grid;
  gap: 5px;
  margin: 4px 0 8px 18px;
}

.voice-member-chip {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid #a8ed5524;
  border-radius: 13px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 50%, #a8ed5522, transparent 35%),
    linear-gradient(145deg, #151b25, #0b1018);
  box-shadow: inset 0 1px #ffffff0b, 0 12px 26px #0003;
}

.voice-member-chip::before {
  content: "";
  position: absolute;
  left: -12px;
  top: -7px;
  bottom: 50%;
  width: 9px;
  border-left: 1px solid #a8ed5530;
  border-bottom: 1px solid #a8ed5530;
  border-radius: 0 0 0 7px;
}

.voice-member-list .voice-member-chip + .voice-member-chip::before {
  top: -12px;
  bottom: 50%;
}

.voice-member-chip .user-avatar {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.voice-member-chip span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.voice-member-chip strong {
  overflow: hidden;
  color: #f5fff1;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-member-chip small {
  margin-top: 2px;
  color: var(--green);
  font-size: 7px;
  font-weight: 900;
}

.sidebar footer {
  height: 70px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 32px 32px;
  align-items: center;
  gap: 8px;
  border-top-color: #ffffff0b;
  background: #080b11e8;
}

.sidebar footer button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff0e;
  border-radius: 11px;
  padding: 0;
  color: #9aa5b5;
  background: #ffffff05;
}

.sidebar footer button:hover {
  border-color: #a8ed5530;
  color: var(--green);
  background: #a8ed550d;
}

#quickLogoutButton {
  border-color: #ff65771f;
  color: #ff98a5;
  background: #ff65770a;
}

#quickLogoutButton svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#quickLogoutButton:hover {
  border-color: #ff657744;
  color: #ffd3d8;
  box-shadow: 0 0 20px #ff657718;
}

.me-copy {
  min-width: 0;
}

.me-copy strong,
.me-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#settingsDialog {
  width: min(1080px, calc(100% - 28px));
  border-color: #ffffff14;
  background: linear-gradient(145deg, #131824, #090d14);
  overflow: hidden;
}

#settingsDialog::backdrop {
  background: #03050bd8;
  backdrop-filter: blur(8px);
}

#settingsForm {
  position: relative;
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  min-height: min(720px, calc(100dvh - 58px));
  max-height: calc(100dvh - 58px);
  padding: 0;
}

#settingsForm > .x {
  z-index: 5;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 30px 16px;
  border-right: 1px solid #ffffff0d;
  background:
    radial-gradient(circle at 20% 0, #a8ed5512, transparent 28%),
    #080c13;
}

.settings-nav div {
  margin: 0 8px 16px;
}

.settings-nav span {
  display: block;
  color: var(--green);
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: 1.8px;
}

.settings-nav strong {
  display: block;
  margin-top: 5px;
  color: #f6f8fb;
  font-size: 18px;
  letter-spacing: -.5px;
}

.settings-nav button {
  width: 100%;
  min-height: 68px;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 12px 14px;
  color: #8e99aa;
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.1px;
  text-align: left;
  cursor: pointer;
}

.settings-nav button b,
.settings-nav button small {
  display: block;
}

.settings-nav button b {
  color: inherit;
  font-size: 14px;
  line-height: 1.15;
}

.settings-nav button small {
  margin-top: 5px;
  color: #6f7a89;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
}

.settings-nav button:hover {
  color: #eef3f7;
  background: #ffffff06;
}

.settings-nav button.active {
  border-color: #a8ed5528;
  color: #10150a;
  background: linear-gradient(145deg, #c8ff7d, var(--green));
  box-shadow: 0 12px 28px #a8ed5518;
}

.settings-nav button.active small {
  color: #2f3a23;
}

.settings-content {
  min-height: 0;
  max-height: calc(100dvh - 58px);
  overflow: auto;
  padding: 32px 34px;
  scrollbar-gutter: stable;
}

.settings-content > .kicker {
  color: var(--green);
}

.settings-content h2 {
  margin: 7px 0 5px;
  font-size: 32px;
  letter-spacing: -1.4px;
}

.settings-lead {
  max-width: 620px;
  margin: 0 0 20px;
  color: #8e98a8;
  font-size: 10px;
  line-height: 1.7;
}

#settingsDialog .session-box,
#settingsDialog .danger-zone,
#settingsDialog #logoutButton {
  margin-bottom: 12px;
}

#settingsDialog .session-box {
  border: 1px solid #ffffff0e;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(145deg, #ffffff07, #ffffff03);
  box-shadow: inset 0 1px #ffffff0b;
}

#settingsDialog .session-box > strong,
#settingsDialog .danger-zone > strong {
  display: block;
  margin-bottom: 6px;
  color: #f1f5f8;
  font-size: 15px;
}

#settingsDialog label {
  margin-top: 11px;
}

#settingsDialog input,
#settingsDialog textarea,
#settingsDialog select {
  border-color: #ffffff12;
  background: #070b12;
}

.security-feature-row,
.ptt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.security-feature-row {
  margin: 12px 0;
  border: 1px solid #a8ed5520;
  border-radius: 16px;
  padding: 13px;
  background: linear-gradient(135deg, #a8ed550d, #ffffff04);
}

.security-feature-row b,
.ptt-head strong {
  display: block;
  color: #f4f8fb;
  font-size: 13px;
}

.security-feature-row small,
.ptt-head p,
#pushToTalkCaptureHint {
  display: block;
  margin: 4px 0 0;
  color: #8d98a7;
  font-size: 10px;
  line-height: 1.55;
}

.feature-orb {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #a8ed5533;
  border-radius: 16px;
  color: #10150a;
  background: linear-gradient(145deg, #d8ff92, var(--green));
  box-shadow: 0 0 24px #a8ed5524;
  font-size: 12px;
  font-weight: 1000;
}

.totp-card {
  position: relative;
  overflow: hidden;
}

.totp-card::after,
.ptt-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -55px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--green);
  filter: blur(52px);
  opacity: .09;
  pointer-events: none;
}

.totp-setup,
.totp-manage {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  border: 1px solid #a8ed5520;
  border-radius: 14px;
  padding: 12px;
  background: #a8ed5508;
}

.totp-setup.hidden,
.totp-manage.hidden {
  display: none !important;
}

#totpSecretPreview {
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid #ffffff12;
  border-radius: 10px;
  padding: 11px;
  color: #d7ff99;
  background: #05080d;
  font-family: Consolas, monospace;
  font-size: 12px;
  letter-spacing: .5px;
}

#totpUriPreview {
  min-height: 74px;
  resize: vertical;
  color: #b9c7d8;
  font-family: Consolas, monospace;
  font-size: 10px;
  line-height: 1.5;
}

#confirmTotpButton,
#copyTotpUriButton,
#regenerateRecoveryCodesButton,
#disableTotpButton,
#enableTotpButton,
#capturePushToTalkKey {
  border: 1px solid #a8ed5526;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--green);
  background: #a8ed550c;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.ptt-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid #56d6ff22;
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at 0 0, #56d6ff14, transparent 34%),
    linear-gradient(145deg, #ffffff08, #ffffff03);
}

.ptt-head kbd,
#pushToTalkKeyPreview {
  min-width: 78px;
  border: 1px solid #a8ed5533;
  border-bottom-width: 3px;
  border-radius: 13px;
  padding: 10px 12px;
  color: #d8ff9a;
  background: #05080e;
  box-shadow: inset 0 1px #ffffff12, 0 10px 24px #0004;
  font-size: 13px;
  font-weight: 1000;
  text-align: center;
}

#capturePushToTalkKey.capturing {
  border-color: #56d6ff55;
  color: #d9f6ff;
  background: #56d6ff14;
  box-shadow: 0 0 28px #56d6ff1c;
}

#disableTotpButton {
  border-color: #ff65772c;
  color: #ff9fac;
  background: #ff65770c;
}

#settingsDialog #logoutButton {
  width: auto;
  border: 1px solid #ff65772b;
  color: #ffb4bd;
  background: #ff65770d;
}

#settingsDialog .danger-zone {
  border: 1px solid #ff65772b;
  border-radius: 16px;
  padding: 16px;
  background: radial-gradient(circle at 100% 0, #ff65771a, transparent 35%), #130b10;
}

.me-avatar,
.user-avatar {
  overflow: hidden;
  box-shadow: inset 0 1px #fff7, 0 4px 13px #0004;
}

.user-avatar img,
.me-avatar img,
.profile-avatar img,
.side-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.main {
  position: relative;
  background:
    radial-gradient(circle at 50% 10%, #ffffff04 0, transparent 33%),
    #0d1019d9;
}

.main::before {
  content: "";
  position: absolute;
  inset: 70px 0 0;
  pointer-events: none;
  background: linear-gradient(135deg, #a8ed5503, transparent 40%, #9878ff04);
}

.topbar {
  position: relative;
  z-index: 2;
  height: 76px;
  border-bottom-color: #ffffff0b;
  background: #10131de0;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px #0002;
}

.room-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #a8ed5528;
  border-radius: 11px;
  background: #a8ed550d;
  text-shadow: 0 0 15px #a8ed5588;
}

.topbar h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -.2px;
}

.top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-actions button {
  position: relative;
  overflow: visible;
  border-color: #ffffff10;
  background: linear-gradient(180deg, #202633, #171c26);
  box-shadow: inset 0 1px #ffffff0c;
}

.top-actions button:hover {
  transform: translateY(-1px);
  border-color: #a8ed5533;
  color: #fff;
  box-shadow: 0 8px 20px #0003;
}

.notification-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 3px;
  border: 2px solid #10131d;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 14px #ff657755;
}

.notification-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.notification-summary article {
  border: 1px solid #ffffff10;
  border-radius: 15px;
  padding: 12px;
  background: linear-gradient(145deg, #151b27, #0d121b);
  box-shadow: inset 0 1px #ffffff0b;
}

.notification-summary span {
  color: #7d8796;
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: 1.2px;
}

.notification-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 16px;
}

.notification-summary small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.notification-actions { display: flex; gap: 7px; margin-bottom: 12px; }
.notification-list button { display: grid; grid-template-columns: auto 1fr; gap: 10px; width: 100%; text-align: left; }
.notification-list button.unread { border-color: #a8ed5535; background: #a8ed5509; }
.notification-list button > b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--green); background: #a8ed5510; }
.notification-list strong, .notification-list small, .notification-list em { display: block; }
.notification-list em { margin-bottom: 4px; color: var(--green); font-size: 7px; font-style: normal; font-weight: 1000; letter-spacing: 1px; text-transform: uppercase; }
.notification-list small { margin-top: 3px; color: #8d98a4; }
.admin-dialog { width: min(860px, calc(100% - 30px)); }
.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.admin-summary article {
  border: 1px solid #ffffff10;
  border-radius: 15px;
  padding: 13px;
  background: linear-gradient(145deg, #151b27, #0d121b);
  box-shadow: inset 0 1px #ffffff0b;
}
.admin-summary span {
  color: var(--green);
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: 1.2px;
}
.admin-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}
.admin-summary small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}
.admin-announce {
  display: grid;
  gap: 9px;
  margin: 12px 0;
  border: 1px solid #a8ed5522;
  border-radius: 17px;
  padding: 14px;
  background: radial-gradient(circle at 15% 20%, #a8ed5514, transparent 32%), #ffffff04;
}
.admin-guard {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
  align-items: end;
  margin: 12px 0;
  border: 1px solid #56d6ff24;
  border-radius: 18px;
  padding: 14px;
  background: radial-gradient(circle at 12% 0%, #56d6ff18, transparent 34%), linear-gradient(135deg, #121927, #0c111b);
  box-shadow: inset 0 1px #ffffff0c, 0 18px 45px #00000024;
}
.admin-guard span {
  color: #5ee7f2;
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: 1.3px;
}
.admin-guard strong,
.admin-guard small {
  display: block;
}
.admin-guard strong {
  margin-top: 5px;
  color: #f4f8fb;
  font-size: 12px;
}
.admin-guard small {
  margin-top: 5px;
  color: #91a0b0;
  font-size: 8px;
  line-height: 1.55;
}
.admin-guard input {
  min-height: 40px;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  padding: 0 11px;
  color: #eef5f8;
  background: #070b12;
  outline: none;
}
.admin-guard input:focus {
  border-color: #5ee7f270;
  box-shadow: 0 0 0 3px #5ee7f218;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  border: 1px solid #ffffff0c;
  border-radius: 16px;
  padding: 6px;
  background: #070b12;
}
.admin-tabs button {
  flex: 1 1 120px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #8f9baa;
  background: transparent;
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: .6px;
  cursor: pointer;
}
.admin-tabs button.active {
  border-color: #a8ed5535;
  color: #10150a;
  background: linear-gradient(135deg, #a8ed55, #d8ff9c);
  box-shadow: 0 12px 32px #a8ed5518;
}
.admin-filters {
  display: grid;
  grid-template-columns: 1fr 140px 150px auto;
  gap: 8px;
  margin: 12px 0;
}
.admin-filters.compact {
  grid-template-columns: 1fr 150px;
}
.admin-filters input,
.admin-filters select,
.admin-filters button {
  min-height: 38px;
  border: 1px solid #ffffff12;
  border-radius: 11px;
  padding: 0 10px;
  color: #dfe6ee;
  background: #0f141e;
  font-size: 9px;
}
.admin-filters button {
  color: #10150a;
  background: var(--green);
  font-weight: 900;
  cursor: pointer;
}
.admin-user-list {
  display: grid;
  gap: 7px;
}
.admin-user {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 11px;
  border: 1px solid #ffffff0d;
  border-radius: 14px;
  padding: 10px;
  background: #ffffff04;
}
.admin-user.online {
  border-color: #a8ed5533;
  background: linear-gradient(90deg, #a8ed550d, #ffffff04);
}
.admin-user {
  cursor: pointer;
}
.admin-user:hover {
  border-color: #a8ed5530;
  background: linear-gradient(90deg, #a8ed550b, #5ee7f208);
}
.admin-user strong,
.admin-user b,
.admin-user small {
  display: block;
}
.admin-user strong,
.admin-user b {
  font-size: 10px;
}
.admin-user small {
  margin-top: 3px;
  color: #8994a2;
  font-size: 8px;
}
.admin-action {
  min-height: 34px;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  padding: 0 12px;
  background: #ffffff08;
  color: #f4f7fb;
  font-size: 8px;
  font-weight: 1000;
  cursor: pointer;
}
.admin-action.danger {
  border-color: #ff5c6d40;
  background: linear-gradient(135deg, #ff5c6d18, #ffffff08);
  color: #ffd4da;
}
.admin-action:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.admin-user-detail {
  display: grid;
  gap: 11px;
  margin-top: 12px;
  border: 1px solid #5ee7f228;
  border-radius: 18px;
  padding: 14px;
  background: radial-gradient(circle at 10% 10%, #5ee7f214, transparent 34%), #ffffff04;
}
.admin-user-detail.hidden {
  display: none;
}
.admin-detail-hero {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-detail-hero strong,
.admin-detail-hero small {
  display: block;
}
.admin-detail-hero strong {
  color: #fff;
  font-size: 13px;
}
.admin-detail-hero small {
  margin-top: 3px;
  color: #90a0b0;
  font-size: 8px;
}
.admin-detail-grid,
.admin-risk-radar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.admin-detail-grid article,
.admin-risk-radar article {
  border: 1px solid #ffffff10;
  border-radius: 13px;
  padding: 11px;
  background: #0d131e;
}
.admin-risk-radar article.warn {
  border-color: #ffd16635;
  background: #ffd1660c;
}
.admin-risk-radar article.ok {
  border-color: #a8ed5528;
}
.admin-detail-grid span,
.admin-risk-radar span {
  color: #7e8a99;
  font-size: 6px;
  font-weight: 1000;
  letter-spacing: 1px;
}
.admin-detail-grid strong,
.admin-risk-radar strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #f4f8fb;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-detail-grid small,
.admin-risk-radar small {
  display: block;
  margin-top: 4px;
  color: #8c98a8;
  font-size: 7px;
}
.admin-detail-risk {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #a8ed5525;
  border-radius: 13px;
  padding: 10px;
  color: #dce8d4;
  background: #a8ed5508;
  font-size: 8px;
}
.admin-detail-risk.warn {
  border-color: #ffd16635;
  color: #ffe4a4;
  background: #ffd1660b;
}
.admin-detail-risk b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #10150a;
  background: var(--green);
}
.admin-detail-risk.warn b {
  background: #ffd166;
}
.admin-detail-audit {
  display: grid;
  gap: 6px;
}
.admin-detail-audit p {
  margin: 0;
  border: 1px solid #ffffff0d;
  border-radius: 11px;
  padding: 9px;
  background: #ffffff04;
}
.admin-detail-audit b,
.admin-detail-audit small {
  display: block;
}
.admin-detail-audit b {
  color: #eef5f8;
  font-size: 8px;
}
.admin-detail-audit small {
  margin-top: 3px;
  color: #8f9baa;
  font-size: 7px;
}
@media (max-width: 820px) {
  .admin-user {
    grid-template-columns: auto 1fr;
  }
  .admin-guard,
  .admin-filters,
  .admin-summary,
  .admin-maintenance-card,
  .admin-health-grid,
  .admin-health-checks,
  .admin-detail-grid,
  .admin-risk-radar {
    grid-template-columns: 1fr;
  }
  .admin-action {
    grid-column: 1 / -1;
  }
  .sticker-grid,
  .voice-record-body {
    grid-template-columns: 1fr 1fr;
  }
  .voice-record-body i,
  .voice-record-body p {
    grid-column: 1 / -1;
  }
}
.admin-audit {
  margin-top: 14px;
}
.admin-audit .section-title {
  padding-inline: 0;
}
.admin-audit .section-title > div {
  display: flex;
  gap: 7px;
}
.admin-audit .section-title button {
  border: 1px solid #ffffff12;
  border-radius: 9px;
  padding: 7px 9px;
  color: #dfe7ef;
  background: #ffffff06;
  font-size: 7px;
  font-weight: 900;
  cursor: pointer;
}
.admin-audit .section-title button:first-child {
  border-color: #5ee7f235;
  color: #9df2ff;
  background: #5ee7f210;
}
.admin-audit-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
}
.admin-audit-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border: 1px solid #ffffff0d;
  border-radius: 12px;
  padding: 10px;
  background: #ffffff04;
}
.admin-audit-entry.failed {
  border-color: #ff5c6d35;
  background: #ff5c6d0b;
}
.admin-audit-entry strong,
.admin-audit-entry span,
.admin-audit-entry small {
  display: block;
}
.admin-audit-entry strong {
  font-size: 9px;
}
.admin-audit-entry span {
  justify-self: end;
  color: var(--green);
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.admin-audit-entry.failed span {
  color: var(--red);
}
.admin-audit-entry small {
  grid-column: 1 / -1;
  color: #84909e;
  font-size: 7px;
}
.admin-health,
.admin-backups {
  display: grid;
  gap: 12px;
}
.admin-health[hidden],
.admin-backups[hidden],
.admin-audit[hidden],
.admin-announce[hidden],
.admin-filters[hidden],
.admin-user-list[hidden] {
  display: none !important;
}
.admin-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.admin-health-grid article {
  border: 1px solid #ffffff10;
  border-radius: 15px;
  padding: 13px;
  background: linear-gradient(145deg, #151b27, #0d121b);
}
.admin-health-grid span,
.admin-health-checks strong {
  color: var(--green);
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: 1.1px;
}
.admin-health-grid strong {
  display: block;
  overflow: hidden;
  margin-top: 6px;
  color: #f4f7fb;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-health-grid small {
  display: block;
  margin-top: 4px;
  color: #8c97a6;
  font-size: 7px;
}
.admin-health-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.admin-health-checks article,
.admin-backup-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid #ffffff10;
  border-radius: 14px;
  padding: 11px;
  background: #ffffff04;
}
.admin-maintenance-card {
  display: grid;
  grid-template-columns: 1.3fr auto auto 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #ffd1662d;
  border-radius: 18px;
  padding: 14px;
  background: radial-gradient(circle at 12% 20%, #ffd16618, transparent 34%), linear-gradient(135deg, #151b27, #0d121b);
  box-shadow: inset 0 1px #ffffff0c;
}
.admin-maintenance-card span {
  color: #ffd166;
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: 1.2px;
}
.admin-maintenance-card strong,
.admin-maintenance-card small {
  display: block;
}
.admin-maintenance-card strong {
  margin-top: 4px;
  color: #fff;
  font-size: 12px;
}
.admin-maintenance-card small {
  margin-top: 5px;
  color: #9ca7b5;
  font-size: 8px;
  line-height: 1.5;
}
.admin-maintenance-card label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #dce5ef;
  font-size: 8px;
  font-weight: 900;
}
.admin-maintenance-card input[type="text"],
.admin-maintenance-card input:not([type]) {
  min-height: 38px;
  border: 1px solid #ffffff12;
  border-radius: 11px;
  padding: 0 10px;
  color: #eef5f8;
  background: #070b12;
}
.admin-health-checks b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #10150a;
  background: var(--green);
}
.admin-health-checks article.warn b {
  color: #1f1605;
  background: #ffd166;
}
.admin-health-checks article.bad b {
  color: #fff;
  background: var(--red);
}
.admin-health-checks small,
.admin-backup-entry small {
  display: block;
  margin-top: 4px;
  color: #8894a4;
  font-size: 7px;
}
.admin-health-checks button {
  margin-top: 8px;
  border: 1px solid #a8ed5535;
  border-radius: 9px;
  padding: 7px 9px;
  color: var(--green);
  background: #a8ed5510;
  font-size: 7px;
  font-weight: 900;
  cursor: pointer;
}
.admin-backup-list {
  display: grid;
  gap: 8px;
}
.admin-backup-entry {
  grid-template-columns: 1fr auto;
}
.admin-backup-entry strong {
  color: #eef5f8;
  font-size: 9px;
}
.admin-backup-entry button {
  border: 1px solid #5ee7f240;
  border-radius: 10px;
  padding: 8px 10px;
  color: #9df2ff;
  background: #5ee7f210;
  font-size: 7px;
  font-weight: 900;
  cursor: pointer;
}
.announcement-dialog p {
  color: #c5ced8;
  line-height: 1.7;
}
.maintenance-banner {
  position: fixed;
  z-index: 80;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(720px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ffd16645;
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(135deg, #201a0bdb, #101722ee);
  box-shadow: 0 18px 60px #0008, 0 0 30px #ffd1661d;
  backdrop-filter: blur(14px);
}
.maintenance-banner strong {
  color: #ffd166;
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.maintenance-banner span {
  color: #f2ead7;
  font-size: 9px;
  line-height: 1.4;
}
.announcement-dialog small {
  color: var(--muted);
}
.notification-error {
  display: grid;
  gap: 9px;
  padding: 18px;
  border: 1px solid #ff5c6d35;
  border-radius: 15px;
  background: linear-gradient(135deg, #ff5c6d12, #111722);
}
.notification-error strong { color: #fff; font-size: 11px; }
.notification-error small { color: #98a3af; line-height: 1.55; }
.notification-error button {
  justify-self: start;
  border: 1px solid #a8ed5545;
  border-radius: 10px;
  padding: 9px 12px;
  background: #a8ed5515;
  color: var(--green);
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
}
.retry-state {
  display: grid;
  gap: 9px;
  padding: 18px;
  border: 1px solid #ff5c6d35;
  border-radius: 15px;
  background:
    radial-gradient(circle at 10% 15%, #ff5c6d18, transparent 35%),
    linear-gradient(135deg, #151b27, #0f141e);
  color: #fff;
}
.media-grid > .retry-state {
  grid-column: 1 / -1;
}
.retry-state strong,
.retry-state small {
  display: block;
}
.retry-state strong {
  font-size: 11px;
}
.retry-state small {
  color: #98a3af;
  line-height: 1.55;
}
.retry-state button {
  justify-self: start;
  border: 1px solid #a8ed5545;
  border-radius: 10px;
  padding: 9px 12px;
  background: #a8ed5515;
  color: var(--green);
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
}
.retry-state button:hover {
  border-color: #a8ed5580;
  background: #a8ed5522;
}

.danger-dialog p {
  margin: 0 0 18px;
  color: #aeb8c5;
  line-height: 1.55;
}

.danger-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.danger-actions button {
  border: 1px solid #ffffff12;
  border-radius: 11px;
  padding: 11px 14px;
  color: #dce4ea;
  background: #ffffff08;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.danger-actions button:last-child {
  border-color: #ff5c6d45;
  color: #ffe6ea;
  background: linear-gradient(135deg, #ff5c6d55, #6b1f2a);
  box-shadow: 0 14px 35px #ff5c6d1f;
}

.danger-actions button:last-child.soft {
  border-color: #a8ed5545;
  color: #10150a;
  background: linear-gradient(135deg, #a8ed55, #d8ff9c);
  box-shadow: 0 14px 35px #a8ed551f;
}

#newChannelButton {
  border-color: #56d6ff22;
  color: #8de5ff;
}

#manageGroupButton {
  color: #c8b9ff;
}

#deleteGroupButton {
  border-color: #ff65772b;
  color: #ff98a5;
  background: #ff65770a;
}

#voiceJoinButton {
  border-color: #a8ed5530;
  background: linear-gradient(145deg, #b9fa68, #8bdc40);
  color: #10160b;
  box-shadow: 0 8px 24px #a8ed5520;
}

#voiceJoinButton.voice-stage-open {
  border-color: #56d6ff35;
  background: linear-gradient(145deg, #26344a, #151d2b);
  color: #dff7ff;
}

#voiceJoinButton.voice-stage-hidden {
  border-color: #a8ed5570;
  background: linear-gradient(145deg, #d7ff88, #96ea45);
  color: #10160b;
  box-shadow: 0 0 28px #a8ed5535;
}

.messages {
  position: relative;
  z-index: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 18px;
}

.empty-home {
  position: relative;
}

.empty-home::before,
.empty-home::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid #a8ed5510;
  border-radius: 50%;
  animation: orbit 16s linear infinite;
}

.empty-home::after {
  width: 310px;
  height: 310px;
  border-color: #9878ff0c;
  animation-direction: reverse;
  animation-duration: 24s;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.empty-home > div {
  position: relative;
  z-index: 1;
  padding: 35px;
  border: 1px solid #ffffff0b;
  border-radius: 25px;
  background: linear-gradient(145deg, #161b26bb, #0c0f17aa);
  box-shadow: 0 30px 80px #0004, inset 0 1px #ffffff0b;
  backdrop-filter: blur(15px);
}

.empty-home h2 {
  letter-spacing: -1px;
}

.empty-home button,
.create-btn {
  background: linear-gradient(145deg, #baff6a, #8cdd41);
  box-shadow: 0 9px 28px #a8ed5524, inset 0 1px #fff8;
}

.empty-home button:hover,
.create-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 34px #a8ed5533, inset 0 1px #fff8;
}

.welcome {
  position: relative;
  margin-bottom: 9px;
  padding: 30px 22px 28px;
  border-bottom: 1px solid #ffffff08;
  border-radius: 18px;
  background: linear-gradient(120deg, #a8ed5508, transparent 45%, #9878ff08);
}

.welcome::after {
  content: "";
  position: absolute;
  right: 35px;
  top: 23px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green);
  filter: blur(55px);
  opacity: .14;
}

.welcome b {
  box-shadow: 0 10px 35px #a8ed5527, inset 0 1px #fff8;
}

.community-intro {
  max-width: 620px;
  display: grid;
  gap: 8px;
  margin-top: 14px;
  border: 1px solid #ffffff0d;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(120deg, #a8ed5508, #ffffff03);
}

.community-intro p {
  margin: 0;
  color: #b5bec7;
  line-height: 1.6;
}

.community-intro summary {
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.community-intro pre {
  margin: 8px 0 0;
  color: #8e99a5;
  font: inherit;
  font-size: 8px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.message {
  position: relative;
  max-width: 850px;
  margin-bottom: 7px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  transition: .18s ease;
}

.message:hover {
  transform: translateX(2px);
  border-color: #ffffff0a;
  background: linear-gradient(100deg, #ffffff07, transparent 80%);
  box-shadow: 0 8px 24px #0002;
}

.message .user-avatar {
  margin-top: 1px;
}

.msg-head strong {
  color: #eef5e7;
  font-size: 11px;
}

.msg-head time {
  padding: 2px 5px;
  border-radius: 5px;
  background: #ffffff05;
}

.message p {
  color: #d2d7df;
  font-size: 12px;
}

.message img {
  border: 1px solid #ffffff10;
  box-shadow: 0 12px 35px #0005;
}

.composer {
  position: relative;
  z-index: 2;
  border-color: #ffffff10;
  background: #171c27dd;
  box-shadow: 0 14px 40px #0004, inset 0 1px #ffffff0b;
  backdrop-filter: blur(16px);
}

.composer:focus-within {
  border-color: #a8ed5544;
  box-shadow: 0 14px 40px #0004, 0 0 0 3px #a8ed5508;
}

.attachment-preview {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 5% -8px;
  border: 1px solid #a8ed5524;
  border-radius: 16px 16px 8px 8px;
  padding: 10px 12px 18px;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 50%, #a8ed5518, transparent 34%),
    linear-gradient(145deg, #151b27, #0d121b);
  box-shadow: inset 0 1px #ffffff0b, 0 14px 35px #0003;
}

.attachment-preview.hidden {
  display: none;
}

.attachment-preview > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.attachment-preview img,
.attachment-preview b {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 13px;
}

.attachment-preview img {
  object-fit: cover;
  border: 1px solid #ffffff12;
}

.attachment-preview b {
  display: grid;
  place-items: center;
  color: #10170b;
  background: linear-gradient(145deg, #c8ff79, #8ee23f);
}

.attachment-preview span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.attachment-preview strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-preview small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.attachment-preview button {
  width: 30px;
  height: 30px;
  border: 1px solid #ff657744;
  border-radius: 10px;
  color: #ff9daa;
  background: #ff657710;
}

.people {
  border-left-color: #ffffff0b;
  padding-top: 24px;
}

.person {
  margin-bottom: 4px;
  border: 1px solid transparent;
}

button.person {
  width: 100%;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.profile-dialog { width: min(470px, calc(100% - 24px)); padding: 0; overflow: hidden; }
.profile-dialog form { padding: 0; }
.profile-card { min-height: 330px; background: radial-gradient(circle at 90% 5%, color-mix(in srgb, var(--profile-accent) 22%, transparent), transparent 38%), linear-gradient(145deg, #191f2a, #0d1119); }
.profile-card header { position: relative; min-height: 185px; display: flex; align-items: flex-end; gap: 16px; padding: 30px; border-bottom: 1px solid #ffffff0d; }
.profile-card header::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--profile-accent); box-shadow: 0 0 30px var(--profile-accent); }
.profile-avatar { width: 78px; height: 78px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border: 4px solid #171d27; border-radius: 25px; color: #101318; font-size: 22px; font-weight: 900; box-shadow: 0 15px 35px #0006; }
.profile-card header div > span, .profile-card section > span { color: var(--profile-accent); font-size: 6px; font-weight: 900; letter-spacing: 1.5px; }
.profile-card h2 { margin: 6px 0 3px; font-size: 23px; letter-spacing: -1px; }
.profile-card header p { margin: 0; color: #929ca8; font-size: 8px; }
.profile-card section { padding: 22px 30px; }
.profile-card section p { color: #abb4bd; font-size: 9px; line-height: 1.7; white-space: pre-wrap; }
.profile-card footer { display: flex; align-items: center; gap: 6px; padding: 0 30px 24px; color: #7e8996; font-size: 7px; }
.profile-card footer i { width: 6px; height: 6px; border-radius: 50%; background: var(--profile-accent); box-shadow: 0 0 10px var(--profile-accent); }
.profile-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.profile-badges span { display: flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid color-mix(in srgb, var(--profile-accent) 28%, transparent); border-radius: 999px; color: #dce7df; background: color-mix(in srgb, var(--profile-accent) 8%, transparent); font-size: 7px; font-weight: 800; }
.profile-badges b { color: var(--profile-accent); font-size: 10px; }

.person:hover {
  border-color: #ffffff0a;
  background: linear-gradient(90deg, #ffffff06, transparent);
}

.person.in-voice {
  border-color: #a8ed5524;
  background: linear-gradient(90deg, #a8ed5511, transparent);
  box-shadow: inset 2px 0 var(--green);
}

.person.in-voice small {
  color: var(--green);
  font-weight: 900;
}

.user-avatar {
  position: relative;
}

.presence-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border: 2px solid #11151d;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px #a8ed5555;
}

.presence-badge.away { background: #ffd166; box-shadow: 0 0 7px #ffd16655; }
.presence-badge.dnd { background: var(--red); box-shadow: 0 0 7px #ff5c6d55; }

.person small {
  position: relative;
  padding-left: 9px;
}

.person small::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.invite-card {
  position: relative;
  overflow: hidden;
  border-color: #a8ed5518;
  background: linear-gradient(145deg, #1b2226, #121620);
  box-shadow: 0 18px 45px #0003, inset 0 1px #ffffff0a;
}

.invite-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -35px;
  top: -35px;
  border-radius: 50%;
  background: var(--green);
  filter: blur(42px);
  opacity: .18;
}

.voice-stage {
  position: relative;
  z-index: 3;
  border-bottom-color: #a8ed5515;
  background:
    radial-gradient(circle at 16% 0%, #a8ed5514, transparent 34%),
    radial-gradient(circle at 85% 55%, #56d6ff10, transparent 30%),
    linear-gradient(135deg, #101a16, #10131d);
  box-shadow: 0 18px 55px #0004, inset 0 1px #ffffff0b;
}

.camera-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  max-height: 48vh;
  margin: 10px 0;
  overflow: auto;
}

.camera-grid:empty {
  display: none;
}

.camera-grid[data-layout="speaker"] .camera-tile.speaking {
  grid-column: 1 / -1;
  min-height: 32vh;
  border-color: #a8ed5570;
  box-shadow: 0 18px 45px #0006, 0 0 30px #a8ed5528;
}

.camera-grid[data-layout="cinema"] {
  display: flex;
  scroll-snap-type: x mandatory;
}

.camera-grid[data-layout="cinema"] .camera-tile {
  min-width: min(70vw, 760px);
  scroll-snap-align: center;
}

.camera-grid.mirror-local [data-camera-peer] video[muted] {
  transform: scaleX(-1);
}

.camera-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #ffffff10;
  border-radius: 13px;
  background: radial-gradient(circle at 50% 35%, #1d2923, #05070b 70%);
  box-shadow: 0 15px 35px #0005, inset 0 1px #ffffff0a;
}

.camera-tile.speaking {
  border-color: #a8ed5555;
}

.call-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  max-width: min(100%, 860px);
  margin: 14px auto 0;
  padding: 10px;
  border: 1px solid #ffffff12;
  border-radius: 26px;
  background:
    linear-gradient(145deg, #151c28d9, #0a0f18d9),
    #0b1018;
  box-shadow: 0 20px 60px #0007, inset 0 1px #ffffff12;
  backdrop-filter: blur(18px);
}

.call-controls::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, #a8ed5528, #56d6ff22, #9878ff22);
  filter: blur(16px);
  opacity: .55;
}

.call-controls button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 52px;
  min-height: 52px;
  border: 1px solid #ffffff12;
  border-radius: 18px;
  color: #dbe6ef;
  background: linear-gradient(145deg, #222a37, #151b25);
  box-shadow: inset 0 1px #ffffff10;
  cursor: pointer;
}

.call-controls button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.call-controls button small {
  color: #95a1ae;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .2px;
}

.call-controls button.active,
.call-controls button.talking {
  border-color: #a8ed5575;
  color: #12180d;
  background: linear-gradient(145deg, #c8ff79, #8ee23f);
  box-shadow: 0 0 24px #a8ed5535, inset 0 1px #ffffff55;
}

.call-controls button.active small,
.call-controls button.talking small {
  color: #18200f;
}

.call-controls button.danger,
.call-controls #leaveButton {
  border-color: #ff657744;
  color: #ffd6dc;
  background: linear-gradient(145deg, #3b1c25, #211018);
}

.call-controls button.danger:hover,
.call-controls #leaveButton:hover {
  border-color: #ff657780;
  color: #fff;
  background: linear-gradient(145deg, #ff6577, #c9334a);
}

.call-controls select {
  min-height: 52px;
  border: 1px solid #ffffff12;
  border-radius: 18px;
  padding: 0 30px 0 14px;
  color: #dce7df;
  background: linear-gradient(145deg, #222a37, #151b25);
  font-size: 11px;
  font-weight: 900;
  box-shadow: inset 0 1px #ffffff10;
  cursor: pointer;
}

.camera-tile video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-tile span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border: 1px solid #ffffff12;
  border-radius: 999px;
  color: #f4fff8;
  background: #05070bbb;
  font-size: 7px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.soundboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 7px;
  margin: 10px 0;
  padding: 9px;
  border: 1px solid #a8ed5525;
  border-radius: 15px;
  background: #070b10b8;
  box-shadow: inset 0 1px #ffffff08;
}

.soundboard.hidden {
  display: none !important;
}

.soundboard-head {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid #ffffff0f;
  border-radius: 13px;
  background: linear-gradient(145deg, #111925f5, #080d14f5);
  box-shadow: 0 10px 30px #00000030;
}

.soundboard-head span {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: inherit;
}

.soundboard-head strong {
  color: #f5fbff;
  font-size: 11px;
  font-weight: 900;
}

.soundboard-head small {
  color: #98a5b8;
  font-size: 8px;
  font-weight: 700;
}

.soundboard .soundboard-head button {
  min-height: 34px;
  width: auto;
  padding: 0 16px;
  border-radius: 999px;
  color: #10150a;
  background: linear-gradient(145deg, #caff7d, #91e346);
  font-size: 10px;
  font-weight: 950;
  box-shadow: 0 10px 24px #a8ed5525, inset 0 1px #ffffff80;
}

.soundboard .soundboard-head button:hover {
  color: #10150a;
  background: linear-gradient(145deg, #dcff9d, #a8ed55);
  transform: translateY(-1px);
}

.soundboard button {
  min-height: 58px;
  border: 1px solid #ffffff10;
  border-radius: 12px;
  color: #e8f2ec;
  background: linear-gradient(145deg, #ffffff0a, #ffffff03);
  font-size: 7px;
  font-weight: 800;
}

.soundboard button:hover {
  border-color: #a8ed5550;
  color: var(--green);
  background: #a8ed5510;
  transform: translateY(-2px);
}

.soundboard span {
  display: block;
  margin-bottom: 3px;
  font-size: 18px;
}

.voice-history-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid #ffffff0b;
  border-radius: 13px;
  background: #ffffff04;
}

.voice-history-list time {
  color: var(--green);
  font-size: 8px;
  font-weight: 900;
}

.voice-history-list strong,
.voice-history-list small {
  display: block;
}

.role-create-row {
  display: grid;
  grid-template-columns: 1fr 100px auto;
  gap: 7px;
}

.manage-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.manage-summary article {
  border: 1px solid #ffffff10;
  border-radius: 15px;
  padding: 12px;
  background:
    radial-gradient(circle at 90% 12%, #a8ed5517, transparent 32%),
    linear-gradient(145deg, #151b27, #0d121b);
  box-shadow: inset 0 1px #ffffff0b;
}

.manage-summary span {
  color: var(--green);
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: 1.3px;
}

.manage-summary strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.manage-summary small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
}

.channel-preview {
  display: grid;
  gap: 10px;
  margin: 10px 0 14px;
  border: 1px solid #a8ed5520;
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(circle at 90% 10%, #a8ed5518, transparent 32%),
    linear-gradient(145deg, #121824, #0d121b);
  box-shadow: inset 0 1px #ffffff0b;
}

.channel-preview article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.channel-preview b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #10170b;
  background: linear-gradient(145deg, #c8ff79, #8ee23f);
  box-shadow: 0 0 22px #a8ed5520;
}

.channel-preview strong,
.channel-preview small {
  display: block;
}

.channel-preview strong {
  color: var(--text);
}

.channel-preview small,
.channel-preview li {
  color: var(--muted);
  font-size: 9px;
}

.channel-preview ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.channel-preview li strong {
  display: inline;
  color: #cfd8e3;
}

.role-list .blocked-user,
.role-assignments label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.role-assignments label > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.role-assignments strong {
  color: var(--text);
  font-size: 10px;
}

.role-assignments small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--role-color);
  box-shadow: 0 0 12px var(--role-color);
}

.sticker-tray {
  position: relative;
  z-index: 4;
  margin: 0 5% 10px;
  padding: 9px;
  border: 1px solid #ffffff12;
  border-radius: 15px;
  background: #0b1019ee;
  box-shadow: 0 20px 50px #0008;
  backdrop-filter: blur(18px);
}

.composer-tool-panel header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.composer-tool-panel header button {
  border: 1px solid #a8ed5530;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--green);
  background: #a8ed550c;
  font-size: 8px;
  font-weight: 1000;
  cursor: pointer;
}

.composer-tool-panel header span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.composer-tool-panel header strong {
  font-size: 10px;
}

.composer-tool-panel header small {
  margin-top: 2px;
  color: #7c8796;
  font-size: 7px;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr));
  gap: 7px;
}

.sticker-grid button {
  min-height: 80px;
  border: 1px solid #ffffff0d;
  border-radius: 12px;
  color: #dce7df;
  background: #ffffff05;
  font-size: 7px;
  font-weight: 900;
}

.sticker-grid b {
  display: block;
  margin-bottom: 4px;
  font-size: 28px;
}

.voice-record-panel {
  position: relative;
  z-index: 4;
  margin: 0 5% 10px;
  padding: 10px;
  border: 1px solid #ffffff12;
  border-radius: 15px;
  background: #0b1019ee;
  box-shadow: 0 20px 50px #0008;
  backdrop-filter: blur(18px);
}

.voice-record-body {
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 10px;
}

.voice-record-body i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff6577 0 30%, #ff657722 31% 58%, transparent 59%);
  box-shadow: 0 0 28px #ff657755;
  animation: onlinePulse 1s ease-in-out infinite;
}

.voice-record-body p {
  margin: 0;
  color: #aab4c2;
  font-size: 9px;
  line-height: 1.5;
}

.voice-record-body button {
  border: 1px solid #ffffff12;
  border-radius: 11px;
  padding: 9px 12px;
  color: #eef4f7;
  background: #ffffff08;
  font-size: 8px;
  font-weight: 1000;
  cursor: pointer;
}

#stopVoiceRecordButton {
  border-color: #a8ed5535;
  color: #10160b;
  background: linear-gradient(145deg, #c8ff79, #91e245);
}

#cancelVoiceRecordButton {
  border-color: #ff657735;
  color: #ffd7dc;
  background: #ff657712;
}

.activity-current article {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #a8ed5525;
  border-radius: 14px;
  background: radial-gradient(circle at 90% 0, #a8ed5514, transparent 40%), #ffffff04;
}
.activity-current strong, .activity-current small { display: block; }
.activity-current small { margin: 5px 0 10px; color: #8d98a4; }
.activity-current div { display: flex; gap: 7px; }
.mini-game-hub { display: grid; gap: 12px; margin: 14px 0; border: 1px solid #56d6ff24; border-radius: 18px; padding: 14px; background: radial-gradient(circle at 8% 0, #56d6ff18, transparent 34%), linear-gradient(145deg, #121a27, #0d121b); box-shadow: inset 0 1px #ffffff0d, 0 18px 44px #0003; }
.mini-game-hub > div:first-child { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mini-game-hub > div:first-child span { color: var(--cyan); font-size: 7px; font-weight: 1000; letter-spacing: 1.7px; }
.mini-game-hub > div:first-child p { max-width: 330px; margin: 0; color: #8b96a7; font-size: 7px; line-height: 1.5; text-align: right; }
.mini-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-game-grid button { min-height: 96px; display: grid; align-content: center; gap: 5px; border: 1px solid #ffffff10; border-radius: 14px; padding: 11px; color: #eef5fb; background: linear-gradient(145deg, #ffffff08, #ffffff03); text-align: left; cursor: pointer; }
.mini-game-grid button:hover { border-color: #56d6ff48; transform: translateY(-3px); box-shadow: 0 18px 40px #0004, 0 0 28px #56d6ff16; }
.mini-game-grid b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--cyan); background: #56d6ff12; font-size: 16px; }
.mini-game-grid strong { font-size: 9px; }
.mini-game-grid small { color: #7f8b9c; font-size: 7px; }

.voice-history-list small {
  margin-top: 4px;
  color: #8d98a4;
  font-size: 7px;
}

.screen-share-status {
  position: absolute;
  z-index: 5;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100% - 32px);
  padding: 7px 8px 7px 13px;
  border: 1px solid #a8ed5538;
  border-radius: 999px;
  color: #f2ffe7;
  background: #0a130fd9;
  box-shadow: 0 12px 32px #0006, 0 0 24px #a8ed5515;
  backdrop-filter: blur(16px);
}

.screen-share-status span {
  color: var(--green);
  text-shadow: 0 0 12px var(--green);
  animation: onlinePulse 1.8s ease-in-out infinite;
}

.screen-share-status strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-share-status button {
  min-height: 29px;
  padding: 0 11px;
  border: 1px solid #ffffff12;
  border-radius: 999px;
  color: #eff7f2;
  background: #ffffff0a;
}

.screen-share-status button:hover {
  border-color: #a8ed5545;
  background: #a8ed5514;
}

#screenVideo:fullscreen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  border-radius: 0;
  background: #000;
  object-fit: contain;
}

.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #ffffff08;
}

#closeStage {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  color: #aab6c4;
  background: #ffffff07;
  cursor: pointer;
}

#closeStage:hover {
  border-color: #a8ed5538;
  color: var(--green);
  background: #a8ed550d;
}

.voice-quality {
  margin-left: 5px;
  border: 1px solid #ffffff10;
  border-radius: 999px;
  padding: 3px 7px;
  color: #8d98a4;
  background: #ffffff05;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: .3px;
}

.voice-quality.good { border-color: #a8ed5530; color: var(--green); background: #a8ed550b; }
.voice-quality.fair { border-color: #ffd16635; color: #ffd166; background: #ffd1660a; }
.voice-quality.bad { border-color: #ff5c6d35; color: var(--red); background: #ff5c6d0a; }

.live-dot {
  box-shadow: 0 0 12px var(--green);
  animation: onlinePulse 2s ease-in-out infinite;
}

.participant {
  border-color: #ffffff10;
  background: #ffffff04;
}

.participant:hover {
  border-color: #a8ed5525;
  background: #a8ed5508;
}

.participant strong {
  font-size: 9px;
}

.participant-audio {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.participant-audio button {
  border: 0;
  background: transparent;
  color: #aeb7c1;
  cursor: pointer;
}

.participant-audio button.active {
  color: var(--red);
}

.participant-audio input {
  width: 70px;
  accent-color: var(--green);
}

#muteButton.talking {
  background: var(--green);
  color: #10150a;
  box-shadow: 0 0 25px #a8ed5566;
}

.call-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #0004;
}

.participant.speaking {
  border-color: #a8ed5570;
  background: #a8ed5510;
  box-shadow: 0 0 20px #a8ed5535, inset 0 0 0 1px #a8ed5520;
}

dialog {
  border-color: #ffffff12;
  background: linear-gradient(145deg, #181d28, #10131c);
  box-shadow: 0 30px 100px #000b, inset 0 1px #ffffff10;
}

dialog::backdrop {
  background: #05060bdc;
  backdrop-filter: blur(12px);
}

dialog[open] {
  animation: modalIn .18s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
}

dialog input,
dialog select,
dialog textarea {
  border-color: #ffffff10;
  background: #090c13;
}

dialog button:not(.x):not(.create-btn),
dialog input::file-selector-button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #ffffff12;
  border-radius: 9px;
  color: #dce7df;
  background: #ffffff07;
  font-size: 7px;
  font-weight: 800;
}

dialog button:not(.x):not(.create-btn):hover,
dialog input::file-selector-button:hover {
  border-color: #a8ed5545;
  color: var(--green);
  background: #a8ed550d;
}

dialog textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #ffffff10;
  border-radius: 9px;
  padding: 11px;
  color: #fff;
  outline: 0;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #ff5c6d88 !important;
  box-shadow: 0 0 0 3px #ff5c6d12 !important;
}

input:valid:not(:placeholder-shown):not([type="password"]),
textarea:valid:not(:placeholder-shown) {
  border-color: #a8ed5526;
}

:focus-visible {
  outline: 2px solid #a8ed5580;
  outline-offset: 2px;
}

.setting-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  color: #c3cad4;
  font-size: 9px;
  letter-spacing: 0;
  cursor: pointer;
}

.setting-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
}

.setting-range {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 9px;
}

.setting-range input {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  accent-color: var(--green);
}

.setting-range span {
  color: var(--green);
  font-size: 7px;
}

.mic-test {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 10px;
  margin-top: 13px;
  padding: 10px;
  border: 1px solid #ffffff0c;
  border-radius: 10px;
  background: #090c13;
}

.mic-test > div {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #ffffff0b;
}

.mic-test > div span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #ffd166, var(--red));
  box-shadow: 0 0 12px #a8ed5555;
  transition: width .08s linear;
}

.mic-test small {
  align-self: center;
  color: #7e8996;
  font-size: 7px;
  line-height: 1.45;
}

.mic-test button {
  border: 1px solid #a8ed5525;
  border-radius: 7px;
  padding: 6px 8px;
  color: var(--green);
  background: #a8ed550b;
  font-size: 7px;
  cursor: pointer;
}

.command-dialog {
  width: min(580px, calc(100% - 24px));
}

.command-dialog form {
  padding: 25px;
}

.command-dialog h2 {
  margin-bottom: 14px;
}

.command-dialog input {
  margin: 0;
  padding: 14px;
  font-size: 12px;
}

.search-controls {
  display: grid;
  grid-template-columns: 1fr 145px;
  gap: 7px;
}

.search-controls select {
  margin: 0;
  border: 1px solid #ffffff10;
  border-radius: 9px;
  padding: 0 9px;
  color: #cbd3da;
  background: #090c13;
  font-size: 8px;
}

.command-list {
  max-height: 420px;
  margin-top: 12px;
  overflow: auto;
}

.command-item {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px;
  background: transparent;
  color: #dce1e8;
  text-align: left;
  cursor: pointer;
}

.command-item:hover,
.command-item:focus-visible,
.command-item.selected {
  border-color: #a8ed5525;
  background: linear-gradient(90deg, #a8ed5512, #ffffff04);
}

.command-item span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #ffffff08;
  color: var(--green);
  font-weight: 800;
}

.command-item strong {
  font-size: 10px;
}

.command-item small {
  color: var(--muted);
  font-size: 8px;
}

.command-item kbd {
  justify-self: end;
  border: 1px solid #ffffff12;
  border-radius: 8px;
  padding: 5px 7px;
  color: #cfe8ad;
  background: #a8ed5510;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: inset 0 1px #ffffff10;
}

.search-result {
  width: 100%;
  margin-bottom: 6px;
  border: 1px solid #ffffff0c;
  border-radius: 11px;
  padding: 11px;
  background: #ffffff03;
  color: #dce2e8;
  text-align: left;
  cursor: pointer;
}

.search-result:hover {
  transform: translateX(2px);
  border-color: #a8ed5528;
  background: #a8ed5508;
}

.search-result span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.search-result strong {
  color: var(--green);
  font-size: 9px;
}

.search-result small {
  color: var(--muted);
  font-size: 7px;
}

.search-result p {
  margin: 7px 0 0;
  color: #b8c0ca;
  font-size: 9px;
  line-height: 1.5;
}

.command-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

kbd {
  border: 1px solid #ffffff18;
  border-radius: 4px;
  padding: 2px 5px;
  background: #ffffff08;
  box-shadow: inset 0 -1px #0008;
  font: inherit;
}

.login-screen {
  grid-template-columns: minmax(460px, 1fr) minmax(380px, 460px);
  gap: clamp(35px, 7vw, 100px);
  padding: 40px clamp(35px, 8vw, 130px);
  background:
    radial-gradient(circle at 50% -5%, #a8ed5535, transparent 30%),
    radial-gradient(circle at 10% 90%, #9878ff18, transparent 30%),
    radial-gradient(circle at 90% 80%, #56d6ff12, transparent 25%),
    var(--bg);
}

.login-showcase { position: relative; max-width: 680px; justify-self: end; }
.login-showcase h2 { max-width: 650px; margin: 18px 0 12px; font-size: clamp(40px, 5.5vw, 78px); line-height: .98; letter-spacing: -4px; }
.login-showcase h2 em { font-style: normal; background: linear-gradient(100deg, var(--green), #fff); background-clip: text; color: transparent; }
.login-showcase > p { max-width: 510px; color: #929ca9; font-size: 12px; line-height: 1.8; }
.showcase-orbit { position: relative; width: 250px; height: 250px; display: grid; place-items: center; margin: 18px auto 8px; }
.showcase-orbit .logo { position: relative; z-index: 4; width: 78px; height: 78px; border-radius: 25px; font-size: 32px; box-shadow: 0 0 70px #a8ed5550; transform: rotate(-8deg); }
.showcase-orbit > i { position: absolute; width: 155px; height: 155px; border: 1px solid #a8ed5524; border-radius: 50%; animation: emblemOrbit 13s linear infinite; }
.showcase-orbit > i:nth-of-type(2) { width: 215px; height: 215px; border-style: dashed; border-color: #a78bfa25; animation-direction: reverse; animation-duration: 19s; }
.showcase-orbit > i:nth-of-type(3) { width: 245px; height: 245px; border-color: #56d6ff12; animation-duration: 26s; }
.showcase-orbit > span { position: absolute; z-index: 3; width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #ffffff12; border-radius: 11px; color: var(--green); background: #141a24; box-shadow: 0 8px 24px #0006; font-size: 12px; }
.showcase-orbit > span:nth-of-type(1) { left: 21px; top: 76px; }
.showcase-orbit > span:nth-of-type(2) { right: 18px; top: 67px; color: #a78bfa; }
.showcase-orbit > span:nth-of-type(3) { left: 107px; bottom: 4px; color: #56d6ff; }
.showcase-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.showcase-features article { display: flex; align-items: center; gap: 8px; border: 1px solid #ffffff0d; border-radius: 12px; padding: 10px; background: #ffffff04; box-shadow: inset 0 1px #ffffff08; }
.showcase-features b { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: var(--green); background: #a8ed550d; }
.showcase-features span { min-width: 0; display: flex; flex-direction: column; }
.showcase-features strong { font-size: 8px; }
.showcase-features small { margin-top: 3px; color: #707b88; font-size: 6px; line-height: 1.35; }
.login-showcase footer { display: flex; gap: 15px; margin-top: 17px; color: #626d7a; font-size: 6px; font-weight: 900; letter-spacing: 1.2px; }
.login-card {
  width: min(460px, 100%);
  justify-self: start;
  border-color: #ffffff12;
  background: linear-gradient(145deg, #121621db, #0b0e16e8);
  box-shadow: 0 40px 120px #000a, inset 0 1px #ffffff10;
  backdrop-filter: blur(24px);
}

.login-card h1 {
  background: linear-gradient(120deg, #fff 25%, #c8ffa0 75%);
  background-clip: text;
  color: transparent;
}

.login-card h1 em {
  color: var(--green);
  text-shadow: 0 0 30px #a8ed5540;
}

.auth-field {
  position: relative;
  width: 100%;
}

.auth-form {
  gap: 9px;
}

.auth-form > input,
.auth-field,
.captcha-box {
  min-height: 44px;
}

.auth-form .auth-field input {
  padding-right: 48px;
  width: 100%;
  height: 44px;
}

.password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff10;
  border-radius: 10px;
  padding: 0;
  line-height: 0;
  color: #9aa4b2;
  background: #ffffff08;
  box-shadow: inset 0 1px #ffffff0c;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle svg,
.captcha-box button svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.password-toggle:hover,
.password-toggle.active {
  border-color: #a8ed5540;
  color: var(--green);
  background: #a8ed5512;
}

.password-toggle:active {
  transform: translateY(-50%) scale(.96);
}

.captcha-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px 112px;
  gap: 8px;
  align-items: center;
  border: 1px solid #ffffff12;
  border-radius: 16px;
  padding: 10px;
  background: #ffffff05;
}

.captcha-box span {
  color: #dbe5ec;
  font-size: 12px;
  font-weight: 900;
}

.captcha-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #a8ed5528;
  border-radius: 12px;
  padding: 0;
  line-height: 0;
  color: var(--green);
  background: #a8ed550d;
  cursor: pointer;
}

.captcha-box input {
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  text-align: center;
  font-size: 14px;
}

#secondFactorHint {
  color: #9aa6b5;
  font-size: 10px;
  line-height: 1.5;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0;
  color: #6f7a89;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, #ffffff18, transparent);
}

.google-auth {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #ffffff15;
  border-radius: 14px;
  padding: 8px 12px;
  color: #f2f5f8;
  background: linear-gradient(145deg, #ffffff0b, #ffffff04);
  box-shadow: inset 0 1px #ffffff10;
  cursor: pointer;
}

.google-auth b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #151922;
  background: #fff;
  font-size: 15px;
  font-weight: 1000;
}

.google-auth span {
  text-align: left;
  font-size: 10px;
  font-weight: 900;
}

.google-auth small {
  border: 1px solid #a8ed5524;
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--green);
  background: #a8ed550b;
  font-size: 6px;
  font-weight: 1000;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.google-auth:not(:disabled):hover {
  border-color: #ffffff30;
  transform: translateY(-2px);
  box-shadow: 0 18px 42px #0004, 0 0 25px #ffffff10;
}

.google-auth.disabled,
.google-auth[aria-disabled="true"],
.google-auth:disabled {
  opacity: .68;
  cursor: not-allowed;
}

.google-auth.disabled small,
.google-auth[aria-disabled="true"] small,
.google-auth:disabled small {
  border-color: #ffd1662f;
  color: #ffd166;
  background: #ffd1660b;
}

.command-trigger { color: #c8b9ff; font-size: 13px; }
.rail-btn { position: relative; }
.rail-unread { position: absolute; right: -3px; top: -3px; min-width: 15px; height: 15px; display: grid; place-items: center; padding: 0 3px; border: 2px solid #080a0d; border-radius: 999px; color: #fff; background: var(--red); font-size: 6px; font-weight: 900; box-shadow: 0 0 12px #ff5c6d55; }
.message-tools { display: flex; gap: 3px; margin-left: auto; opacity: 0; }
.message { position: relative; }
.message:hover .message-tools, .message:focus-within .message-tools { opacity: 1; }
.message-tools button { border: 1px solid #ffffff10; border-radius: 6px; padding: 3px 6px; background: #161c26; color: #aab3bf; font-size: 8px; cursor: pointer; }
.message.pinned { background: linear-gradient(90deg, #a8ed550a, transparent 72%); box-shadow: inset 2px 0 #a8ed5560; }
.pin-mark { margin-left: 3px; border: 1px solid #a8ed5528; border-radius: 999px; padding: 2px 5px; color: var(--green); background: #a8ed550a; font-size: 6px; font-weight: 800; letter-spacing: .4px; }
#pinnedMessagesButton.has-pins { border-color: #a8ed5534; color: var(--green); background: #a8ed550c; }
#pinnedMessagesCount { display: inline-grid; min-width: 14px; height: 14px; place-items: center; margin-left: 2px; border-radius: 999px; color: #11170b; background: var(--green); font-size: 7px; font-weight: 900; }
.pins-list { display: grid; gap: 6px; }
.pin-result { width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 10px; border: 1px solid #ffffff0c; border-radius: 11px; padding: 10px; color: #dfe5ea; background: #ffffff03; text-align: left; cursor: pointer; }
.pin-result:hover { border-color: #a8ed552b; background: #a8ed550a; }
.pin-result > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.pin-result strong { font-size: 9px; }
.pin-result small { margin-top: 2px; color: #737e8d; font-size: 7px; }
.pin-result p { overflow: hidden; margin: 7px 0 0; color: #afb7c1; font-size: 9px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.events-dialog { width: min(760px, calc(100% - 24px)); }
.event-create-grid { display: grid; grid-template-columns: 1fr 190px; gap: 7px; }
.event-create-grid textarea { grid-column: 1 / -1; }
.event-create-grid .create-btn { grid-column: 1 / -1; margin-top: 2px; }
.events-list { max-height: 420px; display: grid; gap: 7px; margin-top: 16px; overflow: auto; }
.event-card { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px; border: 1px solid #ffffff0d; border-radius: 12px; padding: 10px; background: #ffffff03; }
.event-card time { min-height: 55px; display: grid; place-content: center; border-radius: 9px; color: var(--group-accent); background: color-mix(in srgb, var(--group-accent) 10%, transparent); font-size: 7px; font-weight: 900; text-align: center; }
.event-card time b { display: block; margin-top: 4px; color: #e4e9eb; }
.event-card > div:nth-child(2) { min-width: 0; }
.event-card strong { font-size: 9px; }
.event-card p { margin: 4px 0; color: #87929f; font-size: 7px; }
.event-card small { color: #66717f; font-size: 6px; }
.event-card > div:last-child { display: flex; flex-direction: column; gap: 4px; }
.event-card button { border: 1px solid #ffffff10; border-radius: 7px; padding: 6px 8px; color: #aab4bd; background: #ffffff04; font-size: 6px; cursor: pointer; }
.event-card button.active { border-color: #a8ed5535; color: var(--green); background: #a8ed550b; }
.media-dialog { width: min(780px, calc(100% - 24px)); }
.media-dialog form { padding: 28px; }
.media-grid { max-height: min(65vh, 620px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 16px; overflow: auto; }
.media-grid > .empty { grid-column: 1 / -1; padding: 45px 15px; }
.media-card { position: relative; overflow: hidden; aspect-ratio: 1.25; border: 1px solid #ffffff0d; border-radius: 12px; padding: 0; background: #080b11; cursor: pointer; }
.media-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease, opacity .25s ease; }
.media-card span { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 20px 9px 8px; color: #eff4f0; background: linear-gradient(transparent, #05070ae8); opacity: 0; transition: opacity .2s ease; }
.media-card strong, .media-card small { font-size: 7px; }
.media-card small { color: #a7b0ba; }
.media-card:hover { border-color: #a8ed5538; }
.media-card:hover img { transform: scale(1.04); opacity: .82; }
.media-card:hover span { opacity: 1; }
.moderation-dot { position: absolute; width: 6px; height: 6px; right: 4px; top: 4px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.moderation-list { display: grid; gap: 7px; }
.moderation-card { display: grid; gap: 6px; border: 1px solid #ffffff0d; border-radius: 12px; padding: 12px; background: #ffffff03; }
.moderation-card > span { width: max-content; border-radius: 999px; padding: 3px 6px; color: #ff9ba5; background: #ff5c6d10; font-size: 6px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.moderation-card strong { color: #e4e9ec; font-size: 9px; }
.moderation-card p { margin: 0; color: #8d98a5; font-size: 8px; line-height: 1.5; }
.moderation-card small { color: #66717f; font-size: 7px; }
.moderation-card button { width: max-content; border: 1px solid #a8ed5525; border-radius: 7px; padding: 6px 8px; color: var(--green); background: #a8ed550a; font-size: 7px; cursor: pointer; }
.moderation-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.moderation-actions button:not(:last-child) { border-color: #ffad5c30; color: #ffb96c; background: #ffad5c0a; }
.invite-links { display: grid; gap: 7px; max-height: 280px; margin-top: 14px; overflow: auto; }
.invite-link-card { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 9px; border: 1px solid #ffffff10; border-radius: 15px; padding: 12px; background: radial-gradient(circle at 15% 10%, #a8ed5512, transparent 38%), #ffffff04; box-shadow: inset 0 1px #ffffff0b; }
.invite-link-card div { min-width: 0; display: flex; flex-direction: column; }
.invite-link-card strong { overflow: hidden; color: #eef5f8; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.invite-link-card small { margin-top: 5px; color: #8e9aaa; font-size: 7px; }
.invite-link-card button { border: 1px solid #ffffff12; border-radius: 10px; padding: 8px 10px; color: #d9e1e9; background: #ffffff07; font-size: 7px; font-weight: 900; cursor: pointer; }
.invite-link-card button:first-of-type { border-color: #a8ed5535; color: var(--green); background: #a8ed5510; }
.invite-link-card.muted { opacity: .58; }
.invite-usage { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.invite-usage span { display: inline-flex; align-items: center; gap: 6px; width: fit-content; border: 1px solid #ffffff10; border-radius: 999px; padding: 4px 8px 4px 4px; color: #dfe8ef; background: #101722; font-size: 7px; font-weight: 900; }
.invite-usage i { display: grid; place-items: center; width: 20px; height: 20px; overflow: hidden; border-radius: 999px; color: #07100b; font-size: 7px; font-style: normal; background-size: cover !important; background-position: center !important; }
.invite-usage i img { width: 100%; height: 100%; object-fit: cover; }
.invite-usage em { color: #8f9ba8; font-size: 6px; font-style: normal; font-weight: 800; }
.invite-usage.empty-line { color: #768290; font-size: 7px; }
.platform-invite-created { display: grid; gap: 8px; margin-top: 14px; border: 1px solid #a8ed5530; border-radius: 14px; padding: 12px; background: linear-gradient(135deg, #a8ed5516, #5ee7f210); box-shadow: 0 16px 50px #a8ed5512; }
.platform-invite-created strong { color: #f7fff0; font-size: 10px; }
.platform-invite-created span { color: #c6d0dc; font-size: 8px; }
.platform-invite-created code { display: block; overflow: hidden; border: 1px solid #ffffff10; border-radius: 10px; padding: 9px; color: var(--green); background: #05080c80; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.platform-invite-created button { justify-self: end; border: 1px solid #a8ed5535; border-radius: 10px; padding: 8px 12px; color: #10150b; background: var(--green); font-size: 8px; font-weight: 900; cursor: pointer; }
.msg-head time small { color: #747e8d; font-size: 7px; }
.message-reply-quote { max-width: 100%; display: flex; gap: 7px; margin-bottom: 7px; border: 0; border-left: 2px solid var(--green); padding: 5px 8px; background: #a8ed5507; color: #aeb7c2; font-size: 8px; text-align: left; cursor: pointer; }
.message-reply-quote span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.message-reactions button { border: 1px solid #ffffff10; border-radius: 12px; padding: 3px 7px; background: #ffffff05; color: #dfe4e9; font-size: 9px; cursor: pointer; }
.message-reactions button.mine { border-color: #a8ed5540; background: #a8ed5512; }
.message-reactions b { color: var(--muted); font-size: 7px; }
.message-text { white-space: pre-wrap; }
.mention { display: inline-block; padding: 1px 4px; border-radius: 5px; color: var(--green); background: #a8ed5513; font-weight: 800; }
.message-text code { padding: 2px 5px; border: 1px solid #ffffff10; border-radius: 5px; color: #bff579; background: #05080c; font-family: Consolas, monospace; }
.message-text pre { overflow: auto; padding: 10px; border: 1px solid #ffffff10; border-radius: 10px; background: #05080c; }
.message-text pre code { padding: 0; border: 0; background: transparent; }
.message-file { display: flex; align-items: center; gap: 10px; max-width: 440px; margin-top: 8px; padding: 10px; border: 1px solid #ffffff10; border-radius: 12px; color: #dce7df; background: #ffffff05; }
.message-file strong, .message-file small { display: block; }
.message-file small { margin-top: 3px; color: #8d98a4; font-size: 7px; }
.message-file > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--green); background: #a8ed5510; font-weight: 900; }
.voice-file { display: block; }
.voice-file span { display: block; margin-bottom: 6px; color: var(--green); font-size: 7px; font-weight: 900; }
.voice-file audio { width: min(360px, 100%); }
.video-file { display: block; }
.video-file video { width: min(420px, 100%); max-height: 280px; border-radius: 9px; background: #000; }
.video-file a { display: block; margin-top: 6px; color: var(--green); font-size: 7px; }
.safe-link { max-width: 420px; display: grid; grid-template-columns: 27px 1fr; grid-template-rows: auto auto; gap: 1px 8px; margin: 7px 0 3px; border: 1px solid #ffffff0e; border-left: 2px solid var(--green); border-radius: 8px; padding: 8px; color: #dfe7e2; background: linear-gradient(90deg, #a8ed5509, #ffffff03); text-decoration: none; white-space: normal; }
.safe-link:hover { border-color: #a8ed5533; background: #a8ed550d; }
.safe-link span { grid-row: 1 / 3; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: var(--green); background: #a8ed5510; font-size: 10px; }
.safe-link strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.safe-link small { overflow: hidden; color: #747f8d; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.reaction-picker { position: absolute; z-index: 8; right: 10px; top: 31px; display: flex; gap: 3px; border: 1px solid #ffffff10; border-radius: 12px; padding: 5px; background: #111721e8; box-shadow: 0 12px 35px #0008; backdrop-filter: blur(14px); }
.reaction-picker button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; font-size: 14px; cursor: pointer; }
.reaction-picker button:hover { transform: translateY(-2px) scale(1.08); background: #ffffff0a; }
.reply-composer { position: relative; z-index: 3; margin: 0 5% -13px; padding: 8px 12px 18px; border: 1px solid #a8ed5520; border-radius: 11px 11px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #101a16; color: #aeb9c3; font-size: 8px; }
.reply-composer button { border: 0; background: transparent; color: #ff98a5; cursor: pointer; }
.poll-btn { width: 32px; height: 32px; flex: 0 0 auto; border: 1px solid #ffffff0c; border-radius: 9px; color: #c9b7ff; background: #ffffff05; font-size: 15px; cursor: pointer; }
.poll-btn:hover { border-color: #a78bfa44; background: #a78bfa12; }
.poll-card { max-width: 480px; margin: 8px 0 3px; border: 1px solid #ffffff10; border-radius: 14px; padding: 13px; background: linear-gradient(145deg, #171d28, #10151e); box-shadow: inset 0 1px #ffffff0a; }
.poll-card > span { color: #b69cff; font-size: 6px; font-weight: 900; letter-spacing: 1.3px; }
.poll-card h4 { margin: 6px 0 11px; color: #f1f4f5; font-size: 11px; }
.poll-card > div { display: grid; gap: 5px; }
.poll-card button { position: relative; overflow: hidden; min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #ffffff0d; border-radius: 8px; padding: 7px 9px; color: #d9dfe4; background: #ffffff03; text-align: left; cursor: pointer; }
.poll-card button i { position: absolute; inset: 0 auto 0 0; z-index: 0; background: linear-gradient(90deg, #a78bfa20, #a8ed5512); transition: width .3s ease; }
.poll-card button strong, .poll-card button small { position: relative; z-index: 1; }
.poll-card button strong { font-size: 8px; }
.poll-card button small { color: #828d9a; font-size: 6px; }
.poll-card button.mine { border-color: #a8ed5540; }
.poll-card button:hover { border-color: #a78bfa55; }
.poll-card footer { margin-top: 8px; color: #6f7a88; font-size: 6px; }
.poll-option-inputs { display: grid; gap: 5px; margin-top: 7px; }
#addPollOption { margin-top: 8px; border: 1px solid #ffffff10; border-radius: 7px; padding: 6px 8px; color: #b7c0c8; background: #ffffff05; font-size: 7px; cursor: pointer; }
.home-dashboard { position: relative; min-height: 100%; padding: 8px 0 30px; isolation: isolate; }
.home-aurora { position: absolute; z-index: -1; width: 340px; height: 340px; border-radius: 50%; filter: blur(100px); opacity: .13; pointer-events: none; }
.home-aurora.one { top: -120px; left: 8%; background: var(--green); }
.home-aurora.two { top: 230px; right: 3%; background: var(--violet); }
.home-hero { position: relative; overflow: hidden; min-height: 210px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 35px 40px; border: 1px solid #ffffff10; border-radius: 25px; background: linear-gradient(120deg, #1a202de8, #11151fd9 55%, #162018d9); box-shadow: 0 30px 80px #0004, inset 0 1px #ffffff12; }
.home-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#ffffff04 1px, transparent 1px), linear-gradient(90deg, #ffffff04 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(90deg, transparent, #000 70%); }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: 2px; }
.hero-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); animation: onlinePulse 2s ease-in-out infinite; }
.home-hero h1 { margin: 15px 0 8px; font-size: clamp(28px, 4vw, 46px); line-height: 1; letter-spacing: -2.5px; }
.home-hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--green), #fff); background-clip: text; color: transparent; }
.home-hero p { max-width: 460px; margin: 0; color: #9da6b4; font-size: 11px; line-height: 1.7; }
.hero-emblem { position: relative; width: 150px; height: 150px; display: grid; place-items: center; flex-shrink: 0; }
.hero-emblem span { position: relative; z-index: 3; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 25px; background: linear-gradient(145deg, #c4ff78, var(--green)); color: #10150a; font-size: 34px; font-weight: 900; box-shadow: 0 0 60px #a8ed5545, inset 0 1px #fff; transform: rotate(-8deg); }
.hero-emblem i { position: absolute; width: 110px; height: 110px; border: 1px solid #a8ed5530; border-radius: 35px; transform: rotate(15deg); animation: emblemOrbit 9s linear infinite; }
.hero-emblem i:nth-child(3) { width: 135px; height: 135px; border-color: #9878ff25; animation-direction: reverse; animation-duration: 14s; }
.hero-emblem i:nth-child(4) { width: 12px; height: 12px; right: 7px; top: 25px; border: 0; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
@keyframes emblemOrbit { to { transform: rotate(375deg); } }
.home-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.home-stats article { position: relative; overflow: hidden; min-height: 92px; padding: 17px; border: 1px solid #ffffff0d; border-radius: 16px; background: linear-gradient(145deg, #171c27c9, #10141dc9); box-shadow: inset 0 1px #ffffff0a; }
.home-stats article::after { content: ""; position: absolute; width: 55px; height: 55px; right: -25px; bottom: -25px; border-radius: 50%; background: var(--green); filter: blur(30px); opacity: .18; }
.home-stats span, .home-panel-head span { color: #778191; font-size: 7px; font-weight: 800; letter-spacing: 1.5px; }
.home-stats strong { display: block; margin-top: 7px; font-size: 23px; letter-spacing: -1px; }
.home-stats small { color: #7f8996; font-size: 8px; }
.pulse-stat strong { color: var(--green); font-size: 15px; letter-spacing: 1px; }
.pulse-stat small i { display: inline-block; width: 5px; height: 5px; margin-right: 3px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); }
.home-journey { position: relative; display: grid; grid-template-columns: minmax(165px, .72fr) 2fr auto; align-items: stretch; gap: 12px; margin-bottom: 16px; padding: 12px; border: 1px solid #a8ed551c; border-radius: 18px; background: linear-gradient(120deg, #172119d9, #111620d9 45%, #151828d9); box-shadow: inset 0 1px #ffffff0b, 0 15px 35px #0002; }
.journey-copy { padding: 8px 9px; }
.journey-copy > span { color: var(--green); font-size: 7px; font-weight: 900; letter-spacing: 1.5px; }
.journey-copy h3 { margin: 6px 0 3px; font-size: 12px; }
.journey-copy p { margin: 0; color: #788493; font-size: 7px; }
.journey-progress { height: 3px; margin-top: 10px; overflow: hidden; border-radius: 5px; background: #ffffff0b; }
.journey-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--cyan)); box-shadow: 0 0 14px var(--green); transition: width .35s ease; }
.journey-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.journey-steps button { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: 1fr 1fr; column-gap: 8px; align-items: center; border: 1px solid #ffffff0b; border-radius: 11px; padding: 8px; color: #dfe5e8; background: #ffffff04; text-align: left; cursor: pointer; }
.journey-steps button:hover { border-color: #a8ed5530; background: #a8ed550b; transform: translateY(-2px); }
.journey-steps button.done { opacity: .58; }
.journey-steps span { grid-row: 1 / 3; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: #a8ed5510; font-size: 10px; font-weight: 900; }
.journey-steps strong { align-self: end; font-size: 8px; }
.journey-steps small { align-self: start; color: #707b89; font-size: 6px; }
.journey-help { align-self: center; width: 28px; height: 28px; border: 1px solid #ffffff12; border-radius: 50%; color: #aab4bf; background: #ffffff05; cursor: pointer; }
.home-journey.complete { border-color: #a8ed5530; }
.home-events { display: grid; grid-template-columns: 175px 1fr; align-items: center; gap: 12px; margin-bottom: 16px; border: 1px solid #ffffff0d; border-radius: 17px; padding: 12px; background: linear-gradient(120deg, #151a25, #10141d); }
.home-events > div:first-child { padding: 5px 8px; }
.home-events > div:first-child span { color: #a78bfa; font-size: 6px; font-weight: 900; letter-spacing: 1.4px; }
.home-events h3 { margin: 5px 0 0; font-size: 11px; }
.home-events > div:last-child { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.home-events button { min-width: 0; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 8px; border: 1px solid #ffffff0b; border-radius: 10px; padding: 7px; color: #e0e5e8; background: #ffffff03; text-align: left; cursor: pointer; }
.home-events button:hover { border-color: color-mix(in srgb, var(--group-accent) 35%, transparent); transform: translateY(-2px); }
.home-events time { display: flex; flex-direction: column; align-items: center; border-radius: 8px; padding: 5px 2px; color: var(--group-accent); background: color-mix(in srgb, var(--group-accent) 10%, transparent); font-size: 6px; font-weight: 900; text-transform: uppercase; }
.home-events time b { margin-top: 2px; color: #e2e7e9; font-size: 6px; }
.home-events button span { min-width: 0; display: flex; flex-direction: column; }
.home-events button strong, .home-events button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-events button strong { font-size: 7px; }
.home-events button small { margin-top: 3px; color: #717c8a; font-size: 6px; }
.home-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; }
.home-panel { min-height: 250px; padding: 17px; border: 1px solid #ffffff0d; border-radius: 20px; background: linear-gradient(145deg, #141924d1, #0d1119d1); box-shadow: 0 18px 45px #0002, inset 0 1px #ffffff09; backdrop-filter: blur(15px); }
.home-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.home-panel-head h3 { margin: 4px 0 0; font-size: 15px; }
.home-panel-head button { border: 1px solid #a8ed5520; border-radius: 8px; padding: 6px 9px; background: #a8ed550c; color: var(--green); font-size: 8px; cursor: pointer; }
.live-pill { border: 1px solid #a8ed5524; border-radius: 20px; padding: 4px 7px; background: #a8ed550c; color: var(--green); font-size: 7px; letter-spacing: 1px; }
.home-space-card, .home-voice-card { width: 100%; display: grid; align-items: center; gap: 10px; margin-bottom: 7px; border: 1px solid transparent; border-radius: 12px; padding: 10px; background: #ffffff03; color: #e6e9ee; text-align: left; cursor: pointer; }
.home-space-card { grid-template-columns: 38px 1fr auto; }
.home-voice-card { grid-template-columns: 40px 1fr auto; }
.home-space-card:hover, .home-voice-card:hover { transform: translateX(3px); border-color: #a8ed5520; background: linear-gradient(90deg, #a8ed550d, #ffffff04); }
.home-space-icon, .voice-orb { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #2a323e, #1b212b); color: var(--green); font-size: 14px; font-weight: 900; }
.home-space-card .home-space-icon { border: 1px solid color-mix(in srgb, var(--group-accent) 25%, transparent); color: var(--group-accent); background: color-mix(in srgb, var(--group-accent) 10%, #1b212b); font-size: 8px; }
.home-space-card:hover { border-color: color-mix(in srgb, var(--group-accent) 30%, transparent); }
.voice-orb { position: relative; border-radius: 50%; background: #a8ed5510; }
.voice-orb i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); animation: onlinePulse 1.7s ease-in-out infinite; }
.home-space-card span:nth-child(2), .home-voice-card span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.home-space-card strong, .home-voice-card strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.home-space-card small, .home-voice-card small { margin-top: 3px; color: #788292; font-size: 7px; }
.home-space-card b { color: var(--green); }
.home-voice-card b { border-radius: 7px; padding: 5px 7px; background: var(--green); color: #10150a; font-size: 7px; }
.home-panel-empty { min-height: 170px; display: grid; place-content: center; justify-items: center; padding: 20px; border: 1px dashed #ffffff12; border-radius: 13px; color: #9ca5b2; text-align: center; }
.home-panel-empty p { max-width: 250px; color: #747e8d; font-size: 8px; line-height: 1.6; }
.home-panel-empty button { border: 0; border-radius: 7px; padding: 7px 10px; background: var(--green); color: #10150a; font-size: 8px; font-weight: 800; }
.home-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 10px; margin-top: 12px; }
.home-actions button { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 10px; border: 1px solid #ffffff0d; border-radius: 15px; padding: 13px; background: linear-gradient(145deg, #151a24, #10141d); color: #e7ebef; text-align: left; cursor: pointer; }
.home-actions button:hover { transform: translateY(-3px); border-color: #a8ed5525; box-shadow: 0 15px 35px #0003; }
.home-actions span { grid-row: 1 / 3; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #a8ed5510; color: var(--green); font-size: 14px; font-weight: 800; }
.home-actions strong { font-size: 9px; }
.home-actions small { margin-top: 3px; color: #778190; font-size: 7px; }
.home-actions .logout-card {
  border-color: #ff65771f;
  background: linear-gradient(145deg, #24151b, #12141d);
}
.home-actions .logout-card span {
  color: var(--red);
  background: #ff657714;
}
.home-actions .logout-card:hover {
  border-color: #ff657744;
  box-shadow: 0 15px 35px #0003, 0 0 28px #ff657716;
}

.game-hub-screen {
  position: relative;
  min-height: 100%;
  padding: 8px 0 34px;
  isolation: isolate;
}

.arcade-stage {
  position: relative;
  min-height: 260px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #ffffff14;
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 10%, #a8ed5522, transparent 34%),
    radial-gradient(circle at 80% 30%, #56d6ff1e, transparent 30%),
    linear-gradient(145deg, #111827, #0a0f18);
  box-shadow: inset 0 1px #ffffff10, 0 18px 55px #0004;
  overflow: hidden;
}

.arcade-stage > div {
  position: relative;
  z-index: 1;
}

.arcade-stage strong {
  display: block;
  color: var(--text);
  font-size: clamp(20px, 3vw, 34px);
  letter-spacing: -.8px;
}

.arcade-stage p,
.arcade-stage small {
  color: var(--muted);
}

.arcade-stage button {
  border: 1px solid #ffffff12;
  border-radius: 18px;
  color: #08100b;
  background: linear-gradient(145deg, #c9ff83, #91e245);
  font-weight: 1000;
}

.reflex-game,
.target-game,
.color-game,
.memory-game {
  display: grid;
  place-items: center;
  gap: 16px;
  min-height: 220px;
  text-align: center;
}

.reflex-game #reflexButton {
  width: min(260px, 80%);
  min-height: 92px;
  color: #cbd5e1;
  background: #151d2c;
  font-size: 22px;
}

.reflex-game #reflexButton.go {
  color: #061006;
  background: linear-gradient(145deg, #bbff6c, #6ee76a);
  box-shadow: 0 0 38px #a8ed5555;
}

.memory-game section {
  display: grid;
  grid-template-columns: repeat(4, minmax(54px, 84px));
  gap: 10px;
}

.memory-game section button {
  aspect-ratio: 1;
  color: #eaf6dc;
  background: #151d2c;
  font-size: 28px;
}

.memory-game section button.open {
  color: #071008;
  background: linear-gradient(145deg, #c9ff83, #8ee648);
}

.target-game section {
  position: relative;
  width: min(620px, 100%);
  height: 250px;
  border: 1px solid #ffffff10;
  border-radius: 24px;
  background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 34px 34px;
}

#targetDot {
  position: absolute;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  font-size: 24px;
  box-shadow: 0 0 30px #a8ed5540;
}

.color-game section {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 10px;
  width: min(620px, 100%);
}

.color-game section button {
  min-height: 76px;
  color: #071008;
}

.color-game .lime { background: #a8ed55; }
.color-game .cyan { background: #56d6ff; }
.color-game .violet { background: #9878ff; color: #fff; }
.color-game .rose { background: #ff7aa8; }

.arcade-stage .win,
.arcade-stage .success {
  color: var(--text);
}

.arcade-stage .fail strong {
  color: var(--red);
}

.game-aurora {
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(105px);
  opacity: .16;
  pointer-events: none;
}

.game-aurora.one { top: -120px; left: 8%; background: var(--green); opacity: .13; }
.game-aurora.two { top: 230px; right: 3%; background: var(--violet); opacity: .13; }

.game-hero {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding: 35px 40px;
  border: 1px solid #ffffff10;
  border-radius: 25px;
  background:
    radial-gradient(circle at 88% 18%, #a8ed5520, transparent 30%),
    linear-gradient(120deg, #1a202de8, #11151fd9 55%, #162018d9);
  box-shadow: 0 30px 80px #0004, inset 0 1px #ffffff12;
}

.game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#ffffff04 1px, transparent 1px), linear-gradient(90deg, #ffffff04 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}

.game-hero::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 25px var(--green);
  animation: scanLine 2.4s ease-in-out infinite;
}

.game-hero > * {
  position: relative;
  z-index: 1;
}

.game-hero h1 {
  max-width: 720px;
  margin: 15px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -2.5px;
}

.game-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--green), #fff);
  background-clip: text;
  color: transparent;
}

.game-hero p {
  max-width: 520px;
  margin: 0;
  color: #9ba7b8;
  font-size: 11px;
  line-height: 1.75;
}

.game-hero button {
  min-width: 170px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #a8ed5540;
  border-radius: 999px;
  color: #0d1309;
  background: linear-gradient(145deg, #d8ff92, var(--green));
  box-shadow: 0 18px 46px #a8ed5526;
  font-size: 9px;
  font-weight: 1000;
  cursor: pointer;
}

.games-emblem span {
  font-size: 28px;
  transform: rotate(8deg);
}

.game-hero button span {
  font-size: 17px;
}

.game-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.game-summary article,
.game-grid-screen button,
.game-leaderboard,
.badge-board {
  border: 1px solid #ffffff0d;
  background: linear-gradient(145deg, #151b27d8, #0d121bd8);
  box-shadow: inset 0 1px #ffffff0b, 0 18px 45px #0002;
}

.game-summary article {
  position: relative;
  overflow: hidden;
  min-height: 94px;
  border-radius: 17px;
  padding: 17px;
}

.game-summary article::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #56d6ff;
  filter: blur(30px);
  opacity: .16;
}

.game-summary span,
.game-panel-head span {
  color: #8aa0ff;
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: 1.6px;
}

.game-summary strong {
  display: block;
  margin-top: 7px;
  color: #f5f8ff;
  font-size: 24px;
}

.game-summary small,
.game-panel-head small {
  color: #7f8b9d;
  font-size: 8px;
}

.game-grid-screen {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.game-grid-screen button {
  min-height: 148px;
  display: grid;
  align-content: center;
  gap: 7px;
  border-radius: 18px;
  padding: 16px;
  color: #edf6ff;
  text-align: left;
  cursor: pointer;
}

.game-grid-screen button:hover {
  transform: translateY(-4px);
  border-color: #56d6ff42;
  box-shadow: 0 22px 54px #0005, 0 0 30px #56d6ff16;
}

.game-grid-screen b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #56d6ff12;
  font-size: 20px;
}

.game-grid-screen strong {
  font-size: 13px;
}

.game-grid-screen small {
  color: #8794a6;
  font-size: 8px;
}

.game-grid-screen em {
  width: fit-content;
  border: 1px solid #a8ed5530;
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--green);
  background: #a8ed550d;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
}

.game-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}

.game-leaderboard,
.badge-board {
  border-radius: 20px;
  padding: 17px;
}

.game-panel-head {
  margin-bottom: 14px;
}

.game-panel-head h3 {
  margin: 5px 0 2px;
  font-size: 18px;
  letter-spacing: -.5px;
}

.game-leaderboard article {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 42px 38px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  border: 1px solid #ffffff0e;
  border-radius: 14px;
  padding: 10px;
  background: #ffffff04;
}

.game-leaderboard article.me {
  border-color: #a8ed5535;
  background: #a8ed550a;
}

.game-leaderboard article > b {
  color: #56d6ff;
  font-size: 11px;
}

.game-leaderboard article strong,
.badge-board strong {
  font-size: 10px;
}

.game-leaderboard article small,
.badge-board small {
  display: block;
  margin-top: 3px;
  color: #7d8999;
  font-size: 7px;
}

.game-leaderboard article i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--score);
  height: 2px;
  background: linear-gradient(90deg, #56d6ff, var(--green));
  box-shadow: 0 0 14px #56d6ff55;
}

.badge-board > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.badge-board article {
  min-height: 106px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid #ffffff0d;
  border-radius: 15px;
  padding: 12px;
  background: #ffffff04;
}

.badge-board article.unlocked {
  border-color: #ffd1663d;
  background: #ffd1660b;
}

.badge-board b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffd166;
  background: #ffd16612;
  font-size: 16px;
}

.discovery-dialog { width: min(850px, calc(100% - 24px)); padding: 0; overflow: hidden; border-color: #a8ed5525; background: radial-gradient(circle at 85% 10%, #a8ed551a, transparent 32%), linear-gradient(145deg, #171d27, #0d1119); }
.discovery-dialog form { padding: 32px; }
.discovery-dialog h2 { max-width: 500px; margin: 8px 0 5px; font-size: clamp(25px, 4vw, 42px); letter-spacing: -2px; }
.discovery-lead { max-width: 550px; margin: 0 0 25px; color: #929ca9; font-size: 10px; line-height: 1.7; }
.discovery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.discovery-grid article { position: relative; overflow: hidden; min-height: 190px; display: flex; flex-direction: column; align-items: flex-start; padding: 18px; border: 1px solid #ffffff0d; border-radius: 17px; background: linear-gradient(145deg, #ffffff07, #ffffff02); }
.discovery-grid article::after { content: ""; position: absolute; width: 80px; height: 80px; right: -30px; bottom: -30px; border-radius: 50%; background: var(--green); filter: blur(40px); opacity: .11; }
.discovery-grid span { color: var(--green); font-size: 8px; font-weight: 900; letter-spacing: 1.5px; }
.discovery-grid b { margin-top: 25px; font-size: 12px; }
.discovery-grid p { color: #808b99; font-size: 8px; line-height: 1.65; }
.discovery-grid button { position: relative; z-index: 2; margin-top: auto; border: 1px solid #a8ed5528; border-radius: 8px; padding: 7px 9px; color: var(--green); background: #a8ed550c; font-size: 7px; cursor: pointer; }
.discovery-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #ffffff0b; }
.discovery-footer span { color: #7d8794; font-size: 8px; }
.discovery-footer .create-btn { width: auto; margin: 0; }
.voice-visualizer { height: 34px; display: flex; align-items: center; justify-content: center; gap: 3px; margin: 8px 0; opacity: .65; }
.voice-visualizer i { width: 3px; height: 8px; border-radius: 3px; background: linear-gradient(to top, var(--green), var(--cyan)); box-shadow: 0 0 8px #a8ed5544; animation: soundWave .8s ease-in-out infinite alternate; }
.voice-visualizer i:nth-child(2n) { animation-delay: -.3s; }
.voice-visualizer i:nth-child(3n) { animation-delay: -.55s; }
.voice-visualizer i:nth-child(4n) { animation-delay: -.15s; }
@keyframes soundWave { to { height: 30px; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

html[data-font-scale="large"] { zoom: 1.08; }
html[data-font-scale="xlarge"] { zoom: 1.16; }
.role-permission-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin: 8px 0 12px; }
.role-permission-picker label { display: flex; align-items: center; gap: 7px; border: 1px solid #ffffff0c; border-radius: 8px; padding: 8px; color: #aeb8c2; background: #ffffff04; font-size: 7px; }
.audit-entry { display: grid; gap: 5px; border: 1px solid #ffffff0c; border-radius: 10px; padding: 11px; background: #ffffff04; }
.audit-entry b { color: #dce5e8; font-size: 9px; }
.audit-entry span { color: #788493; font-size: 7px; }
.voice-reactions { display: flex; gap: 5px; border-left: 1px solid #ffffff10; padding-left: 8px; }
.voice-reactions button { min-width: 30px; font-size: 14px; }
.voice-reaction-layer { position: absolute; inset: 0; z-index: 9; overflow: hidden; pointer-events: none; }
.voice-reaction-layer span { position: absolute; left: var(--reaction-x); bottom: 15%; font-size: 30px; filter: drop-shadow(0 8px 12px #0009); animation: voice-reaction-float 2.6s ease-out forwards; }
@keyframes voice-reaction-float { 0% { opacity: 0; transform: translate(-50%, 30px) scale(.5) rotate(-12deg); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.15) rotate(6deg); } 100% { opacity: 0; transform: translate(-50%, -220px) scale(.85) rotate(-5deg); } }
.security-score { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.security-score > span { --score: 0deg; width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #e8f7da; background: radial-gradient(circle, #151b22 57%, transparent 59%), conic-gradient(var(--green) var(--score), #ffffff0c 0); font-size: 12px; font-weight: 900; }
.security-score div { display: grid; gap: 4px; }
.security-score small { color: #7d8896; font-size: 7px; }
.security-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 10px 0 8px; }
.security-meta article { border: 1px solid #ffffff0f; border-radius: 12px; padding: 10px; background: linear-gradient(145deg, #151c29, #0d121b); }
.security-meta span { color: #7d8796; font-size: 6px; font-weight: 1000; letter-spacing: 1px; }
.security-meta strong { display: block; overflow: hidden; margin-top: 5px; color: #f4f7fb; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.security-meta small { display: block; margin-top: 3px; color: #8995a3; font-size: 7px; }
.security-check { display: flex; align-items: center; gap: 7px; margin-top: 6px; color: #8994a1; font-size: 8px; }
.security-check b { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; color: #ff9ba5; background: #ff5c6d12; }
.security-check.done { color: #c8d4c2; }
.security-check.done b { color: var(--green); background: #a8ed5512; }
html[data-color-vision="protan"] { --green: #55d9ff; --cyan: #ffd166; --red: #ff8c5a; }
html[data-color-vision="tritan"] { --green: #ffcf5a; --cyan: #ff86c8; --red: #ff6677; }

/* 2026 gamer polish layer */
.login-screen {
  position: relative;
  overflow: hidden;
}

.login-screen::before,
.login-screen::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
}

.login-screen::before {
  background:
    linear-gradient(115deg, transparent 0 42%, #a8ed5510 43% 44%, transparent 45% 100%),
    linear-gradient(65deg, transparent 0 58%, #56d6ff0d 59% 60%, transparent 61% 100%);
  animation: arenaSweep 9s linear infinite;
}

.login-screen::after {
  background-image: radial-gradient(circle, #ffffff16 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0 35%, transparent 70%);
  opacity: .35;
  animation: starDrift 22s linear infinite;
}

.login-showcase,
.login-card {
  position: relative;
  z-index: 1;
}

.login-showcase {
  display: flex;
  flex-direction: column;
}

.login-showcase .hero-kicker { order: 1; }
.login-showcase h2 { order: 2; }
.login-showcase > p { order: 3; }
.arena-preview { order: 4; }
.showcase-features { order: 5; }
.login-showcase footer { order: 6; }

.login-showcase h2 {
  text-shadow: 0 18px 55px #000c;
}

.login-showcase h2::after {
  content: "VOICE / SCREEN / SQUAD";
  display: block;
  width: max-content;
  margin-top: 14px;
  border: 1px solid #a8ed5530;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--green);
  background: #a8ed550b;
  box-shadow: 0 0 35px #a8ed5518;
  font-size: 9px;
  letter-spacing: 2px;
}

.showcase-orbit {
  display: none;
}

.arena-preview {
  position: relative;
  width: min(600px, 92vw);
  min-height: 355px;
  margin: 24px 0 20px;
  perspective: 1000px;
}

.arena-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: .45;
  pointer-events: none;
}

.arena-glow.one {
  width: 240px;
  height: 240px;
  left: -35px;
  top: 55px;
  background: var(--green);
}

.arena-glow.two {
  width: 260px;
  height: 260px;
  right: 10px;
  bottom: 0;
  background: var(--violet);
}

.arena-window {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border: 1px solid #ffffff18;
  border-radius: 30px;
  padding: 18px;
  background:
    linear-gradient(145deg, #1d2434dd, #0c1019f2 55%, #111e1bdd),
    radial-gradient(circle at 75% 20%, #a8ed5520, transparent 35%);
  box-shadow: 0 35px 120px #0009, inset 0 1px #ffffff1b;
  transform: rotateY(-8deg) rotateX(3deg);
  animation: arenaFloat 6s ease-in-out infinite;
}

.arena-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff05 1px, transparent 1px),
    linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(110deg, transparent, #000 25% 72%, transparent);
}

.arena-window header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ffffff0f;
  border-radius: 16px;
  padding: 10px 12px;
  background: #060a10a6;
  backdrop-filter: blur(18px);
}

.arena-window header strong {
  color: #f7fff1;
  font-size: 13px;
}

.arena-window header small {
  margin-left: auto;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.arena-screen {
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 155px;
  margin: 14px 0;
  border: 1px solid #a8ed5520;
  border-radius: 22px;
  background:
    radial-gradient(circle at 48% 45%, #a8ed551d 0 2px, transparent 3px),
    linear-gradient(135deg, #0d1420, #17233a 48%, #0a1118);
  box-shadow: inset 0 0 70px #0009, 0 22px 45px #0005;
}

.arena-screen::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 80deg, transparent, #56d6ff18, transparent, #a8ed5518, transparent);
  animation: radarSpin 8s linear infinite;
}

.crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  border: 1px solid #a8ed5555;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 35px #a8ed552d;
}

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: #a8ed5580;
}

.crosshair::before {
  left: 50%;
  top: -10px;
  width: 1px;
  height: 74px;
}

.crosshair::after {
  left: -10px;
  top: 50%;
  width: 74px;
  height: 1px;
}

.screen-card {
  position: absolute;
  z-index: 3;
  min-width: 105px;
  border: 1px solid #ffffff15;
  border-radius: 14px;
  padding: 10px;
  background: #05080dd8;
  box-shadow: 0 12px 35px #0007;
  backdrop-filter: blur(12px);
}

.screen-card b,
.screen-card small {
  display: block;
}

.screen-card b {
  color: #fff;
  font-size: 17px;
}

.screen-card small {
  margin-top: 3px;
  color: #8d98a7;
  font-size: 8px;
}

.card-a {
  left: 18px;
  bottom: 16px;
}

.card-b {
  right: 18px;
  top: 16px;
}

.squad-row {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.squad-row span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #a8ed5528;
  border-radius: 15px;
  color: #10150a;
  background: linear-gradient(145deg, #d5ff8e, var(--green));
  box-shadow: 0 0 30px #a8ed5525;
  font-weight: 900;
  animation: squadPulse 1.8s ease-in-out infinite;
  animation-delay: var(--delay);
}

.chat-bubbles {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  gap: 7px;
}

.chat-bubbles p {
  margin: 0;
  border: 1px solid #ffffff12;
  border-radius: 13px;
  padding: 8px 10px;
  color: #cfd8df;
  background: #070a10d8;
  box-shadow: 0 10px 28px #0006;
  font-size: 9px;
}

.chat-bubbles b {
  color: var(--green);
}

.floating-chip {
  position: absolute;
  z-index: 4;
  border: 1px solid #ffffff18;
  border-radius: 999px;
  padding: 8px 11px;
  color: #f4fff0;
  background: #080d14cc;
  box-shadow: 0 18px 45px #0008, inset 0 1px #ffffff12;
  backdrop-filter: blur(14px);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.5px;
  animation: chipFloat 4s ease-in-out infinite;
}

.chip-voice { left: -18px; top: 62px; color: var(--green); }
.chip-secure { right: 25px; top: -8px; color: #c8b9ff; animation-delay: -.8s; }
.chip-screen { right: -20px; bottom: 92px; color: var(--cyan); animation-delay: -1.5s; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.trust-strip span {
  border: 1px solid #a8ed551c;
  border-radius: 10px;
  padding: 8px 7px;
  color: #aeb8c4;
  background: #a8ed5508;
  font-size: 7px;
  text-align: center;
}

.home-hero,
.home-panel,
.voice-stage,
.command-dialog {
  box-shadow: 0 22px 70px #0005, inset 0 1px #ffffff11;
}

.home-hero::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 25px var(--green);
  animation: scanLine 2.4s ease-in-out infinite;
}

.home-panel:hover,
.home-actions button:hover,
.home-space-card:hover,
.home-voice-card:hover {
  box-shadow: 0 18px 55px #0006, 0 0 35px #a8ed5510;
}

.voice-stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, #a8ed5518, transparent 30%),
    radial-gradient(circle at 82% 10%, #56d6ff14, transparent 28%),
    linear-gradient(180deg, #101722, #0a0e15);
}

.voice-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #ffffff08, transparent);
  transform: translateX(-100%);
  animation: stageSweep 5s ease-in-out infinite;
}

.voice-stage > * {
  position: relative;
  z-index: 1;
}

.lounge-scene {
  width: min(920px, calc(100% - 18px));
  margin: 10px auto 14px;
}

.lounge-room {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid #ffffff13;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 120%, #00000080, transparent 36%),
    linear-gradient(120deg, #ffffff06 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(circle at 15% 12%, #a8ed5526, transparent 23%),
    radial-gradient(circle at 75% 16%, #a78bfa28, transparent 24%),
    radial-gradient(circle at 85% 85%, #56d6ff16, transparent 24%),
    linear-gradient(145deg, #171329, #0b101b 58%, #101b17);
  box-shadow: 0 28px 90px #0008, inset 0 1px #ffffff14;
  isolation: isolate;
}

.lounge-room::before {
  content: "";
  position: absolute;
  inset: 42% -8% -28%;
  background:
    radial-gradient(ellipse at 50% 40%, #ffffff0c, transparent 36%),
    linear-gradient(90deg, #ffffff07 1px, transparent 1px) 0 0 / 58px 58px,
    linear-gradient(#ffffff05 1px, transparent 1px) 0 0 / 58px 58px,
    linear-gradient(160deg, #241f35, #111827 48%, #0d1a16);
  transform: perspective(800px) rotateX(58deg);
  transform-origin: top;
  border-top: 1px solid #ffffff13;
}

.lounge-room::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, #05070bcc 80%);
  pointer-events: none;
}

.lounge-brand {
  position: absolute;
  left: 22px;
  top: 18px;
  display: grid;
  gap: 4px;
  z-index: 3;
}

.lounge-brand span {
  color: var(--green);
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: 2px;
  text-shadow: 0 0 18px #a8ed5570;
}

.lounge-brand strong {
  color: #fff;
  font-size: 15px;
  letter-spacing: -.4px;
}

.lounge-neon {
  position: absolute;
  left: 120px;
  top: 52px;
  width: 250px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a8ed55, #56d6ff, #a78bfa);
  box-shadow: 0 0 24px #56d6ff70, 0 0 60px #a78bfa35;
  opacity: .78;
}

.lounge-wall,
.lounge-accent-orbs {
  position: absolute;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.lounge-accent-orbs {
  left: 84px;
  top: 115px;
  gap: 18px;
}

.lounge-accent-orbs i {
  position: relative;
  width: 54px;
  height: 54px;
  border: 1px solid #ffffff12;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 35%, #ffffff22, transparent 30%),
    linear-gradient(145deg, #22304b, #0c111d);
  box-shadow: inset 0 1px #ffffff12, 0 16px 28px #0005, 0 0 28px #56d6ff14;
  transform: rotate(-7deg);
}

.lounge-accent-orbs i::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 22px #a8ed5570;
}

.lounge-accent-orbs i:nth-child(2) {
  transform: rotate(6deg) translateY(16px);
}

.lounge-accent-orbs i:nth-child(2)::before {
  background: #56d6ff;
  box-shadow: 0 0 22px #56d6ff70;
}

.lounge-accent-orbs i:nth-child(3) {
  transform: rotate(10deg) translateY(2px);
}

.lounge-accent-orbs i:nth-child(3)::before {
  background: #a78bfa;
  box-shadow: 0 0 22px #a78bfa70;
}

.lounge-wall-right {
  right: 70px;
  top: 92px;
}

.lounge-wall-right b {
  width: 48px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff13;
  border-radius: 12px;
  color: #d6e5ff;
  background: linear-gradient(160deg, #251934, #111724);
  box-shadow: inset 0 1px #ffffff10, 0 15px 34px #0005;
  font-size: 23px;
}

.lounge-wall-right b:nth-child(3) {
  color: #ff8bd5;
}

.lounge-shelf {
  position: absolute;
  right: 95px;
  top: 138px;
  width: 260px;
  height: 74px;
  border: 1px solid #ffffff10;
  border-radius: 26px 26px 16px 16px;
  background: linear-gradient(145deg, #3c284f, #1a2036);
  box-shadow: inset 0 10px #ffffff0d, inset 0 -18px #0004, 0 20px 38px #0007;
  z-index: 2;
}

.lounge-shelf i {
  position: absolute;
  bottom: 14px;
  width: 42px;
  height: 38px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 20%, #ffffff20, transparent 30%),
    #56d6ff24;
  box-shadow: inset 0 5px #ffffff10, 0 10px 18px #0005;
}

.lounge-shelf i:nth-child(1) { left: 20px; }
.lounge-shelf i:nth-child(2) { left: 90px; background: #a8ed5524; }
.lounge-shelf i:nth-child(3) { right: 28px; background: #ff8bd524; }

.lounge-table {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 168px;
  height: 62px;
  transform: translateX(-50%);
  border: 1px solid #ffffff10;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 50% 10%, #ffffff14, transparent 38%),
    linear-gradient(160deg, #332940, #131721);
  box-shadow: 0 22px 42px #0009, inset 0 7px #ffffff10, inset 0 -12px #0005;
  z-index: 4;
}

.lounge-table i,
.lounge-table b {
  position: absolute;
  top: 15px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px #a8ed5570;
}

.lounge-table i { left: 48px; }
.lounge-table b { right: 46px; background: #56d6ff; box-shadow: 0 0 18px #56d6ff70; }

.lounge-plant {
  position: absolute;
  bottom: 98px;
  width: 52px;
  height: 80px;
  border-radius: 50% 50% 10px 10px;
  background: radial-gradient(circle at 50% 18%, #7ee787, transparent 34%), linear-gradient(#1f6f60, #17324a);
  filter: drop-shadow(0 12px 20px #0006);
  z-index: 2;
}

.lounge-plant.left { left: 22px; }
.lounge-plant.right { right: 24px; bottom: 78px; }

.lounge-seats {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.lounge-seat {
  position: absolute;
  width: 118px;
  min-height: 126px;
  display: grid;
  justify-items: center;
  gap: 3px;
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}

.lounge-chair {
  position: absolute;
  inset: 24px 8px 18px;
  border: 1px solid #ffffff12;
  border-radius: 28px 28px 18px 18px;
  background:
    radial-gradient(ellipse at 50% 10%, #ffffff1c, transparent 34%),
    repeating-linear-gradient(90deg, transparent 0 14px, #ffffff08 14px 15px),
    linear-gradient(180deg, #4a559b, #20295a 74%);
  box-shadow: 0 22px 30px #0009, inset 0 10px #ffffff13, inset 0 -18px #0005;
}

.lounge-chair::before {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  top: -22px;
  height: 50px;
  border: 1px solid #ffffff10;
  border-radius: 24px 24px 12px 12px;
  background:
    radial-gradient(ellipse at 50% 12%, #ffffff18, transparent 36%),
    linear-gradient(180deg, #5661ac, #263061);
  box-shadow: inset 0 8px #ffffff12, 0 13px 20px #0005;
}

.lounge-chair::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: -9px;
  height: 28px;
  border-radius: 50%;
  background: #020409b0;
  filter: blur(7px);
  z-index: -1;
}

.lounge-chair i {
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: 8px;
  height: 56px;
  border-radius: 28px 28px 18px 18px;
  background:
    radial-gradient(ellipse at 50% 12%, #ffffff14, transparent 30%),
    linear-gradient(180deg, #39458b, #182044);
  box-shadow: inset 0 8px #ffffff10;
}

.lounge-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid #101722;
  border-radius: 50%;
  color: #0b1118;
  font-size: 15px;
  font-weight: 1000;
  box-shadow: 0 0 0 1px #ffffff22, 0 16px 28px #0008;
}

.lounge-seat:hover {
  transform: translateY(-4px) scale(1.03);
  filter: brightness(1.08);
}

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

.lounge-seat.self .lounge-avatar {
  border-color: var(--green);
  box-shadow: 0 0 0 1px #ffffff22, 0 0 28px #a8ed5540, 0 16px 28px #0008;
}

.lounge-seat.empty {
  opacity: .58;
}

.lounge-seat.empty:hover {
  opacity: 1;
}

.lounge-seat.empty .lounge-chair {
  background:
    radial-gradient(ellipse at 50% 10%, #ffffff10, transparent 34%),
    repeating-linear-gradient(90deg, transparent 0 14px, #ffffff05 14px 15px),
    linear-gradient(180deg, #303853, #171f35 74%);
}

.lounge-seat.empty small {
  position: relative;
  margin-top: 64px;
  border: 1px dashed #ffffff1c;
  border-radius: 999px;
  padding: 4px 8px;
  color: #9da9b6;
  background: #05070b99;
  font-size: 7px;
  font-weight: 900;
}

.lounge-seat.speaking .lounge-avatar {
  animation: loungePulse .75s ease-in-out infinite alternate;
}

.lounge-seat strong,
.lounge-seat em {
  position: relative;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #ffffff10;
  border-radius: 999px;
  padding: 4px 8px;
  background: #05070bb8;
  backdrop-filter: blur(10px);
}

.lounge-seat strong {
  margin-top: 8px;
  font-size: 8px;
}

.lounge-seat em {
  color: #a8ed55;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
}

.seat-1 { left: 50%; bottom: 106px; transform: translateX(-50%); }
.seat-1:hover { transform: translateX(-50%) translateY(-4px) scale(1.03); }
.seat-2 { left: 33%; bottom: 88px; }
.seat-3 { right: 33%; bottom: 88px; }
.seat-4 { left: 20%; bottom: 48px; }
.seat-5 { right: 20%; bottom: 48px; }
.seat-6 { left: 18%; top: 150px; }
.seat-7 { right: 18%; top: 150px; }

.lounge-empty {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  border: 1px dashed #ffffff20;
  border-radius: 999px;
  padding: 10px 16px;
  color: #aab5c2;
  background: #05070b99;
  font-size: 10px;
}

@keyframes loungePulse {
  from { box-shadow: 0 0 0 1px #ffffff22, 0 0 16px #a8ed5530, 0 16px 28px #0008; }
  to { box-shadow: 0 0 0 6px #a8ed5520, 0 0 36px #a8ed5570, 0 16px 28px #0008; }
}

.participant.speaking {
  box-shadow: 0 0 0 1px #a8ed5530, 0 0 30px #a8ed5520;
  transform: translateY(-1px);
}

.toast.show {
  box-shadow: 0 14px 55px #0007, 0 0 35px #a8ed5520;
}

.home-squad-radar {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 132px 1fr auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid #a8ed5522;
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 48%, #a8ed5524, transparent 30%),
    linear-gradient(135deg, #121924e8, #0b0f17e8);
  box-shadow: 0 24px 70px #0005, inset 0 1px #ffffff12;
}

.home-squad-radar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff05 1px, transparent 1px),
    linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}

.radar-core {
  position: relative;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
}

.radar-core span,
.radar-core i {
  position: absolute;
  inset: 10px;
  border: 1px solid #a8ed5538;
  border-radius: 50%;
}

.radar-core i:nth-child(2) { inset: 24px; opacity: .65; }
.radar-core i:nth-child(3) { inset: 38px; opacity: .42; }

.radar-core i:nth-child(4) {
  inset: 8px;
  border-color: transparent;
  background: conic-gradient(from 0deg, #a8ed5500, #a8ed5540, #a8ed5500 28%);
  animation: radarSpin 4.8s linear infinite;
  mask-image: radial-gradient(circle, transparent 0 22%, #000 23% 100%);
}

.radar-core::after {
  content: "M";
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #0d1309;
  background: linear-gradient(145deg, #d8ff92, var(--green));
  box-shadow: 0 0 28px #a8ed5540;
  font-size: 18px;
  font-weight: 1000;
}

.radar-core b {
  position: absolute;
  z-index: 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff24;
  border-radius: 10px;
  color: #f7fff5;
  background: #0a0f16dd;
  box-shadow: 0 0 22px #a8ed5528;
  font-size: 8px;
  transform: translate(-50%, -50%);
}

.radar-core b:nth-of-type(1) { left: 79%; top: 30%; }
.radar-core b:nth-of-type(2) { left: 76%; top: 76%; }
.radar-core b:nth-of-type(3) { left: 24%; top: 72%; }
.radar-core b:nth-of-type(4) { left: 23%; top: 28%; }

.radar-copy {
  position: relative;
  z-index: 2;
}

.radar-copy span {
  color: var(--green);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.radar-copy h3 {
  margin: 4px 0;
  font-size: 24px;
  letter-spacing: -1px;
}

.radar-copy p {
  max-width: 560px;
  margin: 0;
  color: #97a2b2;
  font-size: 9px;
  line-height: 1.6;
}

.home-squad-radar button {
  position: relative;
  z-index: 2;
  min-height: 44px;
  border: 1px solid #a8ed553a;
  border-radius: 999px;
  padding: 0 18px;
  color: #0c1208;
  background: linear-gradient(145deg, #d6ff91, var(--green));
  box-shadow: 0 16px 38px #a8ed5524;
  font-size: 8px;
  font-weight: 1000;
  cursor: pointer;
}

.messages {
  position: relative;
}

.messages::before {
  content: "";
  position: sticky;
  z-index: 0;
  top: 0;
  display: block;
  height: 1px;
  margin-bottom: -1px;
  background: linear-gradient(90deg, transparent, #a8ed5525, transparent);
  box-shadow: 0 0 35px #a8ed5518;
}

.welcome {
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff10;
  background:
    radial-gradient(circle at 12% 20%, #a8ed5518, transparent 28%),
    linear-gradient(135deg, #151b27c7, #0f131dc7);
  box-shadow: 0 22px 55px #0004, inset 0 1px #ffffff12;
}

.welcome h2 {
  margin-bottom: 8px;
}

.welcome p {
  max-width: 680px;
  color: #aeb8c5;
  line-height: 1.65;
}

.welcome-meta {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 5px 9px;
  border: 1px solid #a8ed5530;
  border-radius: 999px;
  background: #a8ed5510;
  color: var(--green);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  vertical-align: middle;
}

.welcome-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
  max-width: 820px;
  margin-top: 18px;
}

.welcome-actions button {
  min-height: 68px;
  border: 1px solid #ffffff12;
  border-radius: 16px;
  padding: 13px 14px;
  background:
    radial-gradient(circle at 15% 20%, #a8ed5514, transparent 35%),
    linear-gradient(135deg, #111723, #171c28);
  color: #f6f7fb;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px #ffffff10;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.welcome-actions button:hover {
  transform: translateY(-2px);
  border-color: #a8ed5570;
  background:
    radial-gradient(circle at 15% 20%, #a8ed5522, transparent 38%),
    linear-gradient(135deg, #182030, #111722);
  box-shadow: 0 18px 42px #a8ed5518, inset 0 1px #ffffff18;
}

.welcome-actions strong,
.welcome-actions span {
  display: block;
}

.welcome-actions strong {
  font-size: 10px;
  font-weight: 900;
}

.welcome-actions span {
  margin-top: 5px;
  color: #8793a3;
  font-size: 8px;
  font-weight: 700;
}

.welcome::after {
  content: "";
  position: absolute;
  inset: auto 24px 18px auto;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 24px var(--green);
  animation: scanLine 3s ease-in-out infinite;
}

.message {
  overflow: hidden;
  isolation: isolate;
}

.message::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(110deg, #ffffff08, transparent 45%),
    radial-gradient(circle at 0 0, #a8ed5512, transparent 32%);
  opacity: 0;
  transition: opacity .18s ease;
}

.message:hover::before,
.message.mine::before,
.message.pinned::before {
  opacity: 1;
}

.message.mine {
  margin-left: auto;
  border-color: #a8ed5528;
  background: linear-gradient(120deg, #a8ed550d, #ffffff04 70%);
  box-shadow: inset 3px 0 var(--green), 0 16px 38px #0002;
}

.message.pinned {
  border-color: #ffd16633;
  box-shadow: inset 3px 0 #ffd166, 0 16px 38px #0003;
}

.msg-head {
  display: flex;
  align-items: center;
  gap: 7px;
}

.message-tools {
  margin-left: auto;
  opacity: 0;
  transform: translateX(5px);
  transition: .18s ease;
}

.message:hover .message-tools,
.message:focus-within .message-tools {
  opacity: 1;
  transform: translateX(0);
}

.message-tools button,
.message-reactions button {
  border: 1px solid #ffffff12;
  border-radius: 999px;
  color: #cfd8df;
  background: #05080eb8;
  box-shadow: inset 0 1px #ffffff0a;
}

.message-tools button:hover,
.message-reactions button:hover,
.message-reactions button.mine {
  border-color: #a8ed5542;
  color: var(--green);
  box-shadow: 0 0 22px #a8ed5518;
}

.message-text {
  line-height: 1.7;
}

.composer {
  overflow: hidden;
}

.composer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, transparent, #a8ed5540, transparent, #56d6ff34, transparent);
  opacity: 0;
  pointer-events: none;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: opacity .18s ease;
}

.composer:focus-within::before {
  opacity: 1;
}

.composer button[type="submit"],
.send-button {
  box-shadow: 0 12px 30px #a8ed5524;
}

.voice-stage::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  height: 34px;
  pointer-events: none;
  background:
    linear-gradient(90deg, #a8ed5520 0 6px, transparent 6px 12px),
    linear-gradient(90deg, transparent, #56d6ff18, transparent);
  background-size: 18px 100%, 100% 100%;
  mask-image: linear-gradient(to top, #000, transparent);
  animation: equalizerDrift 1.4s linear infinite;
}

.participant {
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff10;
  background: linear-gradient(135deg, #ffffff08, #ffffff03);
  box-shadow: inset 0 1px #ffffff0b;
}

.participant::after {
  content: "";
  position: absolute;
  inset: auto 10px 8px 52px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), transparent);
  opacity: .28;
}

.participant-audio input {
  accent-color: var(--green);
}

.call-controls button.active,
.call-controls button.talking,
.participant-audio button.active {
  border-color: #a8ed554d;
  color: #0c1208;
  background: linear-gradient(145deg, #d8ff92, var(--green));
  box-shadow: 0 0 28px #a8ed5526;
}

.quest-deck {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #56d6ff20;
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, #56d6ff18, transparent 32%),
    linear-gradient(135deg, #111926dd, #0b1019dd);
  box-shadow: 0 18px 52px #0004, inset 0 1px #ffffff10;
}

.quest-deck::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 42%, #ffffff08 50%, transparent 58% 100%);
  transform: translateX(-70%);
  animation: stageSweep 6s ease-in-out infinite;
}

.quest-head,
.quest-list {
  position: relative;
  z-index: 2;
}

.quest-head {
  padding: 7px 8px;
}

.quest-head span {
  color: var(--cyan);
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: 1.8px;
}

.quest-head h3 {
  margin: 7px 0 4px;
  font-size: 20px;
  letter-spacing: -1px;
}

.quest-head p {
  margin: 0;
  color: #8c98a8;
  font-size: 8px;
  line-height: 1.6;
}

.quest-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.quest-list button {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid #ffffff10;
  border-radius: 15px;
  padding: 10px;
  color: #edf6ff;
  background: linear-gradient(150deg, #ffffff08, #ffffff03);
  text-align: left;
  cursor: pointer;
}

.quest-list button:hover {
  border-color: #56d6ff44;
  transform: translateY(-3px);
  box-shadow: 0 18px 42px #0004, 0 0 28px #56d6ff14;
}

.quest-list button.done {
  border-color: #a8ed5530;
  background: #a8ed550b;
}

.quest-list span {
  width: fit-content;
  border: 1px solid #56d6ff30;
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--cyan);
  background: #56d6ff0b;
  font-size: 7px;
  font-weight: 1000;
}

.quest-list button.done span {
  border-color: #a8ed5535;
  color: var(--green);
  background: #a8ed5510;
}

.quest-list strong {
  font-size: 11px;
}

.quest-list small {
  color: #7c8796;
  font-size: 7px;
}

.profile-card header {
  overflow: hidden;
}

.profile-card header::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 140px;
  height: 140px;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 24%, transparent);
  border-radius: 45px;
  transform: rotate(18deg);
  opacity: .32;
}

.profile-level {
  position: relative;
  z-index: 2;
  margin-left: auto;
  min-width: 92px;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 32%, transparent);
  border-radius: 20px;
  padding: 13px;
  background: color-mix(in srgb, var(--profile-accent) 10%, #070b11);
  box-shadow: 0 18px 45px #0005;
  text-align: center;
}

.profile-level small,
.profile-level span {
  display: block;
  color: #9faab7;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.profile-level strong {
  display: block;
  margin: 4px 0;
  color: var(--profile-accent);
  font-size: 34px;
  line-height: .9;
  text-shadow: 0 0 24px color-mix(in srgb, var(--profile-accent) 42%, transparent);
}

.profile-progress {
  position: relative;
  overflow: hidden;
  height: 42px;
  margin-bottom: 16px;
  border: 1px solid #ffffff10;
  border-radius: 14px;
  background: #ffffff05;
}

.profile-progress span,
.profile-progress small {
  position: absolute;
  z-index: 2;
  left: 12px;
}

.profile-progress span {
  top: 8px;
  color: var(--profile-accent);
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: 1.4px;
}

.profile-progress small {
  bottom: 7px;
  color: #9ba5b0;
  font-size: 7px;
}

.profile-progress b {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 8%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--profile-accent) 55%, transparent), transparent);
  box-shadow: 0 0 35px color-mix(in srgb, var(--profile-accent) 35%, transparent);
}

.profile-badges.empty span {
  border-style: dashed;
  color: #93a0ad;
}

.profile-card footer {
  justify-content: space-between;
}

.profile-card footer strong {
  color: var(--profile-accent);
  font-size: 7px;
  font-weight: 900;
}

.voice-inspector {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.voice-inspector article {
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff10;
  border-radius: 14px;
  padding: 11px;
  background: linear-gradient(145deg, #ffffff08, #ffffff03);
  box-shadow: inset 0 1px #ffffff0b;
}

.voice-inspector article::after {
  content: "";
  position: absolute;
  inset: auto -20px -24px auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--green);
  filter: blur(25px);
  opacity: .12;
}

.voice-inspector span,
.voice-inspector strong {
  position: relative;
  z-index: 2;
  display: block;
}

.voice-inspector span {
  color: #798596;
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: 1.3px;
}

.voice-inspector strong {
  margin-top: 5px;
  color: #eef8f0;
  font-size: 15px;
}

.voice-inspector[data-quality="good"] article:first-child strong,
.voice-inspector[data-quality="good"] article:nth-child(2) strong { color: var(--green); }
.voice-inspector[data-quality="fair"] article:first-child strong,
.voice-inspector[data-quality="fair"] article:nth-child(2) strong { color: #ffd166; }
.voice-inspector[data-quality="bad"] article:first-child strong,
.voice-inspector[data-quality="bad"] article:nth-child(2) strong { color: var(--red); }

@keyframes arenaSweep {
  to { transform: translate3d(8%, 4%, 0); }
}

@keyframes starDrift {
  to { background-position: 120px 90px; }
}

@keyframes arenaFloat {
  0%, 100% { transform: rotateY(-8deg) rotateX(3deg) translateY(0); }
  50% { transform: rotateY(-5deg) rotateX(4deg) translateY(-10px); }
}

@keyframes radarSpin {
  to { transform: rotate(1turn); }
}

@keyframes squadPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes scanLine {
  0%, 100% { opacity: .2; transform: translateX(-35px); }
  50% { opacity: 1; transform: translateX(20px); }
}

@keyframes stageSweep {
  0%, 65% { transform: translateX(-100%); opacity: 0; }
  80% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

@keyframes equalizerDrift {
  to { background-position: 18px 0, 0 0; }
}

@media (max-width: 1050px) {
  .app { grid-template-columns: 68px 270px minmax(360px, 1fr); }
  .home-stats { grid-template-columns: repeat(2, 1fr); }
  .home-grid { grid-template-columns: 1fr; }
  .game-summary { grid-template-columns: repeat(3, 1fr); }
  .game-grid-screen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-layout { grid-template-columns: 1fr; }
  .quest-deck { grid-template-columns: 1fr; }
  .quest-list { grid-template-columns: repeat(2, 1fr); }
  .mini-game-grid { grid-template-columns: repeat(2, 1fr); }
  .voice-inspector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-journey { grid-template-columns: 1fr auto; }
  .journey-steps { grid-column: 1 / 3; }
  .home-events { grid-template-columns: 1fr; }
  .home-events > div:last-child { grid-template-columns: repeat(2, 1fr); }
  .hero-emblem { width: 120px; height: 120px; transform: scale(.8); }
  .login-screen { grid-template-columns: 1fr; padding: 25px; }
  .login-showcase { display: none; }
  .login-card { justify-self: center; }
}

@media (max-width: 700px) {
  .app { display: block; height: 100dvh; padding-bottom: 58px; }
  .rail { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; width: 100%; height: 58px; flex-direction: row; justify-content: center; gap: 8px; padding: 7px 10px; border-top: 1px solid #ffffff0d; border-right: 0; background: #080a0df2; box-shadow: 0 -12px 35px #0007; backdrop-filter: blur(16px); }
  .rail .logo { display: none; }
  .rail-line { width: 1px; height: 28px; }
  .rail-btn { width: 41px; height: 41px; flex: 0 0 auto; }
  .main { height: calc(100dvh - 58px); }
  .sidebar { left: 0; bottom: 58px; width: min(285px, calc(100vw - 35px)); transform: translateX(-110%); box-shadow: 18px 0 45px #0008; }
  .sidebar.open { transform: translateX(0); }
  .rail:hover + .sidebar:not(.open) { transform: translateX(-110%); }
  .empty-home > div { padding: 25px 18px; }
  .topbar { height: auto; min-height: 70px; padding-block: 9px; }
  .top-actions { max-width: 55%; gap: 5px; overflow-x: auto; scrollbar-width: none; }
  .top-actions button { flex: 0 0 auto; }
  .top-actions::-webkit-scrollbar { display: none; }
  .topbar h2 { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .room-mark { width: 32px; height: 32px; }
  .messages { padding-top: 14px; }
  .home-hero { min-height: auto; padding: 24px 20px; }
  .dashboard-stats,
  .servers-grid,
  .friends-grid { grid-template-columns: 1fr; }
  .servers-hero,
  .friends-hero { align-items: flex-start; flex-direction: column; }
  .call-controls { width: calc(100% - 18px); border-radius: 20px; }
  .call-controls button { min-width: 48px; min-height: 48px; }
  .game-hero { align-items: flex-start; flex-direction: column; min-height: auto; padding: 24px 20px; }
  .game-hero button { width: 100%; }
  .home-hero h1 { letter-spacing: -1.5px; }
  .game-hero h1 { letter-spacing: -1.5px; }
  .hero-emblem { display: none; }
  .home-stats { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .game-summary,
  .game-grid-screen,
  .badge-board > div { grid-template-columns: 1fr; }
  .home-stats article { min-height: 80px; padding: 12px; }
  .home-actions { grid-template-columns: 1fr; }
  .quest-list { grid-template-columns: 1fr; }
  .mini-game-hub > div:first-child { align-items: flex-start; flex-direction: column; }
  .mini-game-hub > div:first-child p { text-align: left; }
  .mini-game-grid { grid-template-columns: 1fr; }
  .profile-card header { align-items: flex-start; flex-direction: column; }
  .profile-level { margin-left: 0; width: 100%; }
  .voice-inspector { grid-template-columns: 1fr; }
  .home-journey { grid-template-columns: 1fr auto; }
  .journey-steps { grid-template-columns: 1fr; grid-column: 1 / 3; }
  .discovery-dialog form { padding: 24px 18px; }
  #settingsForm { grid-template-columns: 1fr; max-height: calc(100dvh - 22px); }
  .settings-nav { flex-direction: row; gap: 6px; overflow-x: auto; padding: 18px 14px 12px; border-right: 0; border-bottom: 1px solid #ffffff0d; }
  .settings-nav div { display: none; }
  .settings-nav button { min-width: max-content; min-height: 38px; font-size: 11px; text-align: center; }
  .settings-content { padding: 22px 18px 26px; }
  .settings-content h2 { font-size: 26px; }
  .discovery-grid { grid-template-columns: 1fr; max-height: 48vh; overflow: auto; }
  .discovery-grid article { min-height: 155px; }
  .discovery-footer { align-items: stretch; flex-direction: column; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-events > div:last-child { grid-template-columns: 1fr; }
  .event-create-grid { grid-template-columns: 1fr; }
  .event-create-grid textarea, .event-create-grid .create-btn { grid-column: auto; }
  .event-card { grid-template-columns: 55px 1fr; }
  .event-card > div:last-child { grid-column: 1 / -1; flex-direction: row; }
  .search-controls { grid-template-columns: 1fr; }
  .search-controls select { min-height: 38px; }
  .composer { margin-bottom: 10px; }
  .voice-stage { max-height: 60dvh; overflow: auto; }
}

/* Final visual polish: typography, icons and compact action bars */
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  text-rendering: geometricPrecision;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

#integrationsButton {
  display: none !important;
}

.rail {
  gap: 12px;
}

.rail-btn,
.rail-profile-dock button,
.sidebar footer button {
  color: #9aa7b8;
  background: linear-gradient(145deg, #121824, #0d121b);
  border-color: #ffffff10;
  box-shadow: inset 0 1px #ffffff0b, 0 10px 24px #00000022;
}

.rail-btn svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.25;
  opacity: .92;
}

.rail-btn:hover,
.rail-btn.active {
  color: #10150a;
  border-color: #caff7d70;
  background: linear-gradient(145deg, #caff7d, #93e145);
  box-shadow: 0 12px 30px #a8ed5524, inset 0 1px #ffffff75;
}

.section-title {
  color: #8b96a8;
  font-size: 9px;
  letter-spacing: 1.8px;
}

.section-title span,
.sidebar header span,
.lounge-brand span,
.kicker {
  color: #b7ff6d;
  background: none;
  text-transform: uppercase;
  letter-spacing: 1.9px;
  font-weight: 950;
}

.sidebar header strong,
.topbar h2,
.item-copy strong,
.side-item strong,
.invite-card h3,
.person strong,
.msg-head strong {
  font-weight: 850;
  letter-spacing: -.25px;
}

.side-item {
  min-height: 50px;
  padding: 9px 10px;
  border-radius: 14px;
}

.side-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 950;
}

.channel-category > span {
  color: #768294;
  font-size: 7px;
  letter-spacing: 1.7px;
}

.channel-item {
  border-radius: 10px;
  color: #aeb9c8;
  font-size: 9px;
  font-weight: 750;
}

.channel-item span {
  font-weight: 800;
}

.topbar {
  gap: 14px;
  padding-right: 14px;
}

.topbar > div:first-child {
  min-width: 235px;
}

.top-actions {
  flex-wrap: nowrap;
  gap: 8px;
  max-width: min(72vw, 1120px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 6px;
  scrollbar-width: thin;
  scrollbar-color: #a8ed5530 transparent;
}

.top-actions::-webkit-scrollbar {
  height: 5px;
}

.top-actions::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #a8ed5535;
}

.top-actions button {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 13px;
  padding: 0 13px;
  color: #c3cedc;
  background: linear-gradient(145deg, #1a2130, #111722);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: -.05px;
  white-space: nowrap;
}

.top-actions button:not(.hidden):hover {
  color: #f7fbff;
  border-color: #a8ed5540;
  background: linear-gradient(145deg, #222b3b, #151c28);
}

#notificationCenterButton,
#mediaGalleryButton,
#pinnedMessagesButton,
#moderationButton,
#membersButton {
  min-width: 38px;
  width: 38px;
  padding: 0;
  font-size: 0;
}

#notificationCenterButton::before { content: "•"; font-size: 17px; color: var(--green); }
#mediaGalleryButton::before { content: "▦"; font-size: 14px; color: #9df2ff; }
#pinnedMessagesButton::before { content: "⌖"; font-size: 14px; color: #c8b9ff; }
#moderationButton::before { content: "⚑"; font-size: 13px; color: #ffce7a; }
#membersButton::before { content: "◎"; font-size: 15px; color: #c8b9ff; }

#platformInvitesButton::before { content: "✦"; color: var(--green); }
#inviteGroupButton::before { content: "↗"; color: var(--green); }
#eventsButton::before { content: "◷"; color: #ffd166; }
#activityButton::before { content: "◆"; color: #c8b9ff; }
#auditLogButton::before { content: "⌁"; color: #9df2ff; }
#voiceHistoryButton::before { content: "↺"; color: #9df2ff; }
#newChannelButton::before { content: "#"; color: #9df2ff; font-weight: 950; }
#manageGroupButton::before { content: "◎"; color: #c8b9ff; }
#deleteGroupButton::before { content: "×"; color: #ff98a5; font-weight: 950; }
#leaveGroupButton::before { content: "←"; color: #ffce7a; }

#voiceJoinButton {
  min-height: 38px;
  padding-inline: 15px;
  font-weight: 950;
}

.room-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 23px;
  font-weight: 950;
  color: #10150a;
  background: linear-gradient(145deg, #caff7d, #93e145);
  text-shadow: none;
  box-shadow: 0 12px 28px #a8ed5522, inset 0 1px #ffffff80;
}

.topbar p,
.stat-card small,
.server-card small,
.invite-card p,
.person small,
.item-copy small,
.me-copy span {
  color: #9aa5b6;
  font-weight: 650;
}

.stat-card small,
.server-card small,
.invite-card p {
  font-size: 10px;
  line-height: 1.45;
}

.people {
  background: linear-gradient(180deg, #0d111b, #070a11);
}

.person {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 14px;
}

.person:hover {
  border-color: #ffffff10;
  background: linear-gradient(145deg, #171e2b, #0f141e);
}

.invite-card {
  border-color: #a8ed5525;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, #a8ed5518, transparent 38%),
    linear-gradient(145deg, #151c28, #0c111a);
  box-shadow: inset 0 1px #ffffff0d, 0 18px 42px #00000028;
}

.invite-card span {
  color: var(--green);
  font-size: 8px;
  letter-spacing: 1.8px;
}

.invite-card button {
  min-height: 36px;
  border: 1px solid #ffffff10;
  border-radius: 12px;
  background: #ffffff09;
  color: #dfe8f2;
  font-weight: 850;
}

.stage-head {
  min-height: 34px;
}

.stage-head strong {
  color: #f4f8fb;
  font-size: 11px;
  font-weight: 900;
}

.stage-head small,
.voice-quality {
  color: #a6b2c3;
  font-size: 8px;
  font-weight: 800;
}

.stage-head > div {
  padding: 6px 9px;
  border: 1px solid #ffffff0c;
  border-radius: 999px;
  background: #090f18aa;
}

.screen-share-status {
  width: min(100%, 940px);
  margin: 8px auto 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: linear-gradient(145deg, #121a25, #0a1019);
}

.screen-share-status span {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #a8ed5515;
}

.screen-share-status strong {
  font-size: 11px;
  font-weight: 850;
}

.screen-share-status button {
  min-height: 30px;
  border-radius: 999px;
  padding-inline: 12px;
  font-size: 10px;
  font-weight: 850;
}

.voice-visualizer {
  opacity: .9;
  transform: scale(.88);
}

#screenVideo {
  border: 1px solid #ffffff12;
  border-radius: 18px;
  box-shadow: 0 24px 70px #0008, 0 0 0 1px #a8ed5512;
}

.lounge-brand span {
  font-size: 9px;
}

.lounge-brand strong {
  font-size: 16px;
  font-weight: 950;
}

/* Release-readiness and invite polish */
.admin-health-grid article:first-child {
  grid-column: span 2;
  border-color: #a8ed5545;
  background:
    radial-gradient(circle at 90% 10%, #a8ed5530, transparent 42%),
    linear-gradient(145deg, #172317, #0c111a);
}

.admin-health-grid article:first-child strong {
  color: var(--green);
  font-size: 30px;
  letter-spacing: -1px;
}

#groupAddFriendsDialog form {
  width: min(560px, calc(100vw - 28px));
}

#groupAddFriendPicker {
  display: grid;
  gap: 8px;
  max-height: 320px;
}

.group-friend-pick {
  min-height: 58px;
  border: 1px solid #ffffff10;
  border-radius: 15px;
  background:
    radial-gradient(circle at 0 0, #a8ed5512, transparent 42%),
    linear-gradient(145deg, #141b26, #0b1018);
  transition: .16s ease;
}

.group-friend-pick:hover {
  border-color: #a8ed5540;
  transform: translateY(-1px);
}

.group-friend-pick input {
  accent-color: var(--green);
}

.group-friend-pick > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.group-friend-pick strong {
  color: #f4f8fb;
  font-size: 11px;
  font-weight: 900;
}

.group-friend-pick small {
  color: #99a6b6;
  font-size: 8px;
  font-weight: 750;
}

.group-friend-pick.disabled {
  opacity: .55;
}

.group-add-empty {
  display: grid;
  gap: 8px;
  justify-items: start;
  border: 1px dashed #ffffff18;
  border-radius: 16px;
  padding: 18px;
  background: #ffffff05;
}

.group-add-empty p {
  margin: 0;
  color: #9aa6b7;
  font-size: 10px;
}

.group-add-empty button {
  min-height: 34px;
  border: 1px solid #a8ed5535;
  border-radius: 999px;
  padding: 0 14px;
  color: #10150a;
  background: var(--green);
  font-size: 9px;
  font-weight: 900;
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    height: auto;
    min-height: 70px;
    flex-direction: column;
    padding: 12px;
  }

  .topbar > div:first-child {
    min-width: 0;
  }

  .top-actions {
    width: 100%;
    max-width: 100%;
  }

  .voice-stage {
    max-height: calc(100vh - 90px);
    overflow: auto;
  }

  .soundboard {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .admin-health-grid article:first-child {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .soundboard {
    grid-template-columns: 1fr;
  }

  .call-controls {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .call-controls button,
  .call-controls select {
    flex: 0 0 auto;
  }

  #groupAddFriendsDialog form {
    padding: 22px;
  }
}

/* Product readiness upgrades */
.voice-readiness-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid #5ee7f230;
  border-radius: 16px;
  padding: 13px;
  background:
    radial-gradient(circle at 0 0, #5ee7f218, transparent 40%),
    linear-gradient(145deg, #121b27, #0b1018);
}

.voice-readiness-card div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.voice-readiness-card strong {
  color: #f4fbff;
  font-size: 12px;
  font-weight: 900;
}

.voice-readiness-card small {
  color: #9cabbd;
  font-size: 9px;
  line-height: 1.45;
}

.voice-readiness-card button,
.launch-assistant-panel button {
  border: 1px solid #a8ed5538;
  border-radius: 999px;
  padding: 9px 13px;
  color: #10150a;
  background: var(--green);
  font-size: 9px;
  font-weight: 950;
}

.launch-assistant-panel {
  margin: 14px 0;
  border: 1px solid #a8ed5526;
  border-radius: 20px;
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0, #a8ed5520, transparent 42%),
    linear-gradient(145deg, #141c24, #0b1018);
}

.launch-assistant-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.launch-assistant-panel header span {
  color: var(--green);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 1.7px;
}

.launch-assistant-panel header strong {
  display: block;
  margin-top: 4px;
  color: #f4fbff;
  font-size: 15px;
}

.launch-assistant-panel header b {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 19px;
  color: #10150a;
  background: linear-gradient(145deg, #caff7d, #8fe342);
  font-size: 17px;
}

.launch-assistant-panel ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.launch-assistant-panel li {
  display: grid;
  gap: 4px;
  border: 1px solid #ffffff0e;
  border-radius: 14px;
  padding: 11px;
  background: #ffffff05;
}

.launch-assistant-panel li b {
  color: #f4fbff;
  font-size: 11px;
}

.launch-assistant-panel li span {
  color: #9aa7b8;
  font-size: 9px;
  line-height: 1.55;
}

.onboarding-pulse {
  margin: 14px 0;
  border: 1px solid #a8ed5522;
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(145deg, #121b20, #090e15);
}

.onboarding-pulse > div {
  display: grid;
  gap: 7px;
}

.onboarding-pulse span {
  color: var(--green);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 1.6px;
}

.onboarding-pulse strong {
  color: #f5fbff;
  font-size: 14px;
}

.onboarding-pulse i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #ffffff0b;
}

.onboarding-pulse i::before {
  content: "";
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #5ee7f2);
}

.onboarding-pulse ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.onboarding-pulse li {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #ffffff10;
  border-radius: 12px;
  padding: 8px;
  background: #ffffff05;
}

.onboarding-pulse li.done {
  border-color: #a8ed5538;
  background: #a8ed5510;
}

.onboarding-pulse li b {
  color: var(--green);
}

.onboarding-pulse li button {
  border: 0;
  padding: 0;
  color: #dfe8f1;
  background: transparent;
  font-size: 8px;
  font-weight: 850;
  text-align: left;
}

.moderation-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ffce7a25;
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(145deg, #211a10, #0d1119);
}

.moderation-summary div {
  margin-right: auto;
}

.moderation-summary span {
  color: #ffce7a;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 1.5px;
}

.moderation-summary strong {
  display: block;
  color: #fff7e8;
  font-size: 22px;
}

.moderation-summary b {
  border: 1px solid #ffffff12;
  border-radius: 999px;
  padding: 6px 9px;
  color: #ffe1a3;
  background: #ffffff07;
  font-size: 8px;
}

.admin-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 12px 0;
}

.admin-detail-actions button {
  min-height: 36px;
  border: 1px solid #a8ed5530;
  border-radius: 12px;
  padding: 0 13px;
  color: #10150a;
  background: linear-gradient(145deg, #caff7d, #93e145);
  font-size: 9px;
  font-weight: 900;
}

.admin-detail-actions button.danger {
  border-color: #ff6b7a45;
  color: #ffe8ec;
  background: #ff5c6d18;
}

.admin-detail-actions button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.admin-user.locked {
  border-color: #ff6b7a50;
  background:
    radial-gradient(circle at 100% 0, #ff5c6d18, transparent 42%),
    linear-gradient(145deg, #1d1318, #0d1119);
}

.admin-user strong em {
  display: inline-flex;
  margin-left: 7px;
  border: 1px solid #ff6b7a45;
  border-radius: 999px;
  padding: 2px 6px;
  color: #ff98a5;
  background: #ff5c6d12;
  font-size: 7px;
  font-style: normal;
  font-weight: 950;
  vertical-align: middle;
}

.admin-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  border: 1px solid #ffffff10;
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(145deg, #131b25, #0a0f17);
}

.admin-panel-toolbar button,
.support-center-card button,
.admin-support-actions button {
  min-height: 38px;
  border: 1px solid #a8ed5535;
  border-radius: 13px;
  padding: 0 14px;
  color: #10150a;
  background: linear-gradient(145deg, #caff7d, #91e044);
  font-size: 9px;
  font-weight: 950;
}

.admin-panel-toolbar small {
  color: #8f9cab;
  font-size: 9px;
}

.admin-live-grid,
.admin-abuse-suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.admin-live-grid article,
.admin-abuse-suggestions article,
.admin-live-feed article,
.support-center-card,
.my-support-tickets article {
  border: 1px solid #ffffff10;
  border-radius: 16px;
  padding: 13px;
  background:
    radial-gradient(circle at 100% 0, #a8ed5514, transparent 45%),
    linear-gradient(145deg, #131b25, #090e15);
}

.admin-live-grid span,
.admin-abuse-suggestions em,
.admin-live-feed span {
  color: var(--green);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.admin-live-grid strong {
  display: block;
  margin: 5px 0;
  color: #f6fbff;
  font-size: 24px;
}

.admin-live-grid small,
.admin-live-feed small,
.my-support-tickets small {
  color: #8d9aaa;
  font-size: 9px;
}

.admin-abuse-suggestions article {
  display: flex;
  gap: 10px;
}

.admin-abuse-suggestions article.high {
  border-color: #ff6b7a55;
  background: linear-gradient(145deg, #241117, #0b1018);
}

.admin-abuse-suggestions article.warn {
  border-color: #ffd27a44;
  background: linear-gradient(145deg, #211b10, #0b1018);
}

.admin-abuse-suggestions b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #10150a;
  background: var(--green);
  font-size: 10px;
  font-weight: 950;
}

.admin-abuse-suggestions strong,
.admin-live-feed strong,
.my-support-tickets strong {
  display: block;
  color: #f4fbff;
  font-size: 12px;
}

.admin-abuse-suggestions small {
  display: block;
  margin: 4px 0 7px;
  color: #9aa7b8;
  font-size: 9px;
  line-height: 1.5;
}

.admin-live-feed {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.admin-live-feed article {
  display: grid;
  grid-template-columns: 1.2fr .7fr 1fr;
  gap: 10px;
  align-items: center;
}

.admin-support-shell {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr);
  gap: 12px;
}

.admin-support-list,
.admin-support-detail,
.my-support-tickets,
.admin-feedback-list {
  display: grid;
  gap: 9px;
}

.admin-support-list button {
  border: 1px solid #ffffff12;
  border-radius: 15px;
  padding: 12px;
  color: #f4fbff;
  background: linear-gradient(145deg, #121a24, #090e15);
  text-align: left;
}

.admin-support-list button.open {
  border-color: #a8ed5545;
}

.admin-support-list button.answered {
  border-color: #5ee7f245;
}

.admin-support-list button.resolved {
  opacity: .7;
}

.admin-support-list strong,
.admin-support-list small {
  display: block;
}

.admin-support-list small {
  margin-top: 5px;
  color: #8f9cab;
  font-size: 9px;
}

.admin-support-detail {
  border: 1px solid #ffffff12;
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(145deg, #121a24, #090e15);
}

.admin-support-detail header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-support-detail header span {
  color: var(--green);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.admin-support-detail header strong {
  display: block;
  color: #f4fbff;
  font-size: 16px;
}

.support-thread {
  display: grid;
  gap: 9px;
  max-height: 260px;
  overflow: auto;
  margin-bottom: 10px;
}

.support-thread article {
  border: 1px solid #ffffff10;
  border-radius: 14px;
  padding: 10px;
  background: #ffffff05;
}

.support-thread article.admin {
  border-color: #5ee7f235;
  background: #5ee7f20c;
}

.support-thread p {
  margin: 5px 0;
  color: #dbe5ef;
  font-size: 11px;
  line-height: 1.5;
}

.admin-support-detail textarea,
.support-center-card textarea,
.support-form-grid input,
.support-form-grid select {
  width: 100%;
  border: 1px solid #ffffff12;
  border-radius: 13px;
  padding: 11px;
  color: #f4fbff;
  background: #070b12;
  font: inherit;
}

.admin-support-detail textarea,
.support-center-card textarea {
  min-height: 92px;
  resize: vertical;
}

.admin-support-actions {
  display: flex;
  gap: 9px;
  margin-top: 10px;
}

.admin-support-actions button.danger {
  border-color: #ff6b7a45;
  color: #ffe8ec;
  background: #ff5c6d18;
}

.support-form-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 9px;
  margin: 10px 0;
}

.my-support-tickets {
  margin-top: 12px;
}

.my-support-tickets p {
  margin: 6px 0 0;
  color: #aab6c5;
  font-size: 10px;
  line-height: 1.5;
}

.admin-feedback-list {
  margin-top: 12px;
}

.feedback-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 130px;
  gap: 10px;
  align-items: center;
  border: 1px solid #ffffff12;
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(circle at 0 0, #a8ed5512, transparent 42%),
    linear-gradient(145deg, #121a24, #090e15);
}

.feedback-card.planned {
  border-color: #a8ed5545;
}

.feedback-card.resolved {
  border-color: #5ee7f245;
}

.feedback-card.closed {
  opacity: .72;
}

.feedback-card.moderation-admin-card {
  border-color: #ff6b7a30;
  background:
    radial-gradient(circle at 0 0, #ff5c6d12, transparent 42%),
    linear-gradient(145deg, #17141d, #090e15);
}

.feedback-card.invite-admin-card.watch,
.feedback-card.invite-admin-card.full {
  border-color: #ffd16644;
  background:
    radial-gradient(circle at 0 0, #ffd16612, transparent 42%),
    linear-gradient(145deg, #1b1710, #090e15);
}

.feedback-card.invite-admin-card.ok {
  border-color: #a8ed5538;
}

.feedback-card.invite-admin-card.passive {
  opacity: .68;
}

.feedback-card span {
  color: var(--green);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.feedback-card strong {
  display: block;
  margin: 5px 0;
  color: #f4fbff;
  font-size: 14px;
}

.feedback-card p {
  margin: 0 0 6px;
  color: #aeb9c7;
  font-size: 10px;
  line-height: 1.5;
}

.feedback-card small {
  color: #7f8c9d;
  font-size: 9px;
}

.feedback-card select {
  width: 100%;
  border: 1px solid #ffffff12;
  border-radius: 13px;
  padding: 11px;
  color: #f4fbff;
  background: #070b12;
  font: inherit;
}

.feedback-card button {
  min-height: 38px;
  border: 1px solid #a8ed5535;
  border-radius: 13px;
  color: #10150a;
  background: linear-gradient(145deg, #caff7d, #91e044);
  font-size: 9px;
  font-weight: 950;
}

@media (max-width: 760px) {
  .admin-support-shell,
  .admin-live-feed article,
  .support-form-grid,
  .feedback-card {
    grid-template-columns: 1fr;
  }
}

.invite-link-card strong em {
  display: inline-flex;
  margin-left: 7px;
  border: 1px solid #ffffff14;
  border-radius: 999px;
  padding: 3px 7px;
  color: #dfe8f0;
  background: #ffffff08;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
  vertical-align: middle;
}

.invite-link-card.invite-risk-ok {
  border-color: #a8ed5525;
}

.invite-link-card.invite-risk-ok strong em {
  color: var(--green);
  background: #a8ed5510;
}

.invite-link-card.invite-risk-warn {
  border-color: #ffce7a45;
  background:
    radial-gradient(circle at 100% 0, #ffce7a18, transparent 36%),
    #ffffff04;
}

.invite-link-card.invite-risk-warn strong em {
  color: #ffce7a;
  background: #ffce7a12;
}

.invite-link-card.invite-risk-high {
  border-color: #ff6b7a55;
  background:
    radial-gradient(circle at 100% 0, #ff5c6d18, transparent 36%),
    #ffffff04;
}

.invite-link-card.invite-risk-high strong em {
  color: #ff98a5;
  background: #ff5c6d14;
}

@media (max-width: 720px) {
  .onboarding-pulse ul {
    grid-template-columns: 1fr;
  }

  .voice-readiness-card,
  .launch-assistant-panel header,
  .moderation-summary {
    align-items: stretch;
    flex-direction: column;
  }
}
