:root {
  color-scheme: dark;
  --bg: #07090e;
  --bg-deep: #040508;
  --panel: rgba(15, 18, 30, 0.78);
  --panel-raised: rgba(22, 27, 44, 0.88);
  --panel-soft: rgba(28, 34, 56, 0.65);
  --line: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(255, 255, 255, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --subtle: #64748b;
  --purple: #8b5cf6;
  --purple-bright: #a78bfa;
  --purple-soft: rgba(139, 92, 246, 0.16);
  --mint: #10b981;
  --mint-soft: rgba(16, 185, 129, 0.16);
  --blue: #38bdf8;
  --blue-soft: rgba(56, 189, 248, 0.16);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.16);
  --red: #f43f5e;
  --red-soft: rgba(244, 63, 94, 0.16);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 15% -5%, rgba(139, 92, 246, 0.18), transparent 45rem),
    radial-gradient(ellipse at 85% 10%, rgba(56, 189, 248, 0.14), transparent 40rem),
    radial-gradient(ellipse at 50% 95%, rgba(16, 185, 129, 0.08), transparent 50rem),
    #07090e;
  color: var(--text);
  overflow-x: hidden;
}

button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.boot-screen, .center-state {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--muted);
}

::selection { background: rgba(139, 92, 246, 0.35); color: #ffffff; }

.noscript-note ~ .boot-screen { display: none; }

.message-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.message-card {
  width: min(100%, 560px);
  padding: 36px;
  border: 1px solid var(--line-bright);
  border-radius: 20px;
  background: var(--panel-raised);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.message-card .brand-mark { margin-bottom: 20px; }
.message-card h1 { margin: 0 0 10px; font-size: 24px; font-weight: 700; color: #fff; }
.message-card p { color: var(--muted); line-height: 1.7; font-size: 14.5px; }
.message-card a { display: inline-block; margin-top: 14px; color: var(--purple-bright); font-weight: 600; }

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 14px;
  background: linear-gradient(135deg, #2e1d52, #141624);
  color: #ede9fe;
  font: 700 20px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
  flex-shrink: 0;
}
.brand-mark.brand-image {
  display: block;
  object-fit: cover;
}

/* ==================== LOGIN SCREEN ==================== */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: 7vw;
  max-width: 1320px;
  margin: auto;
  padding: 8vh 6vw;
}

.login-copy { max-width: 620px; }
.login-eyebrow { margin-top: 40px; }
.brand-lockup { display: flex; align-items: center; gap: 14px; color: #f8fafc; font-weight: 700; font-size: 18px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--purple-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  content: "";
  box-shadow: 0 0 12px var(--purple);
}

.login-copy h1 {
  margin: 22px 0 16px;
  font: 800 clamp(38px, 5.5vw, 68px)/1.05 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.045em;
  color: #ffffff;
}
.login-copy h1 span {
  background: linear-gradient(135deg, #c4b5fd 20%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-copy > p { max-width: 530px; color: var(--muted); font-size: 16.5px; line-height: 1.75; }

.feature-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.feature-pill {
  padding: 8px 14px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  background: rgba(25, 30, 48, 0.6);
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.login-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(24, 28, 46, 0.95), rgba(12, 14, 24, 0.98));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}
.login-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a78bfa, #38bdf8, transparent);
  content: "";
}
.login-card .brand-mark { margin-bottom: 24px; }
.login-card h2 { margin: 0 0 10px; font-size: 26px; font-weight: 700; color: #fff; }
.login-card p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }
.login-card .login-error { margin-top: 16px; }

.login-button {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: linear-gradient(135deg, #5865F2, #4752C4);
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.35);
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.login-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 14px 34px rgba(88, 101, 242, 0.45);
}
.login-button svg { width: 22px; height: 22px; }

.security-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 22px !important;
  font-size: 12px;
  color: var(--subtle) !important;
  line-height: 1.6 !important;
}
.security-note svg { width: 16px; min-width: 16px; margin-top: 2px; color: var(--mint); }

/* ==================== NAVIGATION BAR ==================== */
.app-shell { min-height: 100vh; animation: dashboard-enter .3s ease-out both; }
@keyframes dashboard-enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.dashboard-nav {
  position: sticky;
  top: 14px;
  z-index: 99;
  width: min(100% - 32px, 1440px);
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin: 14px auto 0;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(12, 15, 26, 0.82);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(180%);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}
.nav-brand .brand-mark { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.nav-brand-title { color: #ffffff; font-size: 18px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.nav-brand-copy { display: grid; gap: 2px; }
.nav-brand-copy strong { color: #ffffff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav-brand-copy small { color: var(--muted); font-size: 11px; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s ease;
}
.nav-link svg { width: 16px; height: 16px; color: var(--subtle); transition: color .18s ease; }
.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
}
.nav-link:hover svg { color: #ffffff; }
.nav-link.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(56, 189, 248, 0.12));
  border-color: rgba(167, 139, 250, 0.35);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.18);
}
.nav-link.active svg { color: var(--purple-bright); }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-server-select {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 22, 36, 0.65);
  color: var(--muted);
  font-size: 12px;
}
.nav-server-select svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--purple-bright); }
.nav-server-select select {
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  max-width: 160px;
}
.nav-server-select select option { background: #131726; color: #f8fafc; }

.nav-divider { width: 1px; height: 26px; background: var(--line-bright); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
}
.nav-user .mini-avatar { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--purple-bright); }
.nav-user span { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(18, 22, 36, 0.6);
  color: var(--muted);
  cursor: pointer;
  transition: all .18s ease;
}
.icon-button:hover {
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
}
.icon-button svg { width: 17px; height: 17px; }

/* ==================== MAIN AREA & PANELS ==================== */
.main-area {
  min-height: calc(100vh - 82px);
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 34px 20px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.page-title h1 {
  margin: 0;
  font: 800 clamp(24px, 3.2vw, 34px) -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.035em;
  color: #ffffff;
}
.page-title p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.top-actions { display: flex; align-items: center; gap: 12px; }
.live-stamp { color: var(--subtle); font-size: 12px; font-weight: 500; }
.live-stamp.paused { color: var(--amber); }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  background: rgba(24, 29, 48, 0.75);
  color: #f1f5f9;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
}
.button svg { width: 16px; height: 16px; }
.button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(35, 42, 68, 0.85);
  transform: translateY(-1px);
}
.button.primary {
  border-color: rgba(167, 139, 250, 0.4);
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}
.button.primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 26px rgba(124, 58, 237, 0.45);
}
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* ==================== STATS GRID ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  transition: border-color .2s ease, transform .2s ease;
}
.stat-card:hover {
  border-color: var(--line-bright);
  transform: translateY(-2px);
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.stat-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
}
.stat-icon.blue { background: var(--blue-soft); color: var(--blue); }
.stat-icon.mint { background: var(--mint-soft); color: var(--mint); }
.stat-icon.amber { background: var(--amber-soft); color: var(--amber); }
.stat-icon.purple { background: var(--purple-soft); color: var(--purple-bright); }
.stat-icon svg { width: 18px; height: 18px; }

.stat-value {
  margin: 14px 0 6px;
  font: 800 clamp(24px, 2.5vw, 32px) -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.03em;
  color: #ffffff;
}
.stat-foot { color: var(--subtle); font-size: 12.5px; }

/* ==================== CONTENT PANELS ==================== */
.panel {
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.panel-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.panel-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--purple-bright);
}
.panel-icon svg { width: 20px; height: 20px; }
.panel-title-group h2 { margin: 0; font-size: 18px; font-weight: 700; color: #fff; }
.panel-title-group p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--mint);
  font-size: 12px;
  font-weight: 600;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.content-grid > .panel { margin-bottom: 0; }

.overview-lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.overview-lower-grid > .panel { margin-bottom: 0; }

