:root {
  color-scheme: dark;
  --bg: #03172d;
  --surface: #062345;
  --surface-2: #0a315d;
  --text: #f8fbff;
  --muted: #b9d4ee;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #ffffff;
  --accent-2: #0b67f2;
  --danger: #e36b61;
  --success: #62d6a0;
  --warning: #f7c948;
  --shadow: 0 20px 60px rgba(0, 10, 28, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.light {
  color-scheme: light;
  --bg: #eaf4ff;
  --surface: #ffffff;
  --surface-2: #d9ecff;
  --text: #04182f;
  --muted: #49657f;
  --line: rgba(3, 23, 45, 0.14);
  --accent: #063b81;
  --accent-2: #0b67f2;
  --shadow: 0 20px 50px rgba(7, 57, 114, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 46px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.maintenance-dev-banner {
  position: sticky;
  top: 78px;
  z-index: 19;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px clamp(18px, 4vw, 46px);
  border-bottom: 1px solid rgba(247, 201, 72, 0.35);
  background: rgba(91, 63, 8, 0.92);
  color: #fff7d6;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.maintenance-dev-banner strong {
  font-weight: 900;
}

.maintenance-dev-banner span {
  color: #ffe8a8;
  font-size: 0.92rem;
  font-weight: 700;
}

.maintenance-dev-banner .button {
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.site-announcement-banner,
.account-restriction-banner,
.announcement-preview-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px clamp(18px, 4vw, 46px);
  border-bottom: 1px solid rgba(247, 201, 72, 0.35);
  background: rgba(91, 63, 8, 0.94);
  color: #fff7d6;
}

.site-announcement-banner {
  position: sticky;
  top: 78px;
  z-index: 18;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.account-restriction-banner {
  position: sticky;
  top: 78px;
  z-index: 19;
  border-bottom-color: rgba(227, 107, 97, 0.46);
  background: rgba(86, 18, 26, 0.96);
  color: #ffe6e3;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.maintenance-dev-banner:not(.admin-hidden) + .site-announcement-banner {
  top: 126px;
}

.site-announcement-banner:not(.admin-hidden) + .account-restriction-banner {
  top: 126px;
}

.maintenance-dev-banner:not(.admin-hidden) + .site-announcement-banner:not(.admin-hidden) + .account-restriction-banner {
  top: 174px;
}

.site-announcement-banner svg,
.account-restriction-banner svg,
.announcement-preview-banner svg {
  width: 22px;
  height: 22px;
  color: var(--warning);
  flex: 0 0 auto;
}

.site-announcement-banner strong,
.account-restriction-banner strong,
.announcement-preview-banner strong {
  font-weight: 900;
}

.site-announcement-banner span,
.announcement-preview-banner span {
  color: #ffe8a8;
  font-weight: 800;
  text-align: center;
}

.announcement-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.discipline-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: 18px;
}

.announcement-preview {
  display: grid;
  gap: 12px;
}

.announcement-preview-banner {
  border: 1px solid rgba(247, 201, 72, 0.35);
  border-radius: 8px;
  justify-content: flex-start;
  padding: 12px 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.32));
}

.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 0.75rem; margin-top: 2px; }

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.nav a:hover { color: var(--text); }

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.icon-button svg { width: 19px; height: 19px; fill: currentColor; }

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.account-menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.account-dropdown {
  position: relative;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 10px 5px 6px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.account-chip svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.account-chip img,
.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}

.account-chip small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.account-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 180px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.account-dropdown.open .account-dropdown-menu {
  display: grid;
}

.notification-dropdown {
  position: relative;
}

.notification-button {
  position: relative;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--danger);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
}

.notification-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 45;
  width: min(360px, 92vw);
  max-height: 460px;
  display: none;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.notification-dropdown.open .notification-dropdown-menu {
  display: grid;
}

.notification-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.notification-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.notification-item,
.notification-empty {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.notification-item.unread {
  background: color-mix(in srgb, var(--accent-2) 16%, transparent);
}

.notification-item span,
.notification-item small,
.notification-empty {
  color: var(--muted);
}

.account-dropdown-menu a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--text);
  font-weight: 800;
}

