:root {
  --bg: #070707;
  --bg-soft: #0d0d0d;
  --panel: #111111;
  --panel-2: #151515;
  --line: #262626;
  --line-strong: #343434;
  --text: #f6f7fb;
  --muted: #9da3ae;
  --muted-2: #6f7480;
  --dispatchx-blue: #38a8ff;
  --dispatchx-blue-2: #1877f2;
  --dispatchx-blue-soft: rgba(56, 168, 255, 0.14);
  --dispatchx-green: #45e67a;
  --dispatchx-yellow: #f6cf43;
  --dispatchx-red: #ff7878;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(79, 140, 255, 0.2), transparent 34%),
    linear-gradient(180deg, #091525 0%, #050b14 100%);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  font-weight: 700;
}

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

.standard-page {
  padding: 28px 0 72px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

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

.site-nav a,
.site-nav button,
.button,
.status-uptime,
.status-badge,
.doc-tab {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

.site-nav a,
.site-nav button,
.button,
.doc-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.site-nav a:hover,
.site-nav button:hover,
.button:hover,
.doc-tab:hover {
  transform: translateY(-1px);
  border-color: #3a3a3a;
  background: rgba(255, 255, 255, 0.06);
}

.button.primary,
.site-nav .primary {
  background: linear-gradient(135deg, var(--dispatchx-blue-2), var(--dispatchx-blue));
  border-color: transparent;
  color: #03111f;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(24, 119, 242, 0.3);
}

.hero-center {
  text-align: center;
  max-width: 1040px;
  margin: 0 auto 46px;
}

.eyebrow {
  color: var(--dispatchx-blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 16px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

h3 {
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero-center p,
.section-subtext,
.muted,
.doc-copy,
.card-copy {
  color: var(--muted);
  line-height: 1.72;
}

.accent-dispatchx {
  color: var(--dispatchx-blue);
}

.hero-actions,
.card-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.section-title {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

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

.glow-card {
  position: relative;
}

.glow-card::after {
  content: "";
  position: absolute;
  inset: auto 22px -24px 22px;
  height: 40px;
  background: radial-gradient(circle, rgba(56, 168, 255, 0.18), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
}

.team-grid,
.career-grid,
.status-list,
.two-column {
  display: grid;
  gap: 18px;
}

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

.two-column {
  grid-template-columns: 1.05fr 1fr;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.login-shell {
  width: min(760px, 100%);
  text-align: center;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 28px;
}

.login-brand img {
  width: 54px;
  height: 54px;
}

.login-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 42px 38px 34px;
  background: #101010;
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.login-card h1 {
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  margin-bottom: 28px;
}

.consent-block {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
  text-align: left;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0c0c0c;
  color: var(--muted);
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--dispatchx-blue);
}

.consent-row a {
  color: #cfd9ea;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.discord-button {
  width: 100%;
  padding: 18px 22px;
  border-radius: 18px;
  border: 0;
  background: linear-gradient(135deg, #216ee8, #38a8ff);
  color: #03111f;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(24, 119, 242, 0.3);
}

.helper-copy {
  margin-top: 18px;
  color: var(--muted);
}

.helper-copy a {
  color: var(--dispatchx-blue);
}

.message {
  display: none;
  margin: 14px 0 0;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 700;
}

.message.show {
  display: block;
}

.message.success {
  background: rgba(69, 230, 122, 0.12);
  color: #aef6c0;
}

.message.error {
  background: rgba(255, 120, 120, 0.12);
  color: #ffc4c4;
}

.docs-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 230px;
  gap: 24px;
  align-items: start;
}

.docs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 18px;
  margin-bottom: 6px;
}

.docs-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 8px 10px;
  border-radius: 999px;
  border: 1px solid #202a37;
  background: rgba(11, 18, 29, 0.92);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.docs-search-button {
  position: relative;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9fb1c9;
  cursor: pointer;
  flex: 0 0 auto;
}

.docs-search-button::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.docs-search-button::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 8px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
  border-radius: 999px;
}

.docs-search-button:hover {
  color: #d7e6f9;
}

.docs-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f4f8ff;
  font-size: 0.95rem;
  min-width: 0;
}

.docs-search input::placeholder {
  color: var(--muted);
}

.docs-search kbd {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #243247;
  background: rgba(255, 255, 255, 0.04);
  color: #aebfd3;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.docs-search:focus-within {
  border-color: rgba(56, 168, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(56, 168, 255, 0.12);
}

.doc-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.doc-tab {
  border: 1px solid #1d2a3d;
  background: #0f1928;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
}

.doc-tab.active {
  background: rgba(56, 168, 255, 0.18);
  border-color: rgba(56, 168, 255, 0.5);
  color: #dff1ff;
}

.docs-sidebar,
.docs-content,
.docs-toc {
  min-height: 100%;
}

.docs-sidebar {
  position: sticky;
  top: 14px;
  padding-right: 10px;
}

.docs-nav-group {
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #162033;
}

.docs-nav-group h3 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa6c2;
  margin-bottom: 14px;
}

.docs-nav-link {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  margin-bottom: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}

.docs-nav-link:hover,
.docs-nav-link.active {
  background: rgba(56, 168, 255, 0.14);
  color: #e7f4ff;
}

.docs-content {
  padding-top: 12px;
}

.docs-alert {
  border: 1px solid rgba(56, 168, 255, 0.4);
  background: rgba(56, 168, 255, 0.1);
  color: #cde9ff;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.docs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8da3bf;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.docs-breadcrumb span:last-child {
  color: #dce9f9;
}

.docs-section {
  margin: 34px 0;
}

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

.docs-guide-card {
  border: 1px solid #1b2a40;
  border-radius: 14px;
  background: #0d1522;
  padding: 16px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.docs-guide-card:hover {
  border-color: #2f4f78;
  transform: translateY(-1px);
}

.docs-guide-card h3 {
  margin-bottom: 6px;
}

.docs-guide-card p {
  margin: 0;
  font-size: 0.94rem;
}

.docs-section ul,
.docs-section ol {
  color: var(--muted);
  line-height: 1.8;
  margin: 10px 0 0;
  padding-left: 18px;
}

.docs-action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.docs-code {
  margin: 14px 0 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #242424;
  background: #0b0b0b;
  color: #dbe5f5;
  overflow-x: auto;
}

.docs-code code {
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.7;
}

.docs-banner {
  height: 44px;
  border-radius: 12px;
  margin: 28px 0 34px;
  background:
    linear-gradient(0deg, rgba(255,255,255,0.08), rgba(255,255,255,0.08)),
    linear-gradient(90deg, rgba(24, 119, 242, 0.88), rgba(56, 168, 255, 0.92));
  position: relative;
  overflow: hidden;
}

.docs-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20px 22px, #ffffff 1px, transparent 1px);
  background-size: 34px 18px;
}

.docs-banner::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  background: url("/images/logo.png") center/contain no-repeat;
}

.docs-content p {
  max-width: 860px;
  color: var(--muted);
  line-height: 1.8;
}

.docs-footer-card {
  margin-top: 54px;
  width: 320px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0f0f0f;
}

.docs-toc {
  position: sticky;
  top: 16px;
  padding-top: 34px;
  border-left: 1px solid #15243a;
  padding-left: 14px;
}

.docs-toc h3 {
  color: #e8eef9;
}

.docs-toc a {
  display: block;
  margin-top: 12px;
  color: #8fbde8;
  font-size: 0.93rem;
}

.dx-note {
  margin-bottom: 14px;
  border: 1px solid rgba(56, 168, 255, 0.5);
  background: rgba(24, 119, 242, 0.14);
  color: #d9efff;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 0.9rem;
  text-align: center;
}

.dx-docs-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 240px;
  gap: 26px;
  align-items: start;
}

.dx-docs-left,
.dx-docs-right {
  position: sticky;
  top: 14px;
}

.dx-docs-card {
  border: 1px solid #1f2d43;
  border-radius: 14px;
  background: #0d1523;
  padding: 14px;
  margin-bottom: 14px;
}

.dx-docs-card h3 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9cb4d0;
}

.dx-docs-card a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: #b8c7da;
  font-size: 0.94rem;
}

.dx-docs-card a:hover,
.dx-docs-card a.active {
  background: rgba(56, 168, 255, 0.16);
  color: #edf5ff;
}

.dx-docs-main {
  border: 1px solid #1f2d43;
  background: #0b121d;
  border-radius: 18px;
  padding: 28px;
}

.dx-breadcrumb {
  color: #94a8bf;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.dx-docs-main h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.06;
  margin-bottom: 12px;
}

.dx-docs-main p {
  color: #aab6c8;
  line-height: 1.75;
  max-width: 840px;
}

.dx-docs-main ul,
.dx-docs-main ol {
  color: #aab6c8;
  line-height: 1.75;
}

.dx-hero-banner {
  height: 188px;
  border-radius: 16px;
  margin: 22px 0 8px;
  border: 1px solid #243750;
  background:
    linear-gradient(130deg, rgba(24, 119, 242, 0.26), rgba(56, 168, 255, 0.06)),
    #091423;
  display: grid;
  place-items: center;
}

.dx-hero-banner img {
  width: 138px;
  height: 138px;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(56, 168, 255, 0.34));
}

