﻿:root {
  color-scheme: dark;
  --bg: #0d0f14;
  --surface: #151922;
  --surface-2: #202838;
  --surface-3: #101620;
  --line: #30384a;
  --line-soft: rgba(118, 139, 174, 0.18);
  --text: #f7f9fc;
  --muted: #aeb8ca;
  --accent: #20c7ff;
  --accent-2: #57f287;
  --violet: #7b61ff;
  --danger: #ed4245;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(10, 18, 27, 0.96), rgba(14, 15, 20, 0.98) 42%, rgba(6, 17, 18, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 96px),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 44%, rgba(32, 199, 255, 0.09) 44% 45%, transparent 45% 100%),
    linear-gradient(42deg, transparent 0 58%, rgba(87, 242, 135, 0.07) 58% 59%, transparent 59% 100%);
  opacity: 0.8;
}

a,
select,
input,
textarea,
button {
  color: inherit;
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 max(18px, calc((100vw - 1120px) / 2));
  background: rgba(9, 13, 19, 0.82);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(16px);
}

.brand,
.topbar nav,
.topbar-actions,
.nav-dashboard,
.nav-invite,
.nav-donate {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.brand img {
  border-radius: 8px;
}

.topbar nav {
  gap: 8px;
}

.topbar nav a,
.nav-dashboard,
.nav-invite,
.nav-donate {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}

.topbar nav a:hover,
.nav-dashboard:hover,
.nav-invite,
.nav-donate {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
}

.topbar-actions {
  justify-self: end;
  gap: 8px;
}

.nav-dashboard {
  color: var(--muted);
  text-decoration: none;
}

.nav-invite {
  justify-self: end;
}

.nav-donate {
  justify-self: end;
  background: linear-gradient(135deg, rgba(32, 199, 255, 0.16), rgba(87, 242, 135, 0.12));
  border: 1px solid rgba(87, 242, 135, 0.34);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 15, 20, 0.24), rgba(13, 15, 20, 0.92) 78%),
    url("/assets/nexis-logo.png?v=6") right max(26px, calc((100vw - 1120px) / 2)) center / min(38vw, 430px) auto no-repeat;
  opacity: 0.34;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(13, 15, 20, 0.92));
}

.hero-inner,
.band {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: center;
  padding: 64px 0;
}

.bot-logo {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px;
  max-height: 72px;
  display: block;
  object-fit: cover;
  margin-bottom: 26px;
  border: 1px solid rgba(32, 199, 255, 0.44);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(32, 199, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(4.2rem, 12vw, 9rem);
  line-height: 0.82;
  text-shadow: 0 18px 70px rgba(32, 199, 255, 0.2);
}

h2 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.lede {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.7;
}

.support-banner {
  max-width: 700px;
  margin-top: 24px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(32, 199, 255, 0.16), rgba(87, 242, 135, 0.08)),
    rgba(21, 25, 34, 0.9);
  border: 1px solid rgba(32, 199, 255, 0.34);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(32, 199, 255, 0.12);
}

.support-banner strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.05rem;
}

.support-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.support-banner-link {
  margin-top: 16px;
}

.actions,
.shop-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.actions {
  margin-top: 32px;
}

.primary-link,
.secondary-link,
.panel-link,
.secondary-button,
.danger-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.primary-link,
.panel-link {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(87, 242, 135, 0.82);
  color: #031018;
  box-shadow: 0 14px 34px rgba(32, 199, 255, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.secondary-link {
  background: rgba(21, 25, 34, 0.72);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
}

.primary-link:hover,
.panel-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(32, 199, 255, 0.3);
}

.secondary-button,
.danger-button {
  border: 1px solid var(--line);
  cursor: pointer;
}

.secondary-button {
  background: var(--surface);
}

.compact-button {
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.88rem;
}

.danger-button {
  background: rgba(237, 66, 69, 0.14);
  border-color: rgba(237, 66, 69, 0.42);
}

.primary-link[aria-disabled="true"],
.panel-link[aria-disabled="true"],
.nav-invite[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.invite-panel,
.networth-card,
.timeline article,
.command-card,
.metric,
.dashboard-intro,
.dashboard-controls,
.guild-card {
  background: linear-gradient(180deg, rgba(24, 31, 43, 0.9), rgba(14, 20, 29, 0.94));
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
}

.invite-panel {
  position: relative;
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.invite-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--violet));
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 18px;
}

