body.admin-page {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 75, 176, 0.14), transparent 30rem),
    radial-gradient(circle at 14% 84%, rgba(127, 69, 245, 0.12), transparent 34rem),
    #09040f;
}

body.admin-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(185, 92, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 92, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(110deg, #000 0%, rgba(0, 0, 0, 0.78) 58%, transparent 100%);
  mask-image: linear-gradient(110deg, #000 0%, rgba(0, 0, 0, 0.78) 58%, transparent 100%);
}

.admin-page #root { min-height: 100vh; min-height: 100dvh; }
.admin-page a { color: inherit; text-decoration: none; }

.admin-gate {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 !important;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: rgba(246, 222, 255, 0.5);
  background:
    linear-gradient(rgba(185, 92, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 92, 255, 0.04) 1px, transparent 1px),
    #09040f;
  background-size: 56px 56px, 56px 56px, auto;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-gate > i {
  width: 110px;
  height: 2px;
  overflow: hidden;
  background: rgba(246, 222, 255, 0.09);
}

.admin-gate > i::after {
  content: "";
  display: block;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, #985cff, #ff78d4);
  animation: admin-gate-load 1s ease-in-out infinite alternate;
}

@keyframes admin-gate-load {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

.admin-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px;
  gap: 20px;
}

.admin-ambient,
#admin-glow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.admin-ambient { z-index: -2; }
#admin-glow {
  z-index: -1;
  opacity: 0.9;
  background: radial-gradient(circle 520px at var(--admin-x, 72%) var(--admin-y, 22%), rgba(190, 89, 255, 0.11), transparent 66%);
}

.admin-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(110px);
}

.admin-orb--one {
  width: 480px;
  height: 480px;
  top: -230px;
  right: -150px;
  background: rgba(255, 79, 175, 0.2);
}

.admin-orb--two {
  width: 420px;
  height: 420px;
  bottom: -240px;
  left: 8%;
  background: rgba(127, 69, 245, 0.17);
}

.admin-sidebar,
.admin-topbar,
.admin-workspace {
  border: 1px solid rgba(206, 119, 255, 0.2);
  background: rgba(18, 7, 29, 0.86);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.admin-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 40px);
  height: calc(100dvh - 40px);
  min-height: 560px;
  border-radius: 8px;
  overflow: hidden;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(206, 119, 255, 0.16);
}

.admin-mark {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 180, 235, 0.3);
  border-radius: 4px;
  color: white;
  background: linear-gradient(145deg, #7f45f5, #e957c1);
  box-shadow: 8px 8px 0 rgba(218, 78, 194, 0.12);
}

.admin-mark svg { width: 17px; height: 17px; }

.admin-brand-copy {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--display);
}

.admin-brand-copy strong { font-size: 1rem; letter-spacing: -0.04em; }
.admin-brand-copy small { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; color: #ff78d4; }

.admin-context { padding: 26px 20px 18px; }
.admin-context span,
.admin-nav-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(246, 222, 255, 0.38);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.admin-context strong {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.admin-nav { padding: 12px; }
.admin-nav-label { padding-inline: 8px; }

.admin-nav-item {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: rgba(246, 222, 255, 0.62);
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.admin-nav-item svg { width: 20px; height: 20px; }
.admin-nav-item b { font-family: var(--mono); font-size: 0.58rem; font-weight: 500; color: rgba(255, 111, 203, 0.7); }

.admin-nav-item.is-active {
  border-color: rgba(206, 119, 255, 0.24);
  color: white;
  background: linear-gradient(100deg, rgba(171, 79, 255, 0.17), rgba(255, 81, 179, 0.08));
}

.admin-nav-item.is-active::before {
  content: "";
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: -1px;
  width: 2px;
  background: #f05bc5;
  box-shadow: 0 0 16px rgba(240, 91, 197, 0.8);
}

.admin-sidebar-foot {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 16px 14px;
  border-top: 1px solid rgba(206, 119, 255, 0.16);
}

.admin-user-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 120, 212, 0.18);
  border-radius: 5px;
  background: linear-gradient(110deg, rgba(171, 79, 255, 0.12), rgba(255, 81, 179, 0.06));
}

.admin-user-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 180, 235, 0.24);
  border-radius: 4px;
  color: white;
  background: linear-gradient(145deg, #7f45f5, #e957c1);
  font: 800 0.76rem var(--display);
}

