:root {
  color-scheme: dark;
  --bg: #080a10;
  --surface: rgba(19, 23, 34, .82);
  --surface-2: rgba(26, 31, 45, .92);
  --surface-3: #222838;
  --border: rgba(164, 123, 255, .18);
  --border-strong: rgba(204, 93, 255, .42);
  --text: #f7f8ff;
  --soft: #cbd4e7;
  --muted: #8290aa;
  --purple: #7c55ff;
  --pink: #e33072;
  --pink-2: #ff4a93;
  --cyan: #19e7d3;
  --green: #28e7b2;
  --danger: #ff4d6d;
  --warn: #f7b955;
  --shadow: 0 30px 90px rgba(0, 0, 0, .48);
  --glow: 0 0 38px rgba(227, 48, 114, .28);
  --focus: 0 0 0 3px rgba(227, 48, 114, .32);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(900px 520px at 8% -15%, rgba(227, 48, 114, .20), transparent 64%),
    radial-gradient(760px 520px at 88% -10%, rgba(124, 85, 255, .22), transparent 62%),
    radial-gradient(900px 700px at 50% 110%, rgba(25, 231, 211, .08), transparent 58%),
    linear-gradient(180deg, #10131c 0%, #090b11 54%, #06070b 100%);
  color: var(--text);
}
body.modal-lock {
  overflow: hidden;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 78%);
}
a { color: #fff; text-decoration: none; }
a:hover { color: #fff; }
button, .btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.09);
  color: #fff;
  padding: 9px 15px;
  border-radius: 8px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--purple), #9d62ff);
  box-shadow: 0 14px 34px rgba(124, 85, 255, .24), inset 0 1px 0 rgba(255,255,255,.16);
  font-weight: 850;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
}
button:hover, .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(124, 85, 255, .35), inset 0 1px 0 rgba(255,255,255,.18);
}
button:active, .btn:active { transform: translateY(0) scale(.99); }
.btn.secondary, button.secondary {
  background: rgba(255,255,255,.06);
  color: var(--soft);
  border-color: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.btn.secondary:hover, button.secondary:hover {
  border-color: var(--border-strong);
  background: rgba(227, 48, 114, .14);
}
.btn.hot, button.hot {
  background: linear-gradient(135deg, var(--pink), var(--pink-2));
  box-shadow: 0 16px 44px rgba(227, 48, 114, .30), inset 0 1px 0 rgba(255,255,255,.20);
}
.btn.ok, button.ok {
  background: linear-gradient(135deg, var(--green), #20c997);
  color: #03120d;
  box-shadow: 0 16px 44px rgba(40, 231, 178, .24), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn.danger, button.danger { background: linear-gradient(135deg, #ff3b68, #d92b4d); }
.compact-btn { min-height: 32px; padding: 6px 10px; font-size: 12px; }
.danger-hover:hover { border-color: rgba(255,77,109,.58) !important; background: rgba(255,77,109,.14) !important; }
:where(a, button, input, select, textarea):focus-visible { outline: none; box-shadow: var(--focus); }
.topbar {
  min-height: 74px;
  background: rgba(7, 9, 15, .82);
  backdrop-filter: blur(20px) saturate(135%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  box-sizing: border-box;
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 950;
  letter-spacing: .2px;
  white-space: nowrap;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(227, 48, 114, .72));
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--soft);
  font-weight: 760;
  transition: background .18s ease, color .18s ease;
}
.nav-link:hover { background: rgba(255,255,255,.055); color: #fff; }
.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.user-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 11px 5px 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-weight: 850;
}
.user-pill img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.logout-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(227, 48, 114, .70);
  color: var(--pink-2);
  background: rgba(227, 48, 114, .07);
  font-weight: 950;
  transition: transform .18s ease, background .18s ease;
}
.logout-button:hover { transform: translateY(-1px); background: rgba(227, 48, 114, .16); }
main {
  max-width: 1380px;
  margin: 0 auto;
  padding: 30px 22px 48px;
}
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1 { font-size: clamp(32px, 4vw, 54px); letter-spacing: -1.05px; }
h2 { font-size: 18px; letter-spacing: .1px; }
h3 { font-size: 20px; }
p { margin: 0; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.home-hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 34px;
  border-radius: 28px;
  padding: clamp(26px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(227, 48, 114, .22), transparent 36%),
    linear-gradient(180deg, rgba(26, 31, 45, .92), rgba(13, 16, 25, .86));
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
  position: relative;
}
.home-hero:after, .panel:after, .mini-panel:after, .form-modal:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 32%, transparent 70%, rgba(227,48,114,.09));
  opacity: .62;
}
.home-copy { position: relative; z-index: 1; max-width: 760px; }
.home-copy p {
  max-width: 710px;
  color: var(--soft);
  font-size: 17px;
  margin-top: 18px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.home-logo-card {
  position: relative;
  z-index: 1;
  width: 310px;
  height: 310px;
  display: grid;
  place-items: center;
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 45%, rgba(227, 48, 114, .30), transparent 60%),
    rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}
.home-logo-card img {
  width: 245px;
  height: 245px;
  object-fit: contain;
  filter: drop-shadow(0 0 34px rgba(227, 48, 114, .62));
  animation: floatLogo 4.8s ease-in-out infinite;
}
.mini-panel, .panel, .server-head, .save-bar {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(26, 31, 45, .88), rgba(14, 17, 26, .84));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(18px) saturate(130%);
}
.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border-radius: 15px;
  background: rgba(25, 231, 211, .10);
  border: 1px solid rgba(25, 231, 211, .20);
  font-size: 22px;
  margin-bottom: 18px;
}
.plain-head { margin-bottom: 18px; }
.plain-head p { font-size: 20px; font-weight: 850; margin-top: 8px; color: #6f819f; }
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  align-items: start;
}
.server-card {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  transition: transform .18s ease, filter .18s ease;
}
.server-card:hover { transform: translateY(-4px); filter: drop-shadow(0 0 24px rgba(227, 48, 114, .30)); }
.server-card img {
  width: 168px;
  aspect-ratio: 1;
  border-radius: 18px;
  object-fit: cover;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 16px 44px rgba(0,0,0,.34);
}
.server-card strong {
  max-width: 190px;
  display: block;
  line-height: 1.16;
}
.server-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 18px;
}
.server-head-main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.server-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.server-head img {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 12px 34px rgba(0,0,0,.30);
}
.server-head h1 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.45px;
}
.server-head p { margin-top: 4px; font-weight: 780; }
.mini-panel {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  border-radius: 22px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.mini-panel > * { position: relative; z-index: 1; }
.mini-panel p { margin-top: 8px; }
.panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 18px;
  margin: 18px 0;
}
.panel > * { position: relative; z-index: 1; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-head.compact h2 { font-size: 20px; }
.section-head p { margin-top: 5px; }
.section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.search-select { gap: 8px; }
.search-select input { min-height: 38px; }
.tip {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(227,48,114,.22);
  border: 1px solid rgba(227,48,114,.34);
  font-size: 12px;
  font-weight: 950;
  position: relative;
  cursor: help;
}

.global-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100000;
  width: max-content;
  max-width: min(320px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(8, 10, 17, .99);
  color: var(--soft);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease;
}

.global-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
input, select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  background: rgba(7, 9, 15, .78);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input::placeholder { color: #65738a; }
input:focus, select:focus, textarea:focus {
  border-color: var(--border-strong);
  box-shadow: var(--focus);
  background: rgba(8, 10, 18, .94);
}
select[multiple] { min-height: 150px; }
.field-label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-weight: 850;
  margin: 13px 0;
}
.table-wrap {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(5, 7, 12, .38);
}
table { border-collapse: collapse; width: 100%; min-width: 760px; }
th, td { padding: 8px 10px; text-align: left; vertical-align: middle; border-bottom: 1px solid rgba(255,255,255,.07); }
thead th {
  background: rgba(9, 12, 20, .90);
  color: #f8f7ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: rgba(227, 48, 114, .055); }
tbody tr:last-child td { border-bottom: 0; }
code {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #f2ddff;
  background: rgba(227, 48, 114, .14);
  border: 1px solid rgba(227, 48, 114, .22);
}
.action-cell { width: 170px; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 900;
}
.status-pill.on {
  color: #05120f;
  background: linear-gradient(135deg, var(--green), #21d1a0);
  border-color: rgba(40,231,178,.45);
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.role-picker {
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}
.choice-card {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border-radius: 15px;
  background: rgba(8, 10, 17, .56);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.choice-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: rgba(227,48,114,.10);
}
.choice-card input { width: auto; min-height: auto; }
.choice-card strong { display: block; color: #fff; }
.choice-card small { display: block; color: var(--muted); margin-top: 1px; }
.switch-line {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
  color: var(--soft);
  font-weight: 850;
}
.switch-line input { width: auto; min-height: auto; }
.modal-switch { width: fit-content; margin-top: 8px; }
.save-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-radius: 18px;
  padding: 14px;
  margin-top: 18px;
}
#saveStatus { min-height: 20px; }
.changelog-list {
  display: grid;
  gap: 14px;
}
.chlog-entry {
  padding: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(7, 10, 18, .56);
  overflow: hidden;
}
.chlog-entry summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}
.chlog-entry summary b {
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.chlog-entry pre {
  white-space: pre-wrap;
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font: inherit;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.status-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(26, 31, 45, .88), rgba(14, 17, 26, .84));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.07);
  border-radius: 20px;
  padding: 18px;
}
.status-card span {
  display: block;
  color: var(--muted);
  font-weight: 850;
  margin-bottom: 6px;
}
.status-card strong {
  color: #fff;
  font-size: 24px;
}
.empty {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,.13);
  color: var(--muted);
  background: rgba(0,0,0,.15);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(3, 4, 8, .68);
  backdrop-filter: blur(14px);
  opacity: 0;
  padding: 24px;
  transition: opacity .18s ease;
}
.modal-backdrop.active {
  display: grid;
  opacity: 1;
  animation: fadeIn .18s ease both;
}
.loading-card, .confirm-card, .form-modal {
  width: min(92vw, 380px);
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(29, 34, 49, .98), rgba(10, 12, 19, .98));
  box-shadow: var(--shadow), var(--glow), inset 0 1px 0 rgba(255,255,255,.10);
  padding: 24px;
  text-align: center;
  transform-origin: center;
  animation: modalIn .22s ease both;
}
.form-modal {
  position: relative;
  overflow: hidden;
  width: min(94vw, 520px);
  text-align: left;
}
.wide-modal { width: min(94vw, 820px); }
.form-modal > * { position: relative; z-index: 1; }
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}
.modal-head p { margin-top: 5px; }
.modal-toolbar { margin: 10px 0 6px; }
.icon-button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--soft);
  box-shadow: none;
  font-size: 24px;
  line-height: 1;
}
.modal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.modal-actions.right { justify-content: flex-end; }
.form-modal:has(.combo.open) .modal-form-grid, .form-modal:has(.combo.open) .field-label { z-index: 120; }
.form-modal:has(.combo.open) .modal-actions { z-index: 0; }
.loading-card img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(227, 48, 114, .72));
  margin-bottom: 14px;
}
.spinner-ring {
  width: 46px;
  height: 46px;
  margin: 0 auto 13px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.10);
  border-top-color: var(--green);
  border-right-color: var(--pink-2);
  animation: spin .85s linear infinite;
}
#loadingText {
  font-weight: 900;
  color: #fff;
  letter-spacing: .02em;
}
.confirm-card p { color: var(--muted); margin: 10px 0 18px; }
#toastBox {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.toast {
  min-width: 230px;
  max-width: min(90vw, 420px);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(18, 22, 34, .96);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  color: var(--text);
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast.ok { border-color: rgba(40,231,178,.34); }
.toast.warn { border-color: rgba(247,185,85,.42); }
.toast.error { border-color: rgba(255,77,109,.45); }
.reveal { animation: reveal .38s ease both; }
.delay-1 { animation-delay: .05s; }
.delay-2 { animation-delay: .10s; }
.delay-3 { animation-delay: .15s; }
@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (max-width: 1020px) {
  .topbar-inner { grid-template-columns: 1fr; align-items: stretch; }
  .main-nav, .top-actions { justify-content: flex-start; flex-wrap: wrap; }
  .home-hero { grid-template-columns: 1fr; }
  .home-logo-card { display: none; }
  .status-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  main { padding: 22px 14px 38px; }
  h1 { font-size: 34px; }
  .topbar-inner { padding: 12px 14px; }
  .brand span { white-space: normal; }
  .top-actions .btn { flex: 1; }
  .user-pill { width: 100%; }
  .server-grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 18px; }
  .server-card img { width: 136px; }
  .server-card { font-size: 15px; }
  .server-head { align-items: flex-start; flex-direction: column; }
  .server-head-main { align-items: flex-start; }
  .server-head img { width: 58px; height: 58px; border-radius: 16px; }
  .section-head, .mini-panel, .save-bar { align-items: stretch; flex-direction: column; }
  .section-actions, .server-head-actions { width: 100%; justify-content: stretch; }
  .section-actions .btn, .server-head-actions .btn { flex: 1; }
  table { min-width: 720px; }
  .modal-form-grid { grid-template-columns: 1fr; }
  .modal-actions.right { justify-content: stretch; flex-direction: column; }
}
.server-category {
  margin-top: 22px;
}
.server-category h2 {
  font-size: 22px;
  margin-bottom: 14px;
}
.small-copy {
  margin: -6px 0 14px;
  max-width: 760px;
}
.muted-grid .server-card img,
.server-card.disabled-card img {
  filter: grayscale(1) brightness(.52);
  opacity: .62;
}
.server-card.disabled-card {
  cursor: not-allowed;
  color: #7b8496;
}
.server-card.disabled-card:hover {
  transform: none;
  filter: none;
}
.slim-empty {
  width: fit-content;
  min-width: 240px;
}
.subtle-save {
  justify-content: flex-start;
  background: rgba(26, 31, 45, .42);
  box-shadow: none;
}
.combo {
  position: relative;
  width: 100%;
}
.combo-button {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  justify-content: space-between;
  background: rgba(7, 9, 15, .78);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  box-shadow: none;
  font-weight: 850;
}
.combo-button:hover {
  background: rgba(8, 10, 18, .94);
  border-color: var(--border-strong);
  box-shadow: var(--focus);
}
.combo-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.combo-button b {
  color: var(--muted);
  font-size: 15px;
}
.combo-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 160;
  display: none;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: rgba(8, 10, 17, .98);
  box-shadow: var(--shadow), var(--glow);
}
.combo.open .combo-menu {
  display: block;
  animation: modalIn .16s ease both;
}
.combo-search {
  margin-bottom: 9px;
}
.combo-list {
  max-height: 250px;
  overflow: auto;
  display: grid;
  gap: 6px;
  padding-right: 2px;
}
.combo-option,
.combo-check {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  align-items: center;
  text-align: left;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: none;
  color: var(--soft);
  cursor: pointer;
}
.combo-option:hover,
.combo-check:hover,
.combo-option.selected {
  transform: none;
  border-color: var(--border-strong);
  background: rgba(227,48,114,.13);
  box-shadow: none;
}
.combo-option span,
.combo-check span {
  color: #fff;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.combo-option small,
.combo-check small {
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.combo-check {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "box name"
    "box id";
}
.combo-check input {
  grid-area: box;
  width: auto;
  min-height: auto;
}
.combo-check span {
  grid-area: name;
}
.combo-check small {
  grid-area: id;
}
.command-list {
  display: grid;
  gap: 12px;
}
.command-list article {
  display: grid;
  grid-template-columns: minmax(240px, auto) 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(7, 10, 18, .50);
  border: 1px solid rgba(255,255,255,.08);
}
.command-list p {
  color: var(--soft);
}
.online-text {
  color: var(--green) !important;
}
.offline-text {
  color: var(--danger) !important;
}
@media (max-width: 720px) {
  .command-list article {
    grid-template-columns: 1fr;
  }
  .combo-menu {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 20vh;
  }
}
.form-modal {
  overflow: visible;
}
html {
  scrollbar-color: rgba(227, 48, 114, .62) rgba(8, 10, 17, .86);
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: rgba(8, 10, 17, .86);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pink), var(--purple));
  border: 3px solid rgba(8, 10, 17, .86);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--pink-2), var(--purple));
}
.form-modal .field-label:has(.combo.open) {
  z-index: 80;
}
.combo.open {
  z-index: 90;
}
.combo-menu {
  z-index: 260;
}
.twitch-link {
  display: inline-grid;
  grid-template-columns: 34px minmax(0, auto);
  grid-template-areas: "avatar name";
  align-items: center;
  gap: 0 10px;
  max-width: 280px;
  color: #fff;
}
.twitch-link img {
  grid-area: avatar;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
}
.twitch-link span {
  grid-area: name;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 950;
}
.twitch-link:hover span {
  color: var(--pink-2);
}
.discord-channel-name {
  font-weight: 850;
  color: var(--soft);
}
.server-card.installed-card img {
  border-color: rgba(40, 231, 178, .72);
  box-shadow: 0 16px 44px rgba(0,0,0,.34), 0 0 0 2px rgba(40, 231, 178, .18), 0 0 28px rgba(40, 231, 178, .14);
}
.chlog-entry summary {
  justify-content: flex-start;
}
.chlog-entry summary::-webkit-details-marker {
  display: none;
}
.chlog-entry summary::marker {
  content: "";
}
.chlog-entry summary b {
  margin-left: auto;
}
.chlog-arrow::before {
  content: "›";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: var(--pink-2);
  background: rgba(227,48,114,.10);
  border: 1px solid rgba(227,48,114,.22);
  font-size: 20px;
  line-height: 20px;
  padding-bottom: 2px;
  transition: transform .18s ease;
}
.chlog-entry[open] .chlog-arrow::before {
  transform: rotate(90deg);
}
.command-panel {
  padding: 22px;
}
.command-list.detailed article {
  grid-template-columns: 270px 1fr;
  align-items: start;
}
.command-list.detailed code {
  border-radius: 12px;
  white-space: normal;
}
.command-list ul {
  margin: 9px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.command-list li + li {
  margin-top: 5px;
}
.command-list b {
  color: var(--soft);
}
@media (max-width: 720px) {
  .command-list.detailed article {
    grid-template-columns: 1fr;
  }
}

.home-hero {
  min-height: 360px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  background:
    radial-gradient(520px 300px at 12% 20%, rgba(227, 48, 114, .24), transparent 66%),
    radial-gradient(480px 300px at 88% 15%, rgba(124, 85, 255, .22), transparent 68%),
    linear-gradient(180deg, rgba(24, 29, 43, .94), rgba(10, 13, 21, .88));
}
.home-mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 22px rgba(227, 48, 114, .70));
}
.home-copy h1 {
  max-width: 760px;
}
.home-copy p {
  max-width: 650px;
  font-size: 18px;
}
.home-preview {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(5, 7, 13, .46);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 24px 70px rgba(0,0,0,.38);
}
.preview-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.preview-top img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(227,48,114,.56));
}
.preview-top strong,
.preview-top span {
  display: block;
}
.preview-top strong {
  font-size: 18px;
}
.preview-top span {
  color: var(--muted);
  font-weight: 800;
}
.preview-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 15px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}
.preview-row span {
  color: var(--soft);
  font-weight: 850;
}
.preview-row b {
  color: var(--green);
}

