:root {
  --bg: #171b29;
  --bg-deep: #111522;
  --panel: #242938;
  --panel-2: #1d2231;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f6fb;
  --muted: #aeb8d1;
  --purple: #7759ff;
  --blue: #2f8cff;
  --purple-soft: #a96df5;
  --accent-dark: #20263a;
  --green: #37d287;
  --danger: #ff618a;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(119, 89, 255, 0.9) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(119, 89, 255, 0.95), rgba(47, 140, 255, 0.95));
  border: 2px solid rgba(11, 16, 32, 0.65);
  border-radius: 999px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(119, 89, 255, 0.22), transparent 30%),
    linear-gradient(180deg, #202634 0%, #181d2b 100%);
  color: var(--text);
  font-family: var(--font-body);
}

.site-grid,
.bg-orb {
  display: none;
}

.topbar,
.page-shell,
.hero-marketing,
.hero-stats,
.section-head,
.feature-grid,
.command-band,
.split-showcase,
.dashboard-head {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  margin-top: 12px;
  border-radius: 20px;
  background: rgba(48, 54, 69, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding-inline: 20px;
}

.brand,
.topnav a {
  color: var(--text);
  text-decoration: none;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
}

.brand-logo,
.brand-mark {
  width: 42px;
  height: 42px;
}

.brand-logo {
  display: block;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
}

.user-menu {
  position: relative;
}

.user-pill-button {
  padding: 10px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(17, 21, 34, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.user-menu.is-open .user-menu-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.user-menu-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.user-menu-dropdown a:hover {
  background: rgba(119, 89, 255, 0.14);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-pill-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
}

.page-shell {
  padding-bottom: 72px;
}

body:has(.dashboard-shell-wide) .page-shell {
  width: calc(100% - 24px);
  max-width: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  border: 0;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, opacity 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.small,
.button.dark {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.button.light {
  color: #162136;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

.autosave-button {
  display: none;
}

.button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-marketing {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.95fr);
  gap: 28px;
  padding: 48px 44px 36px;
  margin-top: 18px;
  border-radius: 0 0 34px 34px;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(33, 71, 160, 0.96) 0%, rgba(32, 164, 208, 0.92) 32%, rgba(148, 89, 214, 0.9) 62%, rgba(56, 139, 232, 0.94) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 77% 95%, 50% 90%, 24% 97%, 0 90%);
}

.hero-ribbon {
  position: absolute;
  inset: auto;
  height: 100px;
  opacity: 0.95;
  transform: skewY(-10deg);
}

.hero-ribbon-left {
  left: -8%;
  right: 52%;
  top: 78px;
  background: rgba(16, 221, 235, 0.82);
}

.hero-ribbon-right {
  left: 35%;
  right: -16%;
  bottom: 58px;
  background: rgba(102, 0, 255, 0.45);
}

.hero-marketing-copy,
.hero-stage {
  position: relative;
  z-index: 1;
}

.hero-marketing-copy {
  padding: 38px 0 18px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-marketing .eyebrow {
  color: rgba(255, 255, 255, 0.84);
}

.hero-marketing h1,
.section-head h2,
.command-band h2,
.showcase-panel h2,
.glass-card h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

.hero-marketing h1 {
  max-width: 580px;
  font-size: clamp(3rem, 5vw, 5.4rem);
  line-height: 0.95;
}

.lede {
  color: var(--muted);
}

.hero-lede {
  max-width: 540px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.stage-window {
  position: relative;
  width: min(100%, 620px);
  border-radius: 18px;
  background: #181d2c;
  box-shadow: 0 28px 80px rgba(15, 17, 31, 0.4);
  overflow: hidden;
}

.stage-window-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
}

.stage-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.stage-window-inner {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
}

.stage-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 420px;
  padding: 22px 16px;
  background: #121726;
  color: #b7c1dc;
  font-weight: 700;
}

.stage-sidebar strong {
  margin-bottom: 8px;
  color: #fff;
  font-family: var(--font-display);
}

.stage-main {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(119, 89, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #242a40 0%, #1b2233 100%);
}

.stage-top,
.guild-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.stage-top small,
.card-kicker,
.showcase-list li::marker {
  color: #c9d2ea;
}

.stage-top h3 {
  margin: 4px 0 0;
  font-size: 1.65rem;
  font-family: var(--font-display);
}

.stage-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(55, 210, 135, 0.14);
  color: #9ff2ca;
  font-size: 0.8rem;
  font-weight: 800;
}

.stage-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.stage-metrics article,
.stage-card,
.feature-card,
.showcase-panel,
.glass-card,
.panel,
.alert {
  border-radius: 18px;
}

.stage-metrics article {
  padding: 16px;
  background: rgba(17, 23, 37, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-metrics label,
.feed-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.stage-command {
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(91, 95, 255, 0.55), rgba(43, 127, 255, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-display);
  font-weight: 700;
}

.stage-feed {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.feed-row {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.045);
  border-left: 4px solid #fff;
}

.feed-row p {
  margin: 10px 0 0;
  color: #d6dcf0;
}

.feed-tag.purple {
  color: #e7d6ff;
}

.feed-tag.blue {
  color: #c9e6ff;
}

.stage-card {
  position: absolute;
  padding: 16px 18px;
  min-width: 170px;
  color: #f4f7ff;
  background: rgba(19, 24, 37, 0.92);
  box-shadow: var(--shadow);
}

.stage-card span {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #aab9dd;
}

.stage-card strong {
  display: block;
  margin-top: 8px;
}

.stage-card-left {
  left: -16px;
  bottom: 34px;
}

.stage-card-right {
  right: -12px;
  top: 50px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  background: #262b3a;
  border-radius: 0 0 26px 26px;
  overflow: hidden;
}

.hero-stats article {
  padding: 24px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stats article:last-child {
  border-right: 0;
}

.hero-stats strong {
  display: block;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.section-head {
  padding-top: 64px;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.narrow {
  max-width: 760px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.feature-card {
  padding: 28px;
  background: #2b3040;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-glyph {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  margin-bottom: 18px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: var(--shadow);
}

.feature-card-accent {
  background: linear-gradient(180deg, #30364c 0%, #2a3143 100%);
}

.feature-card h3 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.02;
}

.feature-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.command-band {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 26px;
  align-items: start;
  margin-top: 34px;
  padding: 32px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(119, 89, 255, 0.14), transparent 26%),
    #222838;
}

.command-band h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

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

.command-chip-grid span {
  display: block;
  padding: 15px 16px;
  border-radius: 14px;
  color: #f0f4ff;
  background: #2f3547;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.split-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.showcase-panel {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    #2c3244;
}

.showcase-panel-contrast {
  background: linear-gradient(135deg, #2e3650, #243048);
}

.showcase-panel h2 {
  font-size: 2rem;
  margin-top: 6px;
}

.showcase-panel p {
  color: var(--muted);
}

.showcase-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #dfe5f6;
}

.showcase-list li {
  margin-bottom: 10px;
}

.dashboard-head {
  padding: 32px 0 18px;
}

.dashboard-shell {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
}

.dashboard-shell-wide {
  width: calc(100% - 28px);
}

.dashboard-title-row-tight {
  padding-bottom: 18px;
}

.dashboard-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 0 28px;
}

.dashboard-title {
  margin: 0;
  line-height: 0.84;
  font-family: var(--font-display);
}

.dashboard-title span {
  display: block;
  margin-left: 4px;
  font-size: 1.3rem;
  color: #ffffff;
  opacity: 0.96;
}

.dashboard-title strong {
  display: block;
  font-size: clamp(4rem, 11vw, 8.2rem);
  margin-top: -10px;
  background: linear-gradient(90deg, rgba(119, 89, 255, 0.24), rgba(47, 140, 255, 0.78));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(60, 108, 255, 0.28);
}

.dashboard-eyebrow {
  color: #5c7cff;
}

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

.server-grid-wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.server-card {
  display: block;
  padding: 18px 18px 20px;
  text-decoration: none;
  color: inherit;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(20, 26, 49, 0.98), rgba(16, 23, 44, 0.98));
  border: 2px solid transparent;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.server-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.26);
}

.server-card-title {
  display: block;
  margin-top: 12px;
  min-height: 0;
  color: #dfe6ff;
  font-size: 0.96rem;
  text-align: center;
  line-height: 1.25;
}

.server-status-green {
  border-color: rgba(55, 210, 135, 0.86);
}

.server-status-yellow {
  border-color: rgba(255, 212, 82, 0.82);
}

.server-status-gray {
  border-color: rgba(143, 153, 182, 0.4);
}

.server-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 22px;
  background: #0b1020;
  overflow: hidden;
}

.server-art-image,
.server-art-fallback {
  width: 100%;
  height: 100%;
}

.server-art-image {
  object-fit: cover;
}

.server-art-fallback {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 3rem;
  background: linear-gradient(135deg, rgba(119, 89, 255, 0.24), rgba(47, 140, 255, 0.2));
}

.guild-workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
}

.guild-workspace-wide {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
}

.guild-sidebar,
.guild-content,
.guild-panel,
.overview-card,
.info-banner,
.sticky-card-row {
  border-radius: 24px;
}

.guild-sidebar {
  padding: 22px;
  background: #141a31;
}

.guild-sidebar-tall {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.guild-sidebar-stack {
  align-items: flex-start;
}

.guild-sidebar-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guild-sidebar-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.guild-sidebar-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.guild-sidebar-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  object-fit: cover;
}

.guild-sidebar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  font-family: var(--font-display);
  font-weight: 700;
}

.guild-tabs {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.guild-tabs-sectioned {
  gap: 8px;
}

.guild-tab-group {
  display: grid;
  gap: 8px;
}

.guild-tab-children {
  display: grid;
  gap: 8px;
  max-height: 0;
  padding-left: 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease;
}

.guild-tab-group.is-open .guild-tab-children {
  max-height: 240px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tab-group-label {
  margin: 18px 0 6px;
  color: #7e8db5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.guild-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  text-align: left;
  color: #d6dfff;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.guild-tab.is-active {
  background: linear-gradient(135deg, rgba(119, 89, 255, 0.34), rgba(47, 140, 255, 0.26));
}

.guild-tab-parent {
  justify-content: flex-start;
}

.guild-tab-group.is-open .guild-tab-parent {
  background: linear-gradient(135deg, rgba(119, 89, 255, 0.2), rgba(47, 140, 255, 0.14));
}

.guild-tab-child {
  padding-left: 18px;
  font-size: 0.95rem;
  color: #bcc8ea;
}

.guild-tab-arrow {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.guild-tab-arrow::before,
.guild-tab-arrow::after {
  content: "";
  position: absolute;
  left: 1px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #d7e2ff;
  transition: transform 150ms ease;
}

.guild-tab-arrow::before {
  top: 3px;
  transform: rotate(45deg);
}

.guild-tab-arrow::after {
  top: 7px;
  transform: rotate(-45deg);
}

.guild-tab-group.is-open .guild-tab-arrow::before {
  transform: rotate(-45deg);
}

.guild-tab-group.is-open .guild-tab-arrow::after {
  transform: rotate(45deg);
}

.guild-content {
  background: #10172c;
  padding: 24px;
}

.guild-content-wide {
  min-height: calc(100vh - 120px);
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(119, 89, 255, 0.14), transparent 20%),
    linear-gradient(180deg, #10172c 0%, #0f1424 100%);
}

.locked-panel {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 212, 82, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 212, 82, 0.18);
}

.locked-panel h2 {
  margin: 6px 0 12px;
  font-family: var(--font-display);
  font-size: 2rem;
}

.guild-panel {
  display: none;
}

.guild-panel.is-active {
  display: block;
}

.guild-panel-head {
  margin-bottom: 22px;
}

.guild-panel-head h2 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
}

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

.overview-grid-wide {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.overview-card {
  padding: 22px;
  background: #1a2239;
}

.overview-card span {
  display: block;
  color: var(--muted);
}

.overview-card strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 2rem;
}

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

.chart-card {
  padding: 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    #182038;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.chart-card-wide {
  grid-column: 1 / -1;
}

.chart-card-summary {
  display: grid;
  align-content: start;
}

.chart-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.chart-card-head span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.chart-card-head strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.chart-card-head small {
  color: #96a4c9;
}

.overview-chart {
  position: relative;
  display: grid;
  gap: 10px;
}

.overview-chart svg {
  width: 100%;
  height: 170px;
  overflow: visible;
}

.overview-chart-large svg {
  height: 220px;
}

.chart-axis {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 6px;
  color: #8190b6;
  font-size: 0.72rem;
}

.chart-axis span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-empty {
  padding: 22px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.chart-tooltip {
  position: absolute;
  z-index: 8;
  display: grid;
  gap: 4px;
  min-width: 92px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #f5f7ff;
  background: rgba(8, 12, 24, 0.92);
  border: 1px solid rgba(119, 89, 255, 0.24);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
}

.chart-tooltip strong {
  font-size: 0.82rem;
}

.chart-tooltip span {
  color: #9eb4ea;
  font-weight: 700;
}

.overview-inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.overview-inline-stats span,
.toggle-card {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.toggle-card p {
  margin: 10px 0 0;
}

.info-banner {
  margin-top: 22px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(119, 89, 255, 0.18), rgba(47, 140, 255, 0.12));
}

.info-banner-muted {
  background: rgba(143, 153, 182, 0.12);
}

.info-banner-warning {
  background: rgba(255, 212, 82, 0.12);
}

.settings-form {
  display: grid;
  gap: 18px;
}

.settings-form .button {
  width: auto;
  justify-self: start;
}

.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.builder-stack,
.audit-list {
  display: grid;
  gap: 16px;
}

.builder-card,
.verify-designer,
.audit-row,
.public-form-card,
.discover-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.builder-card {
  position: relative;
}

.builder-remove {
  position: absolute;
  top: 14px;
  right: 14px;
}

.audit-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.audit-row div {
  display: grid;
  gap: 6px;
}

.audit-row span,
.audit-row time {
  color: var(--muted);
}

.public-hero,
.discover-grid,
.public-form-card {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.public-hero {
  padding: 90px 0 42px;
}

.public-hero h1,
.public-form-card h1,
.verify-card h1 {
  margin: 8px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.98;
}

.discover-search {
  display: flex;
  gap: 10px;
  max-width: 680px;
  margin-top: 28px;
}

.discover-search input {
  flex: 1;
}

.discover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 70px;
}

.discover-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  border-color: color-mix(in srgb, var(--card-accent) 55%, transparent);
  background:
    linear-gradient(90deg, rgba(15, 20, 36, 0.96), rgba(15, 20, 36, 0.84)),
    var(--card-banner, none) center / cover,
    rgba(255, 255, 255, 0.035);
}

.discover-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.discover-logo {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 22px;
  font: 700 1.5rem var(--font-display);
  background: linear-gradient(135deg, var(--card-accent), var(--blue));
}

.discover-logo-image {
  object-fit: cover;
}

.discover-card h2 {
  margin: 0;
  font-family: var(--font-display);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discovery-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0;
  color: #aebfe9;
  font-size: 0.84rem;
  font-weight: 700;
}

.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #dbe4ff;
  background: rgba(255, 255, 255, 0.06);
}

.public-form-card {
  max-width: 760px;
  margin-top: 70px;
}

.verify-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background-color: #090d18;
  background-size: cover;
  background-position: center;
}

.verify-shell {
  width: min(620px, calc(100% - 32px));
  padding: 40px 0;
}

.verify-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 7vw, 58px);
  text-align: center;
  border-radius: 32px;
  background: rgba(15, 21, 38, 0.88);
  border: 1px solid color-mix(in srgb, var(--verify-primary) 42%, transparent);
  box-shadow: 0 35px 90px color-mix(in srgb, var(--verify-primary) 22%, transparent);
  backdrop-filter: blur(24px);
}