/* ==================== WELCOME BANNER ==================== */
.welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(34, 25, 62, 0.85), rgba(16, 20, 36, 0.85));
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
}
.welcome-copy h2 { margin: 8px 0 6px; font-size: 26px; font-weight: 800; color: #fff; }
.welcome-copy p { margin: 0; color: var(--muted); font-size: 14.5px; }

.banner-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}
.banner-avatar {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  border: 2px solid rgba(167, 139, 250, 0.4);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}
.banner-health {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.banner-health.is-online {
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.15);
  color: var(--mint);
}
.banner-health.is-waiting {
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
}

/* ==================== SERVER TABLES & LISTS ==================== */
.table-wrap { overflow-x: auto; margin: -8px; }
.server-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.server-table th {
  padding: 12px 14px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--line);
}
.server-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}
.server-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.server-name {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 600;
}
.server-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.server-icon.fallback {
  display: grid;
  place-items: center;
  background: var(--purple-soft);
  color: var(--purple-bright);
  font-weight: 700;
  font-size: 14px;
}
.mini-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.active {
  background: rgba(16, 185, 129, 0.14);
  color: var(--mint);
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.badge.pending {
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.28);
}
.badge.blocked {
  background: rgba(244, 63, 94, 0.16);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}
.badge.owner {
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.table-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s ease;
}
.table-action:hover {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(139, 92, 246, 0.2);
  color: var(--purple-bright);
}
.table-action svg { width: 14px; height: 14px; }

/* ==================== ROLE HIERARCHY ALERT ==================== */
.hierarchy-alert {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-left: 5px solid #f59e0b;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(69, 39, 10, 0.7), rgba(30, 20, 8, 0.85));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.1);
  color: #fef3c7;
  backdrop-filter: blur(16px);
}
.hierarchy-alert-icon { font-size: 26px; line-height: 1; flex-shrink: 0; }
.hierarchy-alert-content h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--amber);
}
.hierarchy-alert-content p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #fde68a;
}
.hierarchy-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
}
.hierarchy-roles span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  color: #fef08a;
}

/* ==================== FORMS & SETTINGS ==================== */
.server-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(22, 27, 44, 0.6);
}
.server-summary strong { color: #ffffff; font-size: 16px; font-weight: 700; }
.server-summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
}
.field-label svg { width: 16px; height: 16px; color: var(--purple-bright); }
.field select, .field input {
  padding: 11px 14px;
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  background: rgba(14, 18, 30, 0.85);
  color: #f8fafc;
  font-size: 14px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field select:focus, .field input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.field select option { background: #121626; color: #fff; }
.field small { color: var(--subtle); font-size: 12px; }

.disabled-field select, .disabled-field input {
  background: rgba(20, 24, 38, 0.4) !important;
  color: var(--subtle) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  cursor: not-allowed !important;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.form-message { font-size: 13px; color: var(--muted); }
.form-message.success { color: var(--mint); }
.form-message.error { color: #fb7185; }

.server-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.select-wrap select {
  padding: 9px 14px;
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  background: var(--panel-raised);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.select-wrap select option { background: #131728; color: #fff; }

/* ==================== UNINVITED / INVITE BOT ==================== */
.uninvited-section { margin-top: 24px; }
.uninvited-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.uninvited-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-raised);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.uninvited-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
.uninvited-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.uninvited-info span {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.button-invite {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(88, 101, 242, 0.3);
  transition: filter .18s ease, transform .18s ease;
}
.button-invite:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.button-invite svg { width: 14px; height: 14px; }

/* ==================== LIVE VOICE ROOMS ==================== */
.rooms-list { display: grid; gap: 12px; }
.room-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(22, 27, 44, 0.55);
}
.room-top {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 600;
}
.room-users {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 12px;
}

/* ==================== COMMANDS DIRECTORY ==================== */
.command-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.command-search {
  flex: 1;
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  background: rgba(14, 18, 30, 0.8);
  color: var(--muted);
}
.command-search svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--purple-bright); }
.command-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 13.5px;
}
.command-search-count { color: var(--subtle); font-size: 13px; font-weight: 500; }

.command-group { margin-bottom: 30px; }
.command-group-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.command-group-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--purple-soft);
  color: var(--purple-bright);
}
.command-group-icon svg { width: 17px; height: 17px; }
.command-group-heading h3 { margin: 0; font-size: 16px; font-weight: 700; color: #fff; }
.command-group-heading p { margin: 2px 0 0; color: var(--subtle); font-size: 12px; }

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.command-item {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-raised);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all .18s ease;
}
.command-item:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.command-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.command-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--purple-soft);
  color: var(--purple-bright);
}
.command-icon svg { width: 15px; height: 15px; }
.command-category-tag { font-size: 11px; font-weight: 600; color: var(--subtle); text-transform: uppercase; }
.command-item h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: #fff; }
.command-item code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #c4b5fd;
  font-size: 14px;
}
.command-item p { margin: 0 0 14px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.command-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.command-card-footer code { font-size: 12px; color: var(--subtle); }
.copy-command {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  transition: all .16s ease;
}
.copy-command:hover {
  border-color: var(--purple-bright);
  background: var(--purple-soft);
  color: #fff;
}
.copy-command svg { width: 14px; height: 14px; }

/* ==================== HOME & LANDING PAGE ==================== */
.hero-landing {
  padding: 40px 0 20px;
  display: grid;
  gap: 50px;
}
.hero-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(56, 189, 248, 0.1));
  color: #e0e7ff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.15);
  margin-bottom: 22px;
}
.hero-title {
  margin: 0 0 18px;
  font: 800 clamp(36px, 5.5vw, 64px)/1.08 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.045em;
  color: #ffffff;
}
.hero-title span {
  background: linear-gradient(135deg, #c4b5fd 20%, #38bdf8 70%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  max-width: 680px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18.5px);
  line-height: 1.7;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
}
.cta-button.discord {
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}
.cta-button.discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(88, 101, 242, 0.55);
  filter: brightness(1.1);
}
.cta-button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid var(--line-bright);
  backdrop-filter: blur(12px);
}
.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* ==================== INTERACTIVE PREVIEW CARD ==================== */
.discord-preview-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(18, 22, 36, 0.7);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.08);
}
.preview-channel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.preview-channel-header .preview-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--purple-soft);
  color: var(--purple-bright);
}
.preview-channel-header .preview-icon svg { width: 22px; height: 22px; }
.preview-channel-title { flex: 1; }
.preview-channel-title strong { font-size: 16px; font-weight: 700; color: #fff; display: block; }
.preview-channel-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: block; }

.preview-voice-users {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.preview-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
}
.preview-user.speaking {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.18);
}
.preview-avatar { font-size: 18px; }
.speaking-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  margin-left: 2px;
}

.preview-button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  background: rgba(30, 36, 58, 0.7);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
  transition: all .16s ease;
}
.preview-btn svg { width: 15px; height: 15px; color: var(--purple-bright); }
.preview-btn:hover { background: rgba(40, 48, 76, 0.85); border-color: rgba(167, 139, 250, 0.4); }
.preview-btn.danger svg { color: #fb7185; }
.feature-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
  transition: all .2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.feature-card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--purple-soft);
  color: var(--purple-bright);
  margin-bottom: 18px;
}
.feature-card-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: #fff; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* Guide steps */
.guide-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.guide-step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-raised);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--purple);
  color: white;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 14px;
}
.guide-step h4 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: #fff; }
.guide-step p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.guide-step code { font-size: 12.5px; color: var(--purple-bright); background: rgba(139, 92, 246, 0.15); padding: 2px 6px; border-radius: 6px; }