.form-modal:has(.combo.open) .modal-form-grid {
  position: relative;
  z-index: 7000 !important;
}
.form-modal .field-label:has(.combo.open) {
  position: relative;
  z-index: 8000 !important;
}
.form-modal:has(.combo.open) > .field-label:not(:has(.combo.open)),
.form-modal:has(.combo.open) .modal-actions {
  position: relative;
  z-index: 1 !important;
}
.combo.open {
  z-index: 9000 !important;
}
.combo.open .combo-menu {
  z-index: 10000 !important;
}

.chlog-arrow {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  border-radius: 8px;
  color: var(--pink-2);
  background: rgba(227,48,114,.10);
  border: 1px solid rgba(227,48,114,.22);
}
.chlog-arrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.chlog-entry[open] .chlog-arrow::before {
  transform: rotate(135deg);
}

.command-list.detailed article {
  grid-template-columns: minmax(250px, 310px) 1fr;
  align-items: start;
  background: linear-gradient(180deg, rgba(12, 15, 24, .76), rgba(6, 8, 14, .60));
}
.command-name {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #fff;
  background: rgba(227, 48, 114, .12);
  border: 1px solid rgba(227, 48, 114, .24);
  font-weight: 950;
  word-break: break-word;
}
.command-info p {
  margin-bottom: 10px;
}
.arg-list {
  display: grid;
  gap: 7px;
}
.arg-list span {
  color: var(--muted);
}
.arg-list b {
  color: var(--soft);
  margin-right: 6px;
}