.verify-animation-glow .verify-card::before,
.verify-animation-particles .verify-card::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: -1;
  background: conic-gradient(from 0deg, transparent, var(--verify-primary), transparent, var(--verify-accent), transparent);
  animation: verify-spin 12s linear infinite;
  opacity: 0.22;
}

.verify-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 24px;
}

.verify-audio {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(340px, calc(100% - 32px));
}

.verify-notice {
  margin: 18px 0;
  padding: 14px;
  border-radius: 14px;
}

.verify-notice.success { background: rgba(55, 210, 135, 0.14); color: #8df0bd; }
.verify-notice.error { background: rgba(255, 97, 138, 0.14); color: #ffabc1; }

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

.autosave-button {
  display: none;
}

.form-grid-wide,
.permission-grid-stack {
  display: grid;
  gap: 22px;
}

.form-block {
  display: grid;
  gap: 10px;
}

.selection-list {
  display: grid;
  gap: 10px;
  max-height: 280px;
  padding: 10px;
  overflow: auto;
  border-radius: 18px;
  background: #0f1524;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.selection-list-tall {
  max-height: 420px;
}

.selection-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
}

.selection-option:hover {
  background: rgba(255, 255, 255, 0.04);
}

.selection-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.selection-option input:checked + .picker-option-check {
  border-color: rgba(119, 89, 255, 0.9);
  background: linear-gradient(135deg, rgba(119, 89, 255, 0.95), rgba(47, 140, 255, 0.95));
  box-shadow: inset 0 0 0 2px rgba(10, 14, 28, 0.7);
}

.selection-option input:checked + .picker-option-check::after {
  content: "\2713";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
}

.selection-option input:checked ~ span:last-child,
.selection-option input:checked ~ img + span,
.selection-option input:checked ~ .picker-avatar-fallback + span {
  color: #ffffff;
}

.selection-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #edf2ff;
}