.account-dropdown-menu a:hover {
  background: var(--surface-2);
}

.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 3px solid #0b67f2;
}

.home-page {
  background:
    linear-gradient(180deg, #03172d 0, #052140 46%, #03172d 100%);
}

.app-page {
  display: none !important;
}

.app-page.active-page {
  display: grid !important;
}

.section.app-page.active-page {
  display: block !important;
  min-height: calc(100svh - 69px);
}

.home-page.app-page.active-page {
  display: block !important;
}

.grid-two.app-page.active-page,
.operations.app-page.active-page {
  display: grid !important;
}

.nav a.active {
  color: var(--text);
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero > img { object-position: center; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 23, 45, 0.95), rgba(3, 23, 45, 0.62) 47%, rgba(3, 23, 45, 0.22)),
    linear-gradient(0deg, rgba(3, 23, 45, 0.72), transparent 45%);
}

body.light .hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 23, 45, 0.86), rgba(3, 23, 45, 0.48) 58%, rgba(3, 23, 45, 0.16)),
    linear-gradient(0deg, rgba(3, 23, 45, 0.52), transparent 48%);
}

.hero-content {
  position: relative;
  max-width: 740px;
  padding: clamp(80px, 12vw, 160px) clamp(18px, 7vw, 92px) 140px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #8fc8ff;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 5px 0 #061b35, 0 18px 40px rgba(0, 0, 0, 0.42);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  color: #e7e8e7;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions, .section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  background: var(--surface-2);
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  border-color: transparent;
  color: #ffffff;
  background: #0b67f2;
  box-shadow: inset 0 -3px 0 rgba(2, 23, 55, 0.38);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.button.compact { min-height: 38px; padding-inline: 14px; }
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.status-strip {
  position: absolute;
  left: clamp(18px, 7vw, 92px);
  right: clamp(18px, 7vw, 92px);
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(3, 23, 45, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.status-strip div {
  padding: 18px;
  min-width: 0;
}

.status-strip div + div { border-left: 1px solid rgba(255,255,255,0.14); }
.status-strip strong {
  display: block;
  min-height: 1.18em;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-variant-numeric: tabular-nums;
}
.status-strip strong.stat-roll {
  animation: statRoll 850ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.status-strip span { color: #cfd4d8; font-size: 0.9rem; }

.home-about {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1.22fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

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

.home-feature-grid article {
  display: grid;
  gap: 10px;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  padding: clamp(18px, 3vw, 24px);
}

.home-feature-grid strong {
  font-size: 1.08rem;
}

.home-feature-grid span,
.home-band p {
  color: var(--muted);
  line-height: 1.65;
}

.apply-guide {
  display: grid;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 28, 52, 0.5);
}

.apply-guide-heading {
  max-width: 760px;
}

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

.apply-step-card:nth-child(-n + 2) {
  grid-column: 1 / -1;
}

.apply-step-card {
  display: grid;
  gap: 13px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  padding: 14px;
}

.apply-step-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

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

.apply-step-card a {
  color: var(--accent);
  font-weight: 900;
}

.apply-step-number {
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--accent) 58%, var(--line));
  border-radius: 999px;
  background: rgba(35, 116, 255, 0.14);
  color: var(--text);
  padding: 5px 9px;
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.apply-step-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(185, 212, 238, 0.2);
  border-radius: 7px;
  background: #031b34;
}

.apply-step-image {
  display: block;
  width: 100%;
  height: auto;
}

.visual-select,
.visual-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 10px;
}

.visual-select .apply-step-image {
  width: auto;
  max-width: 100%;
  max-height: 390px;
  border-radius: 6px;
}

.visual-submit .apply-step-image {
  border-radius: 6px;
}

.guide-arrow {
  content: "";
  position: absolute;
  width: 48px;
  height: 4px;
  z-index: 5;
  border-radius: 999px;
  background: #f01616;
  box-shadow: 0 0 18px rgba(240, 22, 22, 0.42);
}

.guide-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-top: 4px solid #f01616;
  border-right: 4px solid #f01616;
  transform: translateY(-50%) rotate(45deg);
}

.guide-topbar {
  display: grid;
  grid-template-columns: auto minmax(70px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 74px;
  padding: 10px;
  background: #041f3a;
}

.guide-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: url("/assets/shoreline-banner.png") center / cover;
  border: 1px solid rgba(235, 244, 255, 0.5);
}

.guide-brand-text {
  display: grid;
  gap: 2px;
}

.guide-brand-text strong,
.guide-app-card strong {
  color: #fff;
  font-size: 0.86rem;
}

.guide-brand-text span {
  color: var(--muted);
  font-size: 0.68rem;
}

.guide-nav-lines {
  display: none;
}

.guide-nav-menu {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.guide-nav-menu strong {
  color: #fff;
}

.guide-nav-shot {
  position: absolute;
  inset: 30px 12px auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(185, 212, 238, 0.16);
  border-radius: 7px;
  background: #041f3a;
  padding: 17px 8px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 900;
  white-space: nowrap;
}

.guide-nav-shot strong {
  color: #fff;
}

.guide-nav-lines span {
  width: 38px;
  height: 8px;
  border-radius: 999px;
  background: rgba(235, 244, 255, 0.72);
}

.guide-topbar button,
.guide-app-card button,
.guide-submit-preview button {
  border: 0;
  border-radius: 7px;
  background: var(--accent-2);
  color: #fff;
  font-weight: 900;
}

.guide-topbar button {
  min-height: 34px;
  max-width: 120px;
  padding: 0 9px;
  white-space: nowrap;
  font-size: 0.76rem;
}

.visual-login .guide-arrow {
  right: 60px;
  top: 37px;
  width: 70px;
  transform: rotate(0deg);
}

.guide-app-card {
  position: absolute;
  inset: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #082d54;
  padding: 14px;
}

.guide-app-card.tall {
  inset: 10px;
}

.guide-status {
  width: fit-content;
  border-radius: 999px;
  background: var(--success);
  color: #03172d;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.guide-app-card p {
  margin: 0;
  color: #d6e8fb;
  line-height: 1.42;
  font-size: 0.84rem;
}

.guide-app-card button {
  align-self: end;
  min-height: 42px;
  width: min(214px, 100%);
  justify-self: center;
  margin-top: auto;
  margin-bottom: 2px;
  font-size: 0.96rem;
}

.visual-apply .guide-arrow,
.visual-select .guide-arrow {
  left: 10px;
  right: auto;
  bottom: 34px;
  width: 92px;
  transform: rotate(-28deg);
}

.visual-apply .guide-arrow {
  left: 23%;
  right: auto;
  top: 86px;
  bottom: auto;
  width: 70px;
  transform: rotate(-8deg);
}

.guide-submit-preview {
  position: absolute;
  inset: 12px;
  display: grid;
  gap: 7px;
  align-content: end;
}

.guide-form-label {
  color: #f4f8ff;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1.2;
}

.guide-select-line {
  display: flex;
  align-items: center;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0b3a68;
  color: #fff;
  padding: 0 12px;
  font-size: 0.74rem;
  font-weight: 900;
}

.guide-submit-preview button {
  min-height: 40px;
  font-size: 0.9rem;
}

.visual-submit .guide-arrow {
  left: 8px;
  right: auto;
  bottom: 18px;
  width: 98px;
  transform: rotate(-19deg);
}

.home-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 35, 69, 0.58);
  padding: clamp(36px, 6vw, 64px) clamp(18px, 5vw, 70px);
}