@media (max-width: 1020px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-preview { max-width: 460px; }
}
@media (max-width: 720px) {
  .command-list.detailed article { grid-template-columns: 1fr; }
}
.chlog-arrow::before {
  display: block;
  padding: 0;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0;
  line-height: 0;
}

.home-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 42px;
  overflow: hidden;
  padding: clamp(34px, 6vw, 64px);
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(620px 340px at 10% 10%, rgba(227, 48, 114, .24), transparent 68%),
    radial-gradient(520px 320px at 90% 20%, rgba(124, 85, 255, .20), transparent 70%),
    linear-gradient(180deg, rgba(24, 29, 43, .95), rgba(9, 12, 20, .92));
}
.home-hero:after {
  display: none;
}
.home-copy {
  max-width: 820px;
}
.home-copy h1 {
  max-width: 780px;
  font-size: clamp(42px, 5.8vw, 72px);
  line-height: .98;
  letter-spacing: -1.9px;
}
.home-copy p {
  max-width: 720px;
  font-size: 18px;
  color: var(--soft);
}
.home-logo-card {
  width: 320px;
  height: 320px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 45%, rgba(227, 48, 114, .28), transparent 62%),
    rgba(255, 255, 255, .035);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 90px rgba(0,0,0,.36);
}
.home-logo-card img {
  width: 232px;
  height: 232px;
}
.home-preview,
.preview-top,
.preview-row {
  display: none !important;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}
.command-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 18px;
  border-radius: 20px;
  background:
    radial-gradient(260px 160px at 8% 0%, rgba(227,48,114,.13), transparent 70%),
    rgba(7, 10, 18, .55);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.command-card h3 {
  margin-top: 14px;
  font-size: 19px;
}
.command-card p {
  margin-top: 8px;
  color: var(--soft);
}
.command-pill {
  display: inline-flex;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(227,48,114,.14);
  border: 1px solid rgba(227,48,114,.28);
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.command-card dl {
  display: grid;
  gap: 8px 12px;
  grid-template-columns: 130px minmax(0, 1fr);
  margin: 14px 0 0;
}
.command-card dt {
  color: #fff;
  font-weight: 950;
}
.command-card dd {
  margin: 0;
  color: var(--muted);
}

.combo-floating-menu {
  position: fixed !important;
  display: block !important;
  z-index: 1000 !important;
  overflow: hidden;
}
.combo-floating-menu .combo-list {
  max-height: 250px;
}
.modal-backdrop {
  z-index: 200;
}
#toastBox {
  z-index: 1200;
}

.chlog-entry summary {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  justify-content: start;
  align-items: center;
}
.chlog-arrow::before {
  width: 24px;
  height: 24px;
  padding: 0;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1020px) {
  .home-hero {
    grid-template-columns: 1fr;
  }
  .home-logo-card {
    display: none;
  }
}
@media (max-width: 720px) {
  .home-hero {
    padding: 28px;
    min-height: auto;
  }
  .command-card dl {
    grid-template-columns: 1fr;
  }
}

.brand img,
.user-pill img,
.loading-card img,
.home-logo-card img {
  max-width: none;
}

.chlog-entry summary {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: start !important;
  gap: 12px !important;
}

.chlog-entry summary strong {
  font-size: 18px;
  line-height: 28px;
}

.chlog-arrow {
  width: 28px !important;
  height: 28px !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 28px !important;
  padding: 0 !important;
  border-radius: 9px !important;
  color: var(--pink-2) !important;
  background: rgba(227,48,114,.10) !important;
  border: 1px solid rgba(227,48,114,.24) !important;
}

.chlog-arrow::before {
  content: "" !important;
  display: block !important;
  width: 8px !important;
  height: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-top: 2px solid currentColor !important;
  border-right: 2px solid currentColor !important;
  border-left: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  transform: rotate(45deg) !important;
  transition: transform .18s ease !important;
}

.chlog-entry[open] .chlog-arrow::before {
  transform: rotate(135deg) !important;
}

.command-board {
  padding: 24px;
}