.summary-check {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(119, 89, 255, 0.95), rgba(47, 140, 255, 0.95));
}

.summary-empty {
  color: var(--muted);
}

.combo-select-native {
  display: none;
}

.dropdown-indicator {
  color: #9fb0da;
  font-size: 0.95rem;
  pointer-events: none;
}

.dropdown-select,
.multi-dropdown {
  position: relative;
}

.dropdown-select-control,
.multi-dropdown-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #171c29;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.dropdown-select.is-open .dropdown-select-control,
.multi-dropdown.is-open .multi-dropdown-control {
  border-color: rgba(119, 89, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(119, 89, 255, 0.14);
}

.dropdown-select-input,
.multi-dropdown-input {
  flex: 1 1 100%;
  width: 100%;
  min-width: 120px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  box-shadow: none;
  outline: none;
}

.dropdown-select-input::placeholder,
.multi-dropdown-input::placeholder {
  color: #8f9bc0;
}

.dropdown-select-menu,
.multi-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 320px;
  padding: 10px;
  overflow: auto;
  border-radius: 18px;
  background: #0f1524;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.34);
  z-index: 40;
}

.dropdown-select.is-open .dropdown-select-menu,
.multi-dropdown.is-open .multi-dropdown-menu {
  display: block;
}

.dropdown-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  color: #edf2ff;
  text-align: left;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.dropdown-select-option:hover,
