:root {
  color-scheme: dark;
  --elite-space-0: #030405;
  --elite-space-1: #07090b;
  --elite-space-2: #0c1116;
  --elite-space-3: #121920;
  --elite-panel-bg: rgba(9, 12, 15, 0.94);
  --elite-panel-bg-strong: rgba(4, 6, 8, 0.98);
  --elite-panel-bg-soft: rgba(14, 18, 22, 0.74);
  --elite-panel-border: rgba(255, 153, 54, 0.38);
  --elite-panel-border-strong: rgba(255, 174, 92, 0.72);
  --elite-panel-border-cool: rgba(89, 216, 223, 0.34);
  --elite-grid-line: rgba(255, 153, 54, 0.08);
  --elite-grid-line-cool: rgba(89, 216, 223, 0.1);
  --elite-text: #ecf4f6;
  --elite-text-dim: #b2c0c6;
  --elite-text-muted: #7b8b94;
  --elite-link: #59d8df;
  --elite-link-hover: #a8f7ff;
  --elite-accent: #ff962d;
  --elite-accent-strong: #ffb768;
  --elite-accent-soft: rgba(255, 150, 45, 0.16);
  --elite-success: #7ef2b2;
  --elite-warning: #ffd067;
  --elite-danger: #ff7868;
  --elite-shadow: 0 24px 64px rgba(0, 0, 0, 0.48);
  --elite-radius: 16px;
  --elite-radius-sm: 10px;
  --elite-font-sans: "Eurostile", "Eurostile Extended", Bahnschrift, "Segoe UI", "Arial Narrow", Arial, sans-serif;
  --elite-font-mono: "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --elite-page-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background:
    radial-gradient(circle at top, rgba(255, 150, 45, 0.08), transparent 36%),
    radial-gradient(circle at 85% 15%, rgba(89, 216, 223, 0.06), transparent 22%),
    linear-gradient(180deg, #060708 0%, #020304 100%);
  background-attachment: fixed;
}

body {
  margin: 0;
  color: var(--elite-text);
  font-family: var(--elite-font-sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(255, 150, 45, 0.28);
  color: var(--elite-text);
}

* {
  scrollbar-color: rgba(255, 150, 45, 0.65) rgba(255, 255, 255, 0.04);
}

.elite-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--elite-text);
  font-family: var(--elite-font-sans);
  background:
    radial-gradient(circle at top, rgba(255, 150, 45, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(7, 10, 13, 0.94) 0%, rgba(3, 4, 6, 0.98) 100%);
}

.elite-shell > :not(.elite-stars) {
  position: relative;
  z-index: 1;
}

.elite-shell h1,
.elite-shell h2,
.elite-shell h3,
.elite-shell h4,
.elite-shell h5,
.elite-shell h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.06em;
}

.elite-shell h1 {
  color: var(--elite-accent-strong);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  text-transform: uppercase;
}