.command-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.command-line {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(11, 14, 23, .76), rgba(6, 8, 14, .60));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.command-line summary {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 17px 18px;
  cursor: pointer;
  list-style: none;
}

.command-line summary::-webkit-details-marker {
  display: none;
}

.command-line summary::marker {
  content: "";
}

.command-line summary span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 11px;
  color: #fff;
  background: rgba(227,48,114,.12);
  border: 1px solid rgba(227,48,114,.25);
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-line summary b {
  color: #fff;
  font-size: 18px;
}

.command-line p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--soft);
}

.args-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 10px;
  padding: 0 18px 18px;
}

.args-grid div {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}

.args-grid strong,
.args-grid span {
  display: block;
}

.args-grid strong {
  color: #fff;
  margin-bottom: 4px;
  font-weight: 950;
}

.args-grid span {
  color: var(--muted);
}

.no-search-combo .combo-menu .combo-list,
.combo-floating-menu .combo-list {
  scrollbar-color: rgba(227, 48, 114, .62) rgba(8, 10, 17, .86);
}

.status-pill.soft-pill.on {
  color: #dce5f8;
  background: rgba(40, 231, 178, .12);
  border-color: rgba(40, 231, 178, .36);
}

@media (max-width: 760px) {
  .command-line summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.server-title-block {
  min-width: 0;
}

.server-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.server-stats div {
  min-width: 110px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
}

.server-stats span,
.server-stats strong {
  display: block;
}

.server-stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .35px;
}

.server-stats strong {
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
}

.command-flat .command-line {
  padding: 17px 18px;
}