.home-band > * {
  max-width: 1380px;
}

.home-public-tools {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1.25fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
}

.guest-faq-list {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 26px);
}

.guest-faq-item {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(124, 184, 255, 0.16);
}

.guest-faq-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.guest-faq-item h3 {
  margin: 0;
  font-size: 1.02rem;
}

.guest-faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.guest-faq-item a {
  color: var(--accent-strong);
  font-weight: 800;
}

.discord-channel {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 1px 7px;
  background: rgba(88, 101, 242, 0.18);
  color: #cfd4ff;
  font-weight: 800;
}

@keyframes statRoll {
  0% {
    opacity: 0.42;
    transform: translateY(14px);
  }
  45% {
    opacity: 1;
    transform: translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 70px);
  max-width: 1380px;
  margin: 0 auto;
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section-copy {
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

.profile-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: clamp(20px, 3vw, 32px);
}

.settings-panel {
  padding: clamp(20px, 3vw, 32px);
}

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

.profile-avatar {
  width: clamp(84px, 11vw, 124px);
  height: clamp(84px, 11vw, 124px);
  border: 3px solid #0b67f2;
}

.profile-meta {
  display: grid;
  gap: 14px;
}

.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.permission-role-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.permission-role-row {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  padding: 12px 14px;
}

.permission-role-row strong {
  color: var(--text);
}

.permission-role-row span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.demo-login-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
  font-size: 0.84rem;
}