.dropdown-select-option.is-selected {
  background: rgba(255, 255, 255, 0.05);
}

.dropdown-empty-state {
  padding: 14px 12px;
  color: #93a2c7;
  font-size: 0.92rem;
}

.dropdown-option-check {
  color: #8cb6ff;
  font-weight: 800;
}

.multi-dropdown-chips {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.selection-summary-dropdown {
  flex: 1 1 auto;
  min-width: 140px;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.selection-list-dropdown {
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.selection-list-dropdown .selection-option {
  border-radius: 12px;
  cursor: pointer;
}

.help-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.help-list code {
  color: #ff8ef0;
}

.picker {
  position: relative;
}

.picker-toggle {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-align: left;
  background: #171c29;
  font: inherit;
}

.picker-toggle:disabled,
button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.picker-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 280px;
  padding: 10px;
  overflow: auto;
  border-radius: 18px;
  background: #0f1524;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 30;
}

.picker.is-open .picker-menu {
  display: block;
}

.picker-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.picker-option:hover {
  background: rgba(255, 255, 255, 0.04);
}

.picker-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.picker-option-check {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 4px transparent;
}

.picker-option input:checked + .picker-option-check {
  border-color: rgba(119, 89, 255, 0.9);
  background: rgba(119, 89, 255, 0.18);
  box-shadow: inset 0 0 0 4px #7759ff;
}

.picker-avatar,
.picker-avatar-fallback,
.selected-pill img,
.selected-pill-fallback {
  width: 32px;
  height: 32px;
  border-radius: 999px;
}

.picker-avatar,
.selected-pill img {
  object-fit: cover;
}

.picker-avatar-fallback,
.selected-pill-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  font-size: 0.82rem;
  font-weight: 800;
}

.picker-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.selected-pill,
.selected-pill-empty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.selected-pill {
  color: #edf2ff;
}

.selected-pill-empty {
  color: var(--muted);
}

.selected-pill-role {
  border-radius: 14px;
}

.role-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

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

.permission-card,
.leaderboard-card {
  padding: 18px;
  border-radius: 18px;
  background: #182037;
}

.permission-card-wide,
.leaderboard-card-wide,
.backup-overview-card,
.reaction-panel-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    #182037;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.permission-card h3,
.leaderboard-card strong:first-child {
  margin: 0 0 14px;
  font-family: var(--font-display);
}

.permission-grid,
.split-config-grid,
.two-col-grid {
  display: grid;
  gap: 18px;
}

.permission-grid,
.split-config-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-col-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-grid {
  display: grid;
  gap: 12px;
}

.reward-row,
.reaction-pair-row {
  display: grid;
  gap: 12px;
}

.reward-row {
  grid-template-columns: 140px minmax(0, 1fr);
}

.reaction-pair-row {
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr);
}