.dx-section {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #1a2940;
}

.dx-section h2 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

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

.dx-guide {
  border: 1px solid #20314a;
  border-radius: 12px;
  padding: 12px;
  background: #0d1624;
}

.dx-guide h4 {
  margin: 0 0 6px;
}

.dx-guide p {
  margin: 0;
  font-size: 0.92rem;
}

.dx-guides .dx-guide:hover {
  border-color: #335683;
}

.dx-prev-next {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.dx-prev-next a {
  border: 1px solid #283a55;
  border-radius: 999px;
  padding: 10px 14px;
  color: #e4eefb;
  font-weight: 700;
  background: rgba(56, 168, 255, 0.08);
}

.legal-docs-grid {
  grid-template-columns: 220px minmax(0, 1fr) 220px;
}

.legal-page .policy-header {
  margin-bottom: 22px;
  text-align: left;
}

.legal-page .policy-header h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.06;
  margin-bottom: 10px;
  color: var(--text);
}

.legal-page .policy-header p {
  color: var(--muted);
  font-size: 0.96rem;
}

.legal-page .policy-section {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid #1a2940;
}

.legal-page .policy-section h2 {
  font-size: 1.45rem;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-page .policy-section h3 {
  color: var(--dispatchx-blue);
}

.legal-page .policy-section p,
.legal-page .policy-section li {
  color: #aab6c8;
}

.legal-page .policy-section ul {
  margin-left: 18px;
}

.legal-page .highlight-box {
  background: #0d1624;
  border: 1px solid #20314a;
  border-left: 4px solid var(--dispatchx-blue);
  border-radius: 14px;
}

.legal-page .highlight-box strong {
  color: #dff1ff;
}

.legal-page .last-updated {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #1a2940;
  color: var(--muted);
}

.legal-page .last-updated p {
  margin-bottom: 0;
}

.legal-page .dx-docs-main {
  padding-top: 30px;
}

.legal-page .dx-docs-main > .dx-breadcrumb {
  margin-bottom: 18px;
}

.legal-page .dx-docs-main > .dx-prev-next {
  margin-top: 30px;
}

@media (max-width: 1100px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .docs-sidebar,
  .docs-toc {
    position: static;
    padding-top: 0;
    border-left: 0;
    padding-left: 0;
  }

  .docs-card-grid {
    grid-template-columns: 1fr;
  }

  .dx-docs-grid {
    grid-template-columns: 1fr;
  }

  .dx-docs-left,
  .dx-docs-right {
    position: static;
  }

  .dx-guides {
    grid-template-columns: 1fr;
  }
}

.staff-hero {
  margin-bottom: 48px;
}

.staff-group-title {
  font-size: 1.9rem;
  margin: 40px 0 20px;
}

.team-card {
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: #101010;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 114px;
}

.team-card.blue {
  border-color: rgba(56, 168, 255, 0.8);
}

.team-card.green {
  border-color: rgba(69, 230, 122, 0.7);
}

.team-card.red {
  border-color: rgba(255, 120, 120, 0.72);
}

.team-card.orange {
  border-color: rgba(246, 207, 67, 0.7);
}

.avatar-badge {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.5), rgba(56, 168, 255, 0.2));
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.avatar-badge img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.staff-profile-link {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.staff-profile-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(56, 168, 255, 0.18);
}