.elite-shell h2 {
  color: var(--elite-text);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.elite-shell p,
.elite-shell li,
.elite-shell dt,
.elite-shell dd {
  color: var(--elite-text-dim);
}

.elite-shell p {
  margin: 0;
}

.elite-shell p + p {
  margin-top: 0.9rem;
}

.elite-shell ul,
.elite-shell ol {
  margin: 0;
  padding-left: 1.2rem;
}

.elite-shell strong,
.elite-docs strong {
  color: var(--elite-text);
}

.elite-page {
  position: relative;
  z-index: 1;
  width: min(var(--elite-page-width), calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.elite-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.9;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.8px) 0 0 / 180px 180px,
    radial-gradient(circle at 84% 26%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.8px) 0 0 / 240px 240px,
    radial-gradient(circle at 34% 72%, rgba(89, 216, 223, 0.42) 0 1.2px, transparent 2px) 0 0 / 320px 320px,
    radial-gradient(circle at 68% 58%, rgba(255, 155, 67, 0.28) 0 1.2px, transparent 2px) 0 0 / 260px 260px;
}

.elite-stars::before,
.elite-stars::after {
  content: "";
  position: absolute;
  inset: 0;
}

.elite-stars::before {
  background:
    linear-gradient(180deg, rgba(255, 150, 45, 0.08), transparent 28%),
    radial-gradient(circle at 50% -10%, rgba(255, 183, 104, 0.18), transparent 42%);
}

.elite-stars::after {
  inset: 52% -12% -18%;
  background-image:
    linear-gradient(rgba(255, 150, 45, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 150, 45, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(89, 216, 223, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 216, 223, 0.06) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px, 18px 18px, 18px 18px;
  transform: perspective(1200px) rotateX(78deg);
  transform-origin: center top;
  opacity: 0.34;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.95));
}

.elite-shell a:not(.elite-button):not(.elite-button-secondary),
.elite-docs a:not(.elite-button):not(.elite-button-secondary) {
  color: var(--elite-link);
  text-decoration: none;
  border-bottom: 1px solid rgba(89, 216, 223, 0.34);
  text-shadow: 0 0 14px rgba(89, 216, 223, 0.16);
  transition: color 160ms ease, border-color 160ms ease, text-shadow 160ms ease;
}

.elite-shell a:not(.elite-button):not(.elite-button-secondary):hover,
.elite-shell a:not(.elite-button):not(.elite-button-secondary):focus-visible,
.elite-docs a:not(.elite-button):not(.elite-button-secondary):hover,
.elite-docs a:not(.elite-button):not(.elite-button-secondary):focus-visible {
  color: var(--elite-link-hover);
  border-color: rgba(168, 247, 255, 0.66);
  text-shadow: 0 0 18px rgba(168, 247, 255, 0.28);
}

.elite-shell :focus-visible,
.elite-docs :focus-visible {
  outline: 2px solid rgba(89, 216, 223, 0.8);
  outline-offset: 3px;
}

.elite-panel,
.elite-docs {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12, 16, 20, 0.94) 0%, rgba(5, 7, 9, 0.98) 100%) padding-box,
    linear-gradient(135deg, rgba(255, 170, 86, 0.78), rgba(255, 170, 86, 0.12) 40%, rgba(89, 216, 223, 0.24) 100%) border-box;
  border: 1px solid transparent;
  border-radius: calc(var(--elite-radius) + 2px);
  box-shadow: var(--elite-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 24px rgba(255, 150, 45, 0.06);
}

.elite-panel {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.elite-panel::before,
.elite-docs::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 150, 45, 0.72), rgba(89, 216, 223, 0.14) 72%, transparent);
  opacity: 0.8;
}

.elite-panel > *,
.elite-docs > * {
  position: relative;
  z-index: 1;
}

body.elite-docs {
  min-height: calc(100vh - 1.5rem);
  margin: clamp(0.75rem, 2vw, 1.5rem) auto;
  max-width: min(1120px, calc(100% - 1rem));
  padding: clamp(1.25rem, 3vw, 3rem);
  overflow-x: hidden;
  overflow-y: auto;
}

.elite-docs {
  color: var(--elite-text);
  font-family: var(--elite-font-sans);
}

.elite-chip,
.elite-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.elite-kicker {
  color: var(--elite-accent-strong);
  margin: 0;
}

.elite-chip {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 150, 45, 0.12), rgba(255, 150, 45, 0.04));
  border: 1px solid rgba(255, 150, 45, 0.22);
  color: var(--elite-accent-strong);
  box-shadow: inset 0 0 14px rgba(255, 150, 45, 0.08), 0 0 18px rgba(255, 150, 45, 0.06);
}