.admin-user-copy { min-width: 0; }
.admin-user-copy strong,
.admin-user-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-copy strong { color: rgba(255, 247, 255, 0.82); font-size: 0.67rem; }
.admin-user-copy small { margin-top: 4px; color: #ff78d4; font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.1em; text-transform: uppercase; }

.admin-user-card button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 4px;
  color: rgba(246, 222, 255, 0.42);
  background: transparent;
  cursor: pointer;
}

.admin-user-card button:hover { color: #fff; background: rgba(255, 120, 212, 0.1); }
.admin-user-card button:disabled { cursor: wait; opacity: 0.45; }
.admin-user-card button svg { width: 18px; height: 18px; }

.admin-stack-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(206, 119, 255, 0.13);
  border-radius: 5px;
  background: rgba(163, 79, 255, 0.055);
}

.admin-stack-row > svg { width: 21px; height: 21px; color: #c698ff; }
.admin-stack-row span { min-width: 0; }
.admin-stack-row small,
.admin-stack-row strong { display: block; }
.admin-stack-row small { margin-bottom: 2px; color: rgba(246, 222, 255, 0.36); font-family: var(--mono); font-size: 0.55rem; text-transform: uppercase; }
.admin-stack-row strong { overflow: hidden; color: rgba(255, 247, 255, 0.82); font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }

.admin-main {
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
  margin: 0 !important;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 0 24px;
  border-radius: 8px;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.admin-breadcrumb span { color: rgba(246, 222, 255, 0.38); }
.admin-breadcrumb i { color: rgba(255, 120, 212, 0.45); font-style: normal; }
.admin-breadcrumb strong { color: #fff7ff; font-weight: 600; }

.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(246, 222, 255, 0.56);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f05bc5;
  box-shadow: 0 0 14px rgba(240, 91, 197, 0.8);
}

.admin-workspace {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 500px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(rgba(185, 92, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 92, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(24, 9, 37, 0.92), rgba(12, 5, 19, 0.95));
  background-size: 48px 48px, 48px 48px, auto;
}

.admin-workspace::before {
  content: "";
  position: absolute;
  width: min(56vw, 700px);
  aspect-ratio: 1;
  border: 1px solid rgba(206, 119, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 88px rgba(206, 119, 255, 0.018), 0 0 0 176px rgba(206, 119, 255, 0.012);
}

.admin-workspace-index {
  position: absolute;
  top: 24px;
  left: 26px;
  color: rgba(246, 222, 255, 0.28);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.admin-empty {
  position: relative;
  z-index: 1;
  width: min(100%, 600px);
  padding: 56px 28px;
  text-align: center;
}

.admin-empty-mark {
  position: relative;
  display: grid;
  width: 82px;
  height: 82px;
  margin: 0 auto 32px;
  place-items: center;
}

.admin-empty-mark > span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(206, 119, 255, 0.24);
  transform: rotate(45deg);
  background: rgba(163, 79, 255, 0.05);
  box-shadow: 0 0 50px rgba(190, 89, 255, 0.12);
}

.admin-empty-mark .admin-mark { width: 44px; height: 44px; box-shadow: none; }
.admin-kicker { margin: 0 0 16px; color: #ff78d4; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; }

.admin-empty h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.92;
  text-transform: uppercase;
  background: linear-gradient(118deg, #fff7ff 0%, #c698ff 52%, #ff78d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.admin-empty-copy { margin: 20px auto 0; color: rgba(246, 222, 255, 0.52); font-size: 0.94rem; line-height: 1.65; }

.admin-overview-logs {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 26px;
  left: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid rgba(206, 119, 255, 0.16);
  border-radius: 6px;
  background: rgba(8, 3, 14, 0.64);
  backdrop-filter: blur(12px);
}

.admin-overview-logs > div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 12px;
}

.admin-overview-logs span {
  color: rgba(246, 222, 255, 0.4);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.admin-overview-logs strong {
  color: #ff78d4;
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1;
}

.admin-overview-logs small {
  grid-column: 1 / -1;
  margin-top: 6px;
  color: rgba(246, 222, 255, 0.3);
  font-family: var(--mono);
  font-size: 0.52rem;
}

.admin-overview-log-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-overview-log-actions > a,
.admin-overview-log-actions > button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 120, 212, 0.25);
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(110deg, rgba(152, 92, 255, 0.3), rgba(240, 91, 197, 0.2));
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-overview-log-actions > button { cursor: pointer; }
.admin-overview-log-actions > a:hover,
.admin-overview-log-actions > button:hover { border-color: rgba(255, 120, 212, 0.5); }
.admin-overview-log-actions > button.is-danger,
.admin-user-log-actions > button.is-danger {
  color: rgba(255, 165, 211, 0.82);
  background: rgba(255, 81, 142, 0.07);
}
.admin-overview-log-actions > button:disabled,
.admin-user-log-actions > button:disabled { cursor: wait; opacity: 0.5; }

.admin-users-workspace {
  display: block;
  padding: 72px 28px 28px;
  overflow: auto;
}

.admin-users-workspace::before { opacity: 0.5; }

.admin-users-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.admin-users-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(206, 119, 255, 0.15);
}

.admin-users-head h1 {
  margin: 0;
  color: #fff7ff;
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 4.5rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-transform: uppercase;
}

.admin-users-head > div:first-child > p:last-child {
  margin: 14px 0 0;
  color: rgba(246, 222, 255, 0.48);
  font-size: 0.86rem;
}

.admin-users-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-users-actions > span,
.admin-users-actions > button {
  min-height: 40px;
  border: 1px solid rgba(206, 119, 255, 0.2);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-users-actions > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  color: rgba(246, 222, 255, 0.48);
  background: rgba(171, 79, 255, 0.06);
}

.admin-users-actions > span b { color: #ff78d4; font-size: 0.76rem; }

.admin-users-actions > button {
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(110deg, rgba(152, 92, 255, 0.3), rgba(240, 91, 197, 0.2));
  cursor: pointer;
}

.admin-users-actions > button:hover { border-color: rgba(255, 120, 212, 0.5); }
.admin-users-actions > button:disabled { cursor: wait; opacity: 0.55; }

.admin-users-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid rgba(206, 119, 255, 0.17);
  border-radius: 6px;
  background: rgba(8, 3, 14, 0.48);
}

.admin-users-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  color: rgba(246, 222, 255, 0.58);
  font-size: 0.78rem;
}

.admin-users-table th {
  height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(206, 119, 255, 0.15);
  color: rgba(246, 222, 255, 0.34);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.admin-users-table td {
  height: 68px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(206, 119, 255, 0.09);
}

.admin-users-table tr:last-child td { border-bottom: 0; }
.admin-users-table tbody tr:hover { background: rgba(171, 79, 255, 0.055); }

.admin-users-table td:first-child {
  display: flex;
  align-items: center;
  gap: 11px;
}

.admin-users-table td:first-child strong { color: rgba(255, 247, 255, 0.88); }
.admin-users-table a { color: #c698ff; font-family: var(--mono); font-size: 0.68rem; }
.admin-users-table a:hover { color: #ff78d4; }

.admin-user-log-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-user-log-actions > a,
.admin-user-log-actions > button {
  display: inline-flex;
  min-height: 32px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(206, 119, 255, 0.2);
  border-radius: 4px;
  color: #c698ff;
  background: rgba(152, 92, 255, 0.08);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-user-log-actions > button { cursor: pointer; }

.admin-list-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 180, 235, 0.22);
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(145deg, rgba(127, 69, 245, 0.7), rgba(233, 87, 193, 0.7));
  font: 800 0.72rem var(--display);
}

.admin-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(198, 152, 255, 0.24);
  border-radius: 999px;
  color: #c698ff;
  background: rgba(152, 92, 255, 0.08);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-role-badge.is-owner {
  border-color: rgba(255, 120, 212, 0.3);
  color: #ff78d4;
  background: rgba(240, 91, 197, 0.08);
}

.admin-users-message {
  display: grid;
  min-height: 260px;
  margin-top: 24px;
  place-content: center;
  justify-items: center;
  gap: 14px;
  border: 1px solid rgba(206, 119, 255, 0.14);
  border-radius: 6px;
  color: rgba(246, 222, 255, 0.45);
  background: rgba(8, 3, 14, 0.42);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.admin-users-message i {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(198, 152, 255, 0.12);
  border-top-color: #ff78d4;
  border-radius: 50%;
  animation: admin-users-spin 0.8s linear infinite;
}

.admin-users-message.is-error strong { color: #ff78d4; }
.admin-users-message.is-error span { color: rgba(246, 222, 255, 0.42); text-transform: none; }

@keyframes admin-users-spin { to { transform: rotate(360deg); } }

.admin-delivery-workspace {
  display: block;
  padding: 72px 28px 28px;
  overflow: auto;
}

.admin-delivery-workspace::before { opacity: 0.42; }

.admin-delivery-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.admin-delivery-head {
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(206, 119, 255, 0.15);
}

.admin-delivery-head h1 {
  margin: 0;
  color: #fff7ff;
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 4.5rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-transform: uppercase;
}

.admin-delivery-head > p:last-child {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(246, 222, 255, 0.48);
  font-size: 0.86rem;
  line-height: 1.6;
}

.admin-delivery-head code,
.admin-endpoint-example code {
  color: #d9b8ff;
  font-family: var(--mono);
}

.admin-delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  margin-top: 24px;
}

.admin-channel-card,
.admin-endpoint-example {
  border: 1px solid rgba(206, 119, 255, 0.17);
  border-radius: 6px;
  background: rgba(8, 3, 14, 0.54);
}

.admin-channel-card { padding: 20px; }

.admin-channel-title {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.admin-channel-logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 180, 235, 0.24);
  border-radius: 5px;
  color: #fff;
  font: 800 0.82rem var(--display);
}

.admin-channel-logo.is-discord { background: linear-gradient(145deg, #5865f2, #865cff); }
.admin-channel-logo.is-telegram { background: linear-gradient(145deg, #218bc7, #4dc9ff); }

.admin-channel-title strong,
.admin-channel-title small { display: block; }
.admin-channel-title strong { color: rgba(255, 247, 255, 0.9); font-size: 0.84rem; }
.admin-channel-title small { margin-top: 4px; color: rgba(246, 222, 255, 0.35); font-family: var(--mono); font-size: 0.52rem; }

.admin-channel-title > b {
  padding: 6px 8px;
  border: 1px solid rgba(246, 222, 255, 0.12);
  border-radius: 999px;
  color: rgba(246, 222, 255, 0.34);
  font-family: var(--mono);
  font-size: 0.48rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-channel-title > b.is-on {
  border-color: rgba(255, 120, 212, 0.28);
  color: #ff78d4;
  background: rgba(240, 91, 197, 0.08);
}

.admin-channel-card label { display: block; margin-top: 14px; }

.admin-channel-card label > span {
  display: block;
  margin-bottom: 7px;
  color: rgba(246, 222, 255, 0.38);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.admin-channel-card input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(206, 119, 255, 0.18);
  border-radius: 4px;
  outline: none;
  color: rgba(255, 247, 255, 0.88);
  background: rgba(6, 2, 10, 0.75);
  font: 0.72rem var(--mono);
}

.admin-channel-card input:focus {
  border-color: rgba(255, 120, 212, 0.5);
  box-shadow: 0 0 0 3px rgba(240, 91, 197, 0.07);
}

.admin-channel-card input::placeholder { color: rgba(246, 222, 255, 0.2); }

.admin-channel-card > p {
  min-height: 38px;
  margin: 14px 0 0;
  color: rgba(246, 222, 255, 0.32);
  font-size: 0.68rem;
  line-height: 1.55;
}

.admin-channel-actions {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.admin-channel-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(206, 119, 255, 0.22);
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(110deg, rgba(152, 92, 255, 0.34), rgba(240, 91, 197, 0.22));
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-channel-actions button.is-danger {
  color: rgba(255, 165, 211, 0.75);
  background: rgba(255, 81, 142, 0.05);
}

.admin-channel-actions button:disabled { cursor: not-allowed; opacity: 0.4; }

.admin-delivery-notice {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(206, 119, 255, 0.16);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.admin-delivery-notice.is-success { color: #aeeec9; border-color: rgba(89, 222, 149, 0.2); background: rgba(89, 222, 149, 0.05); }
.admin-delivery-notice.is-error { color: #ff9acb; border-color: rgba(255, 88, 151, 0.24); background: rgba(255, 88, 151, 0.05); }

.admin-endpoint-example {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 18px 20px;
}

.admin-endpoint-example > span {
  color: #ff78d4;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-endpoint-example code {
  overflow-x: auto;
  white-space: pre;
  font-size: 0.65rem;
  line-height: 1.65;
}

.admin-endpoint-example small { color: rgba(246, 222, 255, 0.32); font-size: 0.66rem; }

.admin-corner {
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: rgba(255, 120, 212, 0.42);
}

.admin-corner--top { top: 18px; right: 18px; border-top: 1px solid; border-right: 1px solid; }
.admin-corner--bottom { bottom: 18px; left: 18px; border-bottom: 1px solid; border-left: 1px solid; }

.admin-games-workspace {
  display: block;
  padding: 72px 28px 28px;
  overflow: auto;
}

.admin-games-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.admin-games-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  margin-top: 24px;
}

.admin-game-form,
.admin-games-list {
  padding: 22px;
  border: 1px solid rgba(206, 119, 255, 0.17);
  border-radius: 6px;
  background: rgba(8, 3, 14, 0.56);
}

.admin-game-form {
  display: grid;
  align-content: start;
  gap: 14px;
}

.admin-game-form label { display: grid; gap: 8px; }
.admin-game-form label > span {
  color: rgba(246, 222, 255, 0.42);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-game-form input[type="text"] {
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(206, 119, 255, 0.2);
  border-radius: 4px;
  outline: 0;
  color: #fff;
  background: rgba(4, 1, 8, 0.68);
  font: 500 0.78rem var(--mono);
}

.admin-game-form input[type="text"]:focus {
  border-color: rgba(255, 120, 212, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 91, 190, 0.08);
}

.admin-game-file {
  position: relative;
  min-height: 82px;
  padding: 13px;
  align-content: center;
  border: 1px dashed rgba(206, 119, 255, 0.28);
  border-radius: 4px;
  cursor: pointer;
}

.admin-game-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.admin-game-file b { color: #c698ff; font-family: var(--mono); font-size: 0.68rem; font-weight: 500; }
.admin-game-form > button {
  min-height: 44px;
  border: 1px solid rgba(255, 120, 212, 0.3);
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(110deg, rgba(152, 92, 255, 0.4), rgba(240, 91, 197, 0.28));
  font: 700 0.58rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-game-form > button:disabled { cursor: wait; opacity: 0.45; }
.admin-games-list {
  display: grid;
  align-content: start;
  gap: 1px;
  padding: 0;
  overflow: hidden;
}

.admin-games-list article {
  display: flex;
  min-height: 74px;
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(206, 119, 255, 0.1);
}

.admin-games-list article:last-child { border-bottom: 0; }
.admin-games-list article > div { display: grid; gap: 5px; }
.admin-games-list article strong { color: rgba(255, 247, 255, 0.9); font-size: 0.8rem; }
.admin-games-list article span,
.admin-games-list article small { color: rgba(246, 222, 255, 0.36); font-family: var(--mono); font-size: 0.56rem; }

.admin-proxy-idle-note {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: 18px;
  padding: 12px 14px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 120, 212, 0.16);
  border-radius: 4px;
  background: rgba(240, 91, 197, 0.045);
}

.admin-proxy-idle-note strong {
  flex: 0 0 auto;
  color: #ff78d4;
  font: 600 0.56rem var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.admin-proxy-idle-note span {
  color: rgba(246, 222, 255, 0.43);
  font-size: 0.68rem;
  line-height: 1.5;
}

.admin-proxy-form input[type="password"] {
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(206, 119, 255, 0.2);
  border-radius: 4px;
  outline: 0;
  color: #fff;
  background: rgba(4, 1, 8, 0.68);
  font: 500 0.78rem var(--mono);
}

.admin-proxy-form input[type="password"]:focus {
  border-color: rgba(255, 120, 212, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 91, 190, 0.08);
}

.admin-proxy-form > p {
  margin: 0;
  color: rgba(246, 222, 255, 0.34);
  font-size: 0.66rem;
  line-height: 1.55;
}

.admin-proxies-list .admin-proxy-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.admin-proxy-identity > div { display: grid; min-width: 0; gap: 5px; }

.admin-proxy-identity code {
  overflow: hidden;
  color: rgba(216, 184, 255, 0.68);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-proxy-protocol {
  display: inline-grid;
  min-width: 56px;
  min-height: 30px;
  padding: 0 8px;
  place-items: center;
  border: 1px solid rgba(198, 152, 255, 0.24);
  border-radius: 4px;
  color: #c698ff !important;
  background: rgba(152, 92, 255, 0.08);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-proxies-list .admin-proxy-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.admin-proxy-actions button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 88, 151, 0.22);
  border-radius: 4px;
  color: rgba(255, 165, 211, 0.8);
  background: rgba(255, 81, 142, 0.05);
  font: 600 0.54rem var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-proxy-actions button:disabled { cursor: wait; opacity: 0.45; }

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; padding: 12px; gap: 12px; }
  .admin-sidebar {
    position: relative;
    top: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    height: auto;
    min-height: 0;
  }
  .admin-brand { min-height: 68px; border-right: 1px solid rgba(206, 119, 255, 0.16); border-bottom: 0; }
  .admin-context { display: none; }
  .admin-nav { padding: 8px; }
  .admin-nav-label, .admin-nav-item b { display: none; }
  .admin-nav-item { grid-template-columns: 22px minmax(0, 1fr); }
  .admin-sidebar-foot { display: none; }
  .admin-main { grid-template-rows: 64px minmax(0, 1fr); gap: 12px; }
  .admin-workspace { min-height: calc(100dvh - 168px); }
  .admin-users-workspace { padding: 66px 20px 20px; }
  .admin-games-workspace { padding: 66px 20px 20px; }
  .admin-delivery-workspace { padding: 66px 20px 20px; }
  .admin-delivery-grid { grid-template-columns: 1fr; }
  .admin-games-grid { grid-template-columns: 1fr; }
  .admin-overview-logs { right: 18px; bottom: 18px; left: 18px; }
}

@media (max-width: 560px) {
  .admin-sidebar { grid-template-columns: auto minmax(0, 1fr); }
  .admin-brand { padding: 10px 14px; }
  .admin-brand-copy { display: none; }
  .admin-nav-item { min-height: 48px; }
  .admin-topbar { padding-inline: 16px; }
  .admin-status { font-size: 0; gap: 0; }
  .admin-workspace-index { top: 18px; left: 18px; }
  .admin-empty { padding-inline: 20px; }
  .admin-empty h1 { font-size: clamp(2.4rem, 14vw, 4.25rem); }
  .admin-users-head { align-items: stretch; flex-direction: column; gap: 18px; }
  .admin-users-actions { justify-content: space-between; }
  .admin-users-actions > span,
  .admin-users-actions > button { flex: 1 1 0; justify-content: center; }
  .admin-delivery-workspace { padding-inline: 14px; }
  .admin-games-workspace { padding-inline: 14px; }
  .admin-channel-title { grid-template-columns: 38px minmax(0, 1fr); }
  .admin-channel-title > b { grid-column: 2; justify-self: start; }
  .admin-channel-actions { flex-direction: column; }
  .admin-overview-logs { align-items: stretch; flex-direction: column; gap: 12px; }
  .admin-overview-log-actions { width: 100%; }
  .admin-overview-log-actions > a,
  .admin-overview-log-actions > button { flex: 1 1 0; }
  .admin-empty { padding-bottom: 190px; }
  .admin-proxy-idle-note { align-items: flex-start; flex-direction: column; }
  .admin-proxies-list article { align-items: stretch; flex-direction: column; }
  .admin-proxies-list .admin-proxy-actions { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  #admin-glow { display: none; }
  .admin-gate > i::after { animation: none; }
  .admin-users-message i { animation: none; }
}