.team-meta {
  display: grid;
  gap: 4px;
}

.team-handle {
  color: var(--muted);
}

.team-role {
  color: var(--dispatchx-blue);
  font-weight: 700;
}

.careers-panel {
  padding: 28px;
}

.careers-hero {
  margin-bottom: 76px;
}

.careers-feature {
  max-width: 1180px;
  margin: 0 auto;
}

.career-role-grid {
  display: grid;
  gap: 24px;
}

.career-role-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 26px;
  min-height: 360px;
}

.career-role-card .card-actions {
  align-self: start;
  justify-self: end;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.career-role-card .card-actions .button {
  width: auto;
  min-width: 140px;
  min-height: 52px;
  padding: 14px 24px;
  white-space: nowrap;
}

.role-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #1a1a1a;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--dispatchx-blue);
  font-size: 1.2rem;
}

.requirements-title {
  margin-top: 18px;
  margin-bottom: 12px;
  color: var(--muted-2);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

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

.requirement-list li {
  color: #d8e0eb;
}

.requirement-list li::before {
  content: "›";
  margin-right: 12px;
  color: var(--dispatchx-blue);
  font-weight: 800;
}

.application-form-panel {
  padding: 28px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #2b2b2b;
  background: #0c0c0c;
  color: var(--text);
  border-radius: 16px;
  padding: 15px 16px;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(56, 168, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(56, 168, 255, 0.12);
}

.application-form-panel .consent-row {
  padding: 0;
  border: 0;
  background: transparent;
}

.status-header {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 42px;
}

.status-header h1 {
  margin-bottom: 10px;
}

.status-summary-row {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.status-badge,
.status-uptime {
  padding: 12px 20px;
  font-weight: 800;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.status-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.operational {
  color: var(--dispatchx-green);
  border-color: rgba(69, 230, 122, 0.38);
  background: rgba(69, 230, 122, 0.08);
}

.status-badge.maintenance {
  color: var(--dispatchx-yellow);
  border-color: rgba(246, 207, 67, 0.38);
  background: rgba(246, 207, 67, 0.08);
}

.status-badge.degraded,
.status-badge.incident {
  color: var(--dispatchx-red);
  border-color: rgba(255, 120, 120, 0.38);
  background: rgba(255, 120, 120, 0.08);
}

.status-uptime {
  color: var(--muted);
}

.status-panel {
  padding: 26px 26px 18px;
}

.status-service-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 8px;
  border-top: 1px solid #1d1d1d;
}

.status-service-row:first-child {
  margin-top: 18px;
}

.service-metric {
  color: var(--dispatchx-blue);
  font-weight: 700;
}

.linked-roles-page {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 560px);
  gap: 48px;
  align-items: center;
  margin-top: 24px;
}

.linked-roles-copy {
  max-width: 660px;
}

.linked-roles-copy h1 {
  font-size: clamp(3rem, 6vw, 5rem);
}

.linked-roles-copy p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 580px;
}

.linked-roles-copy .stack-actions {
  justify-content: flex-start;
  margin-top: 26px;
}

.linked-roles-modal {
  padding: 28px;
  background: rgba(17, 17, 17, 0.86);
  border-color: rgba(255, 255, 255, 0.12);
}

.linked-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.linked-modal-header h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.linked-modal-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.linked-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.linked-role-list {
  display: grid;
  gap: 10px;
}

.linked-role-card {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.linked-role-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.linked-role-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.linked-role-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #06111f;
}

.linked-role-card.developer .linked-role-icon {
  background: var(--dispatchx-blue);
}

.linked-role-card.management .linked-role-icon {
  background: var(--dispatchx-green);
}

.linked-role-card.qa .linked-role-icon {
  background: #78d8ff;
}

.linked-role-card.support .linked-role-icon {
  background: var(--dispatchx-yellow);
}

.linked-role-status {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.linked-meta-card {
  padding: 24px;
}

.linked-meta-card code {
  display: inline-flex;
  margin: 8px 8px 0 0;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 168, 255, 0.24);
  background: rgba(56, 168, 255, 0.08);
  color: #dceeff;
}

.footer-note {
  margin-top: 36px;
  text-align: center;
  color: var(--muted);
}

.dx-footer {
  margin-top: 84px;
  padding: 54px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.dx-footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.dx-footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(140px, 0.6fr));
  gap: 54px;
  align-items: start;
}