.reaction-role-builder {
  display: grid;
  gap: 12px;
}

.reaction-panels-stack {
  display: grid;
  gap: 22px;
}

.reaction-panel-card {
  padding: 24px;
  border-radius: 22px;
}

.reaction-panel-head,
.panel-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.reaction-panel-head h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.reaction-hero-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 26px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(47, 140, 255, 0.2), transparent 22%),
    linear-gradient(135deg, rgba(119, 89, 255, 0.22), rgba(19, 31, 64, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reaction-hero-card h3,
.reaction-section-head strong,
.reaction-preview-card strong {
  font-family: var(--font-display);
}

.reaction-hero-card h3 {
  margin: 8px 0 10px;
  font-size: 1.8rem;
}

.reaction-toggle-row {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reaction-panel-kicker {
  margin: 0;
  color: #90a2d2;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reaction-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.95fr);
  gap: 22px;
  margin-top: 18px;
  align-items: start;
}

.reaction-main-column,
.reaction-side-column,
.reaction-response-grid {
  display: grid;
  gap: 18px;
}

.reaction-mode-stack {
  display: grid;
  gap: 12px;
}

.reaction-mode-stack-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reaction-mode-stack-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reaction-section-card,
.reaction-preview-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(11, 17, 33, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.admin-tabs-fixed {
  position: sticky;
  top: 16px;
  z-index: 4;
  display: inline-flex;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(19, 25, 43, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-search-panel {
  margin-bottom: 20px;
}

.reaction-section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.reaction-section-head span {
  color: var(--muted);
}

.reaction-choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.reaction-segmented {
  display: grid;
  gap: 10px;
}

.reaction-segmented-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reaction-segmented-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reaction-segmented-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.reaction-segmented-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reaction-segmented-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #cdd6eb;
  font-weight: 800;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.reaction-segmented-option:hover span {
  transform: translateY(-1px);
  border-color: rgba(119, 89, 255, 0.46);
}

.reaction-segmented-option input:checked + span {
  color: #ffffff;
  border-color: rgba(119, 89, 255, 0.76);
  background: linear-gradient(135deg, rgba(119, 89, 255, 0.3), rgba(47, 140, 255, 0.18));
  box-shadow: 0 14px 30px rgba(20, 28, 58, 0.28);
}

.reaction-inline-help {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.reaction-choice-card,
.reaction-mode-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.reaction-choice-card:hover,
.reaction-mode-card:hover {
  transform: translateY(-1px);
  border-color: rgba(119, 89, 255, 0.5);
}

.reaction-choice-card input,
.reaction-mode-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reaction-choice-ui {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.reaction-choice-card input:checked + .reaction-choice-ui,
.reaction-mode-card input:checked + .reaction-choice-ui {
  border-color: rgba(119, 89, 255, 0.95);
  background: linear-gradient(135deg, rgba(119, 89, 255, 0.95), rgba(47, 140, 255, 0.95));
  box-shadow: inset 0 0 0 4px rgba(10, 14, 28, 0.72);
}

.reaction-choice-card:has(input:checked),
.reaction-mode-card:has(input:checked) {
  background: linear-gradient(135deg, rgba(119, 89, 255, 0.16), rgba(47, 140, 255, 0.1));
  border-color: rgba(119, 89, 255, 0.64);
}

.reaction-choice-card strong,
.reaction-mode-card strong {
  color: #f3f6ff;
}

.reaction-choice-card small,
.reaction-mode-card small {
  color: var(--muted);
  line-height: 1.45;
}

.reaction-pairs {
  display: grid;
  gap: 14px;
}

.reaction-pair-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.reaction-pair-top {
  display: grid;
  grid-template-columns: 54px minmax(110px, 0.6fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.reaction-pair-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.reaction-emoji-button {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(119, 89, 255, 0.95), rgba(47, 140, 255, 0.95));
  font-size: 1.35rem;
  box-shadow: 0 14px 30px rgba(31, 46, 92, 0.36);
}

.reaction-emoji-button img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.emoji-menu-popover {
  position: fixed;
  z-index: 80;
  width: min(360px, calc(100vw - 24px));
  max-height: 420px;
  padding: 12px;
  overflow: auto;
  border-radius: 20px;
  background: rgba(8, 12, 24, 0.98);
  border: 1px solid rgba(119, 89, 255, 0.22);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.42);
}

.emoji-menu-shell,
.emoji-menu-group {
  display: grid;
  gap: 10px;
}

.emoji-menu-search {
  margin-bottom: 4px;
}

.emoji-menu-group strong {
  color: #aeb8d1;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

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

.emoji-menu-grid-server {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.emoji-menu-option {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.3rem;
  cursor: pointer;
}

.emoji-menu-option:hover {
  background: rgba(119, 89, 255, 0.2);
}

.emoji-menu-option img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.reaction-preview-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.reaction-preview-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.reaction-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reaction-preview-primary {
  background: linear-gradient(135deg, #7759ff, #4d79ff);
}

.reaction-preview-secondary {
  background: linear-gradient(135deg, #4b5166, #616b88);
}

.reaction-preview-success {
  background: linear-gradient(135deg, #1f9b74, #37d287);
}

.reaction-preview-danger {
  background: linear-gradient(135deg, #c43b62, #ff618a);
}

.admin-shell-grid,
.admin-user-grid {
  display: grid;
  gap: 22px;
}

.admin-shell-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-panel-block {
  margin-top: 22px;
}

.admin-search-form {
  align-content: start;
}

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

.admin-user-card,
.admin-role-form {
  display: grid;
  gap: 14px;
}

.admin-user-head,
.admin-user-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-user-head {
  justify-content: space-between;
}

.admin-user-meta strong,
.admin-user-meta span {
  display: block;
}

.admin-user-meta span {
  color: var(--muted);
}

.admin-user-avatar,
.admin-user-avatar-fallback {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.not-found-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 140px);
}

.not-found-card {
  width: min(760px, 100%);
  padding: 38px;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(119, 89, 255, 0.18), transparent 28%),
    #182037;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.not-found-card h1 {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}

.not-found-card p {
  color: var(--muted);
}

.small-button {
  min-height: 38px;
  padding: 0 14px;
}

.backup-overview-card {
  padding: 24px;
  border-radius: 22px;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  margin: 0;
  color: #eef3ff;
}

.toggle-row input {
  width: auto;
}

.leaderboard-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.logging-row {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: #182037;
}

.logging-row span {
  color: #dbe4ff;
  font-weight: 700;
}

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

.sticky-layout-wide {
  align-items: start;
}

.settings-form-compact {
  align-content: start;
}

.sticky-table {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.sticky-card-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: #182037;
}

.sticky-card-row p {
  margin: 8px 0 0;
  color: var(--muted);
}

.sticky-card-meta {
  display: grid;
  align-content: start;
  gap: 8px;
  color: #ccd8ff;
  font-size: 0.9rem;
  text-align: right;
}

.toast-notification {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  gap: 6px;
  min-width: 300px;
  max-width: 420px;
  padding: 16px 18px;
  border-radius: 18px;
  color: #f4f6fb;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 280ms ease, opacity 280ms ease;
}

.toast-notification.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid #37d287;
}

.toast-error {
  border-left: 4px solid #ff618a;
}

.glass-card,
.panel,
.alert {
  background: #262c3d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.glass-card {
  padding: 24px;
}

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

.alert {
  padding: 14px 18px;
  margin-bottom: 18px;
}

.alert.success {
  border-color: rgba(55, 210, 135, 0.28);
}

.alert.error {
  border-color: rgba(255, 97, 138, 0.28);
}

.guild-card {
  margin-bottom: 22px;
}

.guild-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
}

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

.panel {
  padding: 18px;
}

.panel.compact {
  padding: 18px 18px 10px;
}

.plain-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

label,
input,
textarea,
select {
  display: block;
  width: 100%;
}

label {
  margin: 10px 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

input,
textarea,
select {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  background: #171c29;
  font: inherit;
}

input[type="color"],
.color-input {
  min-height: 52px;
  padding: 6px;
  background: transparent;
  overflow: hidden;
}

input[type="color"]::-webkit-color-swatch-wrapper,
.color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch,
.color-input::-webkit-color-swatch {
  border: 0;
  border-radius: 10px;
}

input[type="color"]::-moz-color-swatch,
.color-input::-moz-color-swatch {
  border: 0;
  border-radius: 10px;
}

code {
  color: #d3ddff;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cursor-accent {
  position: fixed;
  z-index: 9999;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0%, rgba(124, 102, 255, 0.34) 38%, rgba(47, 140, 255, 0.08) 72%, transparent 100%);
  mix-blend-mode: screen;
  transition: opacity 180ms ease, transform 180ms ease;
}

.cursor-accent.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

body.page-home,
body.page-discover {
  background:
    radial-gradient(circle at 8% 18%, rgba(0, 215, 255, 0.18), transparent 24%),
    radial-gradient(circle at 87% 16%, rgba(147, 82, 255, 0.24), transparent 28%),
    radial-gradient(circle at 50% 84%, rgba(67, 122, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #0a1020 0%, #0d1430 42%, #121935 100%);
  overflow-x: hidden;
}

body.page-home::before,
body.page-home::after,
body.page-discover::before,
body.page-discover::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -1;
  pointer-events: none;
  filter: blur(16px);
  animation: auroraFloat 16s ease-in-out infinite;
}

body.page-home::before,
body.page-discover::before {
  top: 12%;
  left: -8%;
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 209, 255, 0.2), transparent 66%);
}

body.page-home::after,
body.page-discover::after {
  right: -10%;
  bottom: 6%;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 73, 255, 0.26), transparent 68%);
  animation-delay: -8s;
}

body.page-home .topbar,
body.page-discover .topbar {
  width: calc(100% - 32px);
  max-width: none;
  margin-top: 16px;
  background: rgba(19, 25, 42, 0.72);
  backdrop-filter: blur(18px);
}

body.page-home .page-shell,
body.page-discover .page-shell {
  width: 100%;
  max-width: none;
  padding-bottom: 96px;
}

.page-home .hero-marketing,
.page-home .hero-stats,
.page-home .section-head,
.page-home .feature-grid,
.page-home .command-band,
.page-home .split-showcase,
.page-discover .public-hero,
.page-discover .discover-grid {
  width: calc(100% - 32px);
  max-width: none;
}

.page-home .hero-marketing {
  min-height: calc(100vh - 120px);
  align-items: center;
  padding: 62px 58px 78px;
  border-radius: 34px;
  background:
    linear-gradient(126deg, rgba(10, 42, 120, 0.96) 0%, rgba(13, 164, 220, 0.82) 24%, rgba(79, 95, 255, 0.72) 52%, rgba(180, 76, 215, 0.85) 76%, rgba(48, 140, 255, 0.94) 100%);
}

.page-home .hero-marketing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.12) 18%, transparent 36%),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(180deg, rgba(8, 14, 28, 0) 0%, rgba(8, 14, 28, 0.2) 100%);
  opacity: 0.85;
  animation: heroSweep 9s linear infinite;
}

.page-home .hero-stage,
.page-home .hero-marketing-copy {
  z-index: 1;
}

.page-home .hero-stats {
  margin-top: 24px;
  background: rgba(11, 17, 34, 0.72);
  backdrop-filter: blur(12px);
}

.page-discover .public-hero {
  position: relative;
  min-height: calc(100vh - 130px);
  display: grid;
  align-content: center;
  padding: 72px 52px 80px;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(18, 28, 58, 0.95), rgba(22, 44, 95, 0.72)),
    radial-gradient(circle at 80% 22%, rgba(47, 140, 255, 0.18), transparent 22%),
    radial-gradient(circle at 16% 72%, rgba(156, 84, 255, 0.18), transparent 24%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.page-discover .public-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% 4% auto;
  width: 42vw;
  height: 18vw;
  border-radius: 999px;
  transform: rotate(-14deg);
  background: linear-gradient(90deg, rgba(0, 231, 255, 0.22), rgba(116, 90, 255, 0.16), rgba(255, 91, 204, 0.24));
  filter: blur(0);
  opacity: 0.8;
}

.page-discover .discover-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.page-discover .discover-card {
  min-height: 220px;
  padding: 26px;
  align-items: flex-start;
  border-radius: 24px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.page-discover .discover-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(5, 10, 24, 0.36);
  border-color: color-mix(in srgb, var(--card-accent) 78%, white 10%);
}

.chart-plot-shell {
  position: relative;
}

.overview-chart svg {
  width: 100%;
  height: 180px;
  overflow: visible;
  pointer-events: none;
}

.overview-chart-large svg {
  height: 240px;
}

.chart-dot {
  filter: drop-shadow(0 0 10px color-mix(in srgb, currentColor 40%, transparent));
}

.chart-hit-grid {
  position: absolute;
  inset: 0;
}

.chart-hit-target {
  position: absolute;
  top: 0;
  bottom: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.chart-hit-target:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.chart-tooltip {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

.chart-tooltip.is-visible {
  display: grid;
  opacity: 1;
  visibility: visible;
}

.logging-category-stack,
.security-section-stack,
.welcome-card-stack {
  display: grid;
  gap: 18px;
}

.logging-category-card,
.welcome-module-card,
.security-section {
  padding: 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    #182038;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.logging-category-main,
.security-hero,
.security-section-heading,
.welcome-module-toggle {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.logging-category-main h3,
.security-hero h3,
.security-section h3,
.welcome-module-card h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
}

.logging-card-kicker,
.security-section-kicker,
.welcome-module-kicker {
  margin: 0;
  color: #90a2d2;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logging-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.logging-card-copy {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.logging-category-actions {
  display: grid;
  gap: 12px;
  align-content: start;
}

.logging-channel-picker {
  min-width: min(100%, 320px);
}

.logging-advanced-toggle {
  min-height: 0;
  padding: 10px 14px;
  border-radius: 999px;
  justify-self: end;
  white-space: nowrap;
}

.logging-advanced-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(10, 14, 28, 0.24), rgba(10, 14, 28, 0));
  border-radius: 18px;
}

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

.logging-advanced-row {
  display: grid;
  gap: 8px;
}

.welcome-shared-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.welcome-shared-notes strong,
.welcome-shared-notes span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.welcome-module-card:not(.is-current),
.security-section:not(.is-current) {
  display: none;
}

.welcome-module-toggle {
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
}

.welcome-module-body {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.welcome-module-grid,
.security-settings-grid,
.security-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.security-hero {
  margin-bottom: 18px;
  padding: 26px 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(47, 140, 255, 0.16), transparent 18%),
    linear-gradient(135deg, rgba(119, 89, 255, 0.2), rgba(19, 31, 64, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.security-main-toggle {
  flex: 0 0 auto;
  align-self: center;
}

.security-rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.security-rule-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.security-rule-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.security-rule-card span {
  font-family: var(--font-display);
  font-size: 1.04rem;
}

.security-rule-card small {
  color: var(--muted);
  line-height: 1.5;
}

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

.security-rule-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.security-rule-controls label {
  display: grid;
  gap: 8px;
}

.toggle-row.compact {
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  min-height: 0;
}

.security-section-body {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.discover-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.discover-modal[hidden] {
  display: none !important;
}

.discover-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 18, 0.74);
  backdrop-filter: blur(14px);
}

.discover-modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(18, 26, 48, 0.96), rgba(20, 34, 62, 0.94)),
    radial-gradient(circle at top right, color-mix(in srgb, var(--discover-modal-accent, #7759FF) 22%, transparent), transparent 32%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.42);
}

.discover-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.6rem;
  cursor: pointer;
}

.discover-modal-links .button.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.discover-modal-hero,
.discover-modal-brand,
.discover-modal-links,
.discover-modal-stats {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.discover-modal-brand {
  justify-content: flex-start;
}

.discover-modal-logo {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 24px;
  overflow: hidden;
  font: 700 1.65rem var(--font-display);
  background: linear-gradient(135deg, var(--discover-modal-accent, #7759FF), var(--blue));
}

.discover-modal-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discover-modal-id,
.discover-modal-description {
  color: var(--muted);
}

.discover-modal-description {
  margin: 18px 0;
  line-height: 1.75;
}

body.modal-open {
  overflow: hidden;
}

@keyframes auroraFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3vw, -2vh, 0) scale(1.08); }
}

@keyframes heroSweep {
  0% { transform: translateX(-30%); }
  100% { transform: translateX(30%); }
}

@media (max-width: 1100px) {
  .page-discover .discover-grid,
  .security-rule-grid,
  .logging-advanced-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-home .hero-marketing,
  .page-discover .public-hero {
    width: calc(100% - 20px);
    min-height: auto;
    padding: 34px 22px 40px;
    border-radius: 28px;
  }

  .page-home .hero-stats,
  .page-home .section-head,
  .page-home .feature-grid,
  .page-home .command-band,
  .page-home .split-showcase,
  .page-discover .discover-grid {
    width: calc(100% - 20px);
  }

  .page-discover .discover-grid,
  .welcome-module-grid,
  .security-settings-grid,
  .security-access-grid,
  .security-rule-grid,
  .logging-advanced-grid,
  .logging-category-main,
  .security-hero,
  .welcome-module-toggle {
    grid-template-columns: 1fr;
  }

  .logging-category-main,
  .security-hero,
  .welcome-module-toggle {
    display: grid;
  }
}

@media (max-width: 1100px) {
  .hero-marketing {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: auto;
    padding-top: 8px;
  }
}

@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
    gap: 14px;
  }

  .hero-stats,
  .feature-grid,
  .command-band,
  .split-showcase,
  .grid-two,
  .card-grid,
  .state-grid,
  .server-grid,
  .guild-workspace,
  .overview-grid,
  .overview-chart-grid,
  .logging-grid,
  .sticky-layout,
  .three-col-grid,
  .discover-grid {
    grid-template-columns: 1fr;
  }

  .hero-marketing {
    padding: 36px 22px 24px;
    clip-path: none;
  }

  .permission-grid,
  .split-config-grid,
  .two-col-grid,
  .reaction-pair-row,
  .reward-row,
  .server-grid-wide,
  .overview-grid-wide {
    grid-template-columns: 1fr;
  }

  .reaction-hero-card,
  .reaction-panel-grid,
  .reaction-choice-row,
  .reaction-mode-stack-three,
  .reaction-mode-stack-two,
  .reaction-segmented-three,
  .reaction-segmented-two,
  .reaction-pair-top,
  .reaction-pair-bottom {
    grid-template-columns: 1fr;
  }

  .reaction-hero-card {
    display: grid;
  }

  .admin-shell-grid,
  .admin-user-grid {
    grid-template-columns: 1fr;
  }

  .guild-sidebar-tall {
    position: static;
    max-height: none;
  }

  .hero-marketing h1 {
    font-size: clamp(2.4rem, 11vw, 3.6rem);
  }

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

  .stage-sidebar {
    min-height: auto;
  }

  .stage-metrics,
  .command-chip-grid {
    grid-template-columns: 1fr;
  }

  .stage-card {
    display: none;
  }

  .hero-ribbon-left,
  .hero-ribbon-right {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    width: calc(100% - 20px);
    align-items: stretch;
    padding: 12px;
  }

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

  .topnav > a,
  .user-menu {
    display: grid;
    place-items: center;
    min-height: 42px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
  }

  .dashboard-shell-wide,
  .page-shell {
    width: calc(100% - 16px);
  }

  .guild-content-wide,
  .guild-sidebar {
    padding: 16px;
  }

  .guild-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .guild-tab {
    flex: 0 0 auto;
    width: auto;
  }

  .tab-group-label {
    display: none;
  }

  .discover-card {
    grid-template-columns: 64px 1fr;
  }

  .discover-card .button {
    grid-column: 1 / -1;
  }

  .discover-search,
  .audit-row {
    flex-direction: column;
  }
}

@media (max-width: 1540px) {
  .reaction-panel-grid {
    grid-template-columns: 1fr;
  }
}