.pulse {
  width: 10px;
  height: 10px;
  background: var(--accent-2);
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(87, 242, 135, 0.12);
}

.permission-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.permission-stack span,
.shop-row span {
  padding: 10px 12px;
  background: rgba(32, 40, 56, 0.68);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--muted);
}

.panel-link {
  width: 100%;
}

.invite-panel .panel-link + .panel-link {
  margin-top: 10px;
}

.tiny-panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  justify-self: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.invite-panel .tiny-panel-link + .tiny-panel-link {
  margin-left: 10px;
}

.tiny-panel-link:hover {
  color: var(--accent-2);
}

.band {
  padding: 78px 0;
}

.reach-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(230px, 300px));
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.reach-copy h2 span {
  color: var(--accent);
}

.reach-copy p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.reach-panel {
  min-height: 190px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(32, 199, 255, 0.18), rgba(87, 242, 135, 0.08)),
    rgba(21, 25, 34, 0.92);
  border: 1px solid rgba(32, 199, 255, 0.38);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(32, 199, 255, 0.12);
}

.reach-panel span,
.reach-panel p {
  color: var(--muted);
}

.reach-panel strong {
  font-size: 4rem;
  line-height: 1;
  color: var(--text);
}

.reach-panel p {
  margin: 0;
}

.setup-band {
  border-bottom: 1px solid var(--line);
}

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

.setup-grid article {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  background: rgba(21, 25, 34, 0.88);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.setup-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(87, 242, 135, 0.36);
  background: rgba(23, 30, 42, 0.94);
}

.setup-grid span {
  color: var(--accent-2);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.setup-grid strong {
  font-size: 1.18rem;
}

.setup-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.fine-panel {
  background:
    linear-gradient(135deg, rgba(87, 242, 135, 0.16), rgba(123, 97, 255, 0.1)),
    rgba(21, 25, 34, 0.92);
  border-color: rgba(87, 242, 135, 0.34);
  box-shadow: 0 22px 70px rgba(87, 242, 135, 0.1);
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.metric {
  min-height: 116px;
  display: grid;
  align-content: center;
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.metric:hover,
.command-card:hover,
.timeline article:hover,
.guild-card:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 199, 255, 0.38);
}

.metric strong {
  font-size: 2.2rem;
  color: var(--accent);
}

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

.section-heading {
  margin-bottom: 26px;
}

.split-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.command-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: rgba(12, 18, 27, 0.88);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.command-tab {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.command-tab.active {
  background: linear-gradient(135deg, rgba(32, 199, 255, 0.18), rgba(87, 242, 135, 0.1));
  border: 1px solid rgba(32, 199, 255, 0.3);
  color: var(--text);
}

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

.command-card {
  min-height: 132px;
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.command-card strong,
.timeline strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-2);
}

.command-card p,
.timeline p,
.economy-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.economy-band,
.moderation-band,
.donation-band {
  border-top: 1px solid var(--line);
}

.donation-callout {
  min-height: 0;
  margin-bottom: 18px;
}

.donation-grid article {
  min-height: 220px;
}

.economy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 26px;
  align-items: start;
}

.economy-copy p {
  max-width: 650px;
  font-size: 1.06rem;
}

.shop-row {
  margin-top: 20px;
}

.networth-card {
  padding: 22px;
}

.card-row,
.card-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.card-row span,
.card-total span {
  color: var(--muted);
}

.card-total {
  border-bottom: 0;
  padding-bottom: 0;
}

.card-total strong {
  color: var(--accent);
}

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

.timeline article {
  min-height: 190px;
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.timeline article span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--accent);
  font-weight: 800;
}

.final-cta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.compact-actions {
  margin-top: 0;
}

.dashboard-band {
  border-top: 1px solid var(--line);
}