.dx-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 22px;
}

.dx-footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.dx-footer-about {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dx-footer-column h3 {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.dx-footer-column a {
  display: block;
  width: fit-content;
  margin: 0 0 12px;
  color: var(--muted);
  transition: color 0.18s ease, transform 0.18s ease;
}

.dx-footer-column a:hover {
  color: var(--text);
  transform: translateX(2px);
}

.dx-footer-bottom {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.dx-footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.dx-footer-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dx-footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.dx-footer-pill.status {
  color: var(--dispatchx-green);
  border-color: rgba(69, 230, 122, 0.42);
  background: rgba(69, 230, 122, 0.08);
}

.dx-footer-pill.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.dx-footer-socials {
  display: flex;
  gap: 10px;
}

.dx-footer-socials a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
}

.dx-footer-socials a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

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

  .docs-sidebar,
  .docs-toc {
    position: static;
    padding-top: 0;
  }

  .team-grid,
  .two-column,
  .linked-roles-page,
  .linked-meta-grid,
  .dx-footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .site-header,
  .docs-topbar,
  .career-role-card,
  .status-service-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header,
  .docs-topbar {
    display: flex;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 32px 22px 26px;
  }

  .linked-role-card {
    grid-template-columns: 42px 1fr;
  }

  .linked-role-status {
    grid-column: 2;
  }

  .career-role-card .card-actions {
    justify-self: start;
  }

  .dx-footer {
    margin-top: 56px;
  }

  .dx-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-shell {
    width: min(100%, calc(100% - 24px));
  }
}