.role-pill.muted {
  color: var(--muted);
  border-color: rgba(185, 212, 238, 0.25);
  background: rgba(16, 46, 78, 0.45);
}

.locked-panel {
  min-height: 280px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  width: min(720px, 100%);
  margin-inline: auto;
  padding: clamp(22px, 4vw, 42px);
  text-align: center;
}

.locked-panel h2 {
  max-width: 100%;
}

.locked-panel p {
  max-width: 620px;
  margin-inline: auto;
  color: var(--muted);
  line-height: 1.65;
}

.confirmation-panel {
  max-width: 820px;
  margin: clamp(32px, 8vw, 82px) auto;
  padding: clamp(24px, 4vw, 42px);
}

.confirmation-panel h2 {
  margin: 16px 0 10px;
}

.confirmation-panel > p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.65;
}

.admin-hidden {
  display: none !important;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.department-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
}

.department-card p {
  color: var(--muted);
  line-height: 1.55;
}

.department-card.closed {
  opacity: 0.78;
}

.media-upload-form {
  margin-bottom: 22px;
}

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

.segmented.directory-tabs {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  flex: 0 0 auto;
  align-self: flex-start;
  grid-template-columns: none;
}

.segmented.directory-tabs button {
  flex: 0 0 auto;
  min-height: 32px;
  min-width: 0;
  padding: 0 12px;
  font-size: 0.88rem;
}

.segmented.support-tabs {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  flex: 0 0 auto;
  align-self: flex-start;
  grid-template-columns: none;
}

.segmented.support-tabs button {
  flex: 0 0 auto;
  min-height: 32px;
  min-width: 0;
  padding: 0 12px;
  font-size: 0.88rem;
}

.directory-grid {
  display: grid;
  gap: 18px;
}

.directory-section {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  padding: 14px;
}

.directory-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 2px 10px;
}

.directory-section-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.directory-section-heading span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
}

.directory-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.directory-section-grid-leadership-pyramid {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.directory-section-grid-leadership-pyramid .directory-card-community-coordinator {
  grid-column: 1 / -1;
  width: min(100%, calc(50% - 6px));
  justify-self: center;
}

.directory-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.directory-card img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  background: var(--surface-2);
}

.directory-card h3,
.directory-card p {
  margin: 0;
}

.directory-card p {
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.role-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.role-pill-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.media-card {
  overflow: hidden;
  padding: 0;
}

.media-preview-button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.media-preview-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.media-preview-button img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-2);
}