.elite-button,
.elite-button-secondary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 2.85rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.elite-button {
  color: #1a1209;
  background: linear-gradient(180deg, #ffbd78 0%, #ff962d 55%, #d96e09 100%);
  border-color: rgba(255, 205, 145, 0.7);
  box-shadow: 0 0 0 1px rgba(255, 150, 45, 0.2), 0 16px 32px rgba(255, 120, 24, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.elite-button-secondary {
  color: var(--elite-link);
  background: linear-gradient(180deg, rgba(9, 12, 15, 0.98), rgba(5, 7, 8, 0.96));
  border-color: rgba(89, 216, 223, 0.3);
  box-shadow: inset 0 0 18px rgba(89, 216, 223, 0.05), 0 12px 28px rgba(0, 0, 0, 0.32);
}

a.elite-button,
a.elite-button-secondary,
.elite-nav a {
  border-bottom: 0;
}

.elite-button:hover,
.elite-button:focus-visible,
.elite-button-secondary:hover,
.elite-button-secondary:focus-visible {
  transform: translateY(-1px);
}

.elite-button:hover,
.elite-button:focus-visible {
  box-shadow: 0 0 0 1px rgba(255, 183, 104, 0.35), 0 18px 36px rgba(255, 120, 24, 0.32), 0 0 28px rgba(255, 150, 45, 0.25);
}

.elite-button-secondary:hover,
.elite-button-secondary:focus-visible {
  color: var(--elite-link-hover);
  border-color: rgba(168, 247, 255, 0.42);
  box-shadow: inset 0 0 22px rgba(89, 216, 223, 0.08), 0 16px 32px rgba(0, 0, 0, 0.38), 0 0 18px rgba(89, 216, 223, 0.16);
}

.elite-button:disabled,
.elite-button-secondary:disabled,
.elite-button.is-disabled,
.elite-button-secondary.is-disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
  box-shadow: none;
}

.elite-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(12, 15, 18, 0.96), rgba(6, 8, 10, 0.96));
  border: 1px solid rgba(255, 150, 45, 0.2);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), inset 0 0 16px rgba(255, 150, 45, 0.04);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.elite-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 1rem;
}

.elite-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.elite-stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  font-variant-numeric: tabular-nums;
}

.elite-table {
  width: 100%;
  overflow-x: auto;
  font-variant-numeric: tabular-nums;
  border-radius: var(--elite-radius);
}

table.elite-table,
.elite-table table,
.elite-docs table {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  background: linear-gradient(180deg, rgba(8, 11, 13, 0.98), rgba(5, 7, 9, 0.96));
  border: 1px solid rgba(255, 150, 45, 0.22);
  border-radius: var(--elite-radius-sm);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

table.elite-table caption,
.elite-table table caption,
.elite-docs table caption {
  padding: 0 0 0.85rem;
  color: var(--elite-text-dim);
  text-align: left;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

table.elite-table th,
table.elite-table td,
.elite-table table th,
.elite-table table td,
.elite-docs th,
.elite-docs td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 150, 45, 0.12);
  text-align: left;
  vertical-align: top;
}

table.elite-table thead th,
.elite-table table thead th,
.elite-docs thead th {
  color: var(--elite-accent-strong);
  background: linear-gradient(180deg, rgba(255, 150, 45, 0.12), rgba(255, 150, 45, 0.04));
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

table.elite-table tbody tr:nth-child(even),
.elite-table table tbody tr:nth-child(even),
.elite-docs tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

table.elite-table tbody tr:hover,
.elite-table table tbody tr:hover,
.elite-docs tbody tr:hover {
  background: rgba(89, 216, 223, 0.05);
}

table.elite-table tr:last-child td,
.elite-table table tr:last-child td,
.elite-docs tr:last-child td {
  border-bottom: 0;
}

.elite-table .is-numeric,
.elite-docs .is-numeric {
  text-align: right;
}

.elite-empty {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px dashed rgba(89, 216, 223, 0.24);
  border-radius: var(--elite-radius);
  background: linear-gradient(180deg, rgba(8, 11, 13, 0.9), rgba(5, 7, 9, 0.82));
  color: var(--elite-text-dim);
  text-align: center;
  box-shadow: inset 0 0 24px rgba(89, 216, 223, 0.04);
}

.elite-empty strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--elite-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.elite-actions,
.elite-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.elite-stack {
  display: grid;
  gap: 1rem;
}

.elite-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.elite-center {
  text-align: center;
}

.elite-subtle {
  color: var(--elite-text-dim);
}

.elite-scroll-x {
  overflow-x: auto;
}

.elite-docs > :first-child {
  margin-top: 0;
}

.elite-docs h1,
.elite-docs h2,
.elite-docs h3,
.elite-docs h4,
.elite-docs h5,
.elite-docs h6 {
  color: var(--elite-text);
  font-family: var(--elite-font-sans);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.elite-docs h1 {
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 150, 45, 0.24);
  color: var(--elite-accent-strong);
  font-size: clamp(2rem, 5vw, 3.1rem);
  text-transform: uppercase;
}

.elite-docs h2,
.elite-docs h3 {
  color: var(--elite-accent-strong);
  margin-top: 2.25rem;
}

.elite-docs h4,
.elite-docs h5,
.elite-docs h6 {
  color: var(--elite-link);
  margin-top: 1.75rem;
}

.elite-docs p,
.elite-docs li,
.elite-docs blockquote {
  color: var(--elite-text-dim);
}

.elite-docs hr {
  border: 0;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, rgba(255, 150, 45, 0.42), rgba(89, 216, 223, 0.12), transparent);
}