.command-line-head {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.command-line-head span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 11px;
  color: #fff;
  background: rgba(227,48,114,.12);
  border: 1px solid rgba(227,48,114,.25);
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-line-head b {
  color: #fff;
  font-size: 18px;
}

.command-flat .command-line p {
  padding: 10px 0 14px;
}

.command-flat .args-grid {
  padding: 0;
}

@media (max-width: 760px) {
  .command-line-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .server-stats div {
    min-width: calc(50% - 4px);
  }
}

.clean-home.home-hero {
  min-height: 360px;
  border: 0;
  border-radius: 0;
  padding: 54px 0 42px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.clean-home.home-hero:after {
  display: none;
}
.clean-home .home-copy h1 {
  max-width: 790px;
  font-size: clamp(42px, 5.6vw, 70px);
  line-height: .98;
  letter-spacing: -2px;
}
.clean-home .home-copy p {
  max-width: 760px;
  margin-top: 20px;
  color: #c3ccdc;
  font-size: 18px;
}
.clean-home .home-logo-card {
  width: 292px;
  height: 292px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.clean-home .home-logo-card img {
  width: 260px;
  height: 260px;
  filter: drop-shadow(0 0 36px rgba(227, 48, 114, .60));
}
.home-lines {
  display: grid;
  gap: 0;
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,.09);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.home-lines div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}
.home-lines div:first-child {
  border-top: 0;
}
.home-lines strong {
  color: #fff;
  font-size: 17px;
  font-weight: 950;
}
.home-lines span {
  color: var(--muted);
  font-size: 16px;
}
.server-category {
  margin-top: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.server-category h2 {
  margin-bottom: 18px;
  font-size: 22px;
}
.server-grid {
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 30px 26px;
}
.server-card {
  gap: 12px;
  font-size: 16px;
}
.server-card img {
  width: 150px;
  border-radius: 20px;
  box-shadow: none;
  background: rgba(255,255,255,.04);
}
.server-card:hover {
  transform: translateY(-2px);
  filter: none;
}
.server-card.installed-card img {
  border-color: rgba(40, 231, 178, .72);
  box-shadow: 0 0 0 1px rgba(40, 231, 178, .16);
}
.disabled-card strong {
  color: rgba(180, 190, 210, .62);
}
.small-copy {
  max-width: 620px;
  margin: -8px 0 20px;
}
.server-head {
  padding: 24px 28px;
}
.server-head h1 {
  font-size: clamp(24px, 2.8vw, 34px);
}
.server-stats {
  gap: 0;
  margin-top: 14px;
  color: var(--muted);
}
.server-stats div {
  min-width: 0;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.11);
  border-radius: 0;
  background: transparent;
}
.server-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}
.server-stats span,
.server-stats strong {
  display: inline;
}
.server-stats span {
  margin-right: 6px;
  font-size: 12px;
  color: #77849b;
}
.server-stats strong {
  color: #dce3ef;
  font-size: 13px;
}
.status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 18px 0 30px;
  border-top: 1px solid rgba(255,255,255,.09);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.status-card {
  min-width: 190px;
  flex: 1 1 0;
  padding: 20px 22px;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.status-card:first-child {
  border-left: 0;
}
.status-card span {
  margin-bottom: 6px;
  color: #77849b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .35px;
}
.status-card strong {
  font-size: 22px;
}
.command-board {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.command-board:after {
  display: none;
}
.command-stack {
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.command-line {
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.command-line-head {
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
}
.command-line-head span {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f64b91;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 850;
}
.command-line-head b {
  font-size: 19px;
}
.command-flat .command-line p {
  max-width: 760px;
  padding: 8px 0 10px 0;
  color: var(--soft);
}
.args-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px 26px;
}
.args-grid div {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.args-grid strong,
.args-grid span {
  display: inline;
}
.args-grid strong {
  margin-right: 8px;
  color: #e8edf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}
.args-grid span {
  color: var(--muted);
}
.changelog-list {
  display: grid;
  gap: 12px;
}
.chlog-entry {
  border-radius: 14px;
}
.chlog-entry summary {
  min-height: 56px;
  align-items: center;
  padding: 0 18px;
}
.chlog-arrow {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pink-2);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform .16s ease;
}
.chlog-arrow::before {
  display: none !important;
}
.chlog-entry[open] .chlog-arrow {
  transform: rotate(90deg);
}
.chlog-entry pre {
  padding: 0 18px 18px 54px;
}
@media (max-width: 1020px) {
  .clean-home.home-hero {
    grid-template-columns: 1fr;
  }
  .clean-home .home-logo-card {
    display: none;
  }
  .home-lines div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .server-stats div {
    flex: 1 1 160px;
    padding: 6px 12px 6px 0;
    border-left: 0;
  }
}
@media (max-width: 720px) {
  .clean-home .home-copy h1 {
    font-size: 42px;
  }
  .command-line-head {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .status-card {
    flex-basis: 50%;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .status-card:nth-child(-n+2) {
    border-top: 0;
  }
}

main.compact-page,
main.home-main {
  max-width: 1240px;
}

.plain-head {
  margin: 8px 0 26px;
}

.plain-head h1 {
  font-size: clamp(30px, 3.2vw, 42px);
  letter-spacing: -.7px;
}

.plain-head p {
  max-width: 760px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 650;
  color: #94a3bb;
}

.home-redesign {
  min-height: 430px;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding: clamp(34px, 5.4vw, 62px);
  border-radius: 26px;
  border: 1px solid rgba(164, 123, 255, .20);
  background:
    linear-gradient(110deg, rgba(227, 48, 114, .18), transparent 34%),
    linear-gradient(180deg, rgba(21, 25, 38, .90), rgba(9, 11, 18, .92));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}

.home-redesign:after {
  display: none;
}

.home-redesign .home-copy h1 {
  max-width: 760px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -1.6px;
}

.home-redesign .home-copy p {
  max-width: 690px;
  margin-top: 18px;
  color: #c8d0df;
  font-size: 17px;
}

.home-sigil {
  position: relative;
  display: grid;
  place-items: center;
  width: 330px;
  height: 330px;
  justify-self: end;
}

.home-sigil:before,
.home-sigil:after,
.sigil-ring {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  border: 1px solid rgba(227, 48, 114, .16);
}

.home-sigil:after {
  inset: 70px;
  border-color: rgba(25, 231, 211, .14);
}

.sigil-ring {
  inset: 0;
  border-radius: 34px;
  background: radial-gradient(circle at center, rgba(227,48,114,.18), transparent 58%);
  border: 1px solid rgba(255,255,255,.08);
  transform: rotate(8deg);
}

.home-sigil img {
  position: relative;
  width: 232px;
  height: 232px;
  object-fit: contain;
  filter: drop-shadow(0 0 34px rgba(227, 48, 114, .60));
}

.home-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.home-flow div {
  padding: 23px 26px;
  border-left: 1px solid rgba(255,255,255,.08);
}

.home-flow div:first-child {
  border-left: 0;
  padding-left: 0;
}

.home-flow span {
  display: block;
  color: var(--pink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.home-flow strong {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  margin-bottom: 7px;
}

.home-flow p {
  color: #95a2b8;
  max-width: 300px;
}

.command-reference {
  border-top: 1px solid rgba(255,255,255,.10);
}

.commands-table {
  min-width: 980px;
}

.commands-table th,
.commands-table td {
  padding: 18px 16px;
  vertical-align: top;
}

.commands-table thead th {
  background: transparent;
  color: #8d9bb3;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.commands-table tbody tr:hover {
  background: rgba(227, 48, 114, .035);
}

.commands-table code {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ff4a93;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.commands-table strong,
.commands-table span {
  display: block;
}

.commands-table strong {
  margin-bottom: 4px;
  color: #fff;
  font-size: 16px;
}

.commands-table span {
  color: #a2adc0;
}

.commands-table dl {
  display: grid;
  grid-template-columns: minmax(140px, max-content) minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0;
}

.commands-table dt {
  color: #e8edf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.commands-table dd {
  margin: 0;
  color: #94a1b8;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 30px;
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.status-strip div {
  padding: 20px 22px;
  border-left: 1px solid rgba(255,255,255,.08);
}

.status-strip div:first-child {
  border-left: 0;
  padding-left: 0;
}

.status-strip span {
  display: block;
  margin-bottom: 6px;
  color: #7f8ca3;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.status-strip strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
}

.shard-section {
  margin-top: 10px;
}

.shard-section .section-head {
  margin-bottom: 12px;
}

.changelog-page {
  border-top: 1px solid rgba(255,255,255,.10);
}

.changelog-list {
  display: block;
}

.chlog-entry {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
}

.chlog-entry summary {
  min-height: 58px;
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 !important;
  cursor: pointer;
}

.chlog-entry summary strong {
  font-size: 17px;
  line-height: 1;
}

.chlog-arrow {
  width: 24px !important;
  height: 24px !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--pink-2) !important;
  font-size: 24px !important;
  line-height: 24px !important;
  transform: rotate(0deg) !important;
}

.chlog-entry[open] .chlog-arrow {
  transform: rotate(90deg) !important;
}

.chlog-entry pre {
  padding: 0 0 18px 34px !important;
  margin: 0;
  color: #a3aec2;
  white-space: pre-wrap;
}

.plain-server-head {
  padding: 8px 0 26px !important;
  margin-bottom: 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.plain-server-head:after {
  display: none !important;
}

.plain-server-head img {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  box-shadow: none;
}

.plain-server-head h1 {
  font-size: clamp(24px, 2.6vw, 32px);
}

.server-stats {
  gap: 0 18px;
  margin-top: 12px;
}

.server-stats div {
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.server-stats span,
.server-stats strong {
  display: inline !important;
}

.server-stats span {
  margin-right: 5px;
  color: #7f8ca3;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.server-stats strong {
  color: #dce5f5;
  font-size: 13px;
}

.stream-section {
  margin: 24px 0 28px;
}

.stream-section .section-head {
  margin-bottom: 12px;
}

.stream-section .section-head h2 {
  font-size: 20px;
}

.stream-section .table-wrap,
.shard-section .table-wrap {
  border-color: rgba(164, 123, 255, .16);
  background: rgba(6, 8, 14, .54);
  box-shadow: 0 18px 54px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}

.stream-section .table-wrap {
  max-height: 780px;
  overflow: auto;
}

.top-actions > a.btn.hot[href="/guilds"] {
  display: none !important;
}

@media (max-width: 1020px) {
  .home-redesign {
    grid-template-columns: 1fr;
  }
  .home-sigil {
    display: none;
  }
  .home-flow {
    grid-template-columns: 1fr;
  }
  .home-flow div,
  .home-flow div:first-child {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 18px 0;
  }
  .home-flow div:first-child {
    border-top: 0;
  }
}

@media (max-width: 760px) {
  .status-strip {
    grid-template-columns: 1fr 1fr;
  }
  .status-strip div:nth-child(odd) {
    border-left: 0;
  }
  .commands-table {
    min-width: 820px;
  }
}

main.compact-page,
main.home-main {
  max-width: 1240px;
}

.home-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 30px;
  padding: 26px 0 4px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.home-lines div {
  padding: 0 30px;
  border-left: 1px solid rgba(255,255,255,.08);
}

.home-lines div:first-child {
  padding-left: 0;
  border-left: 0;
}

.home-lines strong {
  display: block;
  font-size: 18px;
  font-weight: 950;
  color: #fff;
  margin-bottom: 8px;
}

.home-lines p {
  max-width: 330px;
  color: #9aa7bb;
}

.site-footer {
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 36px 22px 48px;
  border-top: 1px solid rgba(255,255,255,.09);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px) minmax(180px, 240px);
  gap: 38px;
  align-items: start;
}

.footer-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(227,48,114,.52));
}

.footer-brand p {
  color: #6f7b91;
  margin-top: 22px;
  font-weight: 700;
}

.footer-column {
  display: grid;
  gap: 10px;
}

.footer-column > span {
  color: #8d9bb3;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

.footer-column a {
  color: #fff;
  font-weight: 850;
}

.footer-column a:hover {
  color: var(--pink-2);
}

.footer-socials {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}

.footer-socials svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.clean-command-table {
  min-width: 1040px;
}

.clean-command-table th:first-child,
.clean-command-table td:first-child {
  width: 260px;
}

.clean-command-table th:nth-child(2),
.clean-command-table td:nth-child(2) {
  width: 310px;
}

.arg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.arg-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.arg-list b {
  color: #f2f5ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.arg-list span {
  color: #9aa7bb;
}

.no-args {
  color: #79879d !important;
  font-weight: 800;
}

.status-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 8px 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.status-head h1 {
  font-size: clamp(30px, 3.2vw, 42px);
  letter-spacing: -.7px;
}

.status-head p {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 650;
  color: #94a3bb;
}

.status-word {
  min-width: 112px;
  text-align: right;
  font-size: 24px;
}

.status-board {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(164, 123, 255, .20);
  background:
    linear-gradient(135deg, rgba(227,48,114,.10), transparent 38%),
    rgba(14, 18, 29, .78);
  box-shadow: 0 24px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.055);
}

.status-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 18px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.status-line span {
  display: block;
  color: #7f8ca3;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
}

.status-line strong {
  display: block;
  color: #fff;
  font-size: 22px;
}

.shard-head {
  margin: 20px 0 12px;
}

.shard-table-wrap {
  border-color: rgba(164, 123, 255, .16);
  background: rgba(5, 7, 12, .52);
}

.changelog-page {
  border-top: 1px solid rgba(255,255,255,.10) !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.changelog-list {
  display: block !important;
}

.chlog-entry {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
}

.chlog-entry summary {
  min-height: 58px !important;
  display: grid !important;
  grid-template-columns: 26px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 !important;
}

.chlog-arrow {
  width: 26px !important;
  height: 26px !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--pink-2) !important;
  font-size: 25px !important;
  line-height: 1 !important;
  transform-origin: center !important;
}

.chlog-entry[open] .chlog-arrow {
  transform: rotate(90deg) !important;
}

.chlog-entry pre {
  padding: 0 0 18px 36px !important;
  margin: 0 !important;
  color: #a3aec2 !important;
}

.legal-copy {
  max-width: 900px;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 22px;
}

.legal-copy h2 {
  margin: 24px 0 8px;
  font-size: 20px;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p {
  color: #a7b2c5;
  max-width: 820px;
}

@media (max-width: 1020px) {
  .home-lines {
    grid-template-columns: 1fr;
  }

  .home-lines div,
  .home-lines div:first-child {
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .home-lines div:first-child {
    border-top: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .status-line {
    grid-template-columns: 1fr 1fr;
  }

  .status-line button {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .status-head {
    display: block;
  }

  .status-word {
    display: block;
    text-align: left;
    margin-top: 14px;
  }

  .status-line {
    grid-template-columns: 1fr;
  }

  .clean-command-table {
    min-width: 900px;
  }
}

.home-flow span {
  display: none !important;
}

.home-flow div {
  padding-top: 25px;
  padding-bottom: 25px;
}

.command-docs {
  border-top: 1px solid rgba(255,255,255,.10);
}

.command-doc-row {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 42px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,.085);
}

.command-doc-main code {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: #ff4d98;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 950;
}

.command-doc-main h2 {
  margin: 12px 0 8px;
  color: #fff;
  font-size: 20px;
  letter-spacing: -.2px;
}

.command-doc-main p {
  max-width: 320px;
  color: #a8b4c8;
}

.command-args {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 4px;
}

.command-args.empty {
  color: #7f8ba2;
  font-weight: 850;
  padding-top: 36px;
}

.command-arg {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.command-arg:last-child {
  border-bottom: 0;
}

.command-arg b {
  color: #f3f6ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.command-arg span {
  color: #9aa7bc;
}

.status-board {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.status-line {
  margin-bottom: 28px;
  padding: 18px 0 22px !important;
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
}

.status-line div {
  padding-right: 24px;
  border-right: 1px solid rgba(255,255,255,.08);
}

.status-line div:nth-child(3) {
  border-right: 0;
}

.status-line button {
  justify-self: end;
}

.shard-head {
  margin-top: 0 !important;
}

.shard-table-wrap {
  border-color: rgba(164, 123, 255, .18) !important;
  background: rgba(7, 9, 16, .66) !important;
}

.site-footer {
  margin-top: 60px;
}

@media (max-width: 900px) {
  .command-doc-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .command-args.empty {
    padding-top: 0;
  }

  .command-arg {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (max-width: 760px) {
  .status-line div {
    border-right: 0;
  }

  .status-line button {
    justify-self: stretch;
  }
}

.commands-page .plain-head {
  margin-bottom: 18px;
}

.command-reference-v2 {
  border-top: 1px solid rgba(255,255,255,.10);
}

.command-row-v2 {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 34px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.command-title-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: start;
}

.command-title-v2 code {
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(227,48,114,.36);
  border-radius: 999px;
  background: rgba(227,48,114,.12);
  color: #ff4a93;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.command-title-v2 h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -.2px;
}

.command-title-v2 p {
  max-width: 330px;
  color: #a2aec2;
}

.args-v2 {
  display: grid;
  gap: 0;
  align-content: start;
  border-left: 1px solid rgba(164,123,255,.18);
}

.args-v2 div {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  padding: 9px 0 9px 20px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.args-v2 div:last-child {
  border-bottom: 0;
}

.args-v2 b {
  color: #f3f6ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.args-v2 span {
  color: #9aa7bb;
  line-height: 1.5;
}

.no-args-v2 {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding-left: 20px;
  color: #7e8ba1;
  font-weight: 850;
}

.no-args-v2 span {
  color: #7e8ba1;
}

@media (max-width: 900px) {
  .command-row-v2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .args-v2 {
    border-left: 0;
    border-top: 1px solid rgba(164,123,255,.18);
    padding-top: 8px;
  }

  .args-v2 div {
    grid-template-columns: 1fr;
    gap: 3px;
    padding-left: 0;
  }

  .no-args-v2 {
    padding-left: 0;
  }
}
.activity-log-list {
  max-height: min(62vh, 560px);
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.activity-row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.activity-row:last-child {
  border-bottom: 0;
}

.activity-topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.activity-topline strong {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.activity-topline span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
}

.activity-topline time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.activity-summary {
  color: var(--soft);
  margin-top: 6px;
  font-weight: 720;
}

.activity-meta {
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
}

.activity-modal .modal-toolbar {
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .activity-topline {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
.activity-modal .modal-toolbar {
  display: flex;
  justify-content: flex-end;
}
.streamer-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.streamer-pill {
  width: auto;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px 5px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(227,48,114,.14);
  border: 1px solid rgba(227,48,114,.28);
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
}

.streamer-pill:hover {
  transform: none;
  background: rgba(227,48,114,.22);
  box-shadow: none;
}

.streamer-pill.invalid {
  color: #ffd8df;
  background: rgba(255,77,109,.16);
  border-color: rgba(255,77,109,.42);
}

.streamer-pill b {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #0d1018;
  background: rgba(255,255,255,.82);
  font-size: 12px;
  line-height: 1;
}

.table-search-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.table-search-input {
  width: min(260px, 42vw);
  min-height: 38px;
  padding: 9px 12px;
}

.icon-btn {
  width: 42px;
  min-width: 42px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 28px;
}

th.sortable::after {
  content: "↕";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.32);
  font-size: 11px;
  letter-spacing: 0;
}

th.sortable.sort-active::after {
  content: "↑";
  color: var(--green);
}

th.sortable.sort-active.sort-desc::after {
  content: "↓";
}

.empty-table-cell {
  color: var(--muted);
  text-align: center;
  padding: 22px 14px;
  font-weight: 750;
}

.activity-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between !important;
  gap: 10px;
}

.activity-search-input {
  max-width: 360px;
  min-height: 38px;
}

.activity-log-list {
  gap: 0;
}

.clean-activity-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 0;
}

.activity-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding-top: 2px;
}

.activity-main {
  min-width: 0;
}

.activity-title-line {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.activity-title-line strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.activity-action {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
  font-weight: 950;
}

.activity-action.add {
  color: #06140f;
  background: linear-gradient(135deg, var(--green), #22cfa2);
  border-color: rgba(40,231,178,.46);
}

.activity-action.edit {
  color: #fff;
  background: rgba(164,123,255,.18);
  border-color: rgba(164,123,255,.34);
}

.activity-action.remove {
  color: #ffdfe8;
  background: rgba(255,80,120,.16);
  border-color: rgba(255,80,120,.34);
}

.activity-main p {
  margin: 6px 0 0;
  color: var(--soft);
  font-weight: 780;
}

.activity-main small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.activity-main small b {
  color: rgba(255,255,255,.26);
  padding: 0 4px;
}

@media (max-width: 760px) {
  .table-search-tools {
    width: 100%;
  }

  .table-search-input {
    width: 100%;
  }

  .clean-activity-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .activity-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-search-input {
    max-width: none;
  }
}

.admin-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,.09);
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.admin-stat-strip div {
  padding: 18px 20px;
  border-left: 1px solid rgba(255,255,255,.08);
}

.admin-stat-strip div:first-child {
  border-left: 0;
}

.admin-stat-strip span {
  display: block;
  margin-bottom: 7px;
  color: #77849b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.admin-stat-strip strong {
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.admin-guild-section {
  margin-top: 34px;
}

.admin-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-section-head h2 {
  margin: 0;
  font-size: 22px;
}

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

.admin-guild-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
}

.admin-guild-card:hover {
  transform: translateY(-2px);
  border-color: rgba(40,231,178,.35);
}

.admin-guild-top {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.admin-guild-top img {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  object-fit: cover;
  background: rgba(255,255,255,.055);
}

.admin-guild-top strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-guild-top small {
  display: block;
  margin-top: 3px;
  color: #748097;
  font-size: 12px;
}

.admin-guild-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  color: #96a3b8;
  font-size: 13px;
  font-weight: 760;
}

.admin-guild-stats b {
  color: #e8edf7;
  font-weight: 950;
}

#footerAdminLink {
  color: var(--pink-2);
}

@media (max-width: 760px) {
  .admin-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-stat-strip div:nth-child(odd) {
    border-left: 0;
  }

  .admin-section-head {
    display: grid;
  }
}

.admin-guild-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 96px;
}

.admin-guild-card > img {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  object-fit: cover;
  background: rgba(255,255,255,.055);
}

.admin-guild-card > strong,
.admin-guild-card > small {
  grid-column: 2;
}

.admin-guild-card > strong {
  align-self: end;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-guild-card > small {
  align-self: start;
  overflow: hidden;
  color: #7c899d;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-users-list {
  display: grid;
  gap: 10px;
}

.admin-user-row,
.admin-detail-row,
.admin-data-row,
.admin-data-head {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-user-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.admin-user-row strong,
.admin-detail-row strong {
  display: block;
  color: #f4f7ff;
  font-weight: 950;
}

.admin-user-row small,
.admin-user-row span,
.admin-detail-row span,
.admin-data-row span {
  color: #92a0b6;
  font-size: 13px;
  font-weight: 760;
}

.admin-guild-hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0 26px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.admin-guild-hero img {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  object-fit: cover;
  background: rgba(255,255,255,.06);
}

.admin-guild-hero h1 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: .98;
}

.admin-detail-section {
  margin-top: 34px;
}

.admin-detail-section h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 20px;
}

.admin-detail-list {
  display: grid;
  gap: 0;
}

.admin-detail-row {
  grid-template-columns: 220px minmax(0, 1fr);
}

.admin-data-table {
  overflow-x: auto;
  border-top: 1px solid rgba(255,255,255,.08);
}

.admin-data-head {
  color: #6f7d93;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.admin-data-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty.compact {
  padding: 14px 0;
}

.error-page {
  min-height: 44vh;
  display: grid;
  align-content: center;
  gap: 10px;
}

@media (max-width: 760px) {
  .admin-guild-hero {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .admin-guild-hero .btn {
    grid-column: 1 / -1;
  }

  .admin-detail-row,
  .admin-user-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.error-page .error-home-btn {
  justify-self: start;
  width: auto;
  min-width: 118px;
  max-width: max-content;
}

.admin-stat-strip {
  display: grid !important;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr) !important;
  gap: 0 !important;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(164, 123, 255, .16) !important;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(19, 23, 34, .72), rgba(7, 9, 15, .34));
  box-shadow: 0 18px 58px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.035);
}

.admin-stat-strip div,
.admin-stat-strip div:first-child {
  border-left: 0 !important;
  padding: 0 !important;
}

.admin-metric-main {
  display: grid;
  align-content: center;
  min-height: 112px;
  padding: 22px 24px !important;
  background: radial-gradient(circle at 0 0, rgba(227, 48, 114, .18), transparent 58%);
  border-right: 1px solid rgba(255,255,255,.08) !important;
}

.admin-metric-main span,
.admin-metric-grid span {
  display: block;
  margin-bottom: 5px;
  color: #8290aa;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-metric-main strong {
  color: #fff;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.admin-metric-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.admin-metric-grid div {
  min-height: 82px;
  padding: 18px 20px !important;
  border-left: 1px solid rgba(255,255,255,.065) !important;
  border-bottom: 1px solid rgba(255,255,255,.065) !important;
}

.admin-metric-grid strong {
  color: #f7f8ff;
  font-size: 22px;
  font-weight: 950;
}

.admin-guild-grid {
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)) !important;
  gap: 18px !important;
}

.admin-guild-card {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center;
  align-content: start;
  min-height: 220px;
  padding: 20px 18px !important;
  text-align: center;
  border: 1px solid rgba(164, 123, 255, .16) !important;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(19, 23, 34, .72), rgba(7, 9, 15, .34)) !important;
  box-shadow: 0 18px 58px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.035);
}

.admin-guild-card:hover {
  transform: translateY(-2px);
  border-color: rgba(40,231,178,.38) !important;
  box-shadow: 0 22px 68px rgba(0,0,0,.32), 0 0 36px rgba(40,231,178,.10);
}

.admin-guild-card > img {
  grid-column: auto !important;
  width: 96px !important;
  height: 96px !important;
  margin-bottom: 14px;
  border-radius: 24px !important;
  object-fit: cover;
  background: rgba(255,255,255,.055);
}

.admin-guild-card > strong,
.admin-guild-card > small {
  grid-column: auto !important;
  max-width: 100%;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.admin-guild-card > strong {
  margin-bottom: 6px;
  color: #fff;
  font-size: 15px;
  line-height: 1.22;
  font-weight: 950;
}

.admin-guild-card > small {
  color: #92a0b6;
  font-size: 12px;
  font-weight: 850;
}

.admin-table-wrap {
  border-color: rgba(164, 123, 255, .16) !important;
  background: rgba(6, 8, 14, .54) !important;
  box-shadow: 0 18px 54px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}

.admin-table {
  min-width: 780px;
}

.admin-table th {
  color: #f8f7ff;
  background: rgba(9, 12, 20, .92);
}

.admin-table td {
  color: #b3bfd4;
  font-size: 13px;
  font-weight: 720;
}

.admin-table td a {
  color: #fff;
  font-weight: 950;
  text-decoration: underline;
  text-decoration-color: rgba(255,74,147,.45);
  text-underline-offset: 3px;
}

.admin-info-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(164, 123, 255, .16);
  border-radius: 18px;
  background: rgba(6, 8, 14, .46);
}

.admin-info-table div {
  min-height: 78px;
  padding: 16px 18px;
  border-right: 1px solid rgba(255,255,255,.065);
  border-bottom: 1px solid rgba(255,255,255,.065);
}

.admin-info-table span {
  display: block;
  margin-bottom: 5px;
  color: #7f8ca3;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-info-table strong {
  display: block;
  overflow: hidden;
  color: #f7f8ff;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soft-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  color: #9aa7bc;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 950;
}

.soft-pill.good {
  color: #06150f;
  background: var(--green);
  border-color: rgba(40,231,178,.65);
}

@media (max-width: 760px) {
  .admin-stat-strip {
    grid-template-columns: 1fr !important;
  }

  .admin-metric-main {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
  }

  .admin-guild-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  }
}

.admin-stat-strip {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)) !important;
  gap: 0 !important;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(164, 123, 255, .18) !important;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 20, 31, .72), rgba(6, 8, 14, .36));
  box-shadow: 0 16px 48px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.admin-stat-strip div,
.admin-stat-strip div:first-child,
.admin-stat-item {
  min-height: 92px !important;
  padding: 18px 20px !important;
  border-left: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, .06) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .06) !important;
  background: transparent !important;
}

.admin-stat-item span {
  display: block;
  margin-bottom: 8px;
  color: #8a98b0;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-stat-item strong {
  color: #fff;
  font-size: 26px;
  line-height: 1;
  font-weight: 950;
}

.admin-guild-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
  gap: 18px !important;
}

.admin-guild-card {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center;
  align-content: start;
  min-height: 255px;
  padding: 2px 12px 16px !important;
  text-align: center;
  border: 1px solid rgba(164, 123, 255, .18) !important;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16, 20, 31, .72), rgba(6, 8, 14, .40)) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.035);
}