.media-card > div {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.media-card h3,
.media-card p {
  margin: 0;
}

.media-card p {
  color: var(--muted);
  line-height: 1.5;
}

.media-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.media-edit-form {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.media-lightbox {
  z-index: 1100;
}

.media-lightbox-card {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(1100px, 96vw);
  max-height: 92vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(12px, 2vw, 18px);
}

.media-lightbox-card img {
  display: block;
  width: 100%;
  max-height: 72vh;
  border-radius: 7px;
  background: var(--surface-2);
  object-fit: contain;
}

.media-lightbox-card h2,
.media-lightbox-card p {
  margin: 0;
}

.media-lightbox-card p {
  color: var(--muted);
  line-height: 1.5;
}

.media-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(2, 16, 30, 0.86);
}

.ticket-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.ticket-card {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
}

.ticket-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.ticket-heading h3,
.ticket-heading p {
  margin: 8px 0 0;
}

.ticket-heading p {
  color: var(--muted);
}

.ticket-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.ticket-card-header h3,
.ticket-card-header p {
  margin: 8px 0 0;
}

.ticket-card-header p {
  color: var(--muted);
}

.ticket-warning {
  color: var(--danger) !important;
  font-weight: 800;
}

.ticket-thread {
  display: grid;
  gap: 10px;
}

.ticket-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-2);
}

.ticket-message.staff {
  border-color: color-mix(in srgb, var(--success) 50%, var(--line));
}

.ticket-message p {
  margin: 6px 0;
  color: var(--text);
  line-height: 1.55;
}

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

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

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
}

.form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.88rem;
}

.required-marker {
  color: var(--danger);
  font-weight: 900;
}

.span { grid-column: 1 / -1; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-2); }
.form-note { grid-column: 1 / -1; margin: 0; min-height: 22px; color: var(--success); font-weight: 800; }

.operations { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: none; }
.operations > * { max-width: 1380px; margin-inline: auto; }
.section-heading { justify-content: space-between; margin-bottom: 22px; }

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(74px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.segmented button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.segmented button:last-child { border-right: 0; }
.segmented button.active { background: var(--accent-2); color: #ffffff; }

.admin-application-type-filter {
  display: grid;
  gap: 6px;
  min-width: 260px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.admin-application-type-filter select {
  min-height: 38px;
  text-transform: none;
  font-size: 0.95rem;
}

.queue-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 18px;
}

.queue-list {
  max-height: 660px;
  overflow: auto;
  padding: 10px;
}

.queue-item {
  width: 100%;
  display: grid;
  gap: 6px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  padding: 14px;
  cursor: pointer;
}

.queue-item:hover, .queue-item.active {
  border-color: var(--line);
  background: var(--surface-2);
}

.queue-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  color: #03172d;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.badge.Approved { background: var(--success); }
.badge.Denied { background: var(--danger); color: #fff; }
.badge.Inactive { background: var(--muted); color: #06182d; }

.review-detail {
  min-height: 420px;
  padding: clamp(20px, 3vw, 32px);
}

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

.detail-box {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
  background: var(--surface-2);
}

.detail-box span { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; }
.detail-box strong { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.denial-reason-detail { grid-column: 1 / -1; }
.review-detail p { color: var(--muted); line-height: 1.65; }

.empty-state {
  min-height: 260px;
  display: grid;
  align-content: center;
  justify-items: start;
}

.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.actions-row select,
.actions-row input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  font-weight: 800;
}
.inline-field {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.patrol-reaction-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.patrol-reaction-counts span {
  min-width: 52px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  padding: 6px 9px;
  color: var(--text);
  font-weight: 800;
}
.patrol-count-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}
.approve { background: var(--success); color: #03172d; border-color: transparent; }
.deny { background: var(--danger); color: #fff; border-color: transparent; }
.danger-outline {
  border-color: color-mix(in srgb, var(--danger) 70%, transparent);
  color: #fff;
  background: rgba(227, 107, 97, 0.16);
}

.denial-panel {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  max-width: 620px;
}

.denial-panel label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.denial-panel select,
.denial-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 28, 52, 0.72);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}

.denial-panel textarea {
  resize: vertical;
  min-height: 92px;
}

.permanent-result-note {
  border: 1px solid color-mix(in srgb, var(--warning) 46%, var(--line));
  border-radius: 7px;
  background: rgba(247, 201, 72, 0.12);
  color: var(--text);
  font-weight: 800;
  margin: 18px 0 0;
  padding: 12px 14px;
}

.compact-heading {
  margin-top: 20px;
}

.admin-heading {
  margin-bottom: 14px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 24px;
}

.admin-tabs button {
  flex: 1 1 170px;
  min-width: 0;
  padding: 8px 10px;
  line-height: 1.15;
}

.editor-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
}

.member-lookup-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: 18px;
}

.member-lookup-results {
  display: grid;
  gap: 18px;
}

.action-center-lookup {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: 18px;
}

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

.action-member-card,
.action-center-form {
  padding: clamp(18px, 3vw, 28px);
}

.action-member-card {
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
}

.danger-zone {
  border-color: color-mix(in srgb, var(--danger) 48%, var(--line));
}

.member-profile-card {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.member-profile-heading {
  display: flex;
  gap: 16px;
  align-items: center;
}

.compact-avatar {
  width: 72px;
  height: 72px;
  border-width: 2px;
}

.avatar-placeholder {
  background: linear-gradient(135deg, var(--surface-2), rgba(11, 103, 242, 0.32));
}

.member-application-groups,
.member-application-list,
.discipline-list {
  display: grid;
  gap: 10px;
}

.discipline-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  padding: 14px;
}

.discipline-card.appealed {
  border-color: color-mix(in srgb, var(--warning) 48%, var(--line));
}

.discipline-card.inactive {
  opacity: 0.78;
}

.discipline-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.discipline-card h3,
.discipline-card p {
  margin: 6px 0 0;
}

.discipline-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: right;
}

.appeal-box {
  display: grid;
  gap: 4px;
  border: 1px solid color-mix(in srgb, var(--warning) 44%, var(--line));
  border-radius: 7px;
  padding: 10px 12px;
  background: rgba(247, 201, 72, 0.1);
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 8, 18, 0.72);
}