/* ==================== FOOTER ==================== */
.dashboard-footer {
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.7) 0%, rgba(5, 6, 10, 0.95) 100%);
  padding: 50px 24px 34px;
}
.footer-main {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 40px;
}
.footer-brand .brand-mark { margin-bottom: 16px; }
.footer-brand > strong { font-size: 18px; font-weight: 800; color: #fff; display: block; }
.footer-brand p { margin: 10px 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 340px; }
.footer-online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--mint);
}
.footer-column h2 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
.footer-column > button, .footer-column > a, .footer-column > span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13.5px;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: color .16s ease;
}
.footer-column > button:hover, .footer-column > a:hover { color: var(--purple-bright); }
.footer-column > span { cursor: default; }

.footer-bottom {
  max-width: 1440px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--subtle);
  font-size: 12.5px;
}
.back-to-top {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  transition: all .18s ease;
}
.back-to-top:hover {
  border-color: var(--purple-bright);
  background: var(--purple-soft);
  color: #fff;
  transform: translateY(-2px);
}
.back-to-top svg { width: 17px; height: 17px; }

/* ==================== IMAGE 1 HERO HOME STYLES ==================== */
.hero-announcement {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: #cbd5e1;
  margin-bottom: 24px;
}
.announcement-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-brand-name {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.35);
}
.btn-hero-primary {
  background: #ffffff;
  color: #0c0e14;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .18s ease;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.16);
  text-decoration: none;
}
.btn-hero-primary:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.25);
  color: #0c0e14;
}
.btn-hero-primary svg { width: 20px; height: 20px; fill: currentColor; }
.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all .18s ease;
}
.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ==================== IMAGE 2 SELECT A SERVER DASHBOARD ==================== */
.server-select-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0 40px;
}
.server-select-header {
  text-align: center;
  margin-bottom: 34px;
}
.server-select-title {
  margin: 0 0 10px;
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-transform: uppercase;
}
.server-select-subtitle {
  margin: 0;
  color: #94a3b8;
  font-size: 16px;
}
.server-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.server-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(18, 21, 32, 0.7);
  color: #94a3b8;
}
.server-search-box svg { width: 18px; height: 18px; flex-shrink: 0; color: #64748b; }
.server-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font-size: 14.5px;
}
.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-refresh:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-refresh svg { width: 16px; height: 16px; color: #cbd5e1; }

.server-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  margin-bottom: 24px;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 500;
}

.server-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}
.server-select-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background: #12141d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.server-select-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.server-avatar-container {
  position: relative;
  width: 82px;
  height: 82px;
  margin-bottom: 18px;
}
.server-avatar-img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  background: #1c2030;
  border: 2px solid rgba(255, 255, 255, 0.08);
}
.server-avatar-fallback {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b3248, #161926);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.08);
}
.server-status-check {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  border: 3px solid #12141d;
  display: grid;
  place-items: center;
  color: #ffffff;
}
.server-status-check svg { width: 13px; height: 13px; stroke-width: 3; }
.server-status-check.blocked {
  background: #f43f5e;
}

.server-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.server-bot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  flex-shrink: 0;
}

.server-card-name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.server-card-id {
  color: #64748b;
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.btn-card-configure {
  width: 100%;
  margin-top: 24px;
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: #0c0e14;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.12);
  transition: all .18s ease;
}
.btn-card-configure:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.24);
}
.btn-card-configure svg { width: 17px; height: 17px; stroke-width: 2; }
.btn-card-configure.blocked {
  background: rgba(244, 63, 94, 0.14);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
  box-shadow: none;
}
.btn-card-configure.blocked:hover {
  background: rgba(244, 63, 94, 0.22);
  transform: none;
}
.btn-card-configure.invite {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}
.btn-card-configure.invite:hover {
  background: #ffffff;
  color: #0c0e14;
  transform: translateY(-1px);
}

.nav-user-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
}
.nav-user-pill:hover {
  background: rgba(255, 255, 255, 0.1);
}
.nav-user-pill .mini-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nav-user-pill svg { width: 14px; height: 14px; color: #94a3b8; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(18, 22, 38, 0.95);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  animation: toast-enter .25s ease-out both;
}
@keyframes toast-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* RESPONSIVE */
@media (max-width: 980px) {
  .dashboard-nav {
    grid-template-columns: 1fr auto;
    padding: 10px 14px;
  }
  .nav-links { display: none; }
  .content-grid, .overview-lower-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .login-wrap { grid-template-columns: 1fr; gap: 40px; padding: 40px 20px; }
}

@media (max-width: 760px) {
  .instance-cards-grid { grid-template-columns: 1fr; }
  .primary-bot-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .welcome-banner { flex-direction: column; align-items: flex-start; }
}