.admin-guild-card > img {
  grid-column: auto !important;
  width: calc(100% - 4px) !important;
  max-width: 170px;
  height: auto !important;
  aspect-ratio: 1 / 1;
  margin: 2px 0 14px !important;
  border-radius: 18px !important;
  object-fit: cover;
  background: rgba(255,255,255,.055);
}

.admin-guild-card > strong,
.admin-guild-card > small {
  grid-column: auto !important;
  max-width: 100%;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.admin-guild-card > strong {
  min-height: 38px;
  margin-bottom: 8px;
  color: #fff;
  font-size: 15px;
  line-height: 1.22;
  font-weight: 950;
}

.admin-guild-card > small {
  color: #9eabc1;
  font-size: 12px;
  font-weight: 850;
}

.admin-table-wrap {
  max-height: 522px;
  overflow: auto !important;
  border-color: rgba(164, 123, 255, .18) !important;
  background: rgba(6, 8, 14, .54) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.04);
}

.admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.admin-table th {
  color: #f8f7ff;
  background: rgba(9, 12, 20, .96);
  white-space: nowrap;
}

.admin-table td {
  max-width: 340px;
  color: #b3bfd4;
  font-size: 13px;
  font-weight: 720;
  vertical-align: top;
}

.admin-info-list {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(164, 123, 255, .18);
  border-radius: 18px;
  background: rgba(6, 8, 14, .44);
}