.site-modal-card {
  display: grid;
  gap: 16px;
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 28px);
}

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

.site-dialog-card {
  max-width: 520px;
}

.site-dialog-card > p {
  color: var(--muted);
  line-height: 1.6;
}

.site-dialog-input {
  display: grid;
  gap: 8px;
}

.site-dialog-input span {
  color: var(--muted);
  font-weight: 800;
}

.site-modal-actions {
  justify-content: flex-end;
}

.member-application-section {
  display: grid;
  gap: 10px;
}

.membership-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  gap: 16px;
}

.membership-tool-card {
  display: grid;
  gap: 8px;
  padding: clamp(18px, 3vw, 28px);
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.membership-tool-card strong {
  font-size: 1.35rem;
}

.membership-tool-card span:last-child {
  color: var(--muted);
  line-height: 1.55;
}

.membership-tool-card.coming-soon {
  cursor: not-allowed;
  opacity: 0.72;
}

.membership-tool-card.coming-soon .eyebrow {
  color: var(--warning);
}

.membership-subpage {
  display: grid;
  gap: 16px;
}

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

.resource-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(18px, 3vw, 26px);
}

.resource-card h4 {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
}

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

.resource-link-list {
  display: grid;
  gap: 10px;
}

.resource-link-list a,
.resource-placeholder {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  padding: 10px 12px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.resource-link-list a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.resource-placeholder {
  color: var(--muted);
}

.highlight-resource {
  border-color: rgba(98, 214, 160, 0.42);
}

.resource-code {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(98, 214, 160, 0.42);
  border-radius: 7px;
  background: rgba(98, 214, 160, 0.08);
  padding: 12px;
}

.resource-code span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-code strong {
  color: var(--success);
  font-size: 1.1rem;
  letter-spacing: 0;
}

.member-application-section h4 {
  margin: 0;
  color: var(--text);
}

.member-application-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  padding: 12px 14px;
}

.loa-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.loa-review-card {
  gap: 18px;
}

.loa-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.loa-reason-box {
  grid-column: 1 / -1;
}