/* ==================== DEVELOPER CONSOLE STYLES ==================== */
.dev-dashboard-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0 40px;
}
.dev-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.dev-title {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}
.dev-subtitle {
  margin: 0;
  color: #94a3b8;
  font-size: 15px;
}
.dev-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* PRIMARY BOT ROW */
.primary-bot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 6px;
  flex-wrap: wrap;
}
.primary-bot-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}
.primary-avatar-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.primary-bot-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.primary-bot-stats div {
  display: grid;
  gap: 2px;
}
.primary-bot-stats small {
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.primary-bot-stats strong {
  color: #f1f5f9;
  font-size: 14.5px;
}

/* INSTANCE CARDS GRID */
.instance-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}
.instance-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #111420;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all .18s ease;
}
.instance-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.instance-card.online { border-left: 3px solid #10b981; }
.instance-card.offline { border-left: 3px solid #64748b; }
.instance-card.error { border-left: 3px solid #f43f5e; }
.instance-card.starting { border-left: 3px solid #38bdf8; }

.instance-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.instance-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.instance-name {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}
.instance-tag {
  color: #64748b;
  font-size: 12px;
}
.instance-avatar-fallback {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b3248, #161926);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
}

.instance-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.instance-meta-item {
  display: grid;
  gap: 3px;
}
.meta-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.meta-label svg { width: 12px; height: 12px; }
.meta-value {
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta-value code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.instance-token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  margin-bottom: 16px;
}
.token-masked {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #94a3b8;
}
.token-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.instance-error-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  font-size: 12.5px;
  line-height: 1.5;
}
.instance-error-alert svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }

.instance-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.btn-inst-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: all .18s ease;
}
.btn-inst-action svg { width: 14px; height: 14px; }
.btn-inst-action.primary {
  background: #ffffff;
  color: #0c0e14;
}
.btn-inst-action.primary:hover {
  background: #e2e8f0;
}
.btn-inst-action.warn {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.btn-inst-action.warn:hover {
  background: rgba(245, 158, 11, 0.25);
}
.btn-inst-action.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-inst-action.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-inst-action.danger {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.25);
  padding: 8px 10px;
}
.btn-inst-action.danger:hover {
  background: rgba(244, 63, 94, 0.22);
}

/* MODAL STYLES */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modal-fade .2s ease-out both;
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  width: min(100%, 560px);
  background: #121522;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  animation: modal-up .25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes modal-up { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.modal-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}
.modal-subtitle {
  margin: 0;
  color: #94a3b8;
  font-size: 13.5px;
}
.modal-close {
  background: none;
  border: 0;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color .18s ease;
}
.modal-close:hover { color: #ffffff; }

.token-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.token-input-wrap input {
  padding-right: 44px;
}
.btn-reveal-token {
  position: absolute;
  right: 10px;
  background: none;
  border: 0;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  display: grid;
  place-items: center;
  transition: color .18s ease;
}
.btn-reveal-token:hover { color: #ffffff; }
.btn-reveal-token svg { width: 18px; height: 18px; }

.db-options-grid {
  display: grid;
  gap: 10px;
}
.db-option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all .18s ease;
}
.db-option-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}
.db-option-card.selected {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}
.db-option-card input[type="radio"] {
  margin-top: 3px;
  accent-color: #ffffff;
}
.db-option-content {
  display: grid;
  gap: 3px;
}
.db-option-content strong {
  font-size: 13.5px;
  color: #ffffff;
}
.db-option-content span {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

/* ==================== MONOCHROME PRODUCT THEME ==================== */
:root {
  --bg: #08090a;
  --bg-deep: #050506;
  --panel: rgba(17, 18, 20, 0.88);
  --panel-raised: rgba(23, 24, 26, 0.96);
  --panel-soft: rgba(32, 33, 36, 0.76);
  --line: rgba(255, 255, 255, 0.09);
  --line-bright: rgba(255, 255, 255, 0.16);
  --text: #fafafa;
  --muted: #a1a1aa;
  --subtle: #71717a;
  --purple: #d4d4d8;
  --purple-bright: #f4f4f5;
  --purple-soft: rgba(255, 255, 255, 0.08);
  --blue: #d4d4d8;
  --blue-soft: rgba(255, 255, 255, 0.08);
  --amber: #a1a1aa;
  --amber-soft: rgba(255, 255, 255, 0.08);
}

body {
  background: #090a0b;
  color: #f4f4f5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 0.65px, transparent 0.65px);
  background-size: 5px 5px;
  opacity: 0.12;
  content: "";
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline-color: #f4f4f5;
}

.brand-mark {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, #343538, #151618);
  color: #fafafa;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.login-wrap {
  max-width: 1400px;
}

.login-copy h1 span {
  background: none;
  color: #d4d4d8;
  -webkit-text-fill-color: currentColor;
}

.login-card {
  background: linear-gradient(155deg, rgba(25, 26, 28, 0.97), rgba(13, 14, 15, 0.98));
}

.login-card::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
}

.eyebrow, .message-card a { color: #d4d4d8; }
.eyebrow::before { background: #d4d4d8; box-shadow: none; }

.login-button {
  background: #f4f4f5;
  color: #111214;
  box-shadow: none;
}

.login-button:hover {
  background: #d4d4d8;
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.12);
}

.login-button svg { color: #111214; }

.dashboard-nav {
  top: 0;
  width: min(100% - 48px, 1600px);
  min-height: 92px;
  margin: 0 auto;
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.nav-links {
  justify-self: center;
  gap: 3px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(18, 19, 21, 0.86);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(22px);
}

.nav-link {
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 999px;
  color: #a1a1aa;
  font-size: 14px;
  font-weight: 600;
}

.nav-link.active {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.11);
  color: #fafafa;
  box-shadow: none;
}

.nav-link.active svg, .nav-link:hover svg { color: #f4f4f5; }
.nav-user-pill { border: 1px solid var(--line-bright); background: rgba(255, 255, 255, 0.045); }
.nav-user-pill:hover { background: rgba(255, 255, 255, 0.09); }
.nav-user-pill .mini-avatar { border: 1px solid rgba(255, 255, 255, 0.2); }
.nav-tools { gap: 10px; }
.nav-tools > .btn-hero-primary {
  min-height: 40px;
  align-self: center;
  border-radius: 999px;
}

.mobile-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #f4f4f5;
  cursor: pointer;
}

.mobile-nav-toggle .animated-icon { width: 20px; height: 20px; }
.mobile-nav-toggle svg { width: 20px; height: 20px; }

.main-area {
  width: min(100%, 1480px);
  padding-top: 22px;
}

.button.primary, .button-invite {
  border-color: rgba(255, 255, 255, 0.16);
  background: #f4f4f5;
  color: #111214;
  box-shadow: none;
}

.button.primary:hover, .button-invite:hover {
  background: #d4d4d8;
  color: #111214;
  box-shadow: none;
}

.nav-link.active, .nav-link:hover,
.table-action:hover, .copy-command:hover,
.back-to-top:hover, .command-item:hover,
.uninvited-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon, .panel-icon, .feature-card-icon,
.command-group-icon, .command-icon, .command-search svg,
.field-label svg, .preview-btn svg {
  color: #e4e4e7;
}

.stat-icon.purple, .stat-icon.blue, .stat-icon.amber {
  background: rgba(255, 255, 255, 0.07);
}

.welcome-banner {
  background: linear-gradient(125deg, rgba(32, 33, 35, 0.9), rgba(16, 17, 18, 0.92));
}

.banner-avatar {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.badge.owner, .server-icon.fallback, .command-group-icon,
.command-icon, .step-number {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
}

.command-item code, .guide-step code {
  color: #e4e4e7;
}

.guide-step code {
  background: rgba(255, 255, 255, 0.08);
}

.hierarchy-alert {
  border-color: rgba(255, 255, 255, 0.17);
  border-left-color: #a1a1aa;
  background: linear-gradient(125deg, rgba(30, 31, 33, 0.92), rgba(17, 18, 20, 0.96));
  color: #e4e4e7;
  box-shadow: none;
}

.hierarchy-alert-content h4,
.hierarchy-alert-content p,
.hierarchy-roles span {
  color: #d4d4d8;
}

.hierarchy-roles span {
  border-color: rgba(255, 255, 255, 0.12);
}

.field select:focus, .field input:focus {
  border-color: #a1a1aa;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.button-invite, .btn-hero-primary, .btn-card-configure,
.btn-inst-action.primary {
  background: #f4f4f5;
  color: #111214;
  box-shadow: none;
}

.banner-health.is-waiting, .badge.pending,
.btn-inst-action.warn, .button.warn {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #d4d4d8;
}

.btn-inst-action.warn:hover { background: rgba(255, 255, 255, 0.12); }

.btn-card-configure:hover, .btn-hero-primary:hover,
.btn-inst-action.primary:hover {
  background: #d4d4d8;
  color: #111214;
  box-shadow: none;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-landing {
  max-width: 1220px;
  gap: 76px;
  padding: 38px 0 20px;
}

.hero-header {
  max-width: 1160px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero-eyebrow .status-dot {
  width: 6px;
  height: 6px;
  background: #d4d4d8;
  box-shadow: none;
}

.hero-title {
  margin: 0 auto 22px;
  font-size: clamp(44px, 7.1vw, 92px);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero-title span {
  background: none;
  color: #d4d4d8;
  -webkit-text-fill-color: currentColor;
}

.hero-subtitle {
  max-width: 660px;
  margin-bottom: 34px;
  color: #a1a1aa;
  font-size: clamp(16px, 1.65vw, 19px);
  line-height: 1.7;
}

.hero-cta-group { gap: 12px; }

.btn-hero-primary, .btn-hero-secondary {
  min-height: 58px;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 15px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-hero-primary {
  gap: 11px;
  border: 1px solid #f4f4f5;
}

.btn-hero-primary svg:last-child { width: 17px; height: 17px; }
.btn-hero-primary svg:first-child { width: 20px; height: 20px; }
.btn-hero-secondary { gap: 12px; }
.btn-hero-secondary svg { width: 17px; height: 17px; color: #a1a1aa; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 770px);
  margin: -12px auto 0;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-metric {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 0 14px;
}

.hero-metric + .hero-metric { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.hero-metric strong { color: #f4f4f5; font-size: clamp(21px, 3vw, 32px); font-weight: 750; letter-spacing: -0.045em; }
.hero-metric span { color: #71717a; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.features-section > .panel-heading { margin-bottom: 22px; }
.features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.feature-card {
  padding: 25px;
  border-radius: 16px;
  background: rgba(16, 17, 19, 0.84);
  box-shadow: none;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.feature-card h3 { font-size: 16px; }
.feature-card p { color: #a1a1aa; font-size: 13.5px; line-height: 1.7; }
.animated-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.25em; height: 1.25em; flex: 0 0 auto; }
.animated-icon > svg { width: 100%; height: 100%; }
.animated-icon > svg path, .animated-icon > svg line, .animated-icon > svg polyline, .animated-icon > svg circle, .animated-icon > svg rect {
  stroke: currentColor;
}
.animated-icon > svg [fill="currentColor"] { fill: currentColor; }
.feature-card-icon .animated-icon, .preview-icon .animated-icon { width: 22px; height: 22px; }

.discord-preview-card {
  border-radius: 15px;
  background: #111214;
  box-shadow: none;
}

.preview-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
}

.preview-avatar { display: inline-flex; align-items: center; color: #a1a1aa; }
.preview-avatar svg { width: 18px; height: 18px; }
.preview-user { background: rgba(255, 255, 255, 0.035); }
.preview-user.speaking { border-color: rgba(255, 255, 255, 0.25); box-shadow: none; }
.preview-btn { background: rgba(255, 255, 255, 0.04); }
.preview-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); }
.preview-btn.danger svg { color: #a1a1aa; }

.guide-step { background: rgba(20, 21, 23, 0.88); }
.step-number { border: 1px solid rgba(255, 255, 255, 0.15); }
.panel, .stat-card { box-shadow: none; }
.panel { background: rgba(15, 16, 18, 0.84); }
.stat-card { background: rgba(17, 18, 20, 0.88); }

.dashboard-footer {
  background: linear-gradient(180deg, rgba(8, 9, 10, 0.45), rgba(5, 6, 7, 0.96));
}

.footer-column > button:hover, .footer-column > a:hover { color: #f4f4f5; }

@media (max-width: 980px) {
  .dashboard-nav {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr auto;
    min-height: 76px;
    width: calc(100% - 32px);
    padding: 10px 0;
    background: rgba(9, 10, 11, 0.88);
    backdrop-filter: blur(20px);
  }

  .nav-links { display: none; }
  .mobile-nav-toggle { display: grid; }
  .dashboard-nav.is-menu-open .nav-links {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border-radius: 18px;
    background: rgba(18, 19, 21, 0.98);
  }

  .dashboard-nav.is-menu-open .nav-link { justify-content: flex-start; border-radius: 11px; }
  .hero-landing { gap: 58px; padding-top: 42px; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .dashboard-nav { width: calc(100% - 24px); }
  .nav-brand { gap: 9px; }
  .nav-brand-title { font-size: 16px; }
  .nav-brand .brand-mark { width: 34px; height: 34px; }
  .nav-tools { gap: 7px; }
  .nav-user-pill { gap: 6px; padding-right: 8px; }
  .nav-user-pill span { max-width: 68px; }
  .nav-user-pill svg { display: none; }
  .mobile-nav-toggle { width: 38px; height: 38px; }
  .main-area { padding: 20px 14px 38px; }
  .hero-landing { gap: 42px; padding-top: 42px; }
  .hero-eyebrow { margin-bottom: 22px; font-size: 10px; letter-spacing: 0.12em; }
  .hero-title { font-size: clamp(42px, 11vw, 62px); letter-spacing: -0.06em; line-height: 1.02; }
  .hero-subtitle { margin-bottom: 26px; font-size: 15.5px; }
  .hero-cta-group { align-items: stretch; flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; }
  .hero-metrics { margin-top: 0; padding: 20px 0; }
  .hero-metric { padding: 0 6px; }
  .hero-metric strong { font-size: clamp(18px, 5vw, 25px); }
  .hero-metric span { font-size: 9px; letter-spacing: 0.08em; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 22px; }
}

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

/* Refined system status and footer */
body {
  background:
    radial-gradient(ellipse at 14% 0%, rgba(255, 255, 255, 0.055), transparent 38rem),
    radial-gradient(ellipse at 88% 18%, rgba(120, 120, 130, 0.07), transparent 34rem),
    linear-gradient(145deg, #0b0c0e 0%, #08090a 48%, #0c0d0f 100%);
  background-attachment: fixed;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.28;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 68%);
}

.dashboard-footer {
  position: relative;
  isolation: isolate;
  width: calc(100% + 40px);
  margin: 56px 0 -48px -20px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse at 18% 0%, rgba(255, 255, 255, 0.055), transparent 34rem),
    linear-gradient(160deg, rgba(17, 18, 20, 0.98), rgba(7, 8, 9, 0.99) 72%);
  padding: 46px 24px 26px;
}

.dashboard-footer::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-top: 1px solid rgba(255, 255, 255, 0.025);
  pointer-events: none;
  content: "";
}

.footer-main {
  grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(130px, 0.8fr));
  gap: clamp(28px, 5vw, 76px);
}

.footer-brand-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
}

.footer-brand-heading .brand-mark {
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 12px;
}

.footer-brand > strong {
  display: inline;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.footer-brand p {
  margin: 15px 0 0;
  max-width: 330px;
  color: #929399;
  font-size: 13px;
  line-height: 1.75;
}

.footer-online {
  min-height: 32px;
  gap: 8px;
  margin-left: 2px;
  padding: 5px 11px;
  border-color: rgba(16, 185, 129, 0.26);
  background: rgba(16, 185, 129, 0.085);
  color: #34d399;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.footer-online:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, 0.48);
  background: rgba(16, 185, 129, 0.14);
}

.footer-online:focus-visible {
  outline: 2px solid #34d399;
  outline-offset: 3px;
}

.footer-online.health-warn {
  border-color: rgba(212, 212, 216, 0.22);
  background: rgba(212, 212, 216, 0.07);
  color: #d4d4d8;
}

.footer-online > svg {
  width: 13px;
  height: 13px;
  opacity: 0.72;
}

.footer-column h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  color: #e4e4e7;
  font-size: 11px;
  letter-spacing: 0.13em;
}

.footer-column h2 svg {
  width: 15px;
  height: 15px;
  color: #a1a1aa;
}

.footer-column > button,
.footer-column > a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 29px;
  color: #96979d;
  font-size: 13px;
  text-decoration: none;
}

.footer-column > button svg,
.footer-column > a svg {
  width: 15px;
  height: 15px;
  color: #717279;
  transition: color .16s ease, transform .16s ease;
}

.footer-column > button:hover,
.footer-column > a:hover {
  color: #f4f4f5;
}

.footer-column > button:hover svg,
.footer-column > a:hover svg {
  color: #e4e4e7;
  transform: translateX(2px);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 19px;
  border-color: rgba(255, 255, 255, 0.075);
  color: #77787e;
  font-size: 12px;
}

.back-to-top {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
}

.status-page {
  display: grid;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.status-overview-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 19px;
  min-height: 158px;
  padding: clamp(22px, 4vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 0 50%, rgba(16, 185, 129, 0.12), transparent 62%),
    linear-gradient(125deg, rgba(20, 24, 23, 0.96), rgba(15, 16, 18, 0.92));
}

.status-overview-card.is-connecting {
  background:
    radial-gradient(ellipse at 0 50%, rgba(161, 161, 170, 0.12), transparent 62%),
    linear-gradient(125deg, rgba(23, 23, 25, 0.96), rgba(15, 16, 18, 0.92));
}

.status-overview-icon,
.status-system-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(52, 211, 153, 0.19);
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.09);
  color: #34d399;
}

.is-connecting .status-overview-icon {
  border-color: rgba(212, 212, 216, 0.16);
  background: rgba(212, 212, 216, 0.07);
  color: #d4d4d8;
}

.status-overview-icon svg { width: 22px; height: 22px; }
.status-overview-copy { min-width: 0; }
.status-kicker {
  color: #929399;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.status-overview-copy h2 {
  margin: 6px 0 5px;
  color: #f4f4f5;
  font-size: clamp(21px, 3vw, 27px);
  letter-spacing: -0.04em;
}

.status-overview-copy p {
  margin: 0;
  color: #a1a1aa;
  font-size: 13.5px;
  line-height: 1.6;
}

.status-overview-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.status-system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.status-system-card {
  min-height: 164px;
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(20, 21, 23, 0.94), rgba(13, 14, 16, 0.94));
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.status-system-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(24, 25, 27, 0.98), rgba(15, 16, 18, 0.98));
}

.status-system-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

.status-system-icon {
  width: 35px;
  height: 35px;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  color: #d4d4d8;
}

.status-system-icon svg { width: 17px; height: 17px; }
.status-system-indicator .status-dot { width: 6px; height: 6px; }
.status-system-indicator.health-warn .status-dot { background: #a1a1aa; box-shadow: 0 0 9px #a1a1aa; }
.status-system-label { display: block; color: #8f9096; font-size: 11px; font-weight: 600; }
.status-system-value {
  display: block;
  margin-top: 6px;
  color: #f4f4f5;
  font-size: clamp(18px, 2.3vw, 22px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.status-system-value.health-good { color: #6ee7b7; }
.status-system-value.health-warn { color: #d4d4d8; }
.status-system-card p { margin: 7px 0 0; color: #73747a; font-size: 11.5px; line-height: 1.55; }

.status-refresh-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 3px 0 0;
  color: #73747a;
  font-size: 11.5px;
}

.status-refresh-note svg { width: 14px; height: 14px; }

@media (max-width: 980px) {
  .footer-main { grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(120px, 0.8fr)); }
  .status-system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .dashboard-footer {
    width: calc(100% + 28px);
    margin: 42px 0 -38px -14px;
    padding: 35px 20px 22px;
  }

  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand-heading { gap: 9px; }
  .footer-brand-heading .brand-mark { width: 34px; height: 34px; }
  .footer-online { margin-left: 0; }
  .footer-column > button, .footer-column > a { font-size: 12px; }
  .footer-bottom { margin-top: 25px; }
  .status-overview-card { align-items: flex-start; flex-wrap: wrap; gap: 13px; }
  .status-overview-icon { width: 40px; height: 40px; }
  .status-overview-copy { flex: 1 1 calc(100% - 56px); }
  .status-overview-pill { margin-left: 53px; }
  .status-system-grid { grid-template-columns: 1fr; }
  .status-system-card { min-height: 0; }
}

.legal-page {
  display: grid;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.legal-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 4px 8px;
}

.legal-intro-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  color: #e4e4e7;
}

.legal-intro-icon svg { width: 22px; height: 22px; }
.legal-intro h2 { margin: 4px 0 3px; color: #f4f4f5; font-size: 25px; letter-spacing: -0.04em; }
.legal-intro p { margin: 0; color: #929399; font-size: 13px; line-height: 1.6; }

.legal-document {
  display: grid;
  gap: 0;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(19, 20, 22, 0.96), rgba(12, 13, 15, 0.96));
}

.legal-section {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 21px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.legal-section:first-child { padding-top: 0; }
.legal-section:last-of-type { padding-bottom: 20px; border-bottom: 0; }

.legal-section-number {
  padding-top: 2px;
  color: #77787e;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.legal-section h3 {
  margin: 0 0 8px;
  color: #e4e4e7;
  font-size: 14px;
  font-weight: 700;
}

.legal-section p {
  max-width: 780px;
  margin: 0;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.75;
}

.legal-section p + p { margin-top: 9px; }
.legal-section code { color: #e4e4e7; }
.legal-note {
  margin: 3px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  color: #73747a;
  font-size: 11px;
  line-height: 1.6;
}

.legal-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.legal-switcher button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: #a1a1aa;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.legal-switcher button svg { width: 15px; height: 15px; }
.legal-switcher button:hover,
.legal-switcher button.active {
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.075);
  color: #f4f4f5;
}

@media (max-width: 600px) {
  .legal-intro { align-items: flex-start; gap: 12px; }
  .legal-intro-icon { width: 42px; height: 42px; border-radius: 13px; }
  .legal-intro h2 { font-size: 22px; }
  .legal-section { grid-template-columns: 28px minmax(0, 1fr); gap: 7px; padding: 18px 0; }
  .legal-section p { font-size: 12.5px; }
}

.account-menu-wrap {
  position: relative;
  flex: 0 0 auto;
}

.nav-user-pill {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.055);
  transition: border-color .16s ease, background .16s ease;
}

.nav-user-pill:hover,
.nav-user-pill[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.19);
  background: rgba(255, 255, 255, 0.1);
}

.nav-user-pill > svg {
  transition: transform .16s ease;
}

.nav-user-pill[aria-expanded="true"] > svg {
  transform: rotate(180deg);
}

.account-menu {
  position: absolute;
  top: calc(100% + 11px);
  right: 0;
  z-index: 150;
  display: grid;
  width: 292px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 19px;
  background: rgba(16, 17, 19, 0.97);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.62), inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(24px) saturate(140%);
  animation: toast-enter .16s ease-out both;
}

.account-menu[hidden] { display: none; }

.account-menu-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding: 7px 9px 15px;
}

.account-menu-identity .mini-avatar {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  object-fit: cover;
}

.account-menu-user-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-menu-user-copy strong {
  overflow: hidden;
  color: #f4f4f5;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-user-copy small {
  color: #85868c;
  font-size: 11px;
}

.account-menu-action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 0 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #c4c4c9;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}

.account-menu-action svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: #999aa0;
}

.account-menu-action:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.account-menu-action:hover svg { color: #e4e4e7; }
.account-menu-action.is-signout { color: #f87171; }
.account-menu-action.is-signout svg { color: #f87171; }
.account-menu-action.is-signout:hover { background: rgba(248, 113, 113, 0.09); color: #fca5a5; }
.account-menu-action.is-signout:hover svg { color: #fca5a5; }

.account-menu-divider {
  height: 1px;
  margin: 5px 0;
  background: rgba(255, 255, 255, 0.08);
}

.account-menu-action:focus-visible,
.nav-user-pill:focus-visible {
  outline: 2px solid rgba(244, 244, 245, 0.8);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .account-menu { width: min(292px, calc(100vw - 32px)); }
  .nav-user-pill > svg { display: block; }
  .nav-user-pill > span { max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.channel-explainer {
  width: min(100%, 1340px);
  margin: 0 auto;
}

.channel-explainer-heading {
  max-width: 920px;
  margin: 0 auto 42px;
  text-align: center;
}

.explainer-eyebrow {
  color: #8f9096;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.channel-explainer-heading h2 {
  margin: 10px 0 13px;
  color: #f4f4f5;
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.06;
  text-wrap: balance;
}

.channel-explainer-heading p {
  max-width: 790px;
  margin: 0 auto;
  color: #a1a1aa;
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.7;
  text-wrap: balance;
}

.channel-explainer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.explainer-step {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 2.2vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 21px;
  background:
    radial-gradient(ellipse at 0 0, rgba(255, 255, 255, 0.035), transparent 68%),
    linear-gradient(145deg, rgba(20, 21, 23, 0.96), rgba(13, 14, 16, 0.97));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.explainer-step:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
  background:
    radial-gradient(ellipse at 0 0, rgba(255, 255, 255, 0.05), transparent 68%),
    linear-gradient(145deg, rgba(23, 24, 26, 0.98), rgba(14, 15, 17, 0.98));
}

.explainer-step-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.065);
  color: #e4e4e7;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.explainer-step h3 {
  margin: 0 0 9px;
  color: #f4f4f5;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.explainer-step > p {
  min-height: 46px;
  margin: 0 0 20px;
  color: #93949a;
  font-size: 13.5px;
  line-height: 1.65;
}

.discord-mini-window {
  margin-top: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  background: #191a1d;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.discord-mini-header {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.025);
}

.discord-mini-header .brand-mark {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.discord-mini-header strong {
  overflow: hidden;
  color: #d4d4d8;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-mini-tag {
  margin-left: auto;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
  color: #82838a;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.discord-mini-content {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.discord-mini-text-channel,
.discord-mini-voice-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 39px;
  padding: 0 10px;
  border-radius: 9px;
  color: #c4c4c9;
  font-size: 12px;
  font-weight: 600;
}

.discord-mini-text-channel {
  margin-bottom: 1px;
  background: rgba(255, 255, 255, 0.055);
  color: #b5b6bc;
}

.discord-mini-text-channel svg {
  width: 16px;
  height: 16px;
  color: #85868c;
}

.discord-mini-voice-row {
  position: relative;
  border: 1px solid transparent;
}

.discord-mini-voice-row > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #929399;
}

.discord-mini-voice-row.is-lobby {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.075);
  color: #f4f4f5;
}

.discord-mini-voice-row.is-lobby > svg { color: #e4e4e7; }

.discord-mini-voice-row.is-muted {
  color: #85868c;
}

.discord-mini-voice-row.is-created {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
}

.discord-mini-voice-row.is-created > svg { color: #e4e4e7; }

.discord-mini-voice-row small {
  margin-left: auto;
  color: #b5b6bc;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.07em;
}

.discord-mini-member {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  margin-left: 28px;
  color: #a1a1aa;
  font-size: 11px;
  font-weight: 600;
}

.discord-mini-member .discord-member-avatar {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  object-fit: cover;
}

.discord-mini-member i {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: #a1a1aa;
  box-shadow: 0 0 8px rgba(212, 212, 216, 0.45);
}

.discord-mini-voice-row.is-removed {
  color: #68696f;
  opacity: 0.62;
}

.discord-mini-voice-row.is-removed > span {
  text-decoration: line-through;
}

.discord-mini-voice-row.is-removed > small { color: #77787e; }

.discord-mini-cleanup {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px 1px;
  color: #8f9096;
  font-size: 10px;
}

.discord-mini-cleanup svg {
  width: 13px;
  height: 13px;
  color: #b5b6bc;
}

@media (max-width: 980px) {
  .channel-explainer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explainer-step:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: min(100%, calc(50% - 9px));
    justify-self: center;
  }
}

@media (max-width: 680px) {
  .channel-explainer-heading { margin-bottom: 28px; }
  .channel-explainer-heading h2 { font-size: clamp(32px, 9vw, 44px); }
  .channel-explainer-heading p { font-size: 14px; }
  .channel-explainer-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .explainer-step,
  .explainer-step:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
    padding: 21px;
  }
  .explainer-step-number { margin-bottom: 20px; }
  .explainer-step > p { min-height: 0; }
}

.floating-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(20, 21, 23, 0.92);
  color: #e4e4e7;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
  cursor: pointer;
  animation: toast-enter .18s ease-out both;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.floating-back-to-top[hidden] { display: none; }
.floating-back-to-top svg { width: 17px; height: 17px; }

.floating-back-to-top:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(32, 33, 36, 0.97);
  color: #ffffff;
}

.floating-back-to-top:focus-visible {
  outline: 2px solid #f4f4f5;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .floating-back-to-top {
    right: 15px;
    bottom: 15px;
  }
}

.control-showcase-layout {
  display: grid;
  grid-template-columns: minmax(245px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 68px);
}

.control-showcase-copy {
  min-width: 0;
  padding: 8px 0;
}

.control-showcase-kicker {
  color: #929399;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.17em;
}

.control-showcase-copy h2 {
  margin: 12px 0 13px;
  color: #f4f4f5;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.12;
  text-wrap: balance;
}

.control-showcase-lead {
  margin: 0;
  color: #a1a1aa;
  font-size: 14px;
  line-height: 1.75;
}

.control-showcase-points {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.control-showcase-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.control-showcase-point > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  color: #d4d4d8;
}

.control-showcase-point > span svg { width: 17px; height: 17px; }
.control-showcase-point > div { display: grid; gap: 3px; padding-top: 1px; }
.control-showcase-point strong { color: #e4e4e7; font-size: 13px; font-weight: 700; }
.control-showcase-point small { color: #85868c; font-size: 11.5px; line-height: 1.5; }

.control-showcase-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 23px 0 0;
  color: #77787e;
  font-size: 10.5px;
  line-height: 1.55;
}

.control-showcase-note svg { width: 14px; height: 14px; flex: 0 0 auto; }

.bot-interface-preview {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 19px;
  background:
    radial-gradient(ellipse at 0 0, rgba(255, 255, 255, 0.035), transparent 68%),
    #202124;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.23);
}

.bot-interface-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bot-interface-header h3 {
  min-width: 0;
  margin: 0;
  color: #f4f4f5;
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.bot-interface-tag {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #a1a1aa;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.bot-interface-description {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
}

.bot-interface-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.bot-interface-message-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: #e4e4e7;
}

.bot-interface-message-icon svg { width: 18px; height: 18px; }

.bot-interface-message strong {
  display: block;
  padding-top: 2px;
  color: #e4e4e7;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
}

.bot-interface-message p {
  margin: 7px 0 0;
  color: #a1a1aa;
  font-size: 13px;
  font-style: italic;
  line-height: 1.55;
}

.bot-interface-thumbnail {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  object-fit: cover;
}

.bot-interface-thumbnail.fallback {
  display: grid;
  place-items: center;
  color: #d4d4d8;
  font-size: 32px;
  font-weight: 750;
}

.bot-interface-divider {
  height: 1px;
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.09);
}

.bot-interface-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.bot-interface-control {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.075);
  color: #f4f4f5;
  cursor: default;
  opacity: 1;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.bot-interface-control:disabled { color: #f4f4f5; opacity: 1; }
.bot-interface-control svg { width: 22px; height: 22px; }

.bot-interface-control:not(:disabled):hover {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .control-showcase-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .control-showcase-copy { max-width: 680px; }
  .control-showcase-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .control-showcase-point { gap: 9px; }
}

@media (max-width: 600px) {
  .control-showcase-layout { gap: 22px; }
  .control-showcase-copy h2 { font-size: 29px; }
  .control-showcase-points { grid-template-columns: minmax(0, 1fr); gap: 13px; margin-top: 20px; }
  .control-showcase-point { gap: 11px; }
  .control-showcase-note { margin-top: 18px; }
  .bot-interface-preview { padding: 17px; border-radius: 16px; }
  .bot-interface-header { align-items: flex-start; }
  .bot-interface-tag { margin-top: 2px; padding: 6px 7px; font-size: 8px; }
  .bot-interface-description { gap: 12px; margin-top: 16px; }
  .bot-interface-thumbnail { width: 72px; height: 72px; border-radius: 12px; }
  .bot-interface-message { gap: 9px; }
  .bot-interface-message-icon { width: 29px; height: 29px; border-radius: 8px; }
  .bot-interface-message strong { font-size: 13px; }
  .bot-interface-message p { font-size: 11px; }
  .bot-interface-divider { margin: 15px 0; }
  .bot-interface-controls { gap: 7px; }
  .bot-interface-control { min-height: 49px; border-radius: 9px; }
  .bot-interface-control svg { width: 20px; height: 20px; }
}

.docs-app-shell .dashboard-nav,
.docs-app-shell .topbar,
.docs-app-shell .dashboard-footer {
  display: none !important;
}

.docs-app-shell .main-area {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.docs-app-shell #view-content { width: 100%; margin: 0; }

.docs-page {
  min-height: 100vh;
  background: #0b0c0e;
  color: #e4e4e7;
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 clamp(20px, 3vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.085);
  background: rgba(12, 13, 15, 0.94);
  backdrop-filter: blur(18px);
}

.docs-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #f4f4f5;
  cursor: pointer;
  font: inherit;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.docs-wordmark .brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  object-fit: cover;
}

.docs-wordmark > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-wordmark b {
  margin-left: 5px;
  color: #929399;
  font-weight: 650;
}

.docs-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.docs-home-link,
.docs-invite-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #b4b4bc;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.docs-home-link svg,
.docs-invite-link svg { width: 16px; height: 16px; }
.docs-home-link:hover { border-color: rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.045); color: #f4f4f5; }

.docs-invite-link {
  border-color: rgba(255, 255, 255, 0.14);
  background: #e4e4e7;
  color: #111214;
}

.docs-invite-link:hover { background: #ffffff; color: #090909; }

.docs-workspace {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}

.docs-sidebar {
  position: sticky;
  top: 68px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 68px);
  min-height: 400px;
  padding: 22px 17px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(14, 15, 17, 0.72);
}

.docs-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: #77787e;
}

.docs-search svg { width: 17px; height: 17px; flex: 0 0 auto; }
.docs-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #e4e4e7; font: inherit; font-size: 12px; }
.docs-search input::placeholder { color: #77787e; }
.docs-search:focus-within { border-color: rgba(255, 255, 255, 0.22); }

.docs-sidebar-nav {
  flex: 1;
  overflow: auto;
  margin: 17px -5px 12px;
  padding: 0 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.docs-sidebar-group { margin: 0 0 20px; }
.docs-sidebar-group[hidden] { display: none; }

.docs-sidebar-group h2 {
  margin: 0 0 8px;
  padding: 0 10px;
  color: #73747a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.docs-sidebar-items { display: grid; gap: 3px; }

.docs-sidebar-link {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 39px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.docs-sidebar-link > svg { width: 17px; height: 17px; color: #929399; }
.docs-sidebar-link > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.docs-sidebar-link:hover { background: rgba(255, 255, 255, 0.045); color: #f4f4f5; }
.docs-sidebar-link.is-active { border-color: rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.08); color: #f4f4f5; }
.docs-sidebar-link.is-active > svg { color: #f4f4f5; }
.docs-sidebar-chevron { display: grid; place-items: center; opacity: 0; }
.docs-sidebar-chevron svg { width: 14px; height: 14px; transform: rotate(-90deg); }
.docs-sidebar-link.is-active .docs-sidebar-chevron { opacity: 1; }
.docs-sidebar-link[hidden] { display: none; }

.docs-search-empty {
  margin: 4px 4px 14px;
  color: #85868c;
  font-size: 11px;
}

.docs-search-empty[hidden] { display: none; }

.docs-sidebar-cta {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}

.docs-sidebar-cta strong { color: #e4e4e7; font-size: 12px; font-weight: 750; }
.docs-sidebar-cta p { margin: 6px 0 12px; color: #85868c; font-size: 10.5px; line-height: 1.55; }

.docs-sidebar-cta button,
.docs-inline-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.075);
  color: #e4e4e7;
  cursor: pointer;
  font: inherit;
  font-size: 10.5px;
  font-weight: 650;
  transition: background .15s ease, border-color .15s ease;
}

.docs-sidebar-cta button:hover,
.docs-inline-actions button:hover { border-color: rgba(255, 255, 255, 0.23); background: rgba(255, 255, 255, 0.12); }
.docs-sidebar-cta button svg,
.docs-inline-actions button svg { width: 14px; height: 14px; }

.docs-main {
  min-width: 0;
  padding: clamp(34px, 5vw, 68px) clamp(24px, 5vw, 76px) 90px;
}

.docs-article { width: min(100%, 1040px); margin: 0 auto; }

.docs-article-header {
  padding-bottom: 27px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.docs-article-kicker {
  color: #a1a1aa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-article-header h1 {
  margin: 12px 0 13px;
  color: #f4f4f5;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 820;
  letter-spacing: -0.06em;
  line-height: 1.08;
  text-wrap: balance;
}

.docs-article-header > p {
  max-width: 820px;
  margin: 0;
  color: #a1a1aa;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.7;
}

.docs-article-body {
  padding-top: 25px;
  color: #b9b9c0;
  font-size: 15px;
  line-height: 1.8;
}

.docs-article-body > p { margin: 0 0 18px; }
.docs-article-body strong { color: #e4e4e7; }
.docs-article-body h2 { margin: 30px 0 10px; color: #e4e4e7; font-size: 19px; letter-spacing: -0.025em; }
.docs-article-body h3 { color: #e4e4e7; font-size: 13px; letter-spacing: -0.01em; }
.docs-article-body code { padding: 2px 6px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; background: rgba(255, 255, 255, 0.055); color: #e4e4e7; font-size: 0.88em; }

.docs-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 23px 0;
  padding: 17px 19px;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 13px;
  background: rgba(16, 185, 129, 0.055);
}

.docs-callout > svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: #6ee7b7; }
.docs-callout strong { color: #e4e4e7; font-size: 13px; }
.docs-callout p { margin: 3px 0 0; font-size: 12px; line-height: 1.65; }

.docs-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.docs-feature-grid article,
.docs-troubleshooting-list article {
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.docs-feature-grid article > span { display: grid; place-items: center; width: 31px; height: 31px; margin-bottom: 12px; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 9px; background: rgba(255, 255, 255, 0.045); color: #d4d4d8; }
.docs-feature-grid article > span svg { width: 16px; height: 16px; }
.docs-feature-grid h3 { margin: 0 0 4px; }
.docs-feature-grid p { margin: 0; color: #929399; font-size: 11px; line-height: 1.6; }

.docs-step-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-step-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.065); }
.docs-step-list li > span { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; background: rgba(255, 255, 255, 0.045); color: #d4d4d8; font-size: 10px; font-weight: 800; }
.docs-step-list h3 { margin: 0; }
.docs-step-list p { margin: 4px 0 0; font-size: 12px; line-height: 1.7; }

.docs-check-list { display: grid; gap: 9px; margin: 16px 0; padding-left: 21px; }
.docs-check-list li { padding-left: 3px; }

.docs-inline-actions { display: flex; gap: 10px; margin-top: 22px; }

.docs-troubleshooting-list { display: grid; gap: 10px; }
.docs-troubleshooting-list h3 { margin: 0 0 5px; }
.docs-troubleshooting-list p { margin: 0; font-size: 12px; line-height: 1.7; }

.docs-command-list { display: grid; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 13px; overflow: hidden; }
.docs-command-list > div { display: grid; grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.2fr); gap: 16px; align-items: center; padding: 12px 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.docs-command-list > div:last-child { border-bottom: 0; }
.docs-command-list code { width: fit-content; white-space: nowrap; }
.docs-command-list span { color: #a1a1aa; font-size: 11px; line-height: 1.55; }

@media (max-width: 820px) {
  .docs-workspace { grid-template-columns: minmax(0, 1fr); }
  .docs-sidebar {
    position: static;
    height: auto;
    min-height: 0;
    max-height: 340px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    padding: 14px 18px;
  }
  .docs-sidebar-nav { margin: 12px 0; }
  .docs-sidebar-group { margin-bottom: 12px; }
  .docs-sidebar-cta { display: none; }
  .docs-main { padding: 34px 24px 68px; }
}

@media (max-width: 600px) {
  .docs-topbar { min-height: 60px; padding: 0 14px; }
  .docs-wordmark { gap: 7px; font-size: 15px; }
  .docs-wordmark .brand-mark { width: 26px; height: 26px; }
  .docs-topbar-actions { gap: 5px; }
  .docs-home-link, .docs-invite-link { min-height: 36px; padding: 0 9px; font-size: 11px; }
  .docs-home-link { gap: 5px; }
  .docs-invite-link { gap: 6px; }
  .docs-article-header { padding-bottom: 21px; }
  .docs-article-header h1 { font-size: 34px; }
  .docs-article-body { font-size: 13px; }
  .docs-feature-grid { grid-template-columns: minmax(0, 1fr); }
  .docs-feature-grid article { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 11px; align-items: center; }
  .docs-feature-grid article > span { grid-row: span 2; margin: 0; }
  .docs-feature-grid h3 { align-self: end; }
  .docs-feature-grid p { align-self: start; }
  .docs-command-list > div { grid-template-columns: minmax(0, 1fr); gap: 5px; }
}