.admin-info-row {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255,255,255,.065);
}

.admin-info-row:last-child {
  border-bottom: 0;
}

.admin-info-row span {
  color: #8795ad;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-info-row strong {
  display: block;
  color: #f7f8ff;
  font-size: 14px;
  font-weight: 900;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-info-row small {
  display: block;
  margin-top: 4px;
  color: #8795ad;
  font-size: 12px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .admin-info-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .admin-guild-card > img {
    max-width: 150px;
  }
}

.error-main {
  min-height: calc(100vh - 290px);
  display: grid;
  place-items: center;
}

.error-page {
  width: min(560px, calc(100vw - 40px));
  min-height: auto !important;
  margin: 0 auto;
  text-align: center;
  justify-items: center;
  align-content: center;
}

.error-page .error-home-btn {
  justify-self: center !important;
}


.form-modal:after {
  border-radius: inherit;
}
.discord-channel-link:hover {
  color: var(--pink-2);
}

.admin-section-head-tools {
  align-items: center;
}

.admin-server-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.admin-server-search {
  width: min(360px, 42vw);
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(164, 123, 255, .22);
  border-radius: 10px;
  color: #f7f8ff;
  background: rgba(5, 7, 12, .72);
  outline: none;
}

.admin-server-search:focus {
  border-color: rgba(255, 74, 147, .72);
  box-shadow: 0 0 0 3px rgba(255, 74, 147, .12);
}

.admin-server-search.hidden {
  display: none;
}

.admin-guild-card > img {
  margin-top: 2px !important;
}

.admin-guild-card > small {
  line-height: 1.35;
}

.admin-detail-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 760px) {
  .admin-section-head-tools,
  .admin-server-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-server-search {
    width: 100%;
  }
}