.loa-review-actions {
  justify-content: flex-start;
}

.member-application-row span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.member-application-row .application-denial-reason {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.compact-empty {
  min-height: 80px;
}

.department-editor {
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: 18px;
}

.department-toggle-list {
  display: grid;
  gap: 12px;
}

.storage-warning,
.storage-note {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--muted);
  background: var(--surface-2);
}

.storage-warning {
  border-color: color-mix(in srgb, var(--danger) 58%, var(--line));
}

.storage-warning strong {
  color: var(--danger);
}

.department-toggle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px;
}

.order-controls {
  display: inline-flex;
  gap: 6px;
}

.department-toggle-row.active {
  border-color: color-mix(in srgb, var(--accent-2) 70%, white);
  box-shadow: inset 0 0 0 1px rgba(11, 103, 242, 0.3);
}

.department-toggle-row p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 108px;
  color: var(--text);
}

.toggle-label input {
  width: 20px;
  height: 20px;
}

.role-lock-field {
  grid-column: span 2;
  min-width: 0;
}

.role-lock-note {
  margin: 0;
  color: #8fc8ff;
  font-weight: 900;
}

.question-editor-list {
  display: grid;
  gap: 12px;
}

.question-editor-toolbar,
.question-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.question-editor-toolbar h3,
.question-editor-toolbar .eyebrow {
  margin-bottom: 0;
}

.question-editor-footer {
  justify-content: flex-end;
}

.dynamic-question-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.dynamic-question-list label {
  grid-column: 1 / -1;
}

.question-editor-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-2);
}

.question-row-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compact-icon {
  width: 34px;
  height: 34px;
  min-height: 34px;
  font-weight: 900;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.editor-checkbox {
  align-self: end;
  min-height: 49px;
}

.privacy-policy {
  display: grid;
  gap: 18px;
  max-width: 980px;
  line-height: 1.7;
}

.privacy-policy h3,
.privacy-policy p {
  margin: 0;
}

.privacy-policy h3 {
  margin-top: 8px;
  color: var(--text);
}

.privacy-policy p {
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 70px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-link {
  color: var(--accent);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-status {
  display: grid;
  gap: 5px;
}

.footer-status span {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  font-size: 0.78rem;
  font-weight: 700;
}

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

.discord-footer-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid rgba(88, 101, 242, 0.55);
  border-radius: 8px;
  padding: 0 18px;
  background: #5865f2;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(88, 101, 242, 0.24);
}

.discord-footer-button:hover {
  background: #4752c4;
}

.discord-footer-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .grid-two, .queue-layout { grid-template-columns: 1fr; }
  .department-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .profile-panel { grid-template-columns: 1fr; }
  .directory-section-grid-leadership-pyramid { grid-template-columns: 1fr; }
  .directory-section-grid-leadership-pyramid .directory-card-community-coordinator {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
  }
  .directory-card { grid-template-columns: 1fr; justify-items: start; }
  .member-lookup-form { grid-template-columns: 1fr; }
  .action-center-lookup,
  .action-center-grid { grid-template-columns: 1fr; }
  .home-intro,
  .home-band,
  .home-public-tools { grid-template-columns: 1fr; }
  .apply-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-feature-grid { grid-template-columns: 1fr; }
  .member-application-row { grid-template-columns: 1fr; align-items: start; }
  .admin-tabs button { flex-basis: 190px; }
}

@media (max-width: 640px) {
  .hero { min-height: 760px; }
  .hero-content { padding-top: 76px; padding-bottom: 220px; }
  .hero > img { object-position: center top; }
  .status-strip { grid-template-columns: 1fr; }
  .status-strip div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,0.14); }
  .apply-step-grid { grid-template-columns: 1fr; }
  .form, .dynamic-question-list, .editor-form, .discipline-form { grid-template-columns: 1fr; }
  .department-toggle-row { grid-template-columns: 1fr; }
  .segmented { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-tabs button { flex-basis: 46%; }
  .footer { flex-direction: column; }
}