.site-footer {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a,
.legal-panel a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.legal-panel a:hover {
  color: var(--accent-2);
}

.legal-page {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0;
}

.legal-panel {
  padding: 26px;
  background: rgba(21, 25, 34, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-panel h1 {
  margin-top: 0;
  font-size: clamp(2.3rem, 7vw, 4.2rem);
}

.legal-panel h2 {
  margin: 30px 0 10px;
}

.legal-panel p,
.legal-panel li {
  color: var(--muted);
  line-height: 1.65;
}

.dashboard-page,
.admin-page {
  display: block;
  padding-left: 286px;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 286px;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(17, 25, 38, 0.98), rgba(7, 11, 17, 0.98)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 72px);
  border-right: 1px solid var(--line-soft);
  overflow-y: auto;
  box-shadow: 18px 0 70px rgba(0, 0, 0, 0.28);
}

.app-sidebar nav {
  display: grid;
  gap: 18px;
  align-content: start;
}

.sidebar-brand {
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(32, 199, 255, 0.12), rgba(87, 242, 135, 0.05));
}

.side-group {
  display: grid;
  gap: 7px;
}

.side-label {
  padding: 0 10px;
  color: rgba(174, 184, 202, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.side-tab {
  min-height: 44px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.side-tab span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(32, 40, 56, 0.58);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
}

.side-tab.active,
.side-tab:hover {
  background: linear-gradient(135deg, rgba(32, 199, 255, 0.16), rgba(87, 242, 135, 0.08));
  color: var(--text);
  transform: translateX(2px);
}

.side-tab.active span,
.side-tab:hover span {
  border-color: rgba(32, 199, 255, 0.52);
  background: rgba(32, 199, 255, 0.16);
  color: var(--text);
}

.sidebar-actions {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.sidebar-actions .nav-invite,
.sidebar-actions .tiny-link {
  width: 100%;
  justify-self: stretch;
  justify-content: center;
}

.sidebar-actions .tiny-button {
  width: 100%;
}

.dashboard-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.dash-page {
  display: none;
  transform-origin: 50% 18px;
}

.dash-page.active {
  display: block;
  animation: dashboardPageIn 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.dash-page.entering {
  animation: dashboardPageIn 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.dash-page.exiting {
  display: block;
  pointer-events: none;
  animation: dashboardPageOut 170ms ease both;
}

.dashboard-hero {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.dashboard-hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

.account-panel,
.dashboard-panel,
.dashboard-metrics article {
  background: rgba(21, 25, 34, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.user-chip {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(10, 16, 24, 0.82);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.user-chip img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(32, 199, 255, 0.32);
}

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

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

.user-chip-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.account-panel p {
  margin: 0;
  color: var(--muted);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 28px 0;
}

.dashboard-metrics article {
  min-height: 122px;
  display: grid;
  align-content: center;
  padding: 18px;
}

.dashboard-metrics strong {
  font-size: 2.5rem;
  color: var(--accent);
}

.dashboard-metrics span {
  color: var(--muted);
}

.dashboard-panel {
  margin-top: 18px;
  padding: 22px;
}

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

.feature-grid article {
  min-height: 138px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(18, 27, 39, 0.96), rgba(10, 16, 24, 0.96));
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.feature-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-2);
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.network-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 18px;
  align-items: end;
}

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

.network-stat,
.impact-item,
.account-wide,
.admin-entry,
.fine-settings-card,
.permission-settings-card,
.auto-role-settings-card,
.reaction-role-settings-card,
.reaction-rule,
.welcome-settings-card,
.welcome-preview {
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ticket-basics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-multi-select {
  min-height: 152px;
  padding: 10px;
  background: var(--surface-3);
}

.role-multi-select + small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.network-stat {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.network-stat span,
.muted-copy,
.impact-item span,
.account-wide p {
  color: var(--muted);
}

.permission-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  background: var(--surface-3);
}

.impact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.impact-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.impact-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.account-wide {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: 18px;
}

.admin-entry {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(32, 199, 255, 0.14), rgba(123, 97, 255, 0.1)),
    var(--surface-3);
  border-color: rgba(32, 199, 255, 0.32);
}

.admin-entry[hidden] {
  display: none;
}

.admin-entry p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.permission-settings-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.auto-role-settings-grid,
.reaction-role-settings-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.permission-settings-card,
.auto-role-settings-card,
.reaction-role-settings-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.role-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.role-check {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(21, 25, 34, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.role-check input {
  width: 18px;
  height: 18px;
}

.reaction-rule-list {
  display: grid;
  gap: 12px;
}

.reaction-rule {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
}

.reaction-rule label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.reaction-rule input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--text);
}

.reaction-rule input:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(32, 199, 255, 0.16);
}

.permission-command-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.permission-command-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: rgba(21, 25, 34, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.permission-command-row strong,
.permission-command-row small {
  display: block;
}

.permission-command-row small {
  margin-top: 5px;
  color: var(--muted);
}

.welcome-settings-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.welcome-settings-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.welcome-settings-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.welcome-settings-card textarea,
.welcome-settings-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  color: var(--text);
  line-height: 1.5;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.welcome-settings-card textarea {
  min-height: 130px;
  resize: vertical;
}

.welcome-settings-card input {
  min-height: 46px;
}

.welcome-settings-card textarea:focus,
.welcome-settings-card input:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(32, 199, 255, 0.16);
}

.toggle-row {
  min-height: 74px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toggle-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.toggle-row input {
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  margin: 0;
  padding: 0 !important;
  appearance: none;
  position: relative;
  display: block;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(12, 18, 27, 0.96), rgba(19, 28, 40, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.toggle-row input::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e5ebf4, #bcc8d8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.toggle-row input:hover {
  border-color: rgba(32, 199, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(32, 199, 255, 0.08);
}

.toggle-row input:focus-visible {
  outline: none;
  border-color: rgba(32, 199, 255, 0.52);
  box-shadow: 0 0 0 3px rgba(32, 199, 255, 0.14);
}

.toggle-row input:checked {
  border-color: rgba(87, 242, 135, 0.58);
  background: linear-gradient(135deg, rgba(32, 199, 255, 0.22), rgba(87, 242, 135, 0.28));
}

.toggle-row input:checked::after {
  transform: translateX(26px);
  background: linear-gradient(180deg, #f5fffb, #86f7ae);
  box-shadow: 0 3px 12px rgba(87, 242, 135, 0.24);
}

.welcome-preview {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.welcome-preview span {
  color: var(--accent-2);
  font-weight: 800;
}

.welcome-preview p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.welcome-preview img {
  width: min(100%, 520px);
  max-height: 240px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.welcome-preview img[hidden] {
  display: none;
}

.admin-main .account-panel strong {
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
}

.admin-action {
  border: 1px solid var(--accent);
  cursor: pointer;
}

.admin-action[disabled] {
  opacity: 0.62;
  cursor: wait;
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.admin-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-card span {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-wrap;
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.admin-small-action {
  min-height: 40px;
  padding: 0 12px;
}

.admin-card.fail,
.admin-card.finding {
  border-color: rgba(237, 66, 69, 0.44);
  background: rgba(237, 66, 69, 0.08);
}

.admin-card.warn,
.admin-card.suggestion {
  border-color: rgba(254, 231, 92, 0.34);
  background: rgba(254, 231, 92, 0.06);
}

.admin-card.pass,
.admin-card.queued {
  border-color: rgba(87, 242, 135, 0.28);
}

.admin-card.implemented {
  background:
    linear-gradient(135deg, rgba(87, 242, 135, 0.12), rgba(32, 199, 255, 0.06)),
    var(--surface-3);
  border-color: rgba(87, 242, 135, 0.5);
}

.admin-queue-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-queue-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.admin-queue-form input,
.admin-queue-form textarea,
.admin-queue-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  color: var(--text);
}

.admin-queue-form input,
.admin-queue-form select {
  min-height: 46px;
}

.access-ban-grid,
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.nested-panel {
  margin-bottom: 18px;
}

.owner-guild-grid {
  display: grid;
  gap: 10px;
}

.owner-guild-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.owner-guild-item input {
  margin-top: 4px;
}

.owner-guild-item p,
.owner-guild-item strong {
  margin: 0;
}

.access-locked-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.access-locked-card {
  width: min(720px, 100%);
  display: grid;
  gap: 18px;
  padding: 28px;
  background: rgba(18, 25, 34, 0.94);
  border: 1px solid rgba(32, 199, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(5, 11, 19, 0.45);
}

.access-pill {
  display: inline-flex;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(32, 199, 255, 0.24);
  background: rgba(32, 199, 255, 0.08);
  color: var(--text);
  font-weight: 700;
}

.access-locked-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fine-settings-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

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

.fine-inputs label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.fine-inputs input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.fine-inputs input:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(32, 199, 255, 0.16);
}

.fine-save-button {
  width: fit-content;
  cursor: pointer;
}

.network-picker label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.network-picker p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.app-guild-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-shell {
  display: grid;
  gap: 18px;
}

.dashboard-intro,
.dashboard-controls,
.guild-card {
  padding: 18px;
}

.dashboard-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-intro .dashboard-user {
  margin-top: 12px;
  color: var(--accent-2);
  font-weight: 800;
}

.dashboard-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.dashboard-controls label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 44px 0 14px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%) calc(100% - 22px) 19px / 7px 7px no-repeat,
    linear-gradient(135deg, var(--accent) 50%, transparent 50%) calc(100% - 17px) 19px / 7px 7px no-repeat,
    linear-gradient(180deg, rgba(32, 199, 255, 0.09), rgba(16, 22, 32, 0)) var(--surface-3);
  color: var(--text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

select:hover {
  border-color: rgba(32, 199, 255, 0.58);
  background-color: var(--surface);
}

select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(32, 199, 255, 0.16), 0 16px 38px rgba(0, 0, 0, 0.22);
}

select option {
  background: var(--surface-3);
  color: var(--text);
}

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

.guild-card {
  display: grid;
  gap: 14px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.guild-head {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
}

.guild-head img,
.guild-fallback {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.guild-fallback {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--accent);
  font-weight: 800;
}

.guild-head strong {
  display: block;
}

.guild-head p,
.dashboard-status {
  margin: 4px 0 0;
  color: var(--muted);
}

.guild-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tiny-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}

.tiny-button {
  background: transparent;
  cursor: pointer;
}

.tiny-link:hover,
.tiny-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: min(390px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  pointer-events: none;
}

.dashboard-toast {
  position: relative;
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(32, 199, 255, 0.16), rgba(87, 242, 135, 0.08)),
    rgba(16, 22, 32, 0.96);
  border: 1px solid rgba(32, 199, 255, 0.38);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  opacity: 0;
  transform: translateX(34px) scale(0.96);
  transition: opacity 260ms ease, transform 260ms ease;
  overflow: hidden;
}

.dashboard-toast::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: toastBar 3600ms linear forwards;
}

.dashboard-toast.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.dashboard-toast.leaving {
  opacity: 0;
  transform: translateX(34px) scale(0.98);
}

.dashboard-toast.danger {
  background:
    linear-gradient(135deg, rgba(237, 66, 69, 0.16), rgba(32, 199, 255, 0.06)),
    rgba(16, 22, 32, 0.96);
  border-color: rgba(237, 66, 69, 0.42);
}

.dashboard-toast.danger::after {
  background: linear-gradient(90deg, var(--danger), var(--accent));
}

.toast-signal {
  width: 12px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 0 6px rgba(87, 242, 135, 0.1), 0 0 30px rgba(87, 242, 135, 0.34);
}

.dashboard-toast.danger .toast-signal {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(237, 66, 69, 0.1), 0 0 30px rgba(237, 66, 69, 0.34);
}

.dashboard-toast strong {
  display: block;
  margin-bottom: 5px;
}

.dashboard-toast p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

@keyframes toastBar {
  from {
    transform: scaleX(1);
    transform-origin: left;
  }

  to {
    transform: scaleX(0);
    transform-origin: left;
  }
}

@keyframes dashboardPageIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes dashboardPageOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.99);
    filter: blur(6px);
  }
}


.field-grid {
  display: grid;
  gap: 14px;
}

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

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

.stacked-panel,
.inline-note,
.reaction-preview-card,
.role-picker-host,
.ticket-type-list,
.reaction-role-row,
.ticket-type-card {
  background: rgba(11, 16, 25, 0.88);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.stacked-panel,
.inline-note {
  padding: 16px;
}

.panel-copy {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.panel-copy small,
.inline-note p {
  color: var(--muted);
  line-height: 1.55;
}

.inline-note strong,
.panel-copy strong {
  display: block;
}

.inline-note p {
  margin: 10px 0 0;
}

.role-picker-host {
  padding: 0;
  overflow: visible;
}

.role-picker {
  position: relative;
  width: 100%;
  background: transparent;
  border-radius: 8px;
}

.role-picker summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 0 44px 0 14px;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%) calc(100% - 22px) 22px / 7px 7px no-repeat,
    linear-gradient(135deg, var(--accent) 50%, transparent 50%) calc(100% - 17px) 22px / 7px 7px no-repeat,
    linear-gradient(180deg, rgba(32, 199, 255, 0.09), rgba(16, 22, 32, 0)) var(--surface-3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.role-picker summary::-webkit-details-marker {
  display: none;
}

.role-picker summary span {
  color: var(--text);
  font-weight: 700;
}

.role-picker summary strong {
  color: var(--accent);
  font-size: 0.9rem;
}

.role-picker summary:hover {
  border-color: rgba(32, 199, 255, 0.58);
  background-color: var(--surface);
}

.role-picker[open] summary {
  border-color: var(--accent);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 0 0 3px rgba(32, 199, 255, 0.16), 0 16px 38px rgba(0, 0, 0, 0.22);
}

.role-picker[open] {
  z-index: 28;
}

.role-picker-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 10px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-top: 0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 18, 27, 0.98), rgba(18, 26, 37, 0.98));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
  z-index: 35;
}

.role-picker-option {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(21, 25, 34, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.role-picker-option input {
  width: 16px;
  height: 16px;
}

.role-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.role-picker-copy {
  display: grid;
  gap: 2px;
}

.role-picker-copy strong {
  font-size: 0.95rem;
}

.role-picker-copy small {
  color: var(--muted);
}

.role-picker-selected {
  margin: 0;
  padding: 12px 16px 16px;
  color: var(--muted);
  line-height: 1.55;
}

.emoji-picker-field {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.emoji-picker-field > span {
  color: var(--text);
  font-weight: 700;
}

.emoji-picker {
  position: relative;
  width: 100%;
}

.emoji-picker summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(32, 199, 255, 0.09), rgba(16, 22, 32, 0)) var(--surface-3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.emoji-picker summary::-webkit-details-marker {
  display: none;
}

.emoji-picker summary span {
  color: var(--text);
  font-weight: 700;
}

.emoji-picker summary strong {
  font-size: 1.3rem;
  line-height: 1;
}

.emoji-picker[open] {
  z-index: 32;
}

.emoji-picker[open] summary {
  border-color: var(--accent);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 0 0 3px rgba(32, 199, 255, 0.16), 0 16px 38px rgba(0, 0, 0, 0.22);
}

.emoji-picker-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  padding: 10px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-top: 0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 18, 27, 0.98), rgba(18, 26, 37, 0.98));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
  z-index: 36;
}

.emoji-picker-option {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(21, 25, 34, 0.72);
  color: var(--text);
  text-align: left;
}

.emoji-picker-option strong {
  font-size: 1.25rem;
  line-height: 1;
}

.emoji-picker-option span {
  font-weight: 600;
}

.emoji-picker-option:hover {
  border-color: rgba(32, 199, 255, 0.52);
  background: rgba(20, 33, 47, 0.95);
}

.emoji-picker-option.custom strong {
  font-size: 1rem;
}

.reaction-preview-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.reaction-preview-card > span {
  color: var(--accent-2);
  font-weight: 800;
}

.reaction-preview-message {
  padding: 14px;
  background: rgba(21, 25, 34, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
}

.reaction-preview-lines {
  display: grid;
  gap: 8px;
}

.reaction-preview-lines div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(21, 25, 34, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.reaction-preview-lines strong {
  font-size: 1.1rem;
}

.reaction-role-row,

.ticket-type-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.ticket-type-card > input[type="hidden"] {
  display: none;
}

.ticket-type-card .field-grid.three {
  grid-template-columns: minmax(180px, 1.05fr) minmax(130px, 0.72fr) minmax(260px, 1.5fr);
}

.ticket-type-card input:not([type="checkbox"]):not([type="hidden"]),
.ticket-type-card textarea,
.ticket-type-card select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
}

.ticket-type-card .stacked-panel {
  width: 100%;
}

.reaction-rule-grid {
  grid-template-columns: minmax(220px, 280px) minmax(220px, 1fr);
  align-items: start;
}

.ticket-type-list {
  display: grid;
  gap: 12px;
  padding: 12px;
  overflow: visible;
}

.ticket-template-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ticket-template-button {
  min-height: 42px;
}

.ticket-type-header {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.ticket-type-header small {
  color: var(--muted);
}

.ticket-settings-card,
.ticket-type-card,
.reaction-role-row {
  overflow: visible;
}

.role-multi-select {
  display: none;
}


@media (max-width: 900px) {
  .dashboard-page,
  .admin-page {
    padding-left: 0;
  }

  .app-sidebar {
    position: relative;
    inset: auto;
    z-index: auto;
    width: auto;
    height: auto;
    min-height: auto;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar nav {
    display: none;
  }

  .hero-inner,
  .economy-layout,
  .reach-band,
  .setup-grid,
  .metrics-band,
  .command-board,
  .timeline,
  .feature-grid,
  .guild-grid,
  .dashboard-controls,
  .dashboard-hero,
  .dashboard-metrics,
  .network-picker,
  .network-detail,
  .impact-layout,
  .fine-settings-grid,
  .permission-command-list,
  .permission-command-row,
  .role-check-grid,
  .reaction-rule,
  .welcome-settings-grid,
  .fine-inputs,
  .app-guild-grid,
  .field-grid.two,
  .field-grid.three,
  .reaction-rule-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .invite-panel {
    max-width: 460px;
  }

  .split-heading,
  .final-cta,
  .admin-entry,
  .dashboard-cta-actions {
    align-items: start;
    flex-direction: column;
  }

  .command-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .bot-logo {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px;
    max-height: 64px;
  }

  .toast-stack {
    right: 16px;
    bottom: 16px;
  }
}


.welcome-image-shell {
  display: grid;
  gap: 12px;
}

.welcome-image-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.file-trigger {
  display: inline-flex !important;
  width: auto !important;
  color: var(--text) !important;
}

.file-trigger input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0 !important;
}

.file-trigger span {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(32, 199, 255, 0.12), rgba(18, 26, 37, 0.88));
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.file-trigger:hover span {
  border-color: rgba(32, 199, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(32, 199, 255, 0.08);
  transform: translateY(-1px);
}

.welcome-upload-status {
  color: var(--muted);
  line-height: 1.55;
}

.reaction-rule-grid {
  grid-template-columns: minmax(210px, 240px) minmax(210px, 1fr);
  align-items: end;
}

.reaction-role-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.reaction-row-action {
  min-width: 144px;
  min-height: 48px;
  white-space: nowrap;
}

.reaction-custom-emoji-field {
  grid-column: 1 / -1;
}

.reaction-custom-emoji-field[hidden] {
  display: none !important;
}





.dashboard-cta-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(32, 199, 255, 0.14), rgba(87, 242, 135, 0.1)),
    rgba(10, 16, 24, 0.92);
  border: 1px solid rgba(32, 199, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(32, 199, 255, 0.12);
}

.dashboard-cta-card span {
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-cta-card strong {
  font-size: 1.12rem;
}

.dashboard-cta-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.dashboard-cta-actions .primary-link,
.dashboard-cta-actions .secondary-link {
  flex: 1 1 180px;
}