.elite-docs blockquote {
  margin: 1.5rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid rgba(255, 150, 45, 0.6);
  background: rgba(255, 150, 45, 0.08);
  box-shadow: inset 0 0 24px rgba(255, 150, 45, 0.04);
}

.elite-docs pre,
.elite-docs code,
.elite-docs samp,
.elite-docs kbd {
  font-family: var(--elite-font-mono);
}

.elite-docs pre {
  padding: 1rem 1.1rem;
  overflow: auto;
  background: rgba(4, 6, 8, 0.92);
  border: 1px solid rgba(89, 216, 223, 0.18);
  border-radius: var(--elite-radius-sm);
  box-shadow: inset 0 0 24px rgba(89, 216, 223, 0.04);
}

.elite-docs :not(pre) > code,
.elite-docs kbd {
  padding: 0.15rem 0.45rem;
  border-radius: 0.45rem;
  background: rgba(89, 216, 223, 0.12);
  border: 1px solid rgba(89, 216, 223, 0.18);
  color: var(--elite-link-hover);
}

.elite-docs ul,
.elite-docs ol {
  padding-left: 1.4rem;
}

.elite-docs li + li {
  margin-top: 0.35rem;
}

.elite-docs img,
.elite-docs video,
.elite-docs canvas {
  max-width: 100%;
  height: auto;
  border-radius: var(--elite-radius-sm);
  border: 1px solid rgba(255, 150, 45, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.elite-docs details {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 150, 45, 0.16);
  border-radius: var(--elite-radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.elite-docs summary {
  cursor: pointer;
  color: var(--elite-text);
  font-weight: 700;
}

@media (max-width: 900px) {
  .elite-page {
    width: calc(100% - 1.5rem);
    padding-bottom: 2.5rem;
  }

  .elite-grid,
  .elite-stat-grid {
    grid-template-columns: 1fr;
  }

  .elite-split {
    flex-direction: column;
    align-items: stretch;
  }

  .elite-nav {
    border-radius: 1.2rem;
  }

  body.elite-docs {
    max-width: calc(100% - 0.75rem);
    padding: 1.1rem;
  }
}

@media (max-width: 640px) {
  .elite-shell {
    font-size: 0.95rem;
  }

  .elite-page {
    width: calc(100% - 1rem);
    padding-top: 1rem;
  }

  .elite-panel {
    padding: 1rem;
    border-radius: 14px;
  }

  .elite-nav,
  .elite-actions,
  .elite-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .elite-button,
  .elite-button-secondary {
    width: 100%;
  }

  table.elite-table,
  .elite-table table,
  .elite-docs table {
    min-width: 520px;
  }

  body.elite-docs {
    margin: 0;
    max-width: 100%;
    min-height: 100vh;
    padding: 0.9rem;
    border-radius: 0;
  }
}
