:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101321;
  color: #f7f8ff;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(88, 101, 242, 0.22), transparent 34rem),
    linear-gradient(180deg, #151827 0%, #101321 46%, #0c0f1a 100%);
}

.management-body {
  background:
    linear-gradient(135deg, rgba(35, 165, 89, 0.16), transparent 32rem),
    linear-gradient(180deg, #111827 0%, #0d111c 52%, #090d14 100%);
}

.main-site-body {
  background:
    linear-gradient(135deg, rgba(88, 101, 242, 0.24), transparent 36rem),
    linear-gradient(180deg, #101321 0%, #0d111c 58%, #090d14 100%);
}

.page-shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.management-shell {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.main-site-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0;
}

.main-site-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 2rem;
}

.main-top-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.main-dashboard-button {
  margin-top: 0;
}

.help-menu {
  position: relative;
}

.help-menu summary {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  list-style: none;
  min-height: 42px;
  padding: 0 1rem;
}

.help-menu summary::-webkit-details-marker {
  display: none;
}

.help-dropdown {
  background: rgba(18, 22, 37, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  display: grid;
  gap: 0.35rem;
  min-width: 230px;
  padding: 0.65rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  z-index: 30;
}

.help-dropdown a {
  border-radius: 10px;
  color: #ffffff;
  font-weight: 800;
  padding: 0.65rem 0.55rem;
  text-decoration: none;
}

.help-dropdown a:hover,
.help-dropdown a:focus {
  background: rgba(255, 255, 255, 0.08);
}

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(12, 15, 26, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  min-height: 72px;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

.management-topbar {
  align-items: center;
  background: rgba(8, 12, 19, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(220px, 1fr) auto minmax(120px, 1fr);
  min-height: 76px;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

.management-left {
  align-items: center;
  display: flex;
  gap: 1rem;
  min-width: 0;
}

.brand {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: #5865f2;
  border-radius: 14px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand-image {
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: #b8c0ff;
  margin-top: 0.1rem;
}

.management-brand small {
  color: #9fd8b3;
}

.return-dashboard {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #dfe3ff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 900;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
}

.return-dashboard:hover,
.return-dashboard:focus {
  background: rgba(35, 165, 89, 0.18);
  color: #ffffff;
}

.management-nav {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
  justify-self: center;
}

.management-nav a {
  border-radius: 10px;
  color: #dfe3ff;
  font-weight: 900;
  padding: 0.7rem 0.9rem;
  text-decoration: none;
}

.management-nav a.active,
.management-nav a:hover,
.management-nav a:focus {
  background: rgba(35, 165, 89, 0.2);
  color: #ffffff;
}

.main-hero {
  min-height: min(680px, calc(100vh - 180px));
  display: grid;
  align-content: center;
  justify-items: start;
}

.main-hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.main-feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.main-feature-grid article {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.25rem;
}

.main-feature-grid strong {
  color: #ffffff;
  display: block;
  font-size: 1.35rem;
  margin-top: 0.35rem;
}

.main-feature-grid p {
  color: #dfe3ff;
  margin-bottom: 0;
}

.legal-shell {
  max-width: 920px;
}

.legal-panel {
  display: grid;
  gap: 1.25rem;
}

.legal-section {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 1rem;
}

.legal-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal-section h2 {
  margin: 0 0 0.65rem;
}

.legal-section p {
  color: #dfe3ff;
  line-height: 1.65;
  margin: 0;
}

.top-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  display: inline-flex;
  gap: 0.25rem;
  justify-self: center;
  padding: 0.25rem;
}

.top-nav a {
  border-radius: 999px;
  color: #dfe3ff;
  font-weight: 800;
  padding: 0.65rem 0.95rem;
  text-decoration: none;
}

.top-nav a.active,
.top-nav a:hover,
.top-nav a:focus {
  background: rgba(88, 101, 242, 0.25);
  color: #ffffff;
}

.account-area {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.login-button {
  align-items: center;
  background: #5865f2;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  min-height: 42px;
  padding: 0 1rem;
  text-decoration: none;
}

.nav-warning {
  color: #fee75c;
  font-size: 0.9rem;
  font-weight: 800;
}

.account-menu {
  position: relative;
}

.account-menu summary {
  border-radius: 999px;
  cursor: pointer;
  display: block;
  height: 44px;
  list-style: none;
  outline: 0;
  width: 44px;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu summary img,
.avatar-fallback {
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  display: block;
  height: 44px;
  width: 44px;
}

.avatar-fallback {
  align-items: center;
  background: #5865f2;
  color: #ffffff;
  display: flex;
  font-weight: 900;
  justify-content: center;
  text-transform: uppercase;
}

.account-dropdown {
  background: rgba(18, 22, 37, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  display: grid;
  gap: 0.35rem;
  min-width: 220px;
  padding: 0.65rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
}

.account-name {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.25rem;
  padding: 0.45rem 0.55rem 0.7rem;
}

.account-dropdown a,
.account-dropdown button {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  display: block;
  font: inherit;
  font-weight: 800;
  padding: 0.65rem 0.55rem;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.account-dropdown a:hover,
.account-dropdown a:focus,
.account-dropdown button:hover,
.account-dropdown button:focus {
  background: rgba(255, 255, 255, 0.08);
}

.hero,
.panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(16, 19, 33, 0.82);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  padding: 2rem;
}

.management-body .hero,
.management-body .panel,
.management-body .metric-card,
.management-body .guild-card {
  background: rgba(13, 17, 28, 0.88);
}

.management-hero {
  border-color: rgba(35, 165, 89, 0.26);
}

.panel {
  margin-top: 1.5rem;
}

.section-heading,
.split-panel {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
  margin-top: 0;
}

.section-heading .secondary-button,
.split-panel .primary-button {
  flex: 0 0 auto;
  margin-top: 0;
}

.compact-hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.server-title {
  align-items: center;
  display: flex;
  gap: 1rem;
  min-width: 0;
}

.server-title h1 {
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}

.server-icon {
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  flex: 0 0 auto;
  height: 76px;
  object-fit: cover;
  width: 76px;
}

.server-icon-fallback {
  align-items: center;
  background: rgba(88, 101, 242, 0.34);
  color: #ffffff;
  display: inline-flex;
  font-size: 2rem;
  font-weight: 900;
  justify-content: center;
  text-transform: uppercase;
}

.eyebrow,
.label,
.muted {
  color: #b8c0ff;
}

.eyebrow {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
  margin: 0.5rem 0 1rem;
}

.lede {
  max-width: 650px;
  color: #dfe3ff;
  font-size: 1.15rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  margin-top: 1rem;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
}

.primary-button {
  background: #5865f2;
  color: #ffffff;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.danger-button {
  align-items: center;
  background: rgba(237, 66, 69, 0.16);
  border: 1px solid rgba(237, 66, 69, 0.38);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  margin-top: 0;
  padding: 0.65rem 0.95rem;
}

.back-link {
  color: #dfe3ff;
  display: inline-flex;
  font-weight: 700;
  margin-bottom: 1rem;
  text-decoration: none;
}

.notice {
  border-left: 4px solid #fee75c;
  background: rgba(254, 231, 92, 0.1);
  border-radius: 14px;
  margin-top: 1.5rem;
  padding: 1rem;
}

.invite-modal {
  background: rgba(18, 22, 37, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.52);
  color: #ffffff;
  max-width: min(420px, calc(100% - 2rem));
  padding: 0;
}

.invite-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.invite-modal form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.invite-modal h2,
.invite-modal p {
  margin: 0;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.modal-actions .primary-button,
.modal-actions .secondary-button {
  margin-top: 0;
}

.profile-card,
.guild-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem;
}

.profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.profile-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.profile-actions .secondary-button {
  margin-top: 0;
}

.restart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.restart-actions .primary-button,
.restart-actions .secondary-button {
  margin-top: 0;
}

.status-pill {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.45rem 0.75rem;
}

.status-pill.success {
  background: rgba(35, 165, 89, 0.18);
  color: #b8f5c9;
}

.status-pill.danger {
  background: rgba(237, 66, 69, 0.18);
  color: #ffc4c6;
}

.toggle-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.toggle-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  gap: 0.8rem;
  min-height: 54px;
  padding: 0.7rem 0.9rem;
}

.toggle-button:hover,
.toggle-button:focus {
  background: rgba(88, 101, 242, 0.18);
}

.toggle-track {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  display: inline-flex;
  height: 28px;
  padding: 3px;
  width: 52px;
}

.toggle-track span {
  background: #ffffff;
  border-radius: 50%;
  display: block;
  height: 22px;
  transition: transform 160ms ease;
  width: 22px;
}

.toggle-button.enabled .toggle-track {
  background: #ed4245;
}

.toggle-button.enabled .toggle-track span {
  transform: translateX(24px);
}

.maintenance-checkbox {
  align-items: center;
  color: #dfe3ff;
  display: inline-flex;
  font-weight: 800;
  gap: 0.55rem;
}

.maintenance-checkbox input {
  height: 18px;
  width: 18px;
}

.field-label {
  color: #dfe3ff;
  display: grid;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 0.4rem;
}

.field-label input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #ffffff;
  font: inherit;
  min-height: 46px;
  padding: 0 0.8rem;
}

.maintenance-schedule {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.maintenance-schedule h3 {
  margin: 0 0 0.35rem;
}

.schedule-summary {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #dfe3ff;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem;
}

.schedule-summary strong {
  color: #ffffff;
}

.schedule-form {
  align-items: end;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
}

.schedule-form .primary-button,
.maintenance-schedule .secondary-button {
  margin-top: 0;
}

.maintenance-panel {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  margin: 4rem auto 0;
  max-width: 760px;
  padding: 3rem;
  text-align: center;
}

.maintenance-icon {
  align-items: center;
  background: rgba(254, 231, 92, 0.16);
  border: 1px solid rgba(254, 231, 92, 0.3);
  border-radius: 18px;
  color: #fee75c;
  display: inline-flex;
  font-size: 1.6rem;
  font-weight: 1000;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.maintenance-panel h1 {
  margin-bottom: 0.75rem;
}

.maintenance-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.maintenance-actions .primary-button,
.maintenance-actions .secondary-button {
  margin-top: 0;
}

.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.guild-card h3 {
  margin-top: 0;
}

.guild-button {
  color: #ffffff;
  display: block;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.guild-button:hover,
.guild-button:focus {
  background: rgba(88, 101, 242, 0.2);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.guild-card-disabled {
  opacity: 0.62;
}

.guild-card-disabled span {
  color: #fee75c;
}

.guild-invite-card {
  color: #ffffff;
  cursor: pointer;
  display: block;
  font: inherit;
  text-align: left;
  width: 100%;
}

.guild-invite-card:hover,
.guild-invite-card:focus {
  background: rgba(254, 231, 92, 0.1);
  border-color: rgba(254, 231, 92, 0.28);
  opacity: 1;
}

.guild-card h3 {
  margin-top: 0;
}

.guild-card span {
  color: #dfe3ff;
  display: inline-flex;
  font-weight: 700;
  margin-top: 0.75rem;
}

.guild-manage-button {
  display: flex;
  justify-content: center;
  justify-self: end;
  margin-left: auto;
  margin-top: 0.75rem;
  padding: 0.65rem 0.95rem;
  width: fit-content;
}

.dashboard-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 1.5rem;
}

.usage-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.25rem;
}

.usage-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.usage-card-top {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.usage-card-top strong {
  color: #ffffff;
  font-size: 1.4rem;
}

.usage-bar {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.usage-bar span {
  background: linear-gradient(90deg, #23a559, #5865f2);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 3px;
  transition: width 240ms ease;
}

.usage-detail-row {
  color: #b8c0ff;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1rem;
}

.usage-detail-row strong {
  color: #ffffff;
}

.server-layout {
  align-items: start;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 240px minmax(0, 1fr);
  margin-top: 1.5rem;
}

.server-sidebar {
  background: rgba(16, 19, 33, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 0.35rem;
  padding: 0.55rem;
  position: sticky;
  top: 96px;
}

.server-sidebar a {
  border-radius: 12px;
  color: #dfe3ff;
  font-weight: 800;
  padding: 0.8rem 0.9rem;
  text-decoration: none;
}

.server-sidebar a.active,
.server-sidebar a:hover,
.server-sidebar a:focus {
  background: rgba(88, 101, 242, 0.24);
  color: #ffffff;
}

.server-content {
  min-width: 0;
}

.server-content .panel:first-child {
  margin-top: 0;
}

.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem;
}

.metric-card strong {
  display: block;
  font-size: 2rem;
  margin-top: 0.35rem;
}

.metric-card .metric-name {
  font-size: 1.25rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.settings-list,
.user-list,
.command-list {
  display: grid;
  gap: 0.75rem;
}

.settings-list div,
.user-row,
.command-row {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 0.75rem;
}

.compact-list .user-row,
.compact-list .command-row {
  min-height: 48px;
  padding: 0.55rem 0;
}

.compact-list .level-row {
  min-height: 48px;
  padding-top: 0.55rem;
}

.select-row {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 0.75rem;
}

.channel-form {
  display: grid;
  gap: 1rem;
}

.channel-form .primary-button {
  justify-self: end;
  margin-top: 0;
}

select {
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #ffffff;
  font: inherit;
  min-width: min(320px, 100%);
  padding: 0.75rem 2rem 0.75rem 0.9rem;
}

option {
  background: #101321;
  color: #ffffff;
}

input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #ffffff;
  font: inherit;
  min-width: 0;
  padding: 0.75rem 0.9rem;
}

input::placeholder {
  color: rgba(223, 227, 255, 0.62);
}

.search-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.search-form input {
  flex: 1 1 260px;
}

.search-form .secondary-button {
  margin-top: 0;
}

.access-form {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.access-form input {
  flex: 1 1 260px;
}

.access-form .primary-button {
  margin-top: 0;
}

.list-search,
.access-search {
  margin: 0 0 1rem;
}

.list-search input,
.access-search input {
  width: 100%;
}

.scroll-list {
  max-height: 610px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.compact-list .guild-card {
  border-radius: 14px;
  padding: 0.75rem;
}

.compact-list .guild-card h3 {
  margin-bottom: 0.35rem;
}

.compact-list .guild-card p {
  margin: 0.35rem 0;
}

.compact-list .guild-card span {
  margin-top: 0.35rem;
}

.access-list {
  display: grid;
  gap: 0.75rem;
}

.access-row {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 52px;
  padding: 0.55rem 0;
}

.access-row > div {
  display: grid;
  gap: 0.2rem;
}

.access-row strong {
  color: #ffffff;
}

.access-row .secondary-button {
  margin-top: 0;
  padding: 0.65rem 0.95rem;
}

.list-empty,
.access-empty {
  margin-bottom: 0;
  margin-top: 1rem;
}

.level-table {
  display: grid;
  gap: 0.65rem;
}

.level-row {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 64px minmax(180px, 1fr) minmax(96px, 120px) minmax(96px, 120px) auto;
  padding-top: 0.75rem;
}

.level-header {
  color: #b8c0ff;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.level-row strong {
  display: grid;
  gap: 0.2rem;
}

.level-row .secondary-button {
  justify-content: center;
  margin-top: 0;
}

.dashboard-user-list {
  display: grid;
  gap: 0.75rem;
}

.dashboard-user-row {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(240px, 1fr) minmax(90px, auto) minmax(180px, auto) auto;
  min-height: 56px;
  padding: 0.55rem 0;
}

.dashboard-user-profile {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

.dashboard-user-profile img,
.dashboard-user-profile .avatar-fallback {
  flex: 0 0 auto;
  height: 42px;
  width: 42px;
}

.dashboard-user-profile > div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.dashboard-user-profile strong {
  color: #ffffff;
  overflow-wrap: anywhere;
}

.dashboard-user-row > span {
  color: #dfe3ff;
  font-weight: 700;
}

.dashboard-user-row form {
  justify-self: end;
}

.settings-list strong,
.user-row span {
  color: #ffffff;
}

.settings-list strong,
.user-row strong {
  display: grid;
  gap: 0.2rem;
  justify-items: end;
}

small {
  color: #b8c0ff;
  font-size: 0.78rem;
  font-weight: 600;
}

.command-row {
  align-items: flex-start;
}

.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.role-pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ffffff;
  display: inline-grid;
  gap: 0.1rem;
  justify-items: center;
  padding: 0.45rem 0.7rem;
}

.error-panel a {
  color: #b8c0ff;
}

@media (max-width: 640px) {
  .topbar {
    gap: 0.75rem;
    grid-template-columns: 1fr auto;
    padding: 0.75rem 1rem;
  }

  .management-topbar {
    gap: 0.75rem;
    grid-template-columns: 1fr auto;
    padding: 0.75rem 1rem;
  }

  .management-left {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .return-dashboard {
    font-size: 0.82rem;
    padding: 0.55rem 0.75rem;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    overflow-x: auto;
  }

  .management-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .main-site-topbar {
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .main-top-actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .top-nav a {
    flex: 1;
    text-align: center;
  }

  .management-nav a {
    flex: 1;
    text-align: center;
  }

  .schedule-form {
    grid-template-columns: 1fr;
  }

  .brand small {
    display: none;
  }

  .page-shell {
    width: min(100% - 1rem, 1100px);
    padding-top: 1rem;
  }

  .management-shell {
    width: min(100% - 1rem, 1240px);
    padding-top: 1rem;
  }

  .hero,
  .panel {
    border-radius: 18px;
    padding: 1.25rem;
  }

  h1 {
    font-size: 2.45rem;
  }

  .server-title {
    align-items: flex-start;
    gap: 0.85rem;
  }

  .server-icon {
    border-radius: 14px;
    height: 58px;
    width: 58px;
  }

  .section-heading,
  .split-panel,
  .select-row,
  .settings-list div,
  .user-row,
  .command-row {
    align-items: stretch;
    flex-direction: column;
  }

  .server-layout {
    grid-template-columns: 1fr;
  }

  .server-sidebar {
    display: flex;
    overflow-x: auto;
    position: static;
  }

  .server-sidebar a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .access-form,
  .access-row {
    align-items: stretch;
    flex-direction: column;
  }

  .level-row {
    grid-template-columns: 1fr;
  }

  .dashboard-user-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .dashboard-user-row form {
    justify-self: stretch;
  }

  .dashboard-user-row .danger-button,
  .dashboard-user-row .secondary-button {
    justify-content: center;
    width: 100%;
  }

  .level-header {
    display: none;
  }

  .section-heading .secondary-button,
  .split-panel .primary-button {
    justify-content: center;
  }

  .channel-form .primary-button {
    justify-self: stretch;
    justify-content: center;
  }

  .settings-list strong,
  .user-row strong {
    justify-items: start;
  }

  .role-list {
    justify-content: flex-start;
  }
}