.admin-section-head-tools {
  align-items: center !important;
  justify-content: space-between !important;
}

.admin-title-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-title-tools h2 {
  margin: 0;
}

.admin-title-tools .icon-btn {
  flex: 0 0 auto;
}

.admin-title-tools .admin-server-search {
  width: min(320px, 34vw);
}

.admin-guild-section {
  margin-top: 26px !important;
}

.admin-info-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.admin-info-row {
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  min-height: 72px;
  padding: 13px 16px !important;
}

.admin-info-row span {
  line-height: 1.1;
}

.admin-info-row strong {
  line-height: 1.25;
}

.admin-table-wrap {
  max-height: 470px !important;
  border-radius: 16px !important;
  border-color: rgba(164, 123, 255, .16) !important;
  background: rgba(6, 8, 14, .54) !important;
  box-shadow: 0 18px 54px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.admin-table th,
.admin-table td {
  padding: 8px 10px !important;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 760px) {
  .admin-section-head-tools {
    align-items: stretch !important;
  }

  .admin-title-tools {
    flex-wrap: wrap;
  }

  .admin-title-tools .admin-server-search {
    width: 100%;
  }
}

.bot-offline-banner {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 89, 89, .55);
  border-radius: 10px;
  background: rgba(126, 25, 39, .3);
  color: #ffd7dc;
}

.bot-offline-banner[hidden] {
  display: none;
}

.site-offline-banner {
  margin: 0 0 18px;
}

.server-head + .site-offline-banner {
  margin-top: 18px;
}

.bot-offline-banner strong {
  flex: 0 0 auto;
  color: #ff8794;
}

.config-warning-banner {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 177, 66, .55);
  border-radius: 14px;
  background: rgba(255, 153, 0, .09);
}

.config-warning-banner[hidden] {
  display: none;
}

.config-warning-banner strong {
  display: block;
  margin-bottom: 8px;
  color: #ffc76f;
}

.config-warning-banner #brokenConfigList {
  display: grid;
  gap: 5px;
  color: #f5d7a6;
}

.permission-checker {
  margin-bottom: 22px;
}

.permission-check-list {
  display: grid;
  gap: 10px;
}

.permission-check-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.5fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.permission-check-row.has-missing {
  border-color: rgba(255, 91, 91, .48);
}

.permission-check-row.is-ok {
  border-color: rgba(79, 211, 143, .35);
}

.permission-channel {
  display: grid;
  gap: 3px;
}

.permission-channel span,
.permission-result,
.permission-ok,
.field-help {
  color: var(--muted);
  font-size: .88rem;
}

.permission-check-row.has-missing .permission-result {
  color: #ff9c9c;
}

.permission-check-row.is-ok .permission-result,
.permission-ok {
  color: #84dcae;
}

.template-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.template-message-field {
  grid-column: 1 / -1;
}

.template-settings-grid textarea {
  min-height: 92px;
  resize: vertical;
}

.color-field input[type="color"] {
  width: 100%;
  height: 44px;
  padding: 4px;
  cursor: pointer;
}

.field-help {
  display: block;
  margin-top: 6px;
}

.test-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.test-template-grid .field-label {
  margin-bottom: 0;
}

.test-alert-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

#testAlertStatus {
  min-height: 24px;
  margin-top: 12px;
}

.combo-empty {
  padding: 12px;
  color: var(--muted);
  text-align: center;
}

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

.public-server-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
}

.public-server-card img {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  object-fit: cover;
}

.public-server-card div {
  display: grid;
  gap: 5px;
}

.public-server-card span {
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 760px) {
  .permission-check-row,
  .template-settings-grid,
  .test-template-grid,
  .test-alert-actions {
    grid-template-columns: 1fr;
  }

  .template-message-field {
    grid-column: auto;
  }
}

.permission-checker[hidden] {
  display: none;
}

.permission-check-row {
  grid-template-columns: minmax(180px, .8fr) minmax(320px, 1.7fr) auto;
  align-items: start;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.012));
}

.permission-problems {
  display: grid;
  gap: 9px;
}

.permission-problem-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.permission-problem-item > span:last-child {
  color: #d9a8ad;
  font-size: .86rem;
  line-height: 1.45;
}

.permission-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(255, 91, 105, .5);
  border-radius: 999px;
  background: rgba(145, 28, 42, .28);
  color: #ff9ba5;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
}

.permission-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.twitch-channel-picker .combo-menu {
  min-width: min(430px, calc(100vw - 48px));
}

.twitch-channel-results {
  max-height: 330px;
}

.twitch-channel-option {
  display: grid;
  grid-template-columns: auto 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.twitch-channel-option:hover {
  background: rgba(255,255,255,.055);
}

.twitch-channel-option input {
  margin: 0;
}

.twitch-channel-option img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--panel-2);
}

.twitch-channel-option span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.twitch-channel-option strong,
.twitch-channel-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.twitch-channel-option small {
  color: var(--muted);
}

.inline-field-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
  margin: 16px 0 0;
  padding: 13px 15px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.inline-field-options legend {
  padding: 0 7px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}

.inline-field-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  color: var(--text);
  cursor: pointer;
}

.inline-field-options label:hover {
  border-color: rgba(243,61,147,.28);
  background: rgba(243,61,147,.055);
}

.inline-field-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  margin: 0;
  flex: 0 0 16px;
  border-radius: 4px;
}

.inline-field-options label span {
  min-width: 0;
  line-height: 1.2;
}

.inline-field-options .field-option-tip {
  min-width: 20px;
  margin-left: auto;
  flex: 0 0 20px;
}

.form-modal {
  max-height: min(90vh, 940px);
  overflow-y: auto;
}

.public-servers-grid {
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  align-items: stretch;
}

.public-server-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-items: stretch;
  gap: 15px;
  min-height: 260px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.012));
}

.public-server-header {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 13px !important;
}

.public-server-header img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.public-server-header > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.public-server-header h2 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.12rem;
}

.public-server-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.public-server-tags {
  display: flex !important;
  align-content: start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 7px !important;
}

.public-server-tag {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(243, 61, 147, .24);
  border-radius: 999px;
  background: rgba(243, 61, 147, .08);
  color: #efb0ce !important;
  font-size: .78rem !important;
  line-height: 1;
}

.public-server-actions {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.public-server-actions > span {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.public-server-join {
  min-width: 92px;
  justify-content: center;
}

@media (max-width: 760px) {
  .permission-check-row {
    grid-template-columns: 1fr;
  }

  .permission-actions {
    justify-content: flex-start;
  }

  .public-servers-grid {
    grid-template-columns: 1fr;
  }
}

.field-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
}

.field-title .tip {
  flex: 0 0 20px;
}

.modal-close-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 0 2px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.055);
  color: #d9deea;
  box-shadow: none;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.modal-close-button:hover {
  transform: none;
  border-color: rgba(243,61,147,.42);
  background: rgba(243,61,147,.12);
  color: #fff;
  box-shadow: none;
}

.confirm-card {
  position: relative;
}

.confirm-card > .modal-close-button {
  position: absolute;
  top: 14px;
  right: 14px;
}

.combo-searching {
  opacity: 0.85;
}


.public-server-info-field {
  margin-top: 16px;
}

.public-server-info-field textarea {
  min-height: 86px;
  resize: vertical;
}

.public-server-info-field .field-help {
  text-align: right;
}

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

.public-server-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  min-height: 330px;
  padding: 26px 22px;
  text-align: center;
}

.public-server-card .public-server-avatar {
  width: 116px;
  height: 116px;
  border-radius: 28px;
  object-fit: cover;
  background: var(--panel-2);
}

.public-server-card h2 {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.22rem;
}

.public-server-card > p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.public-server-card .public-server-join {
  width: 100%;
  min-width: 0;
  margin-top: auto;
  justify-content: center;
}
