@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/ManropeLatin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("./assets/fonts/SpaceGroteskLatin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080706;
  --bg-soft: #11100e;
  --panel: rgba(18, 17, 15, .84);
  --panel-strong: rgba(23, 21, 18, .96);
  --panel-hover: rgba(29, 26, 22, .94);
  --line: rgba(244, 122, 36, .15);
  --line-strong: rgba(255, 157, 61, .33);
  --text: #f7f4ee;
  --muted: #b9b4ad;
  --soft: #827c75;
  --ember: #f47a24;
  --ember-strong: #ffbd69;
  --copper: #bd6d35;
  --ok: #70e1a1;
  --danger: #ff6b7a;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .34);
  --font: "Manrope", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --display: "Space Grotesk", "Manrope", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --pumpkin-title: linear-gradient(105deg, #fff4de 0%, #ffd08c 24%, #ff9a3d 56%, #ef641f 78%, #a9320d 100%);
  --pumpkin-card-title: linear-gradient(100deg, #fff7ea 0%, #ffd8a4 54%, #ff9b42 100%);
  font-family: var(--font);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #d85c19 #090705;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: #090705;
  border-left: 1px solid rgba(255, 189, 105, .08);
}

*::-webkit-scrollbar-thumb {
  min-height: 52px;
  border: 2px solid #090705;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #ffbd69 0%, #f47a24 48%, #a83b11 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 220, .45),
    0 0 12px rgba(244, 122, 36, .26);
}

*::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, #ffd29a 0%, #ff8a2e 48%, #c94c16 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    0 0 18px rgba(244, 122, 36, .42);
}

*::-webkit-scrollbar-corner {
  background: #090705;
}

*::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

.docs-nav::-webkit-scrollbar {
  width: 7px;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(118deg, rgba(244, 122, 36, .035), transparent 34%),
    linear-gradient(180deg, #050403 0%, #0d0a07 44%, #050403 100%);
  color: var(--text);
  overflow-x: hidden;
  font: 15.5px/1.6 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  font-synthesis: none;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

body.is-booting {
  overflow: hidden;
}

a { color: var(--ember-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
strong, b { font-weight: 760; }
p { color: var(--muted); margin: 0 0 12px; }

.animated-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
}

.animated-background::before,
.animated-background::after {
  content: "";
  position: absolute;
  inset: -24%;
  pointer-events: none;
}

.animated-background::before {
  opacity: .42;
  background: linear-gradient(
    112deg,
    transparent 18%,
    rgba(244, 122, 36, .035) 38%,
    rgba(255, 189, 105, .075) 48%,
    rgba(189, 109, 53, .035) 58%,
    transparent 76%
  );
  transform: translate3d(-22%, 0, 0);
  animation: ambientSweep 18s ease-in-out infinite;
}

.animated-background::after {
  opacity: .2;
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0 88px,
      rgba(244, 122, 36, .055) 89px,
      transparent 90px 176px
    );
  transform: translate3d(0, 0, 0);
  animation: ambientThreads 24s linear infinite;
}

.bg-grid {
  position: absolute;
  inset: -18%;
  opacity: .2;
  background-image:
    linear-gradient(rgba(255, 189, 105, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(189, 109, 53, .11) 1px, transparent 1px);
  background-size: 62px 62px;
  transform: perspective(820px) rotateX(63deg) translateY(-8%);
  transform-origin: top;
  animation: gridMove 28s linear infinite;
}

.bg-ray {
  position: absolute;
  width: 112vw;
  height: 30vh;
  left: -8vw;
  opacity: .18;
  mix-blend-mode: screen;
  transform: rotate(-13deg);
}

.ray-one {
  top: 8vh;
  background: linear-gradient(90deg, transparent, rgba(244, 122, 36, .18), rgba(189, 109, 53, .12), transparent);
  animation: raySlide 24s ease-in-out infinite alternate;
}

.ray-two {
  bottom: 4vh;
  background: linear-gradient(90deg, transparent, rgba(255, 189, 105, .13), rgba(244, 122, 36, .12), transparent);
  animation: raySlide 32s ease-in-out infinite alternate-reverse;
}

.bg-water {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 189, 105, .045) 48%, transparent 56%);
  background-size: 100% 520px;
  opacity: .24;
  animation: scanMove 17s linear infinite;
}

html.is-scrolling-up .bg-grid,
html.is-scrolling-down .bg-grid { animation-duration: 17s; }
html.is-scrolling-up .bg-water,
html.is-scrolling-down .bg-water {
  opacity: .34;
  transition: opacity .18s ease;
}

.boot-screen {
  --boot-progress: .08;
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(18px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(7, 6, 5, .98) 0%, rgba(7, 6, 5, .9) 48%, rgba(7, 6, 5, .72) 100%),
    url("./assets/HeadlessHero.webp?v=20260730n") center right / cover no-repeat;
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition: opacity .42s ease, visibility .42s ease, transform .42s ease;
}

.boot-screen::before,
.boot-screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.boot-screen::before {
  inset: -22%;
  z-index: -2;
  opacity: .2;
  background-image:
    linear-gradient(rgba(255, 189, 105, .15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(189, 109, 53, .13) 1px, transparent 1px);
  background-size: 76px 76px;
  transform: perspective(920px) rotateX(62deg) translateY(-7%);
  transform-origin: top;
  animation: bootGridDrift 18s linear infinite;
}

.boot-screen::after {
  inset: -18%;
  z-index: -1;
  opacity: .46;
  background:
    radial-gradient(circle at 24% 22%, rgba(244, 122, 36, .16), transparent 24%),
    radial-gradient(circle at 76% 64%, rgba(189, 109, 53, .13), transparent 27%),
    linear-gradient(112deg, transparent 24%, rgba(255, 189, 105, .11) 45%, transparent 66%);
  background-size: 100% 100%, 100% 100%, 240% 240%;
  animation: bootAurora 8.5s ease-in-out infinite alternate;
}

body:not(.is-booting) .boot-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -8px, 0);
}

.boot-shell {
  position: relative;
  width: min(820px, calc(100vw - 36px));
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(255, 189, 105, .22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(244, 122, 36, .13), rgba(189, 109, 53, .055) 45%, rgba(255, 255, 255, .025)),
    rgba(8, 6, 4, .9);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .055);
  transform: translate3d(0, 0, 0);
  animation:
    bootCardEnter .5s cubic-bezier(.2, .9, .2, 1) both,
    bootCardFloat 5.8s ease-in-out .5s infinite;
  will-change: transform;
}

.boot-shell::before,
.boot-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.boot-shell::before {
  opacity: .75;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 189, 105, .14), transparent 35%),
    linear-gradient(90deg, transparent, rgba(244, 122, 36, .08), transparent);
  animation: bootCardGlow 4.8s ease-in-out infinite;
}

.boot-shell::after {
  width: 42%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 189, 105, .16) 48%, transparent 100%);
  transform: translateX(-130%);
  animation: bootCardSheen 3.9s ease-in-out infinite;
}

.boot-shell > * {
  position: relative;
  z-index: 1;
}

.boot-orbit {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 189, 105, .22);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 122, 36, .18), rgba(244, 122, 36, .035) 58%, transparent 60%);
}

.boot-orbit::before,
.boot-orbit::after,
.boot-orbit i {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(255, 189, 105, .82);
  border-right-color: rgba(189, 109, 53, .22);
  animation: bootSpin 1.9s linear infinite;
}

.boot-orbit::after {
  inset: 17px;
  border-top-color: rgba(189, 109, 53, .7);
  animation-duration: 2.7s;
  animation-direction: reverse;
}

.boot-orbit i {
  inset: 2px;
  opacity: .48;
  animation-duration: 4.2s;
}

.boot-orbit i + i {
  inset: 27px;
  opacity: .58;
  animation-duration: 1.35s;
  animation-direction: reverse;
}

.boot-orbit .boot-logo {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 44%;
  transform: scale(1.46);
  background: linear-gradient(145deg, rgba(244, 122, 36, .25), rgba(189, 109, 53, .12));
  border: 1px solid rgba(255, 189, 105, .34);
  box-shadow: 0 0 34px rgba(244, 122, 36, .2);
  animation: bootMark 2.4s ease-in-out infinite;
}

.boot-copy {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.boot-copy h1 {
  width: 100%;
  max-width: 100%;
  margin: 6px 0 8px;
  font: 900 clamp(34px, 5vw, 58px)/.98 var(--display);
  background: linear-gradient(90deg, #f2fdff, #ffbd69 45%, #bd6d35);
  background-size: 160% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
  text-wrap: balance;
  animation: titleSheen 7s ease-in-out infinite;
}

.boot-copy p {
  min-height: 24px;
  margin: 0;
  color: #c7d4e2;
}

.boot-progress {
  width: min(520px, 100%);
  height: 10px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 189, 105, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
}

.boot-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform: scaleX(var(--boot-progress));
  transform-origin: left;
  background: linear-gradient(90deg, #bd6d35, #f47a24, #ffbd69);
  background-size: 180% 100%;
  box-shadow: 0 0 22px rgba(244, 122, 36, .34);
  transition: transform .28s ease;
  animation: bootProgressFlow 1.55s linear infinite;
}

.boot-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.boot-step {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--soft);
  background: rgba(255, 255, 255, .04);
  font: 780 12px/1 var(--font);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.boot-step.is-active,
.boot-step.is-done {
  color: var(--ember-strong);
  border-color: rgba(255, 189, 105, .34);
  background: rgba(244, 122, 36, .095);
}

.boot-step.is-active {
  transform: translateY(-1px);
}

.docs-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity .38s ease, transform .38s ease;
}

body.is-booting .docs-shell,
body.is-booting .maintenance-screen {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  pointer-events: none;
}

.docs-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px 18px;
  background: rgba(10, 9, 8, .94);
  border-right: 1px solid rgba(255, 255, 255, .07);
  backdrop-filter: none;
  overflow-y: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 189, 105, .38);
  background: linear-gradient(145deg, rgba(244, 122, 36, .22), rgba(189, 109, 53, .08));
  color: var(--ember-strong);
  font-weight: 900;
  box-shadow: 0 0 32px rgba(244, 122, 36, .14);
  animation: markPulse 4.8s ease-in-out infinite;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  transform: scale(1.46);
  display: block;
}

.brand strong,
.brand small { display: block; }
.brand strong { font: 850 18px/1 var(--display); }
.brand small { color: var(--muted); font-size: 12px; margin-top: 3px; }

.sidebar-status {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(112, 225, 161, .12);
}

.sidebar-status.is-stale .pulse {
  background: #f59e42;
  box-shadow: 0 0 0 6px rgba(245, 158, 66, .13);
}

.sidebar-status.is-offline .pulse {
  background: #ef665f;
  box-shadow: 0 0 0 6px rgba(239, 102, 95, .13);
}

.sidebar-status strong { display: block; font-size: 13px; }
.sidebar-status small { color: var(--soft); }

.docs-nav {
  display: grid;
  gap: 24px;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  padding-bottom: 10px;
  scroll-behavior: auto;
  overscroll-behavior: contain;
  contain: layout paint;
}

.nav-group h2 {
  margin: 0 0 10px;
  padding: 0 10px;
  color: #ffb968;
  font: 700 13px/1.2 var(--display);
  text-transform: uppercase;
}

.nav-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-decoration: none !important;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 590;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
  transition: background .14s ease, color .14s ease, border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.nav-item::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd08a 0%, #f47a24 52%, #9f2e0b 100%);
  box-shadow: 0 0 9px rgba(255, 157, 61, .54), 0 0 20px rgba(244, 122, 36, .22);
  opacity: 0;
  transform: scaleY(.42);
  transform-origin: center;
  transition: opacity .22s ease, transform .22s ease;
}

.nav-item span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--soft);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 7px;
  font: 800 10px/1 var(--mono);
}

.nav-item:hover {
  color: var(--text);
  text-decoration: none !important;
  background: linear-gradient(90deg, rgba(255, 189, 105, .075), rgba(255, 255, 255, .025) 72%, transparent);
  border-color: transparent;
  transform: translateX(2px);
}

.nav-item:hover::before {
  opacity: .42;
  transform: scaleY(.72);
}

.nav-item:hover span,
.nav-item.active span {
  color: var(--ember-strong);
  border-color: var(--line-strong);
}

.nav-item.active {
  color: var(--ember-strong);
  text-decoration: none !important;
  background: linear-gradient(90deg, rgba(244, 122, 36, .17) 0%, rgba(244, 122, 36, .07) 58%, rgba(244, 122, 36, .015) 100%);
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18), inset 18px 0 30px rgba(244, 122, 36, .035);
}

.nav-item.active::before {
  opacity: 1;
  transform: scaleY(1);
  animation: navEmberPulse 3.6s ease-in-out infinite;
}

.sidebar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.docs-main {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px clamp(18px, 4vw, 44px) 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  background: linear-gradient(180deg, rgba(8, 7, 6, .97), rgba(8, 7, 6, .78) 72%, transparent);
  backdrop-filter: blur(12px);
}

.topbar-brand {
  display: block;
  margin: 4px 0 0;
  font: 870 26px/1 var(--display);
  letter-spacing: 0;
}

.topbar-actions,
.hero-actions,
.stack,
.command-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.icon-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 122, 36, .3);
  border-radius: 8px;
  background: rgba(244, 122, 36, .1);
  color: #fff1df;
}

.icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn {
  position: relative;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  color: var(--text);
  padding: 9px 13px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .08);
  text-decoration: none;
}

.btn.primary {
  color: #1a0d03;
  border-color: rgba(255, 189, 105, .7);
  background: linear-gradient(135deg, #ffbd69, #f47a24);
  font-weight: 820;
  box-shadow: 0 14px 36px rgba(244, 122, 36, .15);
}

.btn.primary::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -52%;
  z-index: -1;
  width: 34%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .42), transparent);
  transform: skewX(-14deg);
  animation: buttonGlowPass 5.8s ease-in-out infinite;
}

.btn.wide { width: 100%; text-align: center; }

.affiliates-section {
  --affiliate-glow: rgba(244, 122, 36, .24);
}

.affiliates-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  align-items: end;
  gap: 24px;
}

.affiliates-head > p {
  margin: 0 0 7px;
  color: var(--muted);
  line-height: 1.7;
}

.affiliates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.affiliate-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  grid-template-areas: "art copy" "actions actions";
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26, 21, 17, .97), rgba(10, 9, 8, .94));
  box-shadow: 0 22px 52px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.affiliate-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 12% 2%, var(--affiliate-glow), transparent 42%);
  opacity: .7;
}

.affiliate-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 166, 82, .4);
  box-shadow: 0 30px 62px rgba(0, 0, 0, .32), 0 0 0 1px rgba(244, 122, 36, .06);
}

.affiliate-card-core { --affiliate-glow: rgba(244, 122, 36, .28); }
.affiliate-card-music { --affiliate-glow: rgba(188, 105, 255, .24); }

.affiliate-art {
  grid-area: art;
  position: relative;
  width: 118px;
  height: 118px;
  overflow: hidden;
  border: 1px solid rgba(255, 189, 105, .22);
  border-radius: 12px;
  background: #100d0a;
}

.affiliate-headless-art {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 188, 101, .23), transparent 40%),
    linear-gradient(140deg, #2b160c, #0b0907 72%);
}

.affiliate-headless-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(4, 3, 2, .72));
}

.affiliate-headless-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.24);
  filter: saturate(.94) contrast(1.06);
}

.affiliate-music-art {
  display: grid;
  place-items: center;
  border-color: rgba(196, 127, 255, .32);
  background:
    radial-gradient(circle at 68% 24%, rgba(211, 147, 255, .26), transparent 34%),
    radial-gradient(circle at 18% 84%, rgba(255, 133, 59, .2), transparent 42%),
    linear-gradient(145deg, #191021, #09080e 74%);
}

.affiliate-music-art::before {
  content: "";
  position: absolute;
  width: 184px;
  height: 184px;
  border: 1px solid rgba(220, 171, 255, .17);
  border-radius: 50%;
  box-shadow: 0 0 0 15px rgba(220, 171, 255, .025), 0 0 42px rgba(163, 85, 245, .15);
}

.affiliate-music-art svg {
  position: relative;
  z-index: 1;
  width: 90px;
  fill: none;
  stroke: #f5ddff;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 11px rgba(217, 140, 255, .48));
}

.affiliate-music-art svg > path:first-child { fill: rgba(255, 158, 77, .84); stroke: rgba(255, 218, 186, .94); }
.affiliate-music-art .affiliate-soundwave { stroke: #dca1ff; stroke-width: 5; }

.affiliate-state {
  position: absolute;
  z-index: 2;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 16px);
  padding: 4px 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(8, 7, 6, .72);
  color: #f6e7d9;
  font: 780 8px/1 var(--mono);
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.affiliate-state i {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 9px rgba(112, 225, 161, .82);
}

.affiliate-copy { grid-area: copy; min-width: 0; align-self: center; }
.affiliate-code { color: var(--ember-strong); font: 760 10px/1 var(--mono); letter-spacing: .09em; }
.affiliate-card-music .affiliate-code { color: #e0afff; }
.affiliate-copy h3 { margin: 8px 0 7px; color: var(--text); font: 850 25px/1.05 var(--display); }
.affiliate-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.58; }

.affiliate-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 13px;
}

.affiliate-tags span {
  padding: 5px 7px;
  border: 1px solid rgba(255, 189, 105, .13);
  border-radius: 5px;
  background: rgba(255, 255, 255, .025);
  color: #d2c2b2;
  font: 690 9px/1 var(--mono);
}

.affiliate-card-music .affiliate-tags span { border-color: rgba(213, 158, 255, .16); color: #dcc5ea; }

.affiliate-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.affiliate-actions .btn { min-height: 36px; font-size: 11px; }

@media (max-width: 760px) {
  .affiliates-head,
  .affiliates-grid { grid-template-columns: 1fr; }
  .affiliates-head { gap: 9px; }
}

@media (max-width: 440px) {
  .affiliate-card {
    grid-template-columns: 1fr;
    grid-template-areas: "art" "copy" "actions";
  }
  .affiliate-art { width: 100%; height: 138px; }
  .affiliate-headless-art img { object-position: center 38%; }
}

.headless-music-section {
  --music-purple: #ffbd78;
  --music-purple-soft: rgba(255, 143, 44, .16);
  --music-orange: #ff9c4a;
}

.music-doc-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) minmax(355px, 440px);
  gap: clamp(20px, 3vw, 38px);
  align-items: center;
  min-height: 268px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(255, 166, 86, .28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 76% 14%, rgba(255, 144, 47, .15), transparent 30%),
    radial-gradient(circle at 12% 90%, rgba(255, 111, 29, .14), transparent 38%),
    linear-gradient(135deg, rgba(43, 24, 18, .96), rgba(9, 8, 11, .98) 70%);
  box-shadow: 0 30px 72px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.music-doc-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 190, 128, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 190, 128, .05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(90deg, #000, transparent 75%);
}

.music-doc-hero::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: calc(var(--music-pointer-x, .82) * -70px); bottom: calc(var(--music-pointer-y, .5) * -110px); border-radius: 50%; background: radial-gradient(circle, rgba(255, 135, 38, .14), transparent 66%); filter: blur(5px); opacity: .42; transition: right .5s ease-out, bottom .5s ease-out, opacity .25s ease; }
.music-doc-hero:hover::after { opacity: .82; }

.music-doc-orbit {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 181, 111, .34);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 169, 87, .17), transparent 67%);
  box-shadow: 0 0 0 17px rgba(255, 167, 88, .025), 0 0 52px rgba(255, 105, 25, .18);
}

.music-doc-orbit::before,
.music-doc-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.music-doc-orbit::before { inset: 12px; border: 1px dashed rgba(255, 181, 116, .28); animation: musicOrbit 12s linear infinite; }
.music-doc-orbit::after { width: 8px; height: 8px; top: 12px; left: 50%; background: var(--music-orange); box-shadow: 0 0 13px var(--music-orange); }
.music-doc-orbit svg { width: 78px; fill: none; stroke: #fff0dc; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(255, 138, 38, .55)); }
.music-doc-orbit svg > path:first-child { fill: rgba(255, 159, 75, .86); stroke: #ffe3c8; }
.music-doc-orbit .music-wave { stroke: var(--music-purple); stroke-width: 5; }

.music-doc-copy h2 { margin: 7px 0 10px; font: 880 clamp(34px, 4vw, 54px)/.98 var(--display); letter-spacing: -.045em; color: #fff4ea; }
.music-doc-copy > p { max-width: 680px; margin: 0; color: #c9c1cc; line-height: 1.7; }

.music-facts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.music-facts span { padding: 6px 8px; border: 1px solid rgba(221, 173, 255, .14); border-radius: 6px; background: rgba(255, 255, 255, .025); color: #cabdd0; font: 620 10px/1.3 var(--mono); }
.music-facts b { color: var(--music-purple); font-weight: 800; }

.music-doc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.music-doc-actions .btn { min-height: 39px; font-size: 11px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.music-player-demo { position: relative; isolation: isolate; display: grid; gap: 15px; padding: 19px; overflow: hidden; border: 1px solid rgba(255, 156, 74, .36); border-radius: 14px; background: linear-gradient(145deg, rgba(61, 29, 14, .88), rgba(12, 9, 8, .94) 72%); box-shadow: inset 0 1px 0 rgba(255, 231, 202, .09), 0 20px 42px rgba(0, 0, 0, .28); transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.music-player-demo::before, .music-player-demo::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.music-player-demo::before { width: 240px; height: 240px; right: -102px; top: -126px; background: radial-gradient(circle, rgba(255, 142, 46, .25), transparent 68%); animation: musicPlayerGlow 5s ease-in-out infinite; }
.music-player-demo::after { width: 155px; height: 155px; left: -98px; bottom: -104px; background: radial-gradient(circle, rgba(255, 102, 28, .12), transparent 70%); animation: musicPlayerGlow 7s ease-in-out infinite reverse; }
.music-player-demo:hover { border-color: rgba(255, 187, 120, .65); box-shadow: inset 0 1px 0 rgba(255, 231, 202, .1), 0 24px 52px rgba(0, 0, 0, .36), 0 0 38px rgba(255, 111, 30, .12); transform: translateY(-3px); }
.music-player-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #ffa35b; font: 800 9px/1 var(--mono); letter-spacing: .08em; }
.music-player-topline > span { display: inline-flex; align-items: center; gap: 6px; }
.music-player-topline > span i { width: 6px; height: 6px; border-radius: 50%; background: #74f0ad; box-shadow: 0 0 11px #74f0ad; animation: musicLivePulse 1.6s ease-in-out infinite; }
.music-queue-toggle { padding: 7px 9px; border: 1px solid rgba(255, 168, 87, .2); border-radius: 6px; background: rgba(0, 0, 0, .22); color: #d7b694; cursor: pointer; font: 750 8px/1 var(--mono); letter-spacing: .06em; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.music-queue-toggle:hover, .music-queue-toggle[aria-expanded="true"] { border-color: rgba(255, 184, 109, .56); background: rgba(255, 126, 32, .12); color: #ffce9a; }
.music-queue-popover { position: absolute; z-index: 3; top: 51px; right: 18px; width: min(270px, calc(100% - 36px)); padding: 12px; border: 1px solid rgba(255, 176, 101, .3); border-radius: 9px; background: rgba(15, 10, 7, .97); box-shadow: 0 18px 38px rgba(0, 0, 0, .45); animation: musicQueueIn .24s ease both; }
.music-queue-popover > span { color: #ffae64; font: 800 8px/1 var(--mono); letter-spacing: .09em; }.music-queue-popover ol { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }.music-queue-popover li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 7px; border-top: 1px solid rgba(255, 255, 255, .07); color: #dac3af; font: 650 9px/1.35 var(--mono); }.music-queue-popover li::after { content: attr(data-duration); color: #8d7968; }
.music-track-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 13px; align-items: center; }
.music-album-art { position: relative; width: 74px; height: 74px; padding: 0; overflow: hidden; border: 1px solid rgba(255, 182, 116, .42); border-radius: 12px; background: radial-gradient(circle at 38% 36%, #ffca77 0 5%, #f57e25 6% 14%, #35180f 15% 34%, #110d0d 35% 100%); box-shadow: inset 0 0 24px rgba(0, 0, 0, .8), 0 0 19px rgba(255, 119, 35, .15); cursor: pointer; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.music-album-art:hover, .music-album-art[aria-pressed="true"] { border-color: #ffc079; box-shadow: inset 0 0 24px rgba(0, 0, 0, .8), 0 0 26px rgba(255, 119, 35, .38); transform: rotate(-2deg) scale(1.04); }.music-album-art[aria-pressed="true"] .music-like-mark { color: #ffbc77; text-shadow: 0 0 14px #ff8f38; }
.music-vinyl-ring { position: absolute; inset: 11px; border: 1px solid rgba(255, 214, 170, .42); border-radius: 50%; animation: musicVinyl 3.2s linear infinite; }.music-vinyl-ring::before, .music-vinyl-ring::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(255, 214, 170, .15); border-radius: inherit; }.music-vinyl-ring::after { inset: 10px; }.music-vinyl-core { position: absolute; inset: 33px; border-radius: 50%; background: #ffb25d; box-shadow: 0 0 0 4px rgba(255, 125, 32, .36), 0 0 10px #ff9c4a; }
.music-album-bars { position: absolute; right: 6px; bottom: 6px; display: flex; align-items: end; gap: 2px; height: 17px; }.music-album-bars i { width: 2px; background: #ffbf78; box-shadow: 0 0 5px #ff9c4a; transform-origin: bottom; animation: musicBars 720ms ease-in-out infinite alternate; }.music-album-bars i:nth-child(1) { height: 7px; animation-delay: -320ms; }.music-album-bars i:nth-child(2) { height: 13px; animation-delay: -610ms; }.music-album-bars i:nth-child(3) { height: 9px; animation-delay: -160ms; }.music-album-bars i:nth-child(4) { height: 16px; animation-delay: -440ms; }.music-album-bars i:nth-child(5) { height: 5px; animation-delay: -90ms; }
.music-like-mark { position: absolute; top: 5px; left: 7px; color: rgba(255, 239, 218, .88); font: 700 16px/1 var(--font); transition: color .2s ease, text-shadow .2s ease; }
.music-track-copy { min-width: 0; display: grid; gap: 6px; }.music-track-copy strong { overflow: hidden; color: #fff2e4; font: 790 15px/1.2 var(--display); letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }.music-track-copy > span { overflow: hidden; color: #bda692; font: 690 8px/1.25 var(--mono); letter-spacing: .07em; text-overflow: ellipsis; white-space: nowrap; }
.music-equalizer { display: flex; align-items: center; gap: 3px; height: 15px; margin-top: 2px; }.music-equalizer i { width: 3px; height: 100%; border-radius: 3px; background: linear-gradient(#ffd094, #ff7924); box-shadow: 0 0 6px rgba(255, 133, 38, .46); transform-origin: center; animation: musicEqualize 830ms ease-in-out infinite alternate; }.music-equalizer i:nth-child(2n) { animation-delay: -410ms; }.music-equalizer i:nth-child(3n) { animation-delay: -610ms; }.music-equalizer i:nth-child(4n) { animation-duration: 1090ms; }
.music-progress-area { display: grid; gap: 8px; }.music-progress-slider, .music-volume input { width: 100%; height: 16px; margin: 0; appearance: none; cursor: pointer; background: transparent; }.music-progress-slider::-webkit-slider-runnable-track, .music-volume input::-webkit-slider-runnable-track { height: 4px; border-radius: 8px; background: linear-gradient(90deg, #f66c1c 0 var(--music-progress, 50%), rgba(255, 255, 255, .13) var(--music-progress, 50%) 100%); box-shadow: 0 0 12px rgba(255, 139, 40, .22); }.music-progress-slider::-moz-range-track, .music-volume input::-moz-range-track { height: 4px; border-radius: 8px; background: linear-gradient(90deg, #f66c1c 0 var(--music-progress, 50%), rgba(255, 255, 255, .13) var(--music-progress, 50%) 100%); }.music-progress-slider::-webkit-slider-thumb, .music-volume input::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -4px; appearance: none; border: 2px solid #fff0df; border-radius: 50%; background: var(--music-orange); box-shadow: 0 0 12px rgba(255, 156, 74, .8); transition: transform .2s ease; }.music-progress-slider::-moz-range-thumb, .music-volume input::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid #fff0df; border-radius: 50%; background: var(--music-orange); box-shadow: 0 0 12px rgba(255, 156, 74, .8); }.music-progress-slider:hover::-webkit-slider-thumb { transform: scale(1.22); }.music-progress-area > div:last-child { display: flex; justify-content: space-between; color: #b29a87; font: 700 8px/1 var(--mono); }
.music-player-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.music-volume { display: flex; align-items: center; gap: 7px; width: 90px; }.music-volume > span { position: relative; width: 10px; height: 9px; border-radius: 2px; background: #d6b18d; }.music-volume > span::before { content: ""; position: absolute; left: -4px; top: 2px; border-top: 3px solid transparent; border-bottom: 3px solid transparent; border-right: 5px solid #d6b18d; }.music-volume input { --music-progress: 78%; height: 12px; }.music-volume input::-webkit-slider-runnable-track { height: 3px; }.music-volume input::-webkit-slider-thumb { width: 9px; height: 9px; margin-top: -3px; }
.music-player-controls { display: flex; align-items: center; justify-content: center; gap: 13px; }.music-control { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 0; background: transparent; color: #e2c2a6; cursor: pointer; font: 600 25px/.8 var(--font); transition: color .2s ease, transform .2s ease, opacity .2s ease; }.music-control:hover { color: #ffbd79; transform: scale(1.12); }.music-pause { gap: 3px; width: 39px; height: 39px; border: 1px solid rgba(255, 195, 135, .58); border-radius: 50%; background: linear-gradient(145deg, #ffb05e, #e9681b); box-shadow: 0 0 0 5px rgba(255, 133, 34, .1), 0 0 24px rgba(255, 112, 22, .3); }.music-pause i { display: block; width: 3px; height: 13px; border-radius: 2px; background: #24130b; }.music-player-demo[data-playing="false"] .music-pause { gap: 0; }.music-player-demo[data-playing="false"] .music-pause i:first-child { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid #24130b; background: transparent; }.music-player-demo[data-playing="false"] .music-pause i:last-of-type { display: none; }.music-player-demo[data-playing="false"] .music-equalizer i, .music-player-demo[data-playing="false"] .music-vinyl-ring, .music-player-demo[data-playing="false"] .music-album-bars i, .music-player-demo[data-playing="false"] .music-player-topline > span i { animation-play-state: paused; }.music-player-demo[data-playing="false"] .music-player-topline > span i { opacity: .45; box-shadow: none; }
.music-player-demo.is-track-changing .music-track-row { animation: musicTrackSwap .48s ease both; }

.music-doc-grid { display: grid; grid-template-columns: minmax(190px, 248px) minmax(0, 1fr); gap: clamp(18px, 3vw, 38px); margin-top: 28px; }
.music-doc-nav { position: sticky; top: 92px; align-self: start; padding: 17px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 11px; background: rgba(11, 9, 12, .74); }
.music-doc-nav > span { color: var(--music-orange); font: 780 9px/1 var(--mono); letter-spacing: .1em; }
.music-doc-nav p { margin: 10px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.music-doc-nav ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.music-doc-nav li { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .07); color: #d8ccd9; font: 670 10px/1.35 var(--mono); }

.music-doc-content { min-width: 0; }
.music-doc-block { padding: 0 0 31px; margin-bottom: 31px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.music-doc-block:last-child { margin-bottom: 0; border-bottom: 0; }
.music-block-heading { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; margin-bottom: 18px; }
.music-block-heading > span { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(211, 156, 255, .28); border-radius: 7px; background: rgba(191, 112, 255, .09); color: var(--music-purple); font: 800 10px/1 var(--mono); }
.music-block-heading h3 { margin: 0; color: #f7edf7; font: 820 clamp(21px, 2.6vw, 30px)/1.1 var(--display); }
.music-block-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.music-boundary { display: grid; grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr) auto minmax(110px, 1fr); gap: 9px; align-items: stretch; padding: 14px; border: 1px solid rgba(211, 156, 255, .14); border-radius: 10px; background: linear-gradient(135deg, rgba(196, 117, 255, .055), rgba(255, 150, 65, .03)); }
.music-boundary > div { min-width: 0; display: grid; align-content: center; gap: 5px; padding: 12px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; background: rgba(6, 6, 8, .43); }
.music-boundary span { color: #eee1f0; font: 750 11px/1.25 var(--font); }
.music-boundary small { color: #968d9b; font: 600 9px/1.4 var(--mono); }
.music-boundary > i { align-self: center; color: #d8a5ff; font: 700 8px/1.3 var(--mono); font-style: normal; text-align: center; }
.music-callout { margin: 13px 0 0; padding: 11px 13px; border-left: 2px solid var(--music-orange); border-radius: 0 7px 7px 0; background: rgba(255, 148, 54, .055); color: #c7b8ae; font-size: 12px; line-height: 1.65; }

.music-command-table-wrap,
.music-env-table-wrap { overflow-x: auto; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; background: rgba(8, 8, 10, .52); }
.music-command-table { width: 100%; min-width: 650px; border-collapse: collapse; }
.music-command-table th { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .09); color: #b697ca; font: 800 9px/1 var(--mono); letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.music-command-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .055); color: #c3bac5; font-size: 11px; line-height: 1.5; vertical-align: top; }
.music-command-table tbody tr:last-child td { border-bottom: 0; }
.music-command-table tbody tr:hover { background: rgba(211, 156, 255, .045); }
.music-command-table code { color: #ffe1c6; font: 720 10px/1.4 var(--mono); }
.music-help-categories { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.music-help-categories b { margin-right: 3px; color: var(--music-purple); font: 800 10px/1 var(--mono); }
.music-help-categories span { padding: 5px 7px; border: 1px solid rgba(211, 156, 255, .14); border-radius: 5px; background: rgba(211, 156, 255, .045); color: #d5c5df; font: 650 9px/1 var(--mono); }

.music-flow-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: music-flow; }
.music-flow-list li { position: relative; min-width: 0; min-height: 125px; padding: 17px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; background: rgba(10, 9, 11, .58); counter-increment: music-flow; }
.music-flow-list li::before { content: counter(music-flow, decimal-leading-zero); display: block; margin-bottom: 18px; color: rgba(213, 157, 255, .57); font: 780 10px/1 var(--mono); }
.music-flow-list b { display: block; margin-bottom: 7px; color: #f1e6f1; font-size: 12px; }
.music-flow-list span { color: var(--muted); font-size: 11px; line-height: 1.55; }

.music-runtime-grid,
.music-security-grid,
.music-troubleshooting-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.music-runtime-grid article,
.music-security-grid article,
.music-troubleshooting-grid article { min-width: 0; padding: 16px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; background: rgba(9, 8, 10, .57); }
.music-runtime-grid span { color: var(--music-orange); font: 780 9px/1 var(--mono); letter-spacing: .08em; }
.music-runtime-grid h4,
.music-troubleshooting-grid h4 { margin: 13px 0 7px; color: #f2e8f3; font: 760 13px/1.25 var(--display); }
.music-runtime-grid p,
.music-security-grid p,
.music-troubleshooting-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.music-runtime-grid code,
.music-troubleshooting-grid code { color: #e8c9ff; font: 650 9px/1.55 var(--mono); overflow-wrap: anywhere; }
.music-setup-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 13px 0 0; padding: 0; list-style: none; }
.music-setup-checklist li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 11px 12px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 8px; background: rgba(255, 255, 255, .018); color: #bbb1c0; font-size: 10px; line-height: 1.55; }
.music-setup-checklist b { color: var(--music-orange); font: 790 9px/1.55 var(--mono); letter-spacing: .06em; }
.music-setup-checklist code { color: #e8c9ff; font: 650 9px/1.55 var(--mono); overflow-wrap: anywhere; }
.music-env-details { margin-top: 14px; border: 1px solid rgba(211, 156, 255, .16); border-radius: 9px; background: rgba(196, 117, 255, .035); }
.music-env-details summary { padding: 13px; color: #e9d7f2; cursor: pointer; font: 700 11px/1.3 var(--font); }
.music-env-details[open] summary { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.music-env-details .music-env-table-wrap { border: 0; border-radius: 0; background: transparent; }
.music-env-table { min-width: 680px; }

.music-security-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.music-security-grid b { display: block; margin-bottom: 9px; color: var(--music-purple); font: 790 10px/1 var(--mono); letter-spacing: .07em; }
.music-security-list { display: grid; gap: 7px; margin: 13px 0 0; padding: 0; list-style: none; }
.music-security-list li { position: relative; padding: 9px 12px 9px 28px; border: 1px solid rgba(255, 255, 255, .065); border-radius: 7px; background: rgba(255, 255, 255, .018); color: #c4bac8; font-size: 11px; line-height: 1.55; }
.music-security-list li::before { content: "//"; position: absolute; left: 10px; color: var(--music-orange); font: 800 9px/1.7 var(--mono); }

.music-troubleshooting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.music-troubleshooting-grid h4 { margin-top: 0; }
.music-responsible { margin: 14px 0 0; color: #958b96; font-size: 10px; line-height: 1.6; }

@keyframes musicOrbit { to { transform: rotate(360deg); } }
@keyframes musicVinyl { to { transform: rotate(360deg); } }
@keyframes musicBars { from { transform: scaleY(.32); } to { transform: scaleY(1); } }
@keyframes musicEqualize { from { transform: scaleY(.18); opacity: .58; } to { transform: scaleY(1); opacity: 1; } }
@keyframes musicLivePulse { 50% { opacity: .35; box-shadow: 0 0 3px #74f0ad; } }
@keyframes musicPlayerGlow { 50% { transform: scale(1.15); opacity: .55; } }
@keyframes musicProgress { 0% { width: 36%; } 100% { width: 78%; } }
@keyframes musicProgressDot { 0% { left: 36%; } 100% { left: 78%; } }
@keyframes musicQueueIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes musicTrackSwap { 0% { opacity: 1; transform: translateY(0); } 45% { opacity: 0; transform: translateY(7px); } 55% { opacity: 0; transform: translateY(-7px); } 100% { opacity: 1; transform: translateY(0); } }

[data-motion="reduced"] .music-doc-orbit::before,
[data-motion="reduced"] .music-player-demo::before,
[data-motion="reduced"] .music-player-demo * { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .music-doc-orbit::before,
  .music-player-demo::before,
  .music-player-demo * { animation: none !important; }
}

@media (max-width: 1050px) {
  .music-doc-hero { grid-template-columns: 110px minmax(0, 1fr); }
  .music-player-demo { grid-column: 1 / -1; max-width: none; }
  .music-doc-grid { grid-template-columns: 1fr; }
  .music-doc-nav { position: static; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: center; }
  .music-doc-nav p { margin: 0; }
  .music-doc-nav ul { grid-column: 1 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .music-doc-hero { grid-template-columns: 1fr; }
  .music-doc-orbit { width: 106px; height: 106px; }
  .music-player-demo,
  .music-flow-list,
  .music-runtime-grid,
  .music-setup-checklist,
  .music-security-grid,
  .music-troubleshooting-grid { grid-template-columns: 1fr; }
  .music-boundary { grid-template-columns: 1fr; }
  .music-boundary > i { padding: 2px 0; }
  .music-doc-nav { display: block; }
  .music-doc-nav p { margin: 10px 0 16px; }
  .music-doc-nav ul { grid-template-columns: 1fr; }
}

.doc-section {
  position: relative;
  padding: clamp(34px, 6vw, 72px) 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.doc-section:not(.hero-section) {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(244, 122, 36, .055), transparent 34%),
    linear-gradient(180deg, rgba(244, 122, 36, .018), transparent 38%);
}

.doc-section:not(.hero-section)::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: clamp(500px, 72vh, 760px);
  pointer-events: none;
  background:
    linear-gradient(90deg, #080706 0%, rgba(8, 7, 6, .96) 22%, rgba(8, 7, 6, .56) 58%, rgba(8, 7, 6, .2) 100%),
    linear-gradient(180deg, rgba(8, 7, 6, .5) 0%, transparent 28%, rgba(8, 7, 6, .24) 62%, #080706 100%),
    url("./assets/HeadlessHero.webp?v=20260730n") center right / cover no-repeat;
  opacity: .42;
  filter: saturate(1.14) contrast(1.04) brightness(.8);
  transform-origin: 78% 34%;
  animation: sectionHalloweenDrift 13s ease-in-out infinite alternate;
  animation-play-state: paused;
  will-change: transform, opacity;
}

.doc-section.active-doc-section:not(.hero-section)::before {
  animation-play-state: running;
}

.doc-section:not(.hero-section) > * {
  position: relative;
  z-index: 1;
}

.hero-section {
  --hero-height: clamp(600px, calc(100vh - 96px), 780px);
  --hero-parallax-x: 0px;
  --hero-parallax-y: 0px;
  min-height: clamp(600px, calc(100vh - 96px), 780px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
  border-top: 0;
}

.hero-scene {
  position: absolute;
  inset: 0 0 auto;
  z-index: -3;
  height: var(--hero-height);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--hero-parallax-x), var(--hero-parallax-y), 0);
  transition: opacity .8s ease, transform .42s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

.hero-section.is-scene-ready .hero-scene {
  opacity: 1;
}

.hero-figure,
.hero-fire-glow,
.hero-shade,
.hero-embers {
  position: absolute;
  inset: 0;
}

.hero-figure {
  inset: -3%;
  background: url("./assets/HeadlessHero.webp?v=20260730n") center right / cover no-repeat;
  filter: saturate(1.05) contrast(1.055) brightness(.94);
  transform-origin: 72% 45%;
  animation: heroCinematic 16s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-fire-glow {
  opacity: .56;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse at 58% 22%, rgba(255, 172, 64, .2) 0%, rgba(244, 122, 36, .09) 20%, transparent 42%),
    linear-gradient(110deg, transparent 38%, rgba(244, 122, 36, .055) 54%, transparent 72%);
  transform-origin: 58% 22%;
  animation: fireBreath 2.7s ease-in-out infinite;
}

.hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(5, 4, 3, .99) 0%,
      rgba(5, 4, 3, .95) 31%,
      rgba(5, 4, 3, .66) 55%,
      rgba(5, 4, 3, .18) 100%
    ),
    linear-gradient(180deg, rgba(5, 4, 3, .08) 55%, rgba(5, 4, 3, .9) 100%);
}

.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .32;
  background: linear-gradient(
    112deg,
    transparent 35%,
    rgba(255, 189, 105, .13) 48%,
    rgba(244, 122, 36, .04) 56%,
    transparent 68%
  );
  transform: translate3d(-42%, 0, 0);
  animation: heroLightSweep 9s ease-in-out infinite;
}

.hero-embers {
  z-index: 2;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 28%, #000 50%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 28%, #000 50%, #000 100%);
}

.doc-section:not(.hero-section) > .section-embers {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .16s ease;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 94%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 94%, transparent);
}

.doc-section:not(.hero-section) > .section-embers.is-active {
  opacity: .86;
}

.hero-embers span,
.section-embers span {
  position: absolute;
  left: var(--ember-x);
  bottom: var(--ember-bottom);
  width: 2px;
  height: var(--ember-size);
  border-radius: 2px;
  opacity: 0;
  background: linear-gradient(180deg, rgba(255, 236, 184, .95), rgba(244, 122, 36, .9), transparent);
  box-shadow: 0 0 7px rgba(244, 122, 36, .72);
  transform: rotate(var(--ember-rotate));
  animation: emberLift var(--ember-duration) linear var(--ember-delay) infinite;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-section::before {
  inset: 0 0 auto;
  z-index: -1;
  height: var(--hero-height);
  border-top: 1px solid rgba(255, 189, 105, .08);
  border-bottom: 1px solid rgba(244, 122, 36, .2);
  box-shadow: inset 0 -80px 90px -80px rgba(244, 122, 36, .28);
}

.hero-section::after {
  inset: 18px 0 auto;
  z-index: 3;
  height: 1px;
  opacity: .5;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 189, 105, .38) 46%,
    rgba(244, 122, 36, .11) 72%,
    transparent
  );
  animation: heroSignal 6.8s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(600px, 60%);
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(48px, 8vw, 108px) 0 28px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(255, 189, 105, .28);
  border-radius: 999px;
  color: var(--ember-strong);
  background: rgba(244, 122, 36, .085);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 760;
}

.muted-chip {
  color: var(--muted);
  border-color: rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
}

.eyebrow {
  color: var(--ember-strong);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 820;
}

.hero-copy h1,
.section-head h2,
.two-column h2 {
  margin: 12px 0;
  max-width: 850px;
  font: 900 clamp(34px, 5.6vw, 68px)/.98 var(--display);
  letter-spacing: 0;
  color: #f7f4ee;
}

.hero-copy h1 {
  position: relative;
  width: fit-content;
  font-size: 88px;
  line-height: .92;
  max-width: 100%;
  color: transparent;
  background:
    linear-gradient(
      180deg,
      #fff0cf 0%,
      #ffca82 22%,
      #ff963f 52%,
      #f0641f 76%,
      #a9320d 100%
    );
  background-size: 100% 220%;
  background-position: 50% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(255, 213, 150, .12);
  filter:
    drop-shadow(0 12px 30px rgba(0, 0, 0, .72))
    drop-shadow(0 0 18px rgba(244, 122, 36, .22));
  animation:
    headlessTitleHeat 4.8s ease-in-out infinite,
    headlessTitleGlow 2.9s ease-in-out infinite;
}

.hero-copy h1::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 4%;
  right: 4%;
  bottom: -13px;
  height: 13px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(189, 62, 15, .3) 18%,
    rgba(244, 122, 36, .82) 48%,
    rgba(255, 189, 105, .48) 66%,
    transparent 100%
  );
  background-size: 180% 100%;
  clip-path: polygon(0 100%, 7% 64%, 13% 92%, 21% 38%, 29% 86%, 38% 50%, 46% 92%, 57% 30%, 65% 84%, 76% 44%, 84% 90%, 93% 58%, 100% 100%);
  filter: blur(5px);
  opacity: .5;
  transform-origin: center bottom;
  animation: headlessTitleFlame 3.6s ease-in-out infinite;
}

.section-head h2,
.two-column h2 {
  font-size: clamp(30px, 4.4vw, 52px);
}

.hero-copy p {
  max-width: 740px;
  font-size: 17px;
}

.status-board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-self: end;
  border-top: 1px solid rgba(255, 157, 61, .3);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(8, 7, 6, .74);
  backdrop-filter: blur(14px);
}

.metric {
  position: relative;
  overflow: hidden;
  transition: background .2s ease, transform .2s ease;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  opacity: .18;
  background: linear-gradient(180deg, transparent, var(--ember), transparent);
  transition: opacity .2s ease;
}

.metric:hover {
  background: rgba(244, 122, 36, .05);
}

.metric:hover::before {
  opacity: .78;
}

.hero-section:not(.active-doc-section) .hero-figure,
.hero-section:not(.active-doc-section) .hero-fire-glow,
.hero-section:not(.active-doc-section) .hero-scene::after,
.hero-section:not(.active-doc-section) .hero-embers span {
  animation-play-state: paused;
}

.metric,
.panel,
.feature-card,
.command-card,
.category-doc-panel,
.category-doc-card,
.server-card,
.user-card,
.dashboard-nav,
.dashboard-content,
.module-card,
.preview-box,
.audit-row,
.note {
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .036), transparent),
    var(--panel);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .2);
}

.panel,
.feature-card,
.command-card,
.doc-detail-card,
.category-doc-card,
.category-doc-panel {
  position: relative;
}

.panel::after,
.feature-card::after,
.command-card::after,
.doc-detail-card::after,
.category-doc-card::after,
.category-doc-panel::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -2px;
  height: 15px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(169, 50, 13, .12) 14%,
    rgba(244, 122, 36, .72) 44%,
    rgba(255, 189, 105, .46) 58%,
    rgba(189, 62, 15, .16) 84%,
    transparent 100%
  );
  background-size: 190% 100%;
  clip-path: polygon(0 100%, 8% 70%, 15% 96%, 23% 42%, 31% 88%, 40% 62%, 49% 94%, 59% 36%, 68% 88%, 79% 52%, 88% 92%, 95% 68%, 100% 100%);
  filter: blur(4px);
  opacity: .2;
  transform-origin: center bottom;
  animation: panelFireEdge 5.8s ease-in-out infinite;
  animation-play-state: paused;
}

.panel.is-in-viewport::after,
.feature-card.is-in-viewport::after,
.command-card.is-in-viewport::after,
.doc-detail-card.is-in-viewport::after,
.category-doc-card.is-in-viewport::after,
.category-doc-panel.is-in-viewport::before {
  animation-play-state: running;
}

.feature-card:nth-child(3n + 2)::after,
.command-card:nth-child(3n + 2)::after,
.doc-detail-card:nth-child(3n + 2)::after,
.category-doc-card:nth-child(3n + 2)::after {
  animation-delay: -1.8s;
}

.feature-card:nth-child(3n)::after,
.command-card:nth-child(3n)::after,
.doc-detail-card:nth-child(3n)::after,
.category-doc-card:nth-child(3n)::after {
  animation-delay: -3.6s;
}

.metric {
  min-height: 92px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 16px 18px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.metric:last-child { border-right: 0; }

.metric span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 820;
}

.metric strong {
  color: var(--ember-strong);
  font: 900 clamp(22px, 3vw, 34px)/1 var(--display);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 16px;
  align-items: stretch;
}

.panel,
.note {
  padding: 18px;
}

.panel-kicker {
  color: var(--ember-strong);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 820;
}

.panel h3,
.feature-card strong,
.command-card h3,
.module-card strong {
  margin: 0 0 8px;
  color: var(--text);
  font: 820 20px/1.2 var(--display);
}

.compact-owner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 260px;
  display: grid;
  align-content: center;
  gap: 10px;
  border-color: rgba(255, 157, 61, .24);
  background: rgba(12, 10, 8, .9);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .34), 0 0 0 1px rgba(244, 122, 36, .035);
  animation: ownerCardGlow 5.4s ease-in-out infinite;
}

.compact-owner::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -8%;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 8, 6, .98) 0%, rgba(10, 8, 6, .84) 38%, rgba(10, 8, 6, .26) 100%),
    linear-gradient(180deg, rgba(10, 8, 6, .28), transparent 52%, rgba(10, 8, 6, .78)),
    url("./assets/HeadlessHero.webp?v=20260730n") 68% center / cover no-repeat;
  opacity: .72;
  filter: saturate(1.2) contrast(1.08) brightness(.88);
  transform-origin: 70% 34%;
  animation: ownerHalloweenDrift 8.5s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.compact-owner.is-in-viewport::before {
  animation-play-state: running;
}

.compact-owner > * {
  position: relative;
  z-index: 2;
}

.compact-owner p {
  max-width: 230px;
}

.panel p,
.note p,
.feature-card p,
.command-card p,
.doc-detail-card p,
.doc-detail-card li,
.category-doc-card p,
.category-doc-card li,
.category-doc-hero p,
.legal-card p,
.legal-card li,
.module-card p,
.server-card p,
.audit-row,
.doc-copy {
  font-family: var(--font);
  font-weight: 520;
  line-height: 1.68;
  letter-spacing: 0;
  color: #cec7be;
}

.feature-grid,
.command-grid,
.legal-grid,
.server-picker,
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  min-height: 156px;
  padding: 18px;
  display: grid;
  gap: 10px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  content-visibility: auto;
  contain-intrinsic-size: 156px;
}

.feature-card:hover,
.command-card:hover,
.server-card:hover,
.module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 189, 105, .32);
  background: var(--panel-hover);
}

.feature-card:hover::after,
.command-card:hover::after,
.doc-detail-card:hover::after,
.category-doc-card:hover::after,
.panel:hover::after {
  filter: blur(3px) brightness(1.28);
  animation-duration: 3.4s;
}

.feature-card:hover strong,
.command-card:hover h3,
.doc-detail-card:hover h3,
.category-doc-card:hover h4 {
  color: var(--ember-strong);
}

.feature-card span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ember-strong);
  font: 840 12px/1 var(--mono);
}

.doc-detail-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.doc-section > .doc-detail-grid {
  grid-column: 1 / -1;
  width: 100%;
}

.doc-detail-card {
  position: relative;
  grid-column: span 4;
  min-height: 210px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(244, 122, 36, .08), transparent 44%),
    var(--panel);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
  content-visibility: auto;
  contain-intrinsic-size: 210px;
}

.doc-detail-card::before,
.category-doc-card::before,
.command-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 189, 105, .12) 46%, transparent 68%);
  transform: translateX(-34%);
  transition: opacity .24s ease, transform .42s ease;
}

.doc-detail-card:hover,
.category-doc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 189, 105, .32);
  background:
    linear-gradient(145deg, rgba(244, 122, 36, .12), transparent 46%),
    var(--panel-hover);
}

.doc-detail-card:hover::before,
.category-doc-card:hover::before,
.command-card:hover::before {
  opacity: 1;
  transform: translateX(32%);
}

.doc-detail-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font: 820 20px/1.2 var(--display);
}

.doc-detail-card ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.doc-detail-card li {
  color: #d2c8bd;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
}

.doc-detail-card li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 14px rgba(244, 122, 36, .36);
}

.command-head {
  position: relative;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  overflow: visible;
}

#commands.doc-section {
  z-index: 32;
  overflow: visible;
}

#commands .category-doc-panel,
#commands .command-grid,
#commands .command-stats {
  position: relative;
  z-index: 1;
}

/* The category menu gets its own visual lane while open, so it never sits
   underneath the documentation panel in the same section. */
#commands.category-picker-open .command-head {
  margin-bottom: min(430px, 56vh);
}

@media (max-width: 760px) {
  #commands.category-picker-open .command-head {
    margin-bottom: min(390px, 52vh);
  }
}

.command-tools {
  width: min(100%, 520px);
}

.command-filter {
  position: relative;
  width: 100%;
}

.native-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.premium-select {
  position: relative;
  z-index: 40;
  width: 100%;
}

.premium-select.open { z-index: 120; }

.premium-select-button {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 189, 105, .18);
  border-radius: 10px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(244, 122, 36, .13), rgba(189, 109, 53, .055)),
    rgba(12, 8, 5, .86);
  padding: 10px 12px 10px 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 16px 38px rgba(0, 0, 0, .2);
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.premium-select-button:hover,
.premium-select.open .premium-select-button {
  border-color: rgba(255, 189, 105, .42);
  background:
    linear-gradient(145deg, rgba(244, 122, 36, .18), rgba(189, 109, 53, .08)),
    rgba(18, 11, 6, .96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .065), 0 20px 46px rgba(244, 122, 36, .12);
}

.premium-select-button strong,
.premium-select-button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-select-button strong {
  font: 840 14px/1.2 var(--display);
}

.premium-select-button small {
  margin-top: 3px;
  color: var(--soft);
  font-size: 12px;
}

.premium-select-button i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 189, 105, .2);
  border-radius: 8px;
  background: rgba(244, 122, 36, .08);
}

.premium-select-button i::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ember-strong);
  border-bottom: 2px solid var(--ember-strong);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}

.premium-select.open .premium-select-button i::before {
  transform: translateY(2px) rotate(225deg);
}

.premium-select-menu {
  position: absolute;
  z-index: 130;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(430px, 56vh);
  overflow-y: auto;
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid rgba(255, 189, 105, .24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 80% 0%, rgba(244, 122, 36, .16), transparent 34%),
    rgba(12, 8, 5, .98);
  box-shadow: 0 28px 72px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .055);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 8px, 0) scale(.985);
  transform-origin: top;
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}

.premium-select.open .premium-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
}

.premium-select-option {
  min-height: 52px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.premium-select-option:hover,
.premium-select-option.active {
  color: var(--text);
  border-color: rgba(255, 189, 105, .22);
  background: rgba(244, 122, 36, .09);
  transform: translateX(2px);
}

.premium-select-option .select-code {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 189, 105, .2);
  border-radius: 8px;
  color: var(--ember-strong);
  background: rgba(244, 122, 36, .075);
  font: 820 10px/1 var(--mono);
}

.premium-select-option strong,
.premium-select-option small {
  display: block;
}

.premium-select-option strong {
  color: inherit;
  font-size: 13px;
}

.premium-select-option small {
  color: var(--soft);
  font-size: 12px;
}

.premium-select-option .select-count {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--ember-strong);
  background: rgba(244, 122, 36, .07);
  font: 780 11px/1 var(--mono);
}

.input,
textarea {
  width: 100%;
  min-height: 40px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(0, 0, 0, .22);
  padding: 10px 12px;
  outline: none;
}

textarea { min-height: 118px; resize: vertical; }
.input:focus,
textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(244, 122, 36, .11);
}

.command-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.command-stats span {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  font-size: 12px;
  font-weight: 760;
}

.category-doc-panel {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  padding: clamp(18px, 3vw, 26px);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 189, 105, .12), transparent 34%),
    linear-gradient(135deg, rgba(244, 122, 36, .105), rgba(189, 109, 53, .045) 52%, rgba(255, 255, 255, .025)),
    var(--panel);
}

.category-doc-panel::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 189, 105, .65), transparent);
  opacity: .68;
  animation: panelLine 3.8s ease-in-out infinite;
  animation-play-state: paused;
}

.category-doc-panel.is-in-viewport::after {
  animation-play-state: running;
}

.category-doc-hero {
  max-width: 900px;
}

.category-doc-hero h3 {
  margin: 6px 0 10px;
  color: var(--text);
  font: 900 clamp(28px, 4vw, 48px)/1 var(--display);
}

.category-doc-hero p {
  max-width: 850px;
  font-size: 16px;
}

.category-highlight-row,
.category-doc-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-highlight-row span,
.category-doc-strip span,
.category-doc-strip strong {
  width: fit-content;
  border: 1px solid rgba(255, 189, 105, .18);
  border-radius: 999px;
  padding: 7px 10px;
  color: #ffe6c4;
  background: rgba(244, 122, 36, .07);
  font-size: 12px;
  font-weight: 780;
}

.category-doc-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.category-doc-card {
  position: relative;
  grid-column: span 4;
  min-height: 166px;
  padding: 15px;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
  content-visibility: auto;
  contain-intrinsic-size: 166px;
}

.category-doc-card h4 {
  margin: 0 0 10px;
  color: var(--text);
  font: 820 17px/1.2 var(--display);
}

.category-doc-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-doc-card li {
  color: #d2c8bd;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
}

.category-doc-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 12px rgba(244, 122, 36, .36);
}

.category-doc-strip {
  align-items: center;
}

.category-doc-strip strong {
  color: var(--ember-strong);
  border-color: rgba(255, 189, 105, .32);
}

.command-card {
  position: relative;
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 230px;
}

.command-load-sentinel {
  grid-column: 1 / -1;
  width: 100%;
  height: 1px;
  pointer-events: none;
}

.command-card.mini { min-height: 160px; }
.command-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.command-top {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.example-list {
  display: grid;
  gap: 7px;
}

code {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(255, 189, 105, .16);
  border-radius: 7px;
  color: var(--ember-strong);
  background: rgba(0, 0, 0, .28);
  font: 13px/1.45 var(--mono);
  overflow-wrap: anywhere;
}

.doc-copy {
  color: #cec7be;
  font-size: 14px;
  font-family: var(--font);
  font-weight: 520;
  line-height: 1.68;
  letter-spacing: 0;
}

.preview-intro,
.user-panel {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.user-panel { margin-bottom: 14px; }

.server-picker {
  margin: 14px 0;
}

.server-card,
.user-card {
  padding: 16px;
}

.server-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ember-strong);
  background: rgba(244, 122, 36, .1);
  font-weight: 900;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-dashboard {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.dashboard-nav {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 10px;
  display: grid;
  gap: 7px;
}

.tab-button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 9px 10px;
  cursor: pointer;
}

.tab-button.active,
.tab-button:hover {
  color: var(--ember-strong);
  border-color: var(--line);
  background: rgba(244, 122, 36, .08);
}

.dashboard-content {
  min-height: 420px;
  padding: 18px;
}

.metric-grid,
.form-grid,
.audit-list {
  display: grid;
  gap: 12px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 7px;
}

.field.full { grid-column: 1 / -1; }

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-card,
.preview-box,
.audit-row {
  padding: 14px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--ember);
}

.switch.mini {
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.engine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tall-select {
  min-height: 124px;
  overflow: auto;
}

.field small {
  color: var(--soft);
  font-size: 11px;
}

.legal-grid .panel {
  min-height: 0;
}

.legal-grid {
  align-content: start;
  align-items: stretch;
}

.legal-overview {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 8px 2px 20px;
  border-bottom: 1px solid var(--line);
}

.legal-overview h2 {
  max-width: 760px;
  margin: 7px 0 10px;
  font: 860 clamp(32px, 5vw, 58px)/1 var(--display);
  color: #ffd39a;
}

.legal-overview p {
  max-width: 700px;
  margin: 0;
  font-size: 16px;
}

.legal-trust-strip {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.legal-trust-strip span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 157, 61, .22);
  border-radius: 6px;
  background: rgba(13, 10, 7, .76);
  color: #e6d4bf;
  font-size: 12px;
  font-weight: 720;
}

.legal-summary-card {
  display: flex;
  min-height: 310px !important;
  flex-direction: column;
  align-self: stretch;
}

.legal-summary-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 22px;
  padding: 0;
  list-style: none;
}

.legal-summary-list li {
  position: relative;
  padding-left: 17px;
  color: #cfc7bd;
}

.legal-summary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px rgba(244, 122, 36, .55);
}

.legal-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-weight: 780;
}

.legal-link span {
  transition: transform .18s ease;
}

.legal-link:hover span {
  transform: translateX(3px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 22px 0 34px;
  color: var(--soft);
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.maintenance-screen {
  position: relative;
  z-index: 30;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 72px);
}

.maintenance-shell {
  width: min(760px, 100%);
  display: grid;
  gap: 18px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 189, 105, .28);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(244, 122, 36, .14), rgba(189, 109, 53, .08)), rgba(8, 7, 6, .92);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
}

.maintenance-shell h1 {
  margin: 0;
  font: 900 clamp(34px, 7vw, 76px)/.96 var(--display);
}

body.public-maintenance .docs-shell {
  display: none;
}

.docs-main .doc-section:not(.active-doc-section) {
  display: none;
}

.docs-main .doc-section.active-doc-section {
  display: block;
  min-height: calc(100vh - 128px);
}

/* Active routes must never remain hidden by the pre-load reveal observer. */
.docs-main .doc-section.active-doc-section.revealable {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Module navigation is intentionally instant; ambient and hover motion remains. */
.docs-main .doc-section.active-doc-section.revealable,
.docs-main .doc-section.active-doc-section .revealable {
  transition: none !important;
  transition-delay: 0s !important;
}

.docs-main .hero-section.active-doc-section,
.docs-main .two-column.active-doc-section,
.docs-main .legal-grid.active-doc-section {
  display: grid;
}

body.public-dashboard-mode {
  overflow-x: hidden;
}

body.public-dashboard-mode .docs-shell {
  width: 100%;
  max-width: none;
  display: block;
  padding: 0;
}

body.public-dashboard-mode .docs-sidebar,
body.public-dashboard-mode .topbar,
body.public-dashboard-mode .site-footer {
  display: none;
}

body.public-dashboard-mode .docs-main {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.public-dashboard-mode .docs-main .doc-section:not(#dashboard-preview) {
  display: none !important;
}

body.public-dashboard-mode #dashboard-preview.active-doc-section {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-height: 100vh;
  padding: 16px;
}

body.public-dashboard-mode #dashboard-preview > .section-head {
  display: none;
}

body.public-dashboard-mode #userPanel {
  grid-column: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 10px;
  margin: 0;
}

body.public-dashboard-mode #userPanel .btn {
  width: 100%;
}

body.public-dashboard-mode #serverPicker {
  grid-column: 1;
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 0;
  max-height: calc(100vh - 154px);
  overflow: auto;
  padding-right: 2px;
}

body.public-dashboard-mode #serverDashboard {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: calc(100vh - 32px);
  margin: 0;
  grid-template-columns: 254px minmax(0, 1fr);
  align-items: start;
}

body.public-dashboard-mode .dashboard-nav,
body.public-dashboard-mode .dashboard-content {
  max-height: calc(100vh - 32px);
  overflow: auto;
}

body.public-dashboard-mode .dashboard-nav {
  position: sticky;
  top: 16px;
  border-radius: 8px;
}

body.public-dashboard-mode .dashboard-content {
  display: grid;
  gap: 14px;
}

.dashboard-account {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.dashboard-account strong {
  display: block;
  margin-top: 3px;
}

.dashboard-account p,
.server-card p,
.dashboard-hero p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-account-meta,
.server-card-meta,
.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dashboard-account-meta {
  justify-content: space-between;
  color: var(--soft);
  font-size: 12px;
}

.dashboard-side-title {
  display: grid;
  gap: 3px;
  padding: 4px 4px 8px;
}

.dashboard-side-title strong {
  color: var(--text);
}

.server-card {
  display: grid;
  gap: 12px;
  cursor: pointer;
}

.server-card.active {
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(244, 122, 36, .12), transparent),
    rgba(18, 12, 8, .9);
}

.avatar.big {
  width: 58px;
  height: 58px;
}

.tab-button {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tab-button span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 189, 105, .15);
  border-radius: 7px;
  color: var(--ember-strong);
  background: rgba(244, 122, 36, .08);
  font-size: 11px;
  font-weight: 900;
}

.dashboard-hero,
.dashboard-tab-surface {
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .036), transparent),
    rgba(14, 10, 7, .86);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .18);
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.dashboard-hero h3,
.tab-heading h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
}

.dashboard-tab-surface {
  padding: 18px;
}

.tab-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hidden { display: none !important; }

.toast {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: 18px;
  max-width: min(380px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(8, 7, 6, .94);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.revealable {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .42s ease, transform .42s ease;
  will-change: opacity, transform;
}

.revealable.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.legal-page {
  min-height: 100vh;
}

.legal-shell {
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 70px;
}

.legal-hero {
  min-height: 300px;
  display: grid;
  align-content: center;
  gap: 16px;
}

.legal-hero h1 {
  margin: 0;
  font: 900 clamp(42px, 8vw, 88px)/.96 var(--display);
  background: linear-gradient(90deg, #f2fdff, #ffbd69 40%, #bd6d35 76%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-content,
.legal-list {
  display: grid;
  gap: 12px;
}

.legal-card {
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(18px, 3vw, 28px);
}

.legal-list {
  list-style: none;
  padding: 0;
}

.legal-list li {
  color: var(--muted);
}

.legal-note {
  border-left: 3px solid var(--ember);
  padding: 13px 15px;
  background: rgba(244, 122, 36, .08);
}

/* Unified Headless typography and pumpkin-fire title treatment. */
.brand strong,
.topbar-brand {
  width: fit-content;
  color: transparent;
  background: var(--pumpkin-card-title);
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(244, 122, 36, .18));
  animation: titleSheen 8s ease-in-out infinite;
}

.section-head h2,
.two-column h2,
.category-doc-hero h3,
.dashboard-hero h3,
.tab-heading h3,
.maintenance-shell h1,
.legal-hero h1 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  color: transparent;
  background: var(--pumpkin-title);
  background-size: 190% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 10px 22px rgba(0, 0, 0, .42))
    drop-shadow(0 0 16px rgba(244, 122, 36, .2));
  animation: titleSheen 7s ease-in-out infinite;
}

.section-head h2,
.two-column h2,
.category-doc-hero h3,
.dashboard-hero h3,
.tab-heading h3 {
  padding-bottom: 12px;
}

.section-head h2::after,
.two-column h2::after,
.category-doc-hero h3::after,
.dashboard-hero h3::after,
.tab-heading h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: min(190px, 48%);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffba61, #f47a24 58%, rgba(169, 50, 13, 0));
  box-shadow: 0 0 12px rgba(244, 122, 36, .5), 0 0 28px rgba(244, 122, 36, .18);
  transform-origin: left center;
  animation: pumpkinTitleLine 4.8s ease-in-out infinite;
}

.panel h3,
.feature-card strong,
.command-card h3,
.doc-detail-card h3,
.category-doc-card h4,
.module-card strong,
.legal-card h2,
.legal-card h3 {
  width: fit-content;
  max-width: 100%;
  color: transparent;
  background: var(--pumpkin-card-title);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--display);
  font-weight: 650;
  filter: drop-shadow(0 0 10px rgba(244, 122, 36, .1));
}

.eyebrow,
.panel-kicker,
.metric span,
.command-stats span {
  font-family: var(--display);
  letter-spacing: 0;
}

@keyframes pumpkinTitleLine {
  0%, 100% { opacity: .58; transform: scaleX(.76); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes navEmberPulse {
  0%, 100% {
    opacity: .72;
    filter: brightness(.94);
    box-shadow: 0 0 8px rgba(255, 157, 61, .42), 0 0 18px rgba(244, 122, 36, .16);
  }
  50% {
    opacity: 1;
    filter: brightness(1.16);
    box-shadow: 0 0 12px rgba(255, 189, 105, .72), 0 0 28px rgba(244, 122, 36, .3);
  }
}

@keyframes sectionHalloweenDrift {
  0% {
    opacity: .34;
    transform: translate3d(1.2%, .6%, 0) scale(1.015);
  }
  52% {
    opacity: .47;
  }
  100% {
    opacity: .39;
    transform: translate3d(-.8%, -1%, 0) scale(1.045);
  }
}

@keyframes ownerHalloweenDrift {
  0% {
    transform: translate3d(1.6%, .8%, 0) scale(1.025);
  }
  100% {
    transform: translate3d(-1.2%, -1%, 0) scale(1.075);
  }
}

@keyframes ownerCardGlow {
  0%, 100% {
    border-color: rgba(255, 157, 61, .2);
    box-shadow: 0 22px 54px rgba(0, 0, 0, .34), 0 0 20px rgba(244, 122, 36, .045);
  }
  50% {
    border-color: rgba(255, 189, 105, .36);
    box-shadow: 0 24px 62px rgba(0, 0, 0, .4), 0 0 30px rgba(244, 122, 36, .12);
  }
}

@keyframes gridMove {
  from { background-position: 0 0, 0 0; }
  to { background-position: 62px 62px, 62px 62px; }
}

@keyframes raySlide {
  from { transform: translateX(-9vw) rotate(-13deg); }
  to { transform: translateX(9vw) rotate(-10deg); }
}

@keyframes scanMove {
  from { background-position: 0 -520px; }
  to { background-position: 0 520px; }
}

@keyframes markPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(244, 122, 36, .1); }
  50% { box-shadow: 0 0 38px rgba(244, 122, 36, .28); }
}

@keyframes bootSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bootMark {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 26px rgba(244, 122, 36, .16);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 40px rgba(244, 122, 36, .32);
  }
}

@keyframes bootGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 76px 76px, 76px 76px; }
}

@keyframes bootAurora {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
    background-position: 0 0, 0 0, 0% 50%;
  }
  100% {
    transform: translate3d(2%, 1%, 0) scale(1.03);
    background-position: 0 0, 0 0, 100% 50%;
  }
}

@keyframes bootCardEnter {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes bootCardFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}

@keyframes bootCardGlow {
  0%, 100% { opacity: .46; }
  50% { opacity: .88; }
}

@keyframes bootCardSheen {
  0%, 28% { transform: translateX(-130%); opacity: 0; }
  44% { opacity: 1; }
  72%, 100% { transform: translateX(260%); opacity: 0; }
}

@keyframes bootProgressFlow {
  from { background-position: 0% 50%; }
  to { background-position: 180% 50%; }
}

@keyframes titleSheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes headlessTitleHeat {
  0%, 100% { background-position: 50% 0%; }
  42% { background-position: 50% 72%; }
  68% { background-position: 50% 100%; }
}

@keyframes headlessTitleGlow {
  0%, 100% {
    filter:
      drop-shadow(0 12px 30px rgba(0, 0, 0, .72))
      drop-shadow(0 0 14px rgba(244, 122, 36, .18));
  }
  48% {
    filter:
      drop-shadow(0 12px 30px rgba(0, 0, 0, .72))
      drop-shadow(0 0 27px rgba(244, 122, 36, .4));
  }
}

@keyframes headlessTitleFlame {
  0%, 100% {
    opacity: .34;
    background-position: 0% 50%;
    transform: scaleX(.9) scaleY(.72);
  }
  44% {
    opacity: .72;
    background-position: 100% 50%;
    transform: scaleX(1) scaleY(1.08);
  }
  72% {
    opacity: .48;
    transform: scaleX(.96) scaleY(.88);
  }
}

@keyframes panelFireEdge {
  0%, 100% {
    opacity: .16;
    background-position: 0% 50%;
    transform: translateY(3px) scaleX(.86) scaleY(.72);
  }
  38% {
    opacity: .48;
    background-position: 76% 50%;
    transform: translateY(0) scaleX(1) scaleY(1.05);
  }
  68% {
    opacity: .28;
    background-position: 100% 50%;
    transform: translateY(2px) scaleX(.94) scaleY(.86);
  }
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes panelLine {
  0%, 100% {
    opacity: .28;
    transform: scaleX(.72);
  }
  50% {
    opacity: .78;
    transform: scaleX(1);
  }
}

@keyframes ambientSweep {
  0%, 100% {
    opacity: .16;
    transform: translate3d(-24%, 0, 0);
  }
  48% {
    opacity: .48;
  }
  58% {
    opacity: .3;
    transform: translate3d(24%, 0, 0);
  }
}

@keyframes ambientThreads {
  from { transform: translate3d(-4%, -2%, 0); }
  to { transform: translate3d(4%, 2%, 0); }
}

@keyframes buttonGlowPass {
  0%, 64% {
    opacity: 0;
    transform: translateX(0) skewX(-14deg);
  }
  74% {
    opacity: .7;
  }
  88%, 100% {
    opacity: 0;
    transform: translateX(520%) skewX(-14deg);
  }
}

@keyframes heroCinematic {
  0% {
    transform: translate3d(-.7%, .35%, 0) scale(1.035);
  }
  100% {
    transform: translate3d(.8%, -.45%, 0) scale(1.07);
  }
}

@keyframes fireBreath {
  0%, 100% {
    opacity: .42;
    transform: scale(.98);
  }
  38% {
    opacity: .7;
    transform: scale(1.035);
  }
  64% {
    opacity: .54;
    transform: scale(1.01);
  }
}

@keyframes heroLightSweep {
  0%, 28% {
    opacity: 0;
    transform: translate3d(-42%, 0, 0);
  }
  46% {
    opacity: .34;
  }
  68%, 100% {
    opacity: 0;
    transform: translate3d(42%, 0, 0);
  }
}

@keyframes emberLift {
  0% {
    opacity: 0;
    transform: translate3d(0, 16px, 0) rotate(var(--ember-rotate)) scaleY(.72);
  }
  12% {
    opacity: .74;
  }
  72% {
    opacity: .34;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--ember-drift), calc(var(--ember-rise, 190px) * -1), 0) rotate(calc(var(--ember-rotate) + 12deg)) scaleY(1.12);
  }
}

@keyframes heroSignal {
  0%, 100% {
    opacity: .2;
    transform: scaleX(.55);
  }
  50% {
    opacity: .64;
    transform: scaleX(1);
  }
}

/* Pause motion only while the tab is hidden; visible pages keep the full Headless identity. */
html.page-hidden *,
html.page-hidden *::before,
html.page-hidden *::after {
  animation-play-state: paused !important;
}

@media (max-width: 1040px) {
  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: relative;
    height: auto;
    grid-template-rows: auto;
  }

  .docs-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-doc-grid,
  .doc-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-doc-card,
  .doc-detail-card {
    grid-column: auto;
  }

  .docs-main {
    width: min(100%, 1180px);
  }

  .hero-section,
  .two-column,
  .server-dashboard {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    width: min(620px, 70%);
  }

  .hero-copy h1 {
    font-size: 76px;
  }

  .dashboard-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.public-dashboard-mode #dashboard-preview.active-doc-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  body.public-dashboard-mode #serverPicker,
  body.public-dashboard-mode #serverDashboard {
    grid-column: 1;
  }

  body.public-dashboard-mode #serverDashboard {
    grid-row: auto;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  body.public-dashboard-mode .dashboard-nav,
  body.public-dashboard-mode .dashboard-content,
  body.public-dashboard-mode #serverPicker {
    max-height: none;
    overflow: visible;
  }

  body.public-dashboard-mode .dashboard-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .legal-overview {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .legal-trust-strip {
    justify-content: flex-start;
  }

  .legal-summary-card {
    min-height: 0 !important;
  }

  .docs-shell {
    display: block;
  }

  .docs-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: auto;
    max-height: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 14px 8px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .docs-sidebar .brand {
    width: fit-content;
  }

  .sidebar-status,
  .sidebar-actions {
    display: none;
  }

  .docs-nav {
    width: 100%;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 3px;
    scrollbar-width: thin;
  }

  .nav-group {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
  }

  .nav-group h2 {
    display: none;
  }

  .nav-item {
    width: auto;
    min-width: max-content;
    min-height: 36px;
    grid-template-columns: 24px auto;
    gap: 6px;
    padding: 6px 9px;
  }

  .nav-item:hover {
    transform: none;
  }

  .nav-item::before {
    top: 6px;
    bottom: 6px;
  }

  .docs-main {
    padding-inline: 14px;
  }

  .command-head,
  .preview-intro,
  .user-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .command-tools,
  .hero-actions {
    width: 100%;
  }

  .command-tools .input,
  .hero-actions .btn {
    width: 100%;
  }

  .topbar {
    min-height: 62px;
    align-items: center;
    padding-block: 10px;
  }

  .topbar .eyebrow,
  .topbar-actions .icon-link,
  .topbar-actions .btn:not(.primary) {
    display: none;
  }

  .topbar-actions {
    width: auto;
  }

  .topbar-actions .btn.primary {
    width: auto;
  }

  .feature-grid,
  .command-grid,
  .legal-grid,
  .server-picker,
  .module-grid,
  .category-doc-grid,
  .doc-detail-grid,
  .status-board,
  .engine-grid,
  .metric-grid,
  .form-grid,
  .dashboard-nav,
  .docs-nav,
  .command-grid.compact {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    padding: 18px 14px;
  }

  .hero-section {
    --hero-height: 680px;
    min-height: 680px;
  }

  .hero-figure {
    background-position: 64% center;
  }

  .hero-shade {
    background: linear-gradient(
      180deg,
      rgba(5, 5, 4, .88) 0%,
      rgba(5, 5, 4, .72) 48%,
      rgba(5, 5, 4, .97) 82%,
      rgba(5, 5, 4, 1) 100%
    );
  }

  .hero-copy {
    width: 100%;
    align-content: end;
    padding: 220px 0 18px;
  }

  .hero-copy h1 {
    font-size: 58px;
  }

  .status-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  body.public-dashboard-mode #dashboard-preview.active-doc-section {
    padding: 10px;
  }

  body.public-dashboard-mode .dashboard-nav {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .doc-section:not(.hero-section)::before {
    height: 560px;
    background-position: 62% center;
    opacity: .3;
  }

  .compact-owner {
    min-height: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) *,
  html:not([data-motion="full"]) *::before,
  html:not([data-motion="full"]) *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* === HEADLESS UNIVERSAL DESIGN SYSTEM BUILD === */
/* Headless universal interface system.
   This layer intentionally sits after legacy styles so existing hooks and
   renderers can migrate without changing their behavioral contracts. */

@font-face {
  font-family: "Manrope";
  src: url("./ManropeLatin.woff2") format("woff2"), url("./assets/fonts/ManropeLatin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("./SpaceGroteskLatin.woff2") format("woff2"), url("./assets/fonts/SpaceGroteskLatin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg-primary: #0b0b0d;
  --bg-secondary: #101013;
  --bg-elevated: #17171b;
  --surface: #131316;
  --surface-hover: #1b1a1e;
  --border-subtle: rgba(255, 224, 198, .09);
  --border-strong: rgba(255, 190, 133, .18);
  --text-primary: #f7f3ee;
  --text-secondary: #c1b9b1;
  --text-muted: #817970;
  --pumpkin: #f4872f;
  --pumpkin-hot: #ffb45f;
  --pumpkin-deep: #d85b18;
  --accent: var(--pumpkin);
  --accent-hover: var(--pumpkin-hot);
  --accent-soft: rgba(244, 135, 47, .13);
  --accent-contrast: #160d07;
  --ember: #ff7022;
  --success: #63c995;
  --warning: #d8a657;
  --danger: #ed6978;
  --radius-sm: 5px;
  --radius-md: 7px;
  --radius-lg: 10px;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .22);
  --shadow-md: 0 20px 52px rgba(0, 0, 0, .32);
  --transition-fast: 180ms cubic-bezier(.2, .8, .2, 1);
  --font-sans: "Manrope", "Inter", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", "Manrope", "Inter", sans-serif;
  --font-mono: "Cascadia Code", "Fira Code", "SFMono-Regular", Consolas, monospace;

  /* Compatibility aliases used by the existing renderers. */
  --bg: var(--bg-primary);
  --bg-2: var(--bg-secondary);
  --bg-soft: var(--bg-secondary);
  --sidebar: #0d0d10;
  --panel: var(--surface);
  --panel-bg: var(--surface);
  --panel-strong: var(--bg-elevated);
  --panel-hover: var(--surface-hover);
  --surface-2: var(--bg-elevated);
  --surface-3: #201b18;
  --surface-solid: var(--surface);
  --line: var(--border-subtle);
  --border: var(--border-subtle);
  --border-mid: var(--border-strong);
  --line-strong: var(--border-strong);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --soft: var(--text-muted);
  --ok: var(--success);
  --warn: var(--warning);
  --radius: var(--radius-md);
  --radius-xs: var(--radius-sm);
  --shadow: var(--shadow-md);
  --font: var(--font-sans);
  --display: var(--font-display);
  --mono: var(--font-mono);
  --neon-blue: var(--accent);
  --neon-purple: #c4682d;
  --cyber-green: var(--success);
  --cyber-red: var(--danger);
  --accent-2: #ffc06b;
}

* {
  scrollbar-color: rgba(244, 135, 47, .42) transparent;
}

html {
  background: var(--bg-primary);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(244, 135, 47, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 135, 47, .014) 1px, transparent 1px),
    var(--bg-primary);
  background-size: 52px 52px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body::before,
body::after,
.animated-background::before,
.animated-background::after {
  opacity: .12;
}

*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(244, 135, 47, .34);
  background-clip: padding-box;
  box-shadow: none;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(255, 180, 95, .58); background-clip: padding-box; }

::selection { color: #fff; background: rgba(244, 135, 47, .42); }

a { color: #f3a65f; transition: color var(--transition-fast); }
a:hover { color: #ffd09b; text-decoration: none; }

button,
input,
select,
textarea { letter-spacing: 0; }

button,
a,
input,
select,
textarea,
[tabindex] { outline: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4,
.brand-title,
.topbar-brand,
.workspace-title,
.topbar-server {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: 0;
}

p { color: var(--text-secondary); }
code, pre, kbd, samp,
.metric-value,
.workspace-stat strong,
.chip,
.badge,
.select-code,
.command-card h3 {
  font-family: var(--font-mono);
}

.eyebrow,
.panel-kicker,
.workspace-kicker,
.section-title,
.server-section-title,
.category-label,
.side-nav-heading,
.side-active-title {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.btn,
.mini-btn,
.icon-link {
  min-height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: #19181c;
  box-shadow: none;
  color: var(--text-primary);
  font-weight: 650;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.btn:hover,
.mini-btn:hover,
.icon-link:hover {
  border-color: rgba(244, 135, 47, .44);
  background: #211b18;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: none;
}

.btn:active,
.mini-btn:active,
.icon-link:active { transform: translateY(0) scale(.985); }

.btn.primary {
  border-color: #ff9b4c;
  background: var(--accent);
  color: var(--accent-contrast);
}
.btn.primary:hover { border-color: #ffc17c; background: var(--accent-hover); }
.btn.warn { border-color: rgba(216, 166, 87, .35); background: rgba(216, 166, 87, .09); color: #eac580; }
.btn.danger { border-color: rgba(237, 105, 120, .38); background: rgba(237, 105, 120, .10); color: #ffadb6; }
.btn:disabled { cursor: not-allowed; opacity: .42; transform: none; }

.input,
.server-search,
.field input,
.field select,
.field textarea,
input,
select,
textarea {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #0f0f12;
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018);
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.input:hover,
.server-search:hover,
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--border-strong); background: #11151d; }

.input:focus,
.server-search:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(244, 135, 47, .72);
  background: #151317;
  box-shadow: 0 0 0 3px rgba(244, 135, 47, .11);
}

.field { gap: 7px; }
.field label { color: var(--text-secondary); font-size: 12px; font-weight: 650; }
.field small, .field-help { color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.field textarea, textarea { min-height: 108px; resize: vertical; }

.panel,
.card,
.metric,
.module-card,
.preview-box,
.audit-row,
.log-row,
.status-card,
.command-card,
.feature-card,
.legal-card,
.server-card,
.workspace-header,
.sidebar-panel,
.admin-control-card {
  border-color: var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: none;
}

.panel:hover,
.card:hover,
.module-card:hover,
.command-card:hover,
.server-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: var(--shadow-sm);
}

.metric {
  min-height: 92px;
  padding: 15px;
  overflow: hidden;
}
.metric::before { display: none; }
.metric span,
.metric-label { color: var(--text-muted); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.metric strong,
.metric-value { color: var(--text-primary); font-size: 25px; font-weight: 650; }

.chip,
.badge,
.draft-chip {
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: var(--text-secondary);
  box-shadow: none;
  font-size: 10px;
}
.chip.ok, .badge.ok { border-color: rgba(99, 201, 149, .25); color: #8cddb1; background: rgba(99, 201, 149, .08); }
.chip.warn, .badge.warn { border-color: rgba(216, 166, 87, .25); color: #e6c27f; background: rgba(216, 166, 87, .08); }
.chip.danger, .badge.danger { border-color: rgba(237, 105, 120, .25); color: #ff9faa; background: rgba(237, 105, 120, .08); }

.switch,
.switch-row {
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, .025);
}

.switch input,
.switch-row input[type="checkbox"] {
  position: relative;
  box-sizing: border-box;
  width: 36px;
  min-width: 36px;
  height: 20px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #222733;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.switch input::after,
.switch-row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #949bad;
  transform: translateY(-50%);
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.switch input:checked,
.switch-row input[type="checkbox"]:checked { border-color: var(--accent); background: rgba(244, 135, 47, .42); }
.switch input:checked::after,
.switch-row input[type="checkbox"]:checked::after { background: #fff; transform: translate(16px, -50%); }

.sidebar,
.docs-sidebar {
  border-color: var(--border-subtle);
  background: rgba(13, 16, 22, .98);
  box-shadow: none;
}

.brand,
.topbar,
.docs-main > .topbar {
  border-color: var(--border-subtle);
  background: rgba(11, 11, 13, .9);
  backdrop-filter: blur(14px);
}

.brand-mark,
.avatar {
  border-radius: var(--radius-md);
  background: #211a15;
  color: var(--accent);
}

.status-dot,
.pulse { box-shadow: none; animation: none; }

.side-group-grid { grid-template-columns: 1fr; gap: 3px; }
.side-group-button,
.side-nav-item,
.tab-button,
.docs-nav button,
.docs-nav a {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  transform: none;
}
.side-group-button { min-height: 44px; grid-template-columns: 28px minmax(0, 1fr); }
.side-group-button:hover,
.side-group-button.active,
.side-nav-item:hover,
.side-nav-item.active,
.tab-button:hover,
.tab-button.active,
.docs-nav button:hover,
.docs-nav button.active,
.docs-nav a:hover,
.docs-nav a.active {
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, .045);
  color: var(--text-primary);
  transform: none;
  box-shadow: inset 2px 0 0 var(--accent);
}

.side-group-icon,
.side-nav-icon,
.docs-nav .nav-icon {
  border-color: var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .025);
  color: var(--text-muted);
  box-shadow: none;
}

.main,
.docs-main {
  background: transparent;
}

.topbar { min-height: 64px; padding: 11px 22px; }
.page-wrap { width: min(100%, 1540px); padding: 18px 24px 52px; gap: 14px; }

.workspace-header {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .75fr);
  padding: 16px;
  background: linear-gradient(135deg, rgba(244, 135, 47, .065), transparent 48%), var(--surface);
}
.workspace-tabs { gap: 4px; }
.workspace-tab {
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
}
.workspace-tab:hover,
.workspace-tab.active { border: 0; background: var(--accent-soft); color: #ffd0a2; }
.workspace-stat { border-color: var(--border-subtle); background: var(--bg-secondary); }

.module-header,
.universal-module-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.universal-module-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: #ffc17d;
  font: 700 11px/1 var(--font-mono);
}
.universal-module-copy h3 { margin: 0; font-size: 17px; }
.universal-module-copy p { margin: 3px 0 0; color: var(--text-muted); font-size: 12px; }
.universal-module-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.settings-accordion {
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.settings-accordion > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 15px;
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.settings-accordion > summary::-webkit-details-marker { display: none; }
.settings-accordion > summary > span { min-width: 0; flex: 1 1 auto; }
.settings-accordion > summary > small { flex: 0 0 auto; color: var(--text-muted); font-size: 9px; font-weight: 550; }
.settings-accordion > summary::after { content: "+"; color: var(--text-muted); font: 16px/1 var(--font-mono); }
.settings-accordion[open] > summary::after { content: "−"; }
.settings-accordion[open] > summary { border-bottom: 1px solid var(--border-subtle); }
.settings-accordion-body { padding: 15px; }

.form-grid { gap: 13px; }
.module-grid { gap: 10px; }
.module-card { min-height: 0; padding: 15px; }
.module-card p { font-size: 12px; line-height: 1.5; }

.table-shell {
  overflow: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; }
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #151923;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: .065em;
  text-align: left;
  text-transform: uppercase;
}
th, td { padding: 11px 13px; border-bottom: 1px solid var(--border-subtle); }
tbody tr { transition: background var(--transition-fast); }
tbody tr:hover { background: rgba(255, 255, 255, .025); }

.empty,
.empty-state {
  min-height: 180px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .012);
  color: var(--text-muted);
  text-align: center;
}

.toast {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: #1a1f2a;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.danger-zone {
  border: 1px solid rgba(237, 105, 120, .23);
  border-radius: var(--radius-md);
  background: rgba(237, 105, 120, .045);
}

@media (max-width: 1180px) {
  .workspace-header { grid-template-columns: 1fr; }
  .workspace-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .page-wrap { padding: 14px 14px 88px; }
  .topbar { position: sticky; padding: 10px 14px; }
  .topbar-actions { max-width: none; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; }
  .topbar-actions .btn { white-space: nowrap; }
  .form-grid, .module-grid, .metric-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .universal-module-header { grid-template-columns: auto minmax(0, 1fr); }
  .universal-module-actions { grid-column: 1 / -1; justify-content: stretch; }
  .universal-module-actions .btn { flex: 1; }
}

@media (max-width: 640px) {
  body { font-size: 13px; }
  .workspace-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .metric { min-height: 78px; }
  .btn { min-height: 40px; }
  .settings-accordion-body { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) *,
  html:not([data-motion="full"]) *::before,
  html:not([data-motion="full"]) *::after {
    scroll-behavior: auto;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@keyframes headlessEmberPulse {
  0%, 100% { opacity: .72; filter: saturate(.92) brightness(.96); }
  42% { opacity: 1; filter: saturate(1.16) brightness(1.08); }
  56% { opacity: .82; filter: saturate(1.02) brightness(1); }
}

@keyframes headlessFlameTrace {
  0%, 100% { opacity: .18; transform: scaleX(.24); }
  48% { opacity: .82; transform: scaleX(1); }
  64% { opacity: .42; transform: scaleX(.62); }
}

@keyframes headlessOpsPulse {
  0%, 100% { opacity: .48; transform: scale(.82); box-shadow: 0 0 0 0 rgba(244, 135, 47, .05); }
  46% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 6px rgba(244, 135, 47, .08); }
}

@keyframes headlessTerminalScan {
  0% { transform: translate3d(0, -120%, 0); opacity: 0; }
  18% { opacity: .24; }
  72% { opacity: .12; }
  100% { transform: translate3d(0, 520%, 0); opacity: 0; }
}

@keyframes headlessCursorBlink {
  0%, 44% { opacity: 1; }
  45%, 100% { opacity: .14; }
}

@keyframes headlessTerminalFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 0); }
}

@keyframes headlessTerminalDataFlow {
  from { background-position: -220px 0; }
  to { background-position: 440px 0; }
}

@keyframes headlessTerminalPulse {
  50% { transform: scale(1.65); opacity: .3; box-shadow: 0 0 15px rgba(108, 222, 162, .9); }
}

@keyframes headlessTerminalRefresh {
  0% { filter: brightness(1); }
  45% { filter: brightness(1.35) saturate(1.3); }
  100% { filter: brightness(1); }
}

.brand-mark {
  position: relative;
  border-color: rgba(244, 135, 47, .28);
  box-shadow: 0 0 18px rgba(216, 91, 24, .08);
  animation: headlessEmberPulse 5.6s ease-in-out infinite;
}

.workspace-header,
.module-header,
.universal-module-header,
.dashboard-hero {
  position: relative;
  overflow: hidden;
}

.workspace-header::before,
.module-header::before,
.universal-module-header::before,
.dashboard-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 12%;
  width: 76%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 112, 34, .34), #ffb45f, rgba(255, 112, 34, .34), transparent);
  transform-origin: center;
  animation: headlessFlameTrace 7.2s ease-in-out infinite;
}

.workspace-header > *,
.module-header > *,
.universal-module-header > *,
.dashboard-hero > * { position: relative; z-index: 2; }

.topbar-ops {
  min-width: 0;
  flex: 0 1 390px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-inline: auto;
  padding: 8px 11px;
  border: 1px solid rgba(244, 135, 47, .14);
  border-radius: var(--radius-md);
  background: rgba(9, 9, 11, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018);
}

.topbar-ops code {
  min-width: 0;
  display: flex;
  align-items: center;
  color: #c8b7a8;
  font: 600 10px/1.2 var(--font-mono);
  white-space: nowrap;
}

.topbar-ops code > span:last-of-type {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-ops code i {
  width: 6px;
  height: 12px;
  margin-left: 4px;
  background: var(--accent);
  animation: headlessCursorBlink 1.05s steps(1, end) infinite;
}

.ops-prefix { margin-right: 4px; color: var(--accent); }
.ops-beacon {
  width: 7px;
  min-width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: headlessOpsPulse 2.2s ease-in-out infinite;
}
.ops-beacon.is-warning { background: var(--warning); }

.section-head h2,
.two-column h2,
.legal-overview h2,
.app .section-header h2,
.app .section-header h3 {
  color: #f8eee4;
  text-shadow: 0 8px 28px rgba(216, 91, 24, .08);
}

/* Public product surface -------------------------------------------------- */
.animated-background .bg-ray,
.animated-background .bg-water,
.animated-background .bg-ribbon,
.animated-background .bg-scan { display: none; }

.animated-background .bg-ray,
.animated-background .bg-water { display: block; }

html[data-performance="lite"] .animated-background .bg-ray,
html[data-performance="lite"] .animated-background .bg-water {
  opacity: .1;
  animation-duration: 34s;
}

.hero-embers,
.section-embers,
.hero-fire-glow {
  display: block;
  contain: strict;
}

.animated-background .bg-grid {
  opacity: .12;
  background-image:
    linear-gradient(rgba(244, 135, 47, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 135, 47, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: none;
  transform: perspective(860px) rotateX(65deg) translateY(-11%);
}

.docs-shell { grid-template-columns: 252px minmax(0, 1fr); max-width: 1920px; margin: 0 auto; }
.docs-sidebar { width: 252px; padding: 16px 12px; }
.docs-sidebar .brand { margin: 0 0 12px; padding: 8px; border: 0; }
.sidebar-status { margin: 0 4px 16px; border-color: var(--border-subtle); background: #151317; }
.docs-nav { padding-right: 3px; }
.docs-nav section { margin-bottom: 15px; }
.docs-nav h2,
.docs-nav h3 { padding: 0 9px 5px; color: var(--text-muted); font-size: 9px; letter-spacing: .08em; }
body .docs-nav h2,
body .docs-nav h3 { color: var(--text-muted); }
.docs-nav button { padding: 7px 9px; }
.docs-nav button span:last-child { font-size: 12px; }
.docs-nav .nav-item.active::before { background: var(--accent); }
.sidebar-actions { padding: 12px 4px 0; border-color: var(--border-subtle); }

.docs-main { min-width: 0; }
.docs-main > .topbar { min-height: 72px; padding: 12px clamp(18px, 4vw, 54px); }
.topbar-brand { font-size: 18px; }
.doc-section { width: min(100% - 48px, 1320px); margin-inline: auto; padding: clamp(44px, 6vw, 78px) 0; }
.doc-section:not(.hero-section) { border-top: 1px solid var(--border-subtle); }
.doc-section.active-doc-section:not(.hero-section)::before {
  opacity: .58;
  filter: saturate(1.22) contrast(1.08) brightness(.72);
}
.doc-section:not(.hero-section)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 112, 34, .28), #ffb45f, rgba(255, 112, 34, .28), transparent);
  transform-origin: center;
  animation: headlessFlameTrace 8.4s ease-in-out infinite;
}

.hero-section {
  width: min(100% - 48px, 1320px);
  min-height: min(790px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(540px, 1.16fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 26px;
  overflow: hidden;
  border: 0;
  background: transparent;
  transition: grid-template-columns .38s ease;
}
.hero-section.terminal-focus { grid-template-columns: minmax(0, .58fr) minmax(650px, 1.42fr); }
.hero-scene { inset: 0; opacity: .36; }
.hero-figure {
  background-position: 75% center;
  filter: saturate(.92) contrast(1.1) brightness(.9);
  opacity: .76;
}
.hero-shade {
  background:
    linear-gradient(90deg, rgba(11, 11, 13, .99) 0%, rgba(11, 11, 13, .84) 43%, rgba(11, 11, 13, .24) 75%, rgba(11, 11, 13, .72) 100%),
    linear-gradient(0deg, var(--bg-primary), transparent 28%);
}
.hero-copy { position: relative; z-index: 2; min-width: 0; max-width: 620px; padding: 44px 0; }
.hero-copy h1 {
  margin: 18px 0 14px;
  color: #ffd09a;
  max-width: 100%;
  font-size: 76px;
  line-height: .88;
  letter-spacing: 0;
  background: linear-gradient(180deg, #fff8ef 0%, #ffd29d 52%, #f4872f 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 34px rgba(216, 91, 24, .14);
}
.hero-copy h1::before,
.hero-copy h1::after { display: none; }
.hero-copy > p { max-width: 650px; color: var(--text-secondary); font-size: 18px; }
.hero-copy .hero-tagline { margin-bottom: 10px; color: #f6a85f; font: 650 13px/1.4 var(--font-mono); text-transform: uppercase; }
.hero-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 430px); gap: 8px; }
.hero-actions .btn { min-height: 42px; justify-content: center; padding-inline: 9px; font-size: 10px; white-space: nowrap; }

.hero-product-preview {
  position: relative;
  z-index: 3;
  width: min(100%, 680px);
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(9, 9, 11, .96);
  box-shadow: var(--shadow-md), 0 0 60px rgba(216, 91, 24, .08);
  animation: headlessTerminalFloat 7s ease-in-out infinite;
  transition: width .38s ease, border-color .28s ease, box-shadow .28s ease, filter .28s ease;
}
.hero-product-preview:hover, .hero-product-preview.is-expanded { border-color: rgba(255, 170, 89, .5); box-shadow: var(--shadow-md), 0 0 72px rgba(216, 91, 24, .16); filter: saturate(1.08); }
.hero-product-preview.is-expanded { width: min(100%, 780px); }
.hero-product-preview::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 112, 34, .58), #ffd09a, rgba(255, 112, 34, .3), transparent);
  animation: headlessFlameTrace 5.8s ease-in-out infinite;
}
.product-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--border-subtle); }
.product-preview-brand { color: var(--text-muted); font: 700 10px/1 var(--font-mono); letter-spacing: .08em; }
.terminal-clock { color: #e7a265; font: 600 10px/1 var(--font-mono); }
.terminal-panel-tools { display: inline-flex; align-items: center; gap: 7px; }
.terminal-panel-button { min-width: 28px; min-height: 25px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 7px; border: 1px solid rgba(255, 169, 89, .18); border-radius: 6px; background: rgba(255, 255, 255, .025); color: #c8a77f; cursor: pointer; font: 750 8px/1 var(--font-mono); letter-spacing: .06em; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease; }
.terminal-panel-button:hover, .terminal-panel-button[aria-pressed="true"] { border-color: rgba(255, 181, 104, .58); background: rgba(244, 135, 47, .11); color: #ffd2a2; transform: translateY(-1px); }.terminal-panel-button:focus-visible, .terminal-stream-control:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }.terminal-refresh-button i { width: 5px; height: 5px; border-radius: 50%; background: #6cdea2; box-shadow: 0 0 8px rgba(108, 222, 162, .8); }.hero-product-preview.is-refreshing .terminal-refresh-button i { animation: headlessTerminalPulse .55s ease both; }.hero-product-preview.is-refreshing .terminal-window { animation: headlessTerminalRefresh .5s ease both; }
.product-preview-body { display: grid; grid-template-columns: 120px minmax(0, 1fr); min-height: 342px; }
.product-preview-body nav { display: grid; align-content: start; gap: 6px; padding: 16px 11px; border-right: 1px solid var(--border-subtle); background: linear-gradient(180deg, #101014, #0a0a0d); }
.product-preview-body nav button {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font: 650 11px/1.2 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}
.product-preview-body nav button:hover { color: var(--text-primary); background: rgba(255, 255, 255, .035); }
.product-preview-body nav button.active { border-color: rgba(255, 142, 61, .18); background: var(--accent-soft); color: #ffd3a7; }
.product-preview-body nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.product-preview-content { min-width: 0; display: grid; align-content: stretch; gap: 11px; padding: 16px; background: linear-gradient(145deg, rgba(244, 135, 47, .095), transparent 52%); transition: transform .22s ease-out; }
.terminal-window {
  position: relative;
  min-width: 0;
  min-height: 270px;
  display: grid;
  align-content: start;
  gap: 9px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 190, 133, .12);
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.016) 0 1px, transparent 1px 4px),
    #09090b;
  box-shadow: inset 0 0 34px rgba(0, 0, 0, .48);
  font-family: var(--font-mono);
}
.terminal-window::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 149, 57, .04), transparent); background-size: 220px 100%; animation: headlessTerminalDataFlow 9s linear infinite; }
.terminal-window::after {
  content: "";
  position: absolute;
  inset: 0;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(244, 135, 47, .07), transparent);
  animation: headlessTerminalScan 7.8s linear infinite;
}
.terminal-command { position: relative; z-index: 1; margin-bottom: 4px; color: #8f867d; font-size: 10px; }
.terminal-command span { color: #f6a45b; }
.terminal-line {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 38px 48px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #b9afa6;
  font-size: 10px;
  line-height: 1.45;
}
.terminal-line time { color: #6f675f; }
.terminal-line b { font-size: 8px; letter-spacing: .04em; }
.terminal-line > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.terminal-ok { color: #75d49f; }
.terminal-warn { color: #eab766; }
.terminal-accent { color: #ff9f4e; }
.terminal-live-line { padding-top: 9px; border-top: 1px solid rgba(244, 135, 47, .12); }
.terminal-cursor {
  position: absolute;
  right: 14px;
  bottom: 17px;
  width: 5px;
  height: 10px;
  background: var(--accent);
  animation: headlessCursorBlink 1.05s steps(1, end) infinite;
}
.terminal-footer { display: flex; justify-content: space-between; gap: 12px; color: #776f67; font: 600 8px/1 var(--font-mono); text-transform: uppercase; }
.terminal-footer span { display: inline-flex; align-items: center; gap: 6px; }
.terminal-footer i { width: 5px; height: 5px; border-radius: 50%; background: #63c995; box-shadow: 0 0 8px rgba(99,201,149,.42); }
.terminal-stream-control { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; text-transform: inherit; }.terminal-stream-control:hover { color: #e4b98d; }.terminal-stream-control[aria-pressed="true"] i { background: #dc9360; box-shadow: 0 0 8px rgba(220, 147, 96, .36); }.terminal-stream-control[aria-pressed="true"] span::after { content: " pausado"; color: #d99b6e; }
.terminal-window.is-switching > * { animation: headlessTerminalViewIn 190ms ease-out both; }
.terminal-window.is-switching > :nth-child(2) { animation-delay: 25ms; }
.terminal-window.is-switching > :nth-child(3) { animation-delay: 50ms; }
.terminal-window.is-switching > :nth-child(4) { animation-delay: 75ms; }
.terminal-window.is-switching > :nth-child(5) { animation-delay: 100ms; }
.product-preview-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 18px; }
.product-preview-metrics span { padding: 9px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); color: var(--text-muted); font-size: 9px; }
.product-preview-metrics b { display: block; margin-bottom: 5px; color: var(--text-primary); font: 650 14px/1 var(--font-mono); }

.status-board { grid-column: 1 / -1; position: relative; z-index: 2; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: rgba(15, 18, 25, .88); }
.status-board .metric { min-height: 86px; border-right-color: var(--border-subtle); background: transparent; }

.headless-network-showcase {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 18px;
  padding-top: 54px;
  border-top: 1px solid var(--border-subtle);
  box-sizing: border-box;
  min-width: 0;
  padding-inline: clamp(6px, 1.6vw, 24px);
}
.network-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .64fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 34px;
  min-width: 0;
}
.network-section-head h2 { max-width: 720px; min-width: 0; margin: 7px 0 0; color: var(--text-primary); font-size: 38px; line-height: 1.08; overflow-wrap: anywhere; }
.network-section-head p { max-width: 520px; min-width: 0; margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.network-scale {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 32px;
  border-block: 1px solid var(--border-subtle);
  background: rgba(9, 10, 13, .72);
}
.network-metric {
  position: relative;
  min-width: 0;
  padding: 26px 28px;
  border-right: 1px solid var(--border-subtle);
}
.network-metric:last-child { border-right: 0; }
.network-metric-code { display: block; margin-bottom: 14px; color: var(--accent); font: 750 10px/1 var(--font-mono); }
.network-metric strong { display: block; overflow: hidden; color: #fff4e8; font: 750 46px/1 var(--font-display); text-overflow: ellipsis; white-space: nowrap; }
.network-metric small { display: block; margin-top: 11px; color: var(--text-muted); font: 700 10px/1.2 var(--font-mono); text-transform: uppercase; }
.guild-network-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: stretch; gap: 28px; }
.guild-network-stage {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    #0b0c10;
  background-size: 32px 32px;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .42);
}
.guild-network-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 130, 40, .12), transparent 18%),
    linear-gradient(115deg, transparent 42%, rgba(255, 155, 74, .07) 50%, transparent 58%);
  opacity: .72;
  animation: headlessNetworkScan 12s linear infinite;
}
.guild-network-stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 16px;
  border: 1px solid rgba(255, 144, 55, .08);
  pointer-events: none;
  clip-path: polygon(0 0, 18% 0, 18% 1px, 82% 1px, 82% 0, 100% 0, 100% 18%, calc(100% - 1px) 18%, calc(100% - 1px) 82%, 100% 82%, 100% 100%, 82% 100%, 82% calc(100% - 1px), 18% calc(100% - 1px), 18% 100%, 0 100%, 0 82%, 1px 82%, 1px 18%, 0 18%);
}
.network-core {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 150, 72, .45);
  border-radius: 50%;
  background: #15100d;
  box-shadow: 0 0 0 14px rgba(255, 119, 31, .06), 0 0 38px rgba(255, 105, 20, .12);
}
.network-core img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; }
.network-core > span { position: absolute; inset: -15px; border: 1px solid rgba(255, 147, 66, .24); border-radius: 50%; animation: headlessNetworkPulse 2.8s ease-out infinite; }
.guild-network-nodes { position: absolute; inset: 0; z-index: 5; }
.guild-network-node {
  position: absolute;
  width: 214px;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(100deg, rgba(255, 132, 38, 0), rgba(255, 132, 38, .035));
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.guild-network-node.node-1 { left: 5%; top: 12%; }
.guild-network-node.node-2 { right: 5%; top: 12%; flex-direction: row-reverse; text-align: right; }
.guild-network-node.node-3 { left: 2%; top: 44%; }
.guild-network-node.node-4 { right: 2%; top: 44%; flex-direction: row-reverse; text-align: right; }
.guild-network-node.node-5 { left: 13%; bottom: 9%; }
.guild-network-node.node-6 { right: 13%; bottom: 9%; flex-direction: row-reverse; text-align: right; }
.guild-network-avatar,
.guild-spotlight-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: #17191f;
  color: #ffc58f;
  font: 750 12px/1 var(--font-mono);
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.guild-network-avatar img,
.guild-spotlight-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guild-network-label { min-width: 0; opacity: .62; transition: opacity var(--transition-fast), transform var(--transition-fast); }
.guild-network-label strong,
.guild-network-label small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guild-network-label strong { color: var(--text-primary); font-size: 11px; }
.guild-network-label small { margin-top: 4px; color: var(--text-muted); font: 600 9px/1 var(--font-mono); }
.guild-network-node:hover .guild-network-avatar,
.guild-network-node.active .guild-network-avatar { transform: scale(1.06); border-color: rgba(255, 143, 60, .7); box-shadow: 0 0 22px rgba(255, 111, 25, .16); }
.guild-network-node:hover .guild-network-label,
.guild-network-node.active .guild-network-label { opacity: 1; transform: translateY(-1px); }
.guild-network-node:hover,
.guild-network-node:focus-visible,
.guild-network-node.active {
  border-color: rgba(255, 143, 60, .18);
  background: linear-gradient(100deg, rgba(255, 132, 38, .11), rgba(255, 132, 38, .018));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  transform: translateY(-2px);
}
.guild-network-node.active::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -4px -6px;
  border: 1px solid rgba(255, 143, 60, .18);
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(255, 132, 38, .09), transparent 72%);
  animation: headlessNodeLock 1.8s ease-out both;
}
.guild-network-node:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.network-link { position: absolute; z-index: 1; left: 50%; top: 50%; width: 31%; height: 1px; transform-origin: left center; background: linear-gradient(90deg, rgba(255, 130, 44, .22), rgba(255, 130, 44, .035)); }
.network-link::after { content: ""; position: absolute; left: calc(100% - 6px); top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #fff1d6; box-shadow: 0 0 6px #ffb15e, 0 0 15px rgba(255, 108, 24, .86); animation: headlessNetworkPacket 4.2s ease-in-out infinite; }
.network-link-1 { transform: rotate(210deg); }
.network-link-2 { transform: rotate(330deg); }
.network-link-3 { transform: rotate(180deg); }
.network-link-4 { transform: rotate(0deg); }
.network-link-5 { transform: rotate(145deg); }
.network-link-6 { transform: rotate(35deg); }
.network-link-2::after, .network-link-5::after { animation-delay: -1.1s; }
.network-link-3::after, .network-link-6::after { animation-delay: -2.2s; }
.network-loading { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); color: var(--text-muted); font: 600 10px/1 var(--font-mono); white-space: nowrap; }
.network-route.is-active { stroke: rgba(255, 189, 117, .58); stroke-width: 1.8; filter: drop-shadow(0 0 5px rgba(255, 116, 28, .34)); }
.network-signal.is-active { stroke: #fff0d6; stroke-width: 4.6; filter: drop-shadow(0 0 4px #ffb15e) drop-shadow(0 0 10px rgba(255, 101, 19, .92)); animation-duration: 2.8s; }
.network-stage-status {
  position: absolute;
  z-index: 7;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 32px);
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 142, 55, .18);
  border-radius: var(--radius-sm);
  background: rgba(10, 11, 15, .8);
  color: #d7c7b8;
  font: 650 9px/1.2 var(--font-mono);
  backdrop-filter: blur(8px);
}
.network-stage-status i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #72d6a4; box-shadow: 0 0 10px rgba(114, 214, 164, .65); }
.network-stage-status.is-updating span { animation: headlessStatusRefresh 260ms ease-out both; }
.guild-spotlight { align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 28px 4px 28px 12px; border-block: 1px solid var(--border-subtle); }
.guild-spotlight-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.guild-spotlight-avatar { width: 62px; height: 62px; }
.guild-rank { color: var(--accent); font: 750 9px/1 var(--font-mono); }
.guild-spotlight h3 { overflow-wrap: anywhere; margin: 22px 0 16px; color: var(--text-primary); font-size: 22px; line-height: 1.18; }
.guild-spotlight p { margin: 15px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.65; }
.guild-spotlight-metric { padding-block: 16px; border-block: 1px solid var(--border-subtle); }
.guild-spotlight-metric strong { display: block; color: #fff3e6; font: 750 30px/1 var(--font-display); }
.guild-spotlight-metric span { display: block; margin-top: 7px; color: var(--text-muted); font: 650 9px/1 var(--font-mono); text-transform: uppercase; }
.guild-safe-label { align-self: flex-start; margin-top: 22px; padding: 6px 8px; border: 1px solid rgba(99, 201, 149, .18); border-radius: var(--radius-sm); color: #78d6a6; font: 700 8px/1 var(--font-mono); text-transform: uppercase; }

.section-head { max-width: 800px; margin-bottom: 28px; }
.section-head h2, .two-column h2, .legal-overview h2 { margin: 6px 0 10px; font-size: 38px; line-height: 1.05; background: none; -webkit-text-fill-color: currentColor; }

.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--border-subtle); }
.feature-chapter {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 5vw, 72px);
  padding: 30px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.feature-chapter-head { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
.feature-chapter-head > span { color: var(--accent); font: 650 11px/1.5 var(--font-mono); }
.feature-chapter h3 { margin: 0 0 7px; font-size: 25px; }
.feature-chapter p { margin: 0; font-size: 13px; }
.feature-capability-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 22px; }
.feature-capability { padding: 0 0 14px; border-bottom: 1px solid var(--border-subtle); }
.feature-capability strong { display: block; margin-bottom: 4px; color: var(--text-primary); font-size: 13px; }
.feature-capability p { color: var(--text-muted); font-size: 11px; line-height: 1.5; }

.command-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.command-card { min-height: 0; padding: 14px; }
.command-card h3 { font-size: 13px; }
.command-card p { font-size: 11px; }
.category-doc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.server-dashboard { grid-template-columns: 224px minmax(0, 1fr); gap: 12px; align-items: start; }
.server-picker { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.dashboard-nav { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow-y: auto; padding: 12px 8px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface); }
.dashboard-nav-group { display: grid; gap: 2px; margin-top: 13px; }
.dashboard-nav-group:first-of-type { margin-top: 8px; }
.dashboard-nav-label { padding: 0 9px 4px; color: var(--text-muted); font-size: 9px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.tab-button { justify-content: flex-start; padding: 8px 9px; }
.tab-button > span { width: 24px; color: var(--text-muted); font: 650 9px/1 var(--font-mono); }
.dashboard-content { min-width: 0; border: 0; background: transparent; }
.server-card:hover { transform: none; }
.server-card.active { border-color: var(--border-strong); background: var(--surface); }

body.public-dashboard-mode #dashboard-preview.active-doc-section {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}
body.public-dashboard-mode #serverPicker { grid-template-columns: minmax(0, 1fr); }
body.public-dashboard-mode #serverDashboard { grid-template-columns: 220px minmax(0, 1fr); gap: 12px; }
body.public-dashboard-mode .dashboard-hero h1,
body.public-dashboard-mode .dashboard-content h2,
body.public-dashboard-mode .dashboard-content h3 {
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: currentColor;
}
body.public-dashboard-mode .dashboard-hero h1 { font-size: 36px; line-height: 1.08; }
body.public-dashboard-mode .dashboard-content .tab-heading h3 { font-size: 30px; line-height: 1.12; }
.dashboard-hero { margin-bottom: 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface); }
.dashboard-tab-surface { display: grid; gap: 12px; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.settings-stack { display: grid; gap: 10px; }
.module-live-preview { position: sticky; top: 88px; min-height: 220px; padding: 18px; }
.module-live-preview > strong { display: block; margin: 13px 0 7px; font-size: 16px; }
.mobile-save-bar { display: none; }
.universal-overview-grid { grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); }
.overview-activity, .overview-health { padding: 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface); }
.compact-list { gap: 0; }
.compact-list .audit-row { display: grid; grid-template-columns: minmax(120px, .4fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border: 0; border-bottom: 1px solid var(--border-subtle); border-radius: 0; background: transparent; }
.compact-list .audit-row p { margin: 0; color: var(--text-muted); font-size: 11px; }
.compact-list .audit-row span { color: var(--text-muted); font: 10px/1 var(--font-mono); }
.health-list { display: grid; margin-top: 12px; }
.health-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.status-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; border: 1px solid var(--border-subtle); border-radius: 999px; color: var(--text-secondary); background: rgba(255,255,255,.025); font: 650 9px/1 var(--font-mono); }
.status-badge.ok { border-color: rgba(99,201,149,.24); color: #90dab2; background: rgba(99,201,149,.07); }
.status-badge.muted { color: var(--text-muted); }

.legal-page { background: var(--bg-primary); }
.legal-shell { width: min(100% - 40px, 980px); }
.legal-nav { position: sticky; top: 0; z-index: 5; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); background: rgba(11,13,18,.9); backdrop-filter: blur(14px); }
.legal-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.legal-brand { display: flex; align-items: center; gap: 10px; color: var(--text-primary); }
.legal-brand img { width: 34px; height: 34px; border-radius: var(--radius-md); object-fit: cover; }
.legal-brand strong, .legal-brand small { display: block; }
.legal-brand strong { font: 650 13px/1.2 var(--font-display); }
.legal-brand small { margin-top: 2px; color: var(--text-muted); font-size: 9px; }
.legal-nav-links { display: flex; align-items: center; gap: 4px; }
.legal-nav-links a { padding: 7px 9px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 11px; }
.legal-nav-links a:hover, .legal-nav-links a.active { background: rgba(255,255,255,.045); color: var(--text-primary); }
.legal-hero { padding: 72px 0 38px; }
.legal-hero h1 { max-width: 760px; color: var(--text-primary); background: none; -webkit-text-fill-color: currentColor; font-size: 58px; }
.legal-content { max-width: 780px; gap: 0; }
.legal-card { padding: 24px 0; border: 0; border-top: 1px solid var(--border-subtle); background: transparent; }
.legal-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 60px; padding: 20px 0 34px; border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 11px; }

@media (max-width: 1040px) {
  .docs-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .docs-sidebar { width: 220px; }
  .hero-section { grid-template-columns: 1fr; min-height: auto; }
  .hero-product-preview { justify-self: start; width: min(100%, 620px); }
  .topbar-ops { flex-basis: 260px; }
  .guild-network-layout { grid-template-columns: 1fr; }
  .guild-spotlight { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 24px; padding: 22px 0; }
  .guild-spotlight-head { grid-row: 1 / span 3; display: grid; justify-items: center; }
  .guild-spotlight h3, .guild-spotlight p, .guild-spotlight-metric, .guild-safe-label { grid-column: 2; }
  .guild-spotlight h3 { margin: 0; }
  .guild-spotlight p { margin-top: 4px; }
  .guild-safe-label { margin-top: 10px; }
  .settings-layout { grid-template-columns: 1fr; }
  .module-live-preview { position: static; }
  body.public-dashboard-mode #dashboard-preview.active-doc-section { grid-template-columns: 1fr; min-height: auto; }
  body.public-dashboard-mode #userPanel,
  body.public-dashboard-mode #serverPicker,
  body.public-dashboard-mode #serverDashboard { grid-column: 1; }
  body.public-dashboard-mode #serverPicker { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-height: none; overflow: visible; }
  body.public-dashboard-mode #serverDashboard { grid-row: auto; grid-template-columns: 1fr; min-height: auto; }
  body.public-dashboard-mode .dashboard-nav { position: static; display: flex; gap: 5px; max-height: none; overflow-x: auto; overflow-y: hidden; }
  body.public-dashboard-mode .dashboard-nav-group { display: contents; }
  body.public-dashboard-mode .dashboard-side-title,
  body.public-dashboard-mode .dashboard-nav-label { display: none; }
  body.public-dashboard-mode .tab-button { min-width: max-content; }
  body.public-dashboard-mode .dashboard-content { max-height: none; overflow: visible; }
}

@media (max-width: 760px) {
  .docs-shell { display: block; }
  .docs-sidebar { position: sticky; top: 0; z-index: 30; width: 100%; height: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--border-subtle); }
  .docs-sidebar .brand { margin: 0; }
  .sidebar-status, .docs-nav { display: none; }
  .sidebar-actions { padding: 0; border: 0; }
  .sidebar-actions .btn:not(.primary) { display: none; }
  .docs-main > .topbar { top: 58px; min-height: 56px; padding: 8px 12px; }
  .topbar-ops { display: none; }
  .topbar-actions .icon-link, .topbar-actions .btn:not(.primary) { display: none; }
  .doc-section, .hero-section { width: min(100% - 28px, 1320px); padding: 42px 0; }
  .hero-copy { padding: 12px 0; }
  .hero-copy h1 { font-size: 56px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { grid-template-columns: 1fr; width: 100%; }
  .section-head h2, .two-column h2, .legal-overview h2 { font-size: 30px; }
  .legal-hero h1 { font-size: 42px; }
  .hero-product-preview { display: block; width: 100%; margin-top: 4px; animation: none; }
  .product-preview-body { grid-template-columns: 1fr; min-height: 0; }
  .product-preview-body nav { display: flex; gap: 5px; overflow-x: auto; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--border-subtle); scrollbar-width: none; }
  .product-preview-body nav::-webkit-scrollbar { display: none; }
  .product-preview-body nav button { width: auto; min-width: max-content; text-align: center; }
  .product-preview-content { padding: 10px; }
  .terminal-window { min-height: 210px; padding: 13px; }
  .terminal-line { grid-template-columns: 34px 44px minmax(0, 1fr); gap: 6px; }
  .status-board { grid-template-columns: repeat(2, 1fr); }
  .network-section-head { grid-template-columns: 1fr; gap: 14px; }
  .network-section-head h2 { font-size: 30px; }
  .network-scale { grid-template-columns: 1fr; }
  .network-metric { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; column-gap: 14px; padding: 20px 12px; border-right: 0; border-bottom: 1px solid var(--border-subtle); }
  .network-metric:last-child { border-bottom: 0; }
  .network-metric-code { grid-row: 1 / span 2; margin: 0; }
  .network-metric strong { font-size: 36px; }
  .network-metric small { margin-top: 7px; }
  .feature-chapter { grid-template-columns: 1fr; gap: 18px; }
  .feature-capability-list, .command-grid, .category-doc-grid { grid-template-columns: 1fr; }
  .server-dashboard { grid-template-columns: 1fr; }
  .dashboard-nav { position: static; display: flex; gap: 5px; overflow-x: auto; max-height: none; padding: 8px; }
  .dashboard-side-title, .dashboard-nav-label { display: none; }
  .dashboard-nav-group { display: contents; }
  .tab-button { min-width: max-content; }
  .universal-overview-grid { grid-template-columns: 1fr; }
  .compact-list .audit-row { grid-template-columns: 1fr; }
  .mobile-save-bar { position: sticky; bottom: 8px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: rgba(21,25,35,.96); box-shadow: var(--shadow-md); }
  .mobile-save-bar span { color: var(--text-muted); font-size: 10px; }
  .table-shell table { min-width: 720px; }
  .legal-nav { align-items: flex-start; }
  .legal-nav-links { max-width: 62vw; overflow-x: auto; }
  .legal-nav-links a { white-space: nowrap; }
}

@media (max-width: 700px) {
  .headless-network-showcase { padding-top: 42px; }
  .guild-network-stage { min-height: 0; padding: 24px 14px; }
  .network-core { position: relative; left: auto; top: auto; width: 82px; height: 82px; margin: 4px auto 30px; transform: none; }
  .network-core img { width: 58px; height: 58px; }
  .network-link { display: none; }
  .guild-network-nodes { position: relative; inset: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .guild-network-node,
  .guild-network-node.node-1,
  .guild-network-node.node-2,
  .guild-network-node.node-3,
  .guild-network-node.node-4,
  .guild-network-node.node-5,
  .guild-network-node.node-6 { position: relative; inset: auto; width: 100%; min-width: 0; flex-direction: row; padding: 8px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: rgba(12, 13, 17, .82); text-align: left; }
  .guild-network-avatar { width: 40px; height: 40px; }
  .guild-network-label { opacity: .82; }
  .guild-network-label strong { font-size: 10px; }
  .guild-network-label small { font-size: 8px; }
  .guild-spotlight { grid-template-columns: 54px minmax(0, 1fr); gap: 8px 14px; }
  .guild-spotlight-head { grid-row: 1 / span 2; }
  .guild-spotlight-avatar { width: 50px; height: 50px; }
  .guild-spotlight-metric { padding-block: 12px; }
  .guild-spotlight p, .guild-safe-label { grid-column: 1 / -1; }
}

@keyframes headlessTerminalViewIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes headlessNetworkPulse {
  0% { opacity: .7; transform: scale(.88); }
  70%, 100% { opacity: 0; transform: scale(1.28); }
}

@keyframes headlessNetworkPacket {
  0%, 16% { left: calc(100% - 6px); opacity: 0; transform: scale(.65); }
  22% { opacity: 1; transform: scale(1); }
  74% { left: 0; opacity: 1; transform: scale(.86); }
  82%, 100% { left: 0; opacity: 0; transform: scale(.45); }
}

@media (max-width: 420px) {
  .hero-copy h1 { font-size: 48px; }
}

/* Local Control Center ---------------------------------------------------- */
.app { grid-template-columns: 252px minmax(0, 1fr); }
.app .admin-sidebar { width: 252px; }
.app .brand { padding: 13px 14px 11px; }
.brand-controls { display: flex; align-items: center; gap: 7px; }
.sidebar-collapse-button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font: 18px/1 var(--font-mono);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}
.sidebar-collapse-button:hover { border-color: var(--border-strong); background: rgba(255,255,255,.04); color: var(--text-primary); }
.app .admin-control-card { margin: 8px; padding: 9px; }
.app .sidebar-panel { margin: 0 8px 8px; }
.app .global-button { width: calc(100% - 16px); margin: 0 8px 8px; }
.app .server-list { padding-bottom: 10px; }
.app .side-module-nav { gap: 8px; padding: 7px; }
.app .side-active-tabs { gap: 2px; }
.app .side-nav-item { padding: 7px 8px; }
.app .side-nav-desc { display: block; }
.app .servers-panel { flex-basis: clamp(170px, 25vh, 230px); }
.app .topbar { min-height: 70px; }
.app .topbar-server { font-size: 15px; }
.app .page-wrap { max-width: 1540px; }
.app #tabContent { display: grid; gap: 12px; }
.app .section-header { padding: 2px 1px 8px; }
.app .section-header h2,
.app .section-header h3 { font-size: 20px; }
.app .module-actions { gap: 7px; }
.app .metric-grid { gap: 9px; }
.app .metric { min-height: 86px; }
.app .form-grid { align-items: start; }
.app .panel { padding: 16px; }
.app .command-card { animation: none; }
.app .command-grid { gap: 8px; }
.app .log-list,
.app .logs-list { gap: 6px; }
.app .log-row { padding: 11px 12px; }
.app .topbar-chips { gap: 4px; }
.app .draft-chip { white-space: nowrap; }
.sidebar-profile { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; align-items: center; }
.sidebar-profile .avatar { width: 30px; height: 30px; }
.sidebar-profile strong, .sidebar-profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile strong { color: var(--text-primary); font-size: 11px; }
.sidebar-profile small { color: var(--text-muted); font-size: 9px; }

.app.sidebar-collapsed { grid-template-columns: 74px minmax(0, 1fr); }
.app.sidebar-collapsed .admin-sidebar { width: 74px; }
.app.sidebar-collapsed .brand { padding: 11px 8px; }
.app.sidebar-collapsed .brand-copy,
.app.sidebar-collapsed .brand-status,
.app.sidebar-collapsed .admin-control-card,
.app.sidebar-collapsed .global-button span:not(.gb-icon),
.app.sidebar-collapsed .server-section-title,
.app.sidebar-collapsed .server-search,
.app.sidebar-collapsed .server-item > span:not(.avatar),
.app.sidebar-collapsed .side-group-copy,
.app.sidebar-collapsed .side-active-title,
.app.sidebar-collapsed .side-nav-item > span:last-child,
.app.sidebar-collapsed .sidebar-profile > span:last-child { display: none; }
.app.sidebar-collapsed .brand-title { justify-content: center; }
.app.sidebar-collapsed .brand-controls { flex-direction: column-reverse; }
.app.sidebar-collapsed .global-button { justify-content: center; padding: 7px; }
.app.sidebar-collapsed .sidebar-panel { margin-inline: 6px; }
.app.sidebar-collapsed .servers-panel { flex-basis: 190px; }
.app.sidebar-collapsed .server-list { padding: 4px; justify-items: center; }
.app.sidebar-collapsed .server-item { display: grid; grid-template-columns: 1fr; justify-items: center; padding: 5px; }
.app.sidebar-collapsed .side-module-nav { padding: 5px; }
.app.sidebar-collapsed .side-group-button,
.app.sidebar-collapsed .side-nav-item { grid-template-columns: 1fr; justify-items: center; padding: 6px; }
.app.sidebar-collapsed .side-group-icon,
.app.sidebar-collapsed .side-nav-icon { width: 30px; height: 30px; }
.app.sidebar-collapsed .sidebar-profile { grid-template-columns: 1fr; justify-items: center; padding: 10px; }

@media (max-width: 900px) {
  .app,
  .app.sidebar-collapsed { display: block; }
  .app .admin-sidebar,
  .app.sidebar-collapsed .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    height: auto;
    max-height: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .app .brand,
  .app.sidebar-collapsed .brand { padding: 9px 12px; border: 0; }
  .app.sidebar-collapsed .brand-copy { display: inline; }
  .app .brand-status,
  .app .admin-control-card,
  .app .global-button,
  .app .sidebar-panel,
  .app .sidebar-footer,
  .app .sidebar-collapse-button { display: none; }
  .app .topbar { top: 58px; display: block; padding: 9px 12px; }
  .app .topbar-left { margin-bottom: 8px; }
  .app .topbar-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .app .topbar-actions { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .app .topbar-actions #saveBtn { position: fixed; right: 12px; bottom: 12px; z-index: 50; box-shadow: var(--shadow-md); }
  .app .workspace-header { padding: 13px; }
  .app .workspace-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .app .workspace-tab { white-space: nowrap; }
}

@media (max-width: 760px), (update: slow) {
  .hero-embers span:nth-child(n + 9),
  .section-embers span:nth-child(n + 9) { display: none; }

  .hero-fire-glow { opacity: .34; }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .section-embers { display: none; }
  html:not([data-motion="full"]) .hero-fire-glow { display: block; opacity: .34; animation: none !important; }
  html:not([data-motion="full"]) .hero-embers span { animation: none !important; opacity: .28; }
  html:not([data-motion="full"]) .brand-mark,
  html:not([data-motion="full"]) .workspace-header::before,
  html:not([data-motion="full"]) .module-header::before,
  html:not([data-motion="full"]) .universal-module-header::before,
  html:not([data-motion="full"]) .dashboard-hero::before,
  html:not([data-motion="full"]) .hero-product-preview,
  html:not([data-motion="full"]) .hero-product-preview::after,
  html:not([data-motion="full"]) .terminal-window::after,
  html:not([data-motion="full"]) .terminal-window.is-switching > *,
  html:not([data-motion="full"]) .network-core > span,
  html:not([data-motion="full"]) .network-link::after,
  html:not([data-motion="full"]) .ops-beacon,
  html:not([data-motion="full"]) .topbar-ops code i,
  html:not([data-motion="full"]) .terminal-cursor { animation: none !important; }
}

html[data-performance="lite"] .network-link::after { animation-duration: 5.8s; box-shadow: 0 0 6px rgba(255, 157, 76, .7); }
html[data-performance="lite"] .network-core > span { animation-duration: 4.2s; }
html[data-performance="lite"] .terminal-window.is-switching > * { animation: none; }

/* Unified public motion system ------------------------------------------- */
.animated-background {
  background: #08090c;
  contain: strict;
}

.animated-background::before,
.animated-background::after,
.animated-background .bg-grid,
.animated-background .bg-ray,
.animated-background .bg-water,
.animated-background .bg-ribbon,
.animated-background .bg-scan {
  display: none;
}

.background-scene {
  position: absolute;
  inset: -7%;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, .98) 0%, rgba(8, 9, 12, .86) 42%, rgba(8, 9, 12, .58) 72%, rgba(8, 9, 12, .82) 100%),
    linear-gradient(180deg, rgba(8, 9, 12, .72), transparent 38%, rgba(8, 9, 12, .9)),
    url("./assets/HeadlessHero.webp?v=20260730n") 72% center / cover no-repeat;
  opacity: .23;
  filter: saturate(1.12) contrast(1.08) brightness(.7);
  transform: translate3d(-1.5%, 0, 0) scale(1.035);
  transform-origin: 70% 45%;
  animation: headlessBackdropDrift 24s ease-in-out infinite alternate;
  will-change: transform;
}

.background-flames {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: .76;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 100%);
}

.background-flames span {
  position: absolute;
  left: var(--ember-x);
  bottom: -24px;
  width: 2px;
  height: var(--ember-size);
  border-radius: 2px;
  opacity: 0;
  background: linear-gradient(180deg, #fff0cc 0%, #ff9a45 34%, #f45f1d 68%, transparent 100%);
  box-shadow: 0 0 7px rgba(255, 112, 34, .68);
  transform: rotate(var(--ember-rotate));
  animation: headlessFlameRise var(--ember-duration) linear var(--ember-delay) infinite;
}

.doc-section:not(.hero-section) {
  background: transparent;
  border-top-color: rgba(255, 224, 198, .065);
}

.doc-section:not(.hero-section)::before,
.doc-section:not(.hero-section)::after,
.section-embers {
  display: none !important;
}

.panel::after,
.feature-card::after,
.command-card::after,
.doc-detail-card::after,
.category-doc-card::after,
.category-doc-panel::before,
.section-head h2::after,
.two-column h2::after,
.category-doc-hero h3::after,
.dashboard-hero h3::after,
.tab-heading h3::after {
  display: none !important;
}

.section-head h2,
.two-column h2,
.category-doc-hero h3,
.dashboard-hero h3,
.tab-heading h3 {
  padding-bottom: 0;
  animation: none;
}

/* Branded boot sequence without a generic floating card. */
.boot-screen {
  align-items: center;
  justify-items: stretch;
  padding: clamp(24px, 7vw, 108px);
  background:
    linear-gradient(90deg, rgba(7, 7, 9, .99) 0%, rgba(7, 7, 9, .95) 45%, rgba(7, 7, 9, .56) 78%, rgba(7, 7, 9, .76) 100%),
    url("./assets/HeadlessHero.webp?v=20260730n") 72% center / cover no-repeat;
}

.boot-screen::before {
  display: block;
  inset: -6%;
  z-index: -1;
  opacity: .28;
  background:
    linear-gradient(180deg, transparent 0%, rgba(244, 135, 47, .08) 48%, transparent 100%),
    url("./assets/HeadlessHero.webp?v=20260730n") 72% center / cover no-repeat;
  background-size: 100% 100%, cover;
  transform: translate3d(-1%, 0, 0) scale(1.03);
  animation: headlessBootBackdrop 11s ease-in-out infinite alternate;
}

.boot-screen::after { display: none; }

.boot-shell {
  width: min(940px, 100%);
  min-height: min(540px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: stretch;
  gap: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: headlessBootEnter .46s cubic-bezier(.2, .9, .2, 1) both;
  will-change: auto;
}

.boot-shell::before,
.boot-shell::after { display: none; }

.boot-brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 174, 99, .18);
  color: #9b8d82;
  font: 720 10px/1 var(--font-mono);
  text-transform: uppercase;
}

.boot-brandline code {
  display: inline;
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #ffad67;
  font: inherit;
}

.boot-main {
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
  padding-block: clamp(38px, 8vh, 92px);
}

.boot-orbit {
  flex: 0 0 auto;
  width: clamp(104px, 13vw, 148px);
  height: clamp(104px, 13vw, 148px);
  border-color: rgba(255, 157, 77, .32);
  background: rgba(11, 9, 8, .48);
  box-shadow: 0 0 0 18px rgba(244, 112, 30, .035), 0 0 62px rgba(244, 112, 30, .12);
}

.boot-orbit .boot-logo {
  width: 66%;
  height: 66%;
  border-radius: 50%;
  transform: none;
  animation: headlessBootMark 2.8s ease-in-out infinite;
}

.boot-copy { width: auto; text-align: left; }
.boot-copy .eyebrow { color: #f39449; font: 760 10px/1 var(--font-mono); }
.boot-copy h1 {
  margin: 10px 0 13px;
  font-size: clamp(54px, 10vw, 112px);
  line-height: .86;
  background: linear-gradient(90deg, #fff1df 0%, #ffc17e 45%, #ed7627 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: none;
  overflow-wrap: normal;
}
.boot-copy p { color: #b9ada3; font: 600 clamp(12px, 1.4vw, 15px)/1.5 var(--font-mono); }

.boot-telemetry {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 174, 99, .18);
}

.boot-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: #81766f;
  font: 700 9px/1 var(--font-mono);
  text-transform: uppercase;
}
.boot-progress-label b { color: #65d59d; }
.boot-progress {
  width: 100%;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .08);
}
.boot-progress span {
  border-radius: 0;
  background: linear-gradient(90deg, #e26520, #ffb05f, #fff0d8);
  box-shadow: 0 0 16px rgba(255, 119, 34, .44);
}
.boot-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 13px;
}
.boot-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6f6761;
  font: 700 10px/1 var(--font-mono);
  text-transform: uppercase;
}
.boot-step b { color: #4d4844; font: inherit; }
.boot-step.is-active,
.boot-step.is-done { border: 0; background: transparent; color: #f6c08d; }
.boot-step.is-active { transform: none; }
.boot-step.is-active b,
.boot-step.is-done b { color: #f4872f; }

.boot-flames {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.boot-flames i {
  --boot-flame-x: 8%;
  --boot-flame-delay: 0s;
  --boot-flame-duration: 5.8s;
  position: absolute;
  left: var(--boot-flame-x);
  bottom: -26px;
  width: 2px;
  height: 18px;
  border-radius: 2px;
  opacity: 0;
  background: linear-gradient(180deg, #fff1d1, #ff8e39 45%, transparent);
  box-shadow: 0 0 9px rgba(255, 108, 28, .7);
  animation: headlessBootFlame var(--boot-flame-duration) linear var(--boot-flame-delay) infinite;
}
.boot-flames i:nth-child(2) { --boot-flame-x: 17%; --boot-flame-delay: -3.6s; --boot-flame-duration: 7.1s; }
.boot-flames i:nth-child(3) { --boot-flame-x: 28%; --boot-flame-delay: -1.4s; --boot-flame-duration: 6.4s; }
.boot-flames i:nth-child(4) { --boot-flame-x: 39%; --boot-flame-delay: -5.1s; --boot-flame-duration: 7.6s; }
.boot-flames i:nth-child(5) { --boot-flame-x: 49%; --boot-flame-delay: -2.7s; --boot-flame-duration: 5.9s; }
.boot-flames i:nth-child(6) { --boot-flame-x: 58%; --boot-flame-delay: -.8s; --boot-flame-duration: 7.4s; }
.boot-flames i:nth-child(7) { --boot-flame-x: 67%; --boot-flame-delay: -4.4s; --boot-flame-duration: 6.2s; }
.boot-flames i:nth-child(8) { --boot-flame-x: 75%; --boot-flame-delay: -2.1s; --boot-flame-duration: 7.8s; }
.boot-flames i:nth-child(9) { --boot-flame-x: 83%; --boot-flame-delay: -5.8s; --boot-flame-duration: 6.7s; }
.boot-flames i:nth-child(10) { --boot-flame-x: 91%; --boot-flame-delay: -1.9s; --boot-flame-duration: 7.2s; }
.boot-flames i:nth-child(11) { --boot-flame-x: 34%; --boot-flame-delay: -6.2s; --boot-flame-duration: 8.1s; }
.boot-flames i:nth-child(12) { --boot-flame-x: 71%; --boot-flame-delay: -3.1s; --boot-flame-duration: 6.9s; }

/* Signals follow real server-to-core paths instead of rotated elements. */
.network-connections {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.network-route,
.network-signal {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.network-route {
  stroke: rgba(255, 133, 47, .16);
  stroke-width: 1;
}
.network-signal {
  stroke: #ffe1bd;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 2 98;
  stroke-dashoffset: 0;
  opacity: 0;
  filter: drop-shadow(0 0 3px #ff9d4d) drop-shadow(0 0 7px rgba(255, 103, 25, .8));
  animation: headlessSignalToCore 4.4s linear infinite;
}
.network-signal-2 { animation-delay: -.75s; }
.network-signal-3 { animation-delay: -1.5s; }
.network-signal-4 { animation-delay: -2.25s; }
.network-signal-5 { animation-delay: -3s; }
.network-signal-6 { animation-delay: -3.75s; }
.network-receiver {
  fill: #fff0d7;
  opacity: .28;
  filter: drop-shadow(0 0 8px #ff822d);
  transform-box: fill-box;
  transform-origin: center;
  animation: headlessReceiverPulse 2.2s ease-out infinite;
}

@keyframes headlessBackdropDrift {
  0% { transform: translate3d(-1.5%, -.8%, 0) scale(1.035); }
  100% { transform: translate3d(1.5%, .8%, 0) scale(1.075); }
}

@keyframes headlessFlameRise {
  0% { opacity: 0; transform: translate3d(0, 18px, 0) rotate(var(--ember-rotate)) scaleY(.75); }
  12% { opacity: .76; }
  72% { opacity: .3; }
  100% { opacity: 0; transform: translate3d(var(--ember-drift), calc(var(--ember-rise) * -1), 0) rotate(calc(var(--ember-rotate) + 10deg)) scaleY(1.15); }
}

@keyframes headlessBootBackdrop {
  from { transform: translate3d(-1%, -.4%, 0) scale(1.03); }
  to { transform: translate3d(1.2%, .6%, 0) scale(1.07); }
}

@keyframes headlessBootEnter {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes headlessBootMark {
  0%, 100% { box-shadow: 0 0 24px rgba(244, 122, 36, .14); }
  50% { box-shadow: 0 0 42px rgba(244, 122, 36, .32); }
}

@keyframes headlessBootFlame {
  0% { opacity: 0; transform: translate3d(0, 16px, 0) scaleY(.7); }
  15% { opacity: .78; }
  100% { opacity: 0; transform: translate3d(18px, -46vh, 0) scaleY(1.18); }
}

@keyframes headlessSignalToCore {
  0%, 8% { stroke-dashoffset: 0; opacity: 0; }
  14% { opacity: 1; }
  82% { stroke-dashoffset: -96; opacity: 1; }
  90%, 100% { stroke-dashoffset: -100; opacity: 0; }
}

@keyframes headlessReceiverPulse {
  0%, 58% { opacity: .18; transform: scale(.75); }
  78% { opacity: .75; transform: scale(1.4); }
  100% { opacity: 0; transform: scale(2.1); }
}

@keyframes headlessNetworkScan {
  from { transform: translate3d(-20%, 0, 0); }
  to { transform: translate3d(20%, 0, 0); }
}

@keyframes headlessNodeLock {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes headlessStatusRefresh {
  from { opacity: .25; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

html[data-performance="lite"] .background-scene { animation-duration: 34s; }
html[data-performance="lite"] .network-signal { animation-duration: 5.6s; }

/* Reduced motion keeps the product alive without pointer parallax or fast travel. */
html[data-motion="reduced"] .background-scene {
  animation-name: headlessBackdropDriftReduced !important;
  animation-duration: 54s !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: infinite !important;
  animation-direction: alternate !important;
  opacity: .2;
  will-change: auto;
}
html[data-motion="reduced"] .background-flames {
  display: block;
  opacity: .3;
}
html[data-motion="reduced"] .background-flames span {
  animation-duration: 13s !important;
  animation-iteration-count: infinite !important;
  filter: blur(.2px);
  box-shadow: 0 0 7px rgba(255, 126, 39, .32);
}
html[data-motion="reduced"] .boot-screen::before {
  animation-name: headlessBootBackdropReduced !important;
  animation-duration: 46s !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: infinite !important;
  animation-direction: alternate !important;
  will-change: auto;
}
html[data-motion="reduced"] .boot-flames {
  display: block;
  opacity: .32;
}
html[data-motion="reduced"] .boot-flames i {
  animation-duration: 14s !important;
  animation-iteration-count: infinite !important;
}
html[data-motion="reduced"] .network-signal {
  display: block;
  stroke-width: 2.5;
  animation-duration: 8.5s !important;
  animation-iteration-count: infinite !important;
  filter: drop-shadow(0 0 3px rgba(255, 157, 77, .72));
}
html[data-motion="reduced"] .boot-orbit .boot-logo,
html[data-motion="reduced"] .network-receiver { animation: none; }

@keyframes headlessBackdropDriftReduced {
  from { transform: translate3d(-.3%, -.1%, 0) scale(1.025); }
  to { transform: translate3d(.3%, .15%, 0) scale(1.035); }
}

@keyframes headlessBootBackdropReduced {
  from { transform: translate3d(-.25%, 0, 0) scale(1.025); }
  to { transform: translate3d(.25%, .12%, 0) scale(1.035); }
}

@media (max-width: 700px) {
  .network-connections { display: none; }
  .boot-screen { padding: 22px; background-position: 64% center; }
  .boot-shell { min-height: min(560px, calc(100vh - 44px)); }
  .boot-main { align-items: flex-start; flex-direction: column; justify-content: center; gap: 22px; }
  .boot-orbit { width: 94px; height: 94px; }
  .boot-copy h1 { font-size: clamp(50px, 18vw, 78px); }
  .boot-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Live metrics: four real signals, one stable row, readable at a glance. */
.network-scale {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: #0d0e12;
}

.network-metric {
  isolation: isolate;
  overflow: hidden;
  min-height: 132px;
  background: linear-gradient(145deg, rgba(255, 145, 55, .055), transparent 58%);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.network-metric::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 166, 81, .9), transparent);
  opacity: .36;
  transform: translateX(-72%);
}

.network-metric::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -42px;
  bottom: -62px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 135, 47, .16), transparent 68%);
  opacity: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.network-metric:hover {
  background: linear-gradient(145deg, rgba(255, 145, 55, .09), rgba(255, 255, 255, .012) 58%);
  transform: translateY(-2px);
}

.network-metric:hover::after,
.network-metric.is-updating::after { opacity: 1; transform: scale(1.08); }
.network-metric.is-updating::before { animation: headlessMetricScan 900ms ease-out; }
.network-metric.is-updating strong { animation: headlessMetricLock 720ms cubic-bezier(.2, .8, .2, 1); }
.network-metric strong {
  color: #fff7ed;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(244, 135, 47, .13);
}
.network-metric-code { color: #ff9b48; }
.network-metric small { color: #a69d94; }

/* Legal pages are standalone documents and must not inherit hidden reveal text. */
.legal-page .legal-shell { width: min(100% - 40px, 1080px); }
.legal-page .legal-hero { min-height: 0; padding: 66px 0 42px; }
.legal-page .legal-hero > * {
  position: relative;
  z-index: 1;
}
.legal-page .legal-hero p {
  display: block;
  max-width: 760px;
  margin-top: 2px;
  color: #c9c1b8;
  opacity: 1;
  visibility: visible;
  transform: none;
  -webkit-text-fill-color: currentColor;
}
.legal-tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.legal-tech-strip span {
  padding: 7px 9px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #111116;
  color: #aaa198;
  font: 650 10px/1 var(--font-mono);
}
.legal-tech-strip b { margin-right: 6px; color: #f39a4d; font-weight: 750; }
.legal-page .legal-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
  gap: 12px;
}
.legal-page .legal-card {
  position: relative;
  min-height: 0;
  padding: 22px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #121216;
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
}
.legal-page .legal-card:last-child { grid-column: 1 / -1; }
.legal-page .legal-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  opacity: 1;
  visibility: visible;
}
.legal-page .legal-list li,
.legal-page .legal-card > p,
.legal-page .legal-note {
  display: block;
  color: #c9c1b8;
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  -webkit-text-fill-color: currentColor;
}
.legal-page .legal-list li {
  position: relative;
  padding-left: 17px;
  line-height: 1.55;
}
.legal-page .legal-list li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f4872f;
  box-shadow: 0 0 10px rgba(244, 135, 47, .28);
}
.legal-page .legal-note { margin-top: 14px; background: rgba(244, 135, 47, .07); }

@keyframes headlessMetricScan {
  from { opacity: 0; transform: translateX(-72%); }
  45% { opacity: .9; }
  to { opacity: 0; transform: translateX(72%); }
}

@keyframes headlessMetricLock {
  from { opacity: .45; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .legal-page { overflow-x: hidden; }
  .legal-page .legal-shell,
  .legal-page .legal-hero,
  .legal-page .legal-content,
  .legal-page .legal-card { min-width: 0; max-width: 100%; }
  .legal-page .legal-hero h1 { width: 100%; overflow-wrap: anywhere; }
  .legal-page .legal-hero p,
  .legal-page .legal-card p,
  .legal-page .legal-list li { overflow-wrap: anywhere; }
  .network-scale { grid-template-columns: 1fr; }
  .network-metric { min-height: 0; transform: none; }
  .legal-page .legal-content { grid-template-columns: 1fr; }
  .legal-page .legal-card:last-child { grid-column: auto; }
  .legal-page .legal-hero { padding: 44px 0 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .network-metric.is-updating::before,
  .network-metric.is-updating strong { animation: none; }
}

/* Network surface: calm motion that remains usable on touch devices. */
.guild-network-stage {
  --network-tilt-x: 0deg;
  --network-tilt-y: 0deg;
  isolation: isolate;
  perspective: 900px;
  transition: box-shadow 220ms ease, border-color 220ms ease;
}
.guild-network-stage:hover,
.guild-network-stage:focus-within {
  border-color: rgba(255, 157, 77, .34);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .24), inset 0 0 50px rgba(255, 115, 28, .035);
}
.guild-network-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 137, 48, .08), transparent 21%), linear-gradient(115deg, transparent 38%, rgba(255, 176, 99, .045) 50%, transparent 62%);
  opacity: .72;
  animation: headlessNetworkAtmosphere 9s ease-in-out infinite alternate;
}
.guild-network-nodes { transform: rotateX(var(--network-tilt-y)) rotateY(var(--network-tilt-x)); transition: transform 300ms ease-out; }
.guild-network-node {
  animation: headlessGuildFloat 6s ease-in-out infinite;
  will-change: transform;
  transition: transform 220ms ease, filter 220ms ease, opacity 220ms ease;
}
.guild-network-node:nth-child(2) { animation-delay: -1.1s; }
.guild-network-node:nth-child(3) { animation-delay: -2.2s; }
.guild-network-node:nth-child(4) { animation-delay: -3.3s; }
.guild-network-node:nth-child(5) { animation-delay: -4.4s; }
.guild-network-node:nth-child(6) { animation-delay: -5.5s; }
.guild-network-node:active { transform: scale(.97); }
.guild-network-node.active { filter: drop-shadow(0 0 14px rgba(255, 126, 35, .18)); }
.guild-network-stage:not(.is-dragging) .guild-network-node,
.guild-network-stage:not(.is-dragging) .network-core { cursor: grab; }
.guild-network-stage.is-dragging,
.guild-network-stage.is-dragging * { cursor: grabbing !important; }
.guild-network-node.is-dragging { z-index: 20; animation-play-state: paused; transform: scale(1.06); }
.network-core { cursor: grab; touch-action: none; transition: left 180ms ease-out, top 180ms ease-out, box-shadow 220ms ease; }
.network-core:active { cursor: grabbing; box-shadow: 0 0 42px rgba(255, 126, 35, .28); }

@keyframes headlessGuildFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 0); }
}
@keyframes headlessNetworkAtmosphere {
  from { opacity: .45; transform: translate3d(-1%, 0, 0); }
  to { opacity: .86; transform: translate3d(1%, -1%, 0); }
}

@media (max-width: 700px) {
  .guild-network-stage { overflow: hidden; }
  .guild-network-stage::after { opacity: .42; }
  .guild-network-nodes { transform: none; }
  .guild-network-node { animation-duration: 7.5s; }
  .guild-network-node:focus-visible { outline-offset: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .guild-network-stage::after,
  .guild-network-node { animation: none; }
  .guild-network-nodes { transform: none; }
}

/* Anti Nuke playbook and restrained product motion ----------------------- */
html[data-motion="full"] .doc-section.active-doc-section:not(.hero-section)::before,
html[data-motion="full"] .doc-section.active-doc-section:not(.hero-section)::after {
  display: block !important;
}

html[data-motion="full"] .doc-section.active-doc-section > .section-embers,
html[data-motion="reduced"] .doc-section.active-doc-section > .section-embers {
  display: block !important;
}

html[data-motion="reduced"] .doc-section.active-doc-section > .section-embers {
  opacity: .2;
}

html[data-motion="full"] .btn:hover,
html[data-motion="full"] .btn:focus-visible {
  box-shadow: 0 10px 26px rgba(244, 122, 36, .13);
}

html[data-motion="full"] .btn.primary::after {
  animation-duration: 4.8s;
}

.antinuke-doc-section {
  --antinuke-panel: rgba(16, 14, 13, .86);
  --antinuke-line: rgba(244, 135, 47, .2);
  padding-bottom: clamp(64px, 8vw, 108px);
}

.antinuke-doc-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(24px, 4vw, 48px) 0 26px;
  border-bottom: 1px solid var(--antinuke-line);
}

.antinuke-doc-hero > div:first-child { max-width: 760px; }
.antinuke-doc-hero h2 {
  margin: 8px 0 12px;
  color: #fff4e8;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(244, 122, 36, .1);
}
.antinuke-doc-hero p { max-width: 660px; margin: 0; color: var(--text-secondary); font-size: clamp(16px, 1.6vw, 19px); }

.antinuke-doc-status {
  display: grid;
  min-width: min(100%, 245px);
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid var(--antinuke-line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(244, 122, 36, .11), rgba(13, 12, 12, .9) 62%);
  box-shadow: inset 0 1px 0 rgba(255, 204, 142, .09);
}
.antinuke-doc-status span,
.antinuke-doc-status small,
.antinuke-doc-index,
.antinuke-doc-console-head,
.antinuke-doc-console code,
.antinuke-doc-console-lines { font-family: var(--font-mono, "JetBrains Mono", monospace); }
.antinuke-doc-status span { color: var(--accent); font-size: 11px; letter-spacing: .12em; }
.antinuke-doc-status strong { color: var(--text-primary); font-size: 13px; letter-spacing: .08em; }
.antinuke-doc-status small { color: var(--text-muted); font-size: 10px; letter-spacing: .06em; }

.antinuke-doc-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 26px 0;
}
.antinuke-doc-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  background: rgba(14, 13, 13, .72);
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  text-align: left;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.antinuke-doc-tabs button span { color: var(--accent); font-family: var(--font-mono, monospace); font-size: 10px; }
.antinuke-doc-tabs button:hover,
.antinuke-doc-tabs button:focus-visible,
.antinuke-doc-tabs button.active {
  border-color: rgba(244, 135, 47, .45);
  background: rgba(244, 122, 36, .1);
  color: #fff2e4;
  outline: none;
}
.antinuke-doc-tabs button:hover { transform: translateY(-2px); }

.antinuke-doc-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 14px; }
.antinuke-doc-reader,
.antinuke-doc-console {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius-md);
  background: var(--antinuke-panel);
}
.antinuke-doc-reader { padding: clamp(24px, 3vw, 38px); }
.antinuke-doc-reader::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #ffbb70, #f16d23 45%, transparent 88%);
}
.antinuke-doc-index { display: block; margin-bottom: 26px; color: rgba(244, 135, 47, .48); font-size: 12px; letter-spacing: .12em; }
.antinuke-doc-reader h3 { max-width: 700px; margin: 8px 0 14px; color: #fff5eb; font-size: clamp(24px, 3vw, 38px); line-height: 1.12; letter-spacing: 0; }
.antinuke-doc-reader > p { max-width: 760px; color: var(--text-secondary); font-size: 16px; line-height: 1.7; }
.antinuke-doc-reader ul { display: grid; gap: 10px; margin: 24px 0; padding: 0; list-style: none; }
.antinuke-doc-reader li { position: relative; padding-left: 18px; color: var(--text-primary); line-height: 1.55; }
.antinuke-doc-reader li::before { content: ">"; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono, monospace); }
.antinuke-doc-note { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); color: var(--text-secondary); line-height: 1.55; }
.antinuke-doc-note b { color: #ffbf78; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.antinuke-doc-console { display: flex; flex-direction: column; min-height: 100%; background: #0b0a0a; }
.antinuke-doc-console::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45; background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(255,255,255,.02) 4px); }
.antinuke-doc-console-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(244, 135, 47, .18); color: var(--text-muted); font-size: 10px; letter-spacing: .08em; }
.antinuke-doc-console-head i { color: #7ee5b1; font-style: normal; }
.antinuke-doc-console code { display: block; margin: 18px 16px; padding: 13px; overflow-wrap: anywhere; border: 1px solid rgba(244,135,47,.18); border-radius: 6px; background: rgba(244, 122, 36, .055); color: #f7ddc3; font-size: 12px; line-height: 1.6; }
.antinuke-doc-console code span { color: #ff9b4e; }
.antinuke-tutorial-turn { padding: 18px 16px 0; }
.antinuke-tutorial-turn > span { display: block; margin-bottom: 7px; color: #6f685f; font: 650 9px/1 var(--font-mono, monospace); letter-spacing: .06em; }
.antinuke-doc-console .antinuke-tutorial-turn code { min-height: 48px; margin: 0; }
.antinuke-doc-console .antinuke-tutorial-turn code b { color: #ff9b4e; font-weight: 700; }
.antinuke-doc-console .antinuke-tutorial-turn code span { color: #f7ddc3; }
.antinuke-tutorial-turn code i { display: inline-block; width: 6px; height: 13px; margin-left: 2px; vertical-align: -2px; background: #ff8b39; box-shadow: 0 0 8px rgba(255,126,42,.5); }
.antinuke-tutorial-response {
  display: grid;
  gap: 11px;
  margin: 14px 16px 18px;
  padding: 15px;
  opacity: 0;
  transform: translateY(8px);
  border: 1px solid rgba(255,255,255,.075);
  border-left: 2px solid #f4872f;
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(244,122,36,.085), rgba(17,17,19,.9));
  transition: opacity 260ms ease, transform 260ms ease, border-color 260ms ease;
}
.antinuke-tutorial-response.ready { opacity: 1; transform: translateY(0); border-color: rgba(244,135,47,.27); }
.antinuke-tutorial-response > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.antinuke-tutorial-response > div span { color: #ff9c52; font: 750 9px/1 var(--font-mono, monospace); letter-spacing: .09em; }
.antinuke-tutorial-response > div em { padding: 4px 6px; border: 1px solid rgba(116,222,168,.2); border-radius: 999px; background: rgba(72,177,125,.08); color: #78dda9; font: 700 8px/1 var(--font-mono, monospace); font-style: normal; }
.antinuke-tutorial-response > strong { color: #fff0df; font-size: 13px; }
.antinuke-tutorial-response ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.antinuke-tutorial-response li { position: relative; padding-left: 12px; color: #aaa096; font: 550 10px/1.45 var(--font-mono, monospace); }
.antinuke-tutorial-response li::before { content: ">"; position: absolute; left: 0; color: #db7130; }
.antinuke-tutorial-replay { align-self: flex-start; margin: 0 16px 18px; padding: 7px 9px; border: 1px solid rgba(244,135,47,.2); border-radius: 6px; background: transparent; color: #a89d92; cursor: pointer; font: 700 8px/1 var(--font-mono, monospace); letter-spacing: .08em; }
.antinuke-tutorial-replay:hover,
.antinuke-tutorial-replay:focus-visible { outline: none; border-color: rgba(244,135,47,.55); background: rgba(244,122,36,.08); color: #ffc486; }
.antinuke-doc-console-lines { display: grid; gap: 0; margin-top: auto; border-top: 1px solid rgba(255,255,255,.06); }
.antinuke-doc-console-lines span { display: grid; grid-template-columns: 54px 48px 1fr; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 10px; }
.antinuke-doc-console-lines b { color: var(--text-muted); font-weight: 650; }
.antinuke-doc-console-lines em { color: #ffa756; font-style: normal; }
.antinuke-doc-console-lines small { color: #c0b6ab; font: inherit; }

@keyframes antinukeTutorialCaret { 0%, 46% { opacity: 1; } 47%, 100% { opacity: .12; } }
html[data-motion="full"] .antinuke-tutorial-turn code i { animation: antinukeTutorialCaret .82s steps(1, end) infinite; }

.antinuke-doc-quick { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); gap: 26px; align-items: start; margin-top: 14px; padding: 24px 0 0; }
.antinuke-doc-quick h3 { margin: 7px 0 0; color: var(--text-primary); font-size: 20px; line-height: 1.25; }
.antinuke-doc-command-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.antinuke-doc-command-grid button { display: grid; gap: 7px; min-height: 72px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-sm); background: rgba(13,12,12,.7); color: var(--text-primary); cursor: copy; text-align: left; transition: border-color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast); }
.antinuke-doc-command-grid button:hover,
.antinuke-doc-command-grid button:focus-visible { border-color: rgba(244,135,47,.42); background: rgba(244,122,36,.08); outline: none; transform: translateY(-2px); }
.antinuke-doc-command-grid span { color: var(--text-secondary); font-size: 12px; font-weight: 720; }
.antinuke-doc-command-grid code { color: #ffc486; font-family: var(--font-mono, monospace); font-size: 11px; overflow-wrap: anywhere; }

.antinuke-simulator {
  position: relative;
  margin-top: 14px;
  padding: clamp(20px, 3vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(244,135,47,.24);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 12% 0%, rgba(244,122,36,.15), transparent 30%),
    linear-gradient(140deg, rgba(25,17,13,.94), rgba(9,10,12,.94) 68%);
}
.antinuke-simulator::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: linear-gradient(rgba(255,167,86,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,167,86,.055) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, #000, transparent 90%);
}
.antinuke-simulator-head,
.antinuke-simulator-controls,
.antinuke-simulator-trace,
.antinuke-simulator-result { position: relative; z-index: 1; }
.antinuke-simulator-head { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.antinuke-simulator-head > div { max-width: 710px; }
.antinuke-simulator-head h3 { margin: 7px 0 9px; color: #fff3e6; font-size: clamp(21px, 2.4vw, 32px); line-height: 1.1; }
.antinuke-simulator-head p { margin: 0; color: var(--text-secondary); line-height: 1.6; }
.antinuke-simulator-head code {
  flex: 0 1 410px;
  margin-top: 2px;
  padding: 11px 13px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(244,135,47,.24);
  border-radius: 7px;
  background: rgba(4,5,6,.65);
  color: #ffc486;
  cursor: copy;
  font: 650 11px/1.5 var(--font-mono, monospace);
}
.antinuke-simulator-head code:hover { border-color: rgba(255,180,95,.58); }
.antinuke-simulator-controls { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 18px; }
.antinuke-simulator-controls button {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  background: rgba(0,0,0,.24);
  color: var(--text-secondary);
  cursor: pointer;
  font: 700 11px/1 var(--font-sans);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.antinuke-simulator-controls button:hover,
.antinuke-simulator-controls button:focus-visible,
.antinuke-simulator-controls button.active { outline: none; transform: translateY(-1px); border-color: rgba(255,174,86,.62); background: rgba(244,122,36,.15); color: #fff0df; }
.antinuke-simulator-trace { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.antinuke-simulator-rail { position: absolute; top: 50%; left: 3%; right: 3%; height: 1px; overflow: hidden; background: rgba(244,135,47,.18); }
.antinuke-simulator-rail i { display: block; width: 22%; height: 100%; background: linear-gradient(90deg, transparent, #ffc17f, transparent); filter: drop-shadow(0 0 6px #ff7a24); }
.antinuke-sim-stage {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  background: linear-gradient(155deg, rgba(28,27,28,.95), rgba(10,11,12,.92));
  box-shadow: 0 12px 24px rgba(0,0,0,.16);
}
.antinuke-sim-stage span { color: #e77a30; font: 700 9px/1 var(--font-mono, monospace); letter-spacing: .1em; }
.antinuke-sim-stage strong { color: #f8eee6; font-size: 12px; line-height: 1.35; }
.antinuke-sim-stage em { align-self: end; color: #77dfaa; font: 700 9px/1 var(--font-mono, monospace); font-style: normal; letter-spacing: .06em; }
.antinuke-simulator-result { margin: 18px 0 0; padding: 12px 14px; border-left: 2px solid var(--pumpkin); background: rgba(244,122,36,.075); color: var(--text-secondary); line-height: 1.55; }
.antinuke-simulator-result b { color: #ffc486; }

@keyframes antinukePacketFlow { 0%, 12% { transform: translateX(-35%); opacity: 0; } 20% { opacity: .95; } 82% { opacity: .95; } 100% { transform: translateX(510%); opacity: 0; } }
@keyframes antinukeStagePulse { 0%, 72%, 100% { border-color: rgba(255,255,255,.09); box-shadow: 0 12px 24px rgba(0,0,0,.16); } 16%, 40% { border-color: rgba(255,179,95,.68); box-shadow: 0 0 0 1px rgba(244,122,36,.12), 0 0 28px rgba(244,122,36,.16); } }
html[data-motion="full"] .antinuke-simulator-rail i { animation: antinukePacketFlow 6.4s cubic-bezier(.42,0,.3,1) infinite; }
html[data-motion="full"] .antinuke-sim-stage { animation: antinukeStagePulse 6.4s ease-in-out infinite; animation-delay: calc(var(--sim-step) * .7s); }

@media (max-width: 920px) {
  .antinuke-doc-hero,
  .antinuke-doc-quick { grid-template-columns: 1fr; display: grid; }
  .antinuke-doc-status { max-width: 320px; }
  .antinuke-doc-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .antinuke-doc-layout { grid-template-columns: 1fr; }
  .antinuke-simulator-head { display: grid; }
  .antinuke-simulator-head code { width: 100%; }
  .antinuke-simulator-trace { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .antinuke-simulator-rail { display: none; }
}

@media (max-width: 600px) {
  .antinuke-doc-hero { padding-top: 22px; gap: 18px; }
  .antinuke-doc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .antinuke-doc-tabs button:last-child { grid-column: span 2; }
  .antinuke-doc-reader { padding: 22px 20px; }
  .antinuke-doc-command-grid { grid-template-columns: 1fr; }
  .antinuke-simulator-trace { grid-template-columns: 1fr; }
  .antinuke-sim-stage { min-height: 0; }
  .antinuke-doc-console-lines span { grid-template-columns: 46px 42px 1fr; padding-inline: 12px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .antinuke-doc-tabs button,
  .antinuke-doc-command-grid button,
  .btn { transition: none; }
  .antinuke-simulator-rail i,
  .antinuke-sim-stage,
  .antinuke-tutorial-turn code i { animation: none !important; }
  .antinuke-tutorial-response { transition: none; }
}

/* Desktop motion stays visible after the legacy compatibility layer. */
html[data-motion="full"] .animated-background::before,
html[data-motion="full"] .animated-background::after {
  display: block;
}
html[data-motion="full"] .animated-background::before { opacity: .3; }
html[data-motion="full"] .animated-background::after { opacity: .16; }
html[data-motion="full"] .background-scene {
  opacity: .34;
  animation: headlessBackdropDrift 20s ease-in-out infinite alternate;
}
html[data-motion="full"] .doc-section.active-doc-section:not(.hero-section)::before {
  display: block !important;
  opacity: .66 !important;
  animation: sectionHalloweenDrift 13s ease-in-out infinite alternate !important;
}
html[data-motion="full"] .doc-section.active-doc-section:not(.hero-section)::after {
  display: block !important;
  animation: headlessFlameTrace 8.4s ease-in-out infinite !important;
}
html[data-motion="full"] .doc-section.active-doc-section > .section-embers.is-active {
  display: block !important;
  opacity: .9;
}

.compact-command-doc,
.command-search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 0;
  margin-bottom: 14px;
  padding: 20px 24px;
}
.compact-command-doc h3,
.command-search-panel h3 { margin: 5px 0; color: var(--text-primary); font-size: clamp(20px, 2.4vw, 28px); letter-spacing: 0; }
.compact-command-doc p,
.command-search-panel p { margin: 0; color: var(--text-secondary); }
.compact-command-doc .btn { flex: 0 0 auto; white-space: nowrap; }
.command-search-panel code { color: #ffbb75; font-family: var(--font-mono, monospace); font-size: .82em; }
.command-search-status {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(244, 135, 47, .22);
  border-radius: 999px;
  color: #ffc689;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .compact-command-doc,
  .command-search-panel { align-items: flex-start; flex-direction: column; padding: 18px; }
  .compact-command-doc .btn { width: 100%; }
}

/* Public control surface: final overrides for the legacy visual layers. */
.network-scale {
  overflow: hidden;
  border-color: rgba(255, 190, 118, .17);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(244, 122, 36, .1), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(13, 12, 12, .94));
  box-shadow: inset 0 1px 0 rgba(255, 219, 177, .08), 0 22px 60px rgba(0, 0, 0, .16);
}

.network-metric {
  min-height: 190px;
  padding: 27px 30px;
  isolation: isolate;
  background: linear-gradient(160deg, rgba(255,255,255,.028), transparent 55%);
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), background 180ms ease, box-shadow 180ms ease;
}
.network-metric::after {
  background: radial-gradient(circle, rgba(255, 177, 84, .5) 0 1px, transparent 2px);
  background-size: 18px 18px;
  opacity: .1;
}
.network-metric:hover {
  z-index: 2;
  background: linear-gradient(160deg, rgba(244,122,36,.15), rgba(255,255,255,.025) 62%);
  box-shadow: inset 0 1px 0 rgba(255, 222, 184, .14), 0 13px 30px rgba(0, 0, 0, .2);
  transform: translateY(-4px);
}
.network-metric-code {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 21px;
  margin-bottom: 20px;
  padding: 0 7px;
  border: 1px solid rgba(244, 135, 47, .22);
  border-radius: 5px;
  background: rgba(244,122,36,.06);
  color: #ffad61;
  letter-spacing: .1em;
}
.network-metric strong {
  position: relative;
  color: #fff7ef;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: clamp(42px, 4.2vw, 62px);
  font-weight: 720;
  letter-spacing: 0;
  text-shadow: 0 10px 30px rgba(244, 122, 36, .08);
}
.network-metric small { margin-top: 13px; color: #b9afa4; letter-spacing: .07em; }
.network-metric.is-updating strong { color: #ffd3a4; }

.topbar-actions .btn,
.hero-actions .btn,
.sidebar-actions .btn {
  min-height: 46px;
  border-radius: 10px;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-weight: 680;
  letter-spacing: 0;
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.topbar-actions .btn:not(.primary),
.hero-actions .btn:not(.primary),
.sidebar-actions .btn:not(.primary) {
  border-color: rgba(255, 202, 145, .16);
  background: rgba(255,255,255,.035);
}
.topbar-actions .btn:hover,
.hero-actions .btn:hover,
.sidebar-actions .btn:hover {
  border-color: rgba(255, 174, 92, .5);
  background: rgba(244, 122, 36, .1);
  box-shadow: 0 13px 28px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,226,191,.1);
  transform: translateY(-3px);
}
.topbar-actions .btn.primary,
.hero-actions .btn.primary,
.sidebar-actions .btn.primary {
  border-color: #ffac5f;
  background: linear-gradient(135deg, #ffc07c, #ff8428 62%, #e86718);
  box-shadow: 0 12px 28px rgba(241, 102, 25, .2), inset 0 1px 0 rgba(255,242,220,.44);
}
.topbar-actions .btn.primary:hover,
.hero-actions .btn.primary:hover,
.sidebar-actions .btn.primary:hover { background: linear-gradient(135deg, #ffd1a0, #ff9239 60%, #ec7020); }
.topbar-actions .btn:active,
.hero-actions .btn:active,
.sidebar-actions .btn:active { transform: translateY(0) scale(.98); }
.topbar-actions .btn:focus-visible,
.hero-actions .btn:focus-visible,
.sidebar-actions .btn:focus-visible { outline: 2px solid #ffd2a1; outline-offset: 3px; }

@media (max-width: 760px) {
  .network-metric { min-height: 0; padding: 20px 16px; }
  .network-metric:hover { transform: none; }
}

/* Headless Manage Server: public control center */
.dashboard-access-gate {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  min-height: 520px;
  overflow: hidden;
  padding: clamp(34px, 6vw, 78px);
  border-color: rgba(255, 167, 80, .22);
  background:
    radial-gradient(circle at 78% 42%, rgba(244, 122, 36, .13), transparent 34%),
    linear-gradient(140deg, rgba(255,255,255,.045), rgba(13,12,12,.96) 45%, rgba(8,9,12,.98));
  box-shadow: 0 30px 90px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,220,180,.08);
}
.dashboard-access-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,138,47,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,138,47,.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
}
.access-gate-copy,
.access-gate-console { position: relative; z-index: 1; }
.access-gate-copy h3 { max-width: 580px; margin: 10px 0 14px; font: 720 clamp(38px, 5vw, 68px)/.98 var(--font-display); letter-spacing: 0; }
.access-gate-copy > p { max-width: 580px; color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.access-gate-copy > .btn { width: fit-content; margin-top: 26px; }
.access-trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--text-muted); font: 650 10px/1.2 var(--font-mono); }
.access-trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.access-trust-row i,
.secure-session i,
.server-card-state i,
.dashboard-health i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #6ed9a1; box-shadow: 0 0 12px rgba(110,217,161,.55); }
.access-gate-console { border: 1px solid rgba(255, 170, 82, .2); border-radius: 12px; background: rgba(8,9,12,.9); box-shadow: 0 28px 70px rgba(0,0,0,.35); }
.access-console-head { display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border-bottom: 1px solid var(--border-subtle); }
.access-console-head > span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.14); }
.access-console-head > span:first-child { background: #ff8a31; }
.access-console-head b { margin-left: auto; color: var(--text-muted); font: 650 9px/1 var(--font-mono); }
.access-console-body { display: grid; padding: 20px; }
.access-console-body p { display: grid; grid-template-columns: 62px minmax(0,1fr) auto; gap: 14px; align-items: center; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.access-console-body p:last-child { border: 0; }
.access-console-body code { color: #ff9d4b; font: 650 10px/1 var(--font-mono); }
.access-console-body strong { color: var(--text-secondary); font: 620 12px/1.2 var(--font-mono); }
.access-console-body span { color: #74dca6; font: 700 9px/1 var(--font-mono); }

body.public-dashboard-mode #dashboard-preview.active-doc-section {
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: linear-gradient(115deg, rgba(244,122,36,.035), transparent 26%);
}
body.public-dashboard-mode #userPanel {
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(255,179,100,.16);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(13,14,18,.92));
}
body.public-dashboard-mode #userPanel > .btn { min-height: 35px; margin-top: 2px; }
.dashboard-account .avatar { box-shadow: 0 0 0 1px rgba(255,164,79,.28), 0 8px 24px rgba(0,0,0,.26); }
.dashboard-account-meta { padding-top: 11px; border-top: 1px solid var(--border-subtle); }
.secure-session { display: inline-flex; align-items: center; gap: 7px; }

body.public-dashboard-mode #serverPicker { gap: 9px; padding: 4px 4px 12px 0; scrollbar-width: thin; scrollbar-color: rgba(244,122,36,.55) transparent; }
#serverPicker .dashboard-side-title { grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 7px 5px 11px; }
#serverPicker .dashboard-side-title > div { min-width: 0; }
#serverPicker .dashboard-side-title strong { display: block; margin-top: 3px; font-size: 13px; }
.dashboard-nav .dashboard-side-title { grid-template-columns: minmax(0,1fr); padding: 8px 9px 12px; }
.dashboard-nav .dashboard-side-title strong { overflow: hidden; margin-top: 3px; text-overflow: ellipsis; white-space: nowrap; }
.server-count { display: grid; place-items: center; min-width: 28px; height: 28px; border: 1px solid rgba(244,122,36,.28); border-radius: 7px; color: #ffad65; background: rgba(244,122,36,.08); font: 700 10px/1 var(--font-mono); }
.server-card {
  position: relative;
  gap: 11px;
  overflow: hidden;
  padding: 15px;
  border-color: rgba(255,255,255,.075);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(255,255,255,.032), rgba(12,13,17,.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.server-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: linear-gradient(180deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity 180ms ease; }
.server-card:hover { transform: translateY(-2px); border-color: rgba(255,161,70,.27); background: linear-gradient(145deg, rgba(244,122,36,.09), rgba(12,13,17,.97)); box-shadow: 0 16px 34px rgba(0,0,0,.2); }
.server-card.active { border-color: rgba(255,163,72,.42); background: linear-gradient(145deg, rgba(244,122,36,.14), rgba(12,13,17,.97) 58%); box-shadow: 0 18px 38px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,205,151,.08); }
.server-card.active::before { opacity: 1; }
.server-card-state { display: inline-flex; align-items: center; gap: 7px; width: fit-content; color: var(--text-muted); font: 650 8px/1 var(--font-mono); text-transform: uppercase; }
.server-card-state:not(.is-ready) i { background: #8b8380; box-shadow: none; }
.server-card .server-top { padding-top: 1px; }
.server-card .avatar { width: 42px; height: 42px; border-radius: 10px; }
.server-card-meta .chip { min-height: 21px; padding: 4px 7px; border-radius: 5px; font-size: 8px; }
.server-open-button { justify-content: space-between; min-height: 34px; padding-inline: 10px; border-color: rgba(255,170,82,.18); background: rgba(255,255,255,.025); }
.server-open-button span { color: var(--accent); transition: transform 180ms ease; }
.server-open-button:hover span { transform: translateX(3px); }

body.public-dashboard-mode #serverDashboard { grid-template-columns: 224px minmax(0,1fr); gap: 14px; }
body.public-dashboard-mode .dashboard-nav {
  border-color: rgba(255,255,255,.075);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(12,13,17,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.tab-button { position: relative; min-height: 40px; border-radius: 7px; color: var(--text-secondary); transition: color 160ms ease, background 160ms ease, transform 160ms ease; }
.tab-button:hover { color: var(--text-primary); background: rgba(255,255,255,.04); transform: translateX(2px); }
.tab-button.active { color: #fff4e9; background: linear-gradient(90deg, rgba(244,122,36,.17), rgba(244,122,36,.035)); box-shadow: inset 2px 0 0 #ff862d; }
.tab-button.active > span { border-color: rgba(255,167,78,.34); color: #ffc07f; background: rgba(244,122,36,.12); }

.dashboard-hero {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-color: rgba(255,171,85,.16);
  border-radius: 12px;
  background: linear-gradient(115deg, rgba(244,122,36,.095), rgba(255,255,255,.025) 44%, rgba(12,13,17,.96));
}
.dashboard-hero-signal { position: absolute; top: 18px; right: 18px; display: flex; gap: 4px; opacity: .75; }
.dashboard-hero-signal i { width: 3px; height: 14px; border-radius: 3px; background: #ff8b33; animation: dashboardSignal 1.4s ease-in-out infinite; transform-origin: center; }
.dashboard-hero-signal i:nth-child(2) { animation-delay: 140ms; }
.dashboard-hero-signal i:nth-child(3) { animation-delay: 280ms; }
.dashboard-health { gap: 7px; }
.dashboard-health:not(.is-healthy) i { background: #e9a84e; }
.dashboard-tab-surface { position: relative; }
.dashboard-tab-surface.has-unsaved-changes .mobile-save-bar span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #ff9b43; box-shadow: 0 0 12px rgba(255,155,67,.5); }
.universal-module-header { border-color: rgba(255,170,84,.14); border-radius: 12px; background: linear-gradient(120deg, rgba(244,122,36,.075), rgba(255,255,255,.026) 44%, rgba(12,13,17,.95)); }
.universal-module-icon { border-color: rgba(255,169,78,.28); background: rgba(244,122,36,.1); color: #ffad62; }
.settings-accordion { overflow: hidden; border-color: rgba(255,255,255,.075); border-radius: 10px; background: rgba(14,15,19,.84); }
.settings-accordion[open] { border-color: rgba(255,162,69,.18); box-shadow: inset 2px 0 0 rgba(244,122,36,.55); }
.settings-accordion > summary { min-height: 62px; }

.module-live-preview {
  position: sticky;
  top: 88px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255,168,80,.17);
  border-radius: 12px;
  background: #111217;
  box-shadow: 0 24px 60px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.035);
}
.module-preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border-bottom: 1px solid rgba(255,255,255,.07); background: #0c0d11; }
.module-preview-toolbar strong { display: block; margin-top: 4px; color: #d8dbe2; font-size: 11px; }
.preview-live-signal { display: inline-flex; align-items: center; gap: 6px; color: #8f969f; font: 700 8px/1 var(--font-mono); }
.preview-live-signal i { width: 6px; height: 6px; border-radius: 50%; background: #63d49a; box-shadow: 0 0 10px rgba(99,212,154,.6); animation: previewLivePulse 1.8s ease-in-out infinite; }
.discord-preview-stage { padding: 18px 14px 16px; background: #1a1b20; }
.discord-preview-message-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.discord-preview-message-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.discord-preview-message-head > div { display: flex; align-items: center; gap: 6px; min-width: 0; }
.discord-preview-message-head strong { color: #f2f3f5; font-size: 12px; }
.discord-preview-message-head span { padding: 2px 4px; border-radius: 3px; color: #fff; background: #5865f2; font: 700 7px/1 var(--font-mono); }
.discord-preview-message-head small { color: #92959d; font-size: 9px; }
.discord-component-preview { position: relative; overflow: hidden; padding: 14px; border: 1px solid #303137; border-radius: 8px; background: #24252b; }
.discord-component-preview::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--discord-preview-accent, #f47a24); }
.discord-preview-copy { padding-left: 4px; }
.discord-preview-copy > strong { display: block; color: #f2f3f5; font-size: 13px; line-height: 1.35; }
.discord-preview-copy > p { overflow-wrap: anywhere; margin: 5px 0 0; color: #c7c9d0; font-size: 11px; line-height: 1.55; white-space: normal; }
.discord-preview-media { display: block; width: 100%; max-height: 190px; margin-top: 12px; border-radius: 6px; object-fit: cover; background: #111217; }
.discord-preview-media.hidden { display: none; }
.discord-preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.07); }
.discord-preview-footer button { min-height: 30px; padding: 0 10px; border: 1px solid #45464e; border-radius: 5px; color: #e5e6ea; background: #383a40; font: 650 10px/1 var(--font-display); pointer-events: none; }
.discord-preview-footer span { color: #93979f; font: 650 8px/1 var(--font-mono); text-transform: uppercase; }
.discord-preview-footer span.is-enabled { color: #70d9a1; }
.module-preview-note { margin: 0; padding: 10px 14px; color: #7d828b; background: #0d0e12; font-size: 9px; line-height: 1.5; }

@keyframes dashboardSignal { 0%,100% { opacity: .25; transform: scaleY(.45); } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes previewLivePulse { 0%,100% { opacity: .45; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.08); } }

@media (max-width: 1120px) {
  .dashboard-access-gate { grid-template-columns: 1fr; min-height: 0; }
  .access-gate-console { max-width: 680px; }
}

@media (max-width: 1040px) {
  body.public-dashboard-mode #dashboard-preview.active-doc-section { grid-template-columns: 1fr; }
  body.public-dashboard-mode #serverDashboard { grid-template-columns: 1fr; }
  .module-live-preview { position: static; }
}

@media (max-width: 760px) {
  .dashboard-access-gate { gap: 24px; padding: 26px 18px; border-radius: 0; }
  .access-gate-copy h3 { font-size: 40px; }
  .access-trust-row { gap: 9px 14px; }
  .access-console-body p { grid-template-columns: 52px minmax(0,1fr); }
  .access-console-body p > span { grid-column: 2; }
  body.public-dashboard-mode #dashboard-preview.active-doc-section { padding: 10px; }
  .dashboard-hero { padding: 16px; }
  .dashboard-hero-actions { gap: 5px; }
  .settings-layout { grid-template-columns: minmax(0,1fr); }
  .discord-preview-stage { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-hero-signal i,
  .preview-live-signal i { animation: none; }
  .server-card,
  .tab-button,
  .server-open-button span { transition: none; }
}

/* Public landing continuity and visible Headless motion ------------------ */
@media (min-width: 1041px) {
  .docs-shell {
    max-width: none;
    margin: 0;
  }

  .docs-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .docs-main > .topbar {
    padding-inline: 24px;
  }

  .doc-section,
  .hero-section {
    width: calc(100% - 48px);
    max-width: none;
    margin-inline: 24px;
  }
}

html[data-motion="full"] .hero-figure {
  animation: headlessHeroDrift 11s ease-in-out infinite alternate;
}

html[data-motion="full"] .hero-fire-glow {
  animation: fireBreath 2.7s ease-in-out infinite;
}

html[data-motion="full"] .hero-scene::after {
  animation: heroLightSweep 7.2s ease-in-out infinite;
}

html[data-motion="full"] .hero-copy h1 {
  position: relative;
  background-size: 100% 230%;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter:
    drop-shadow(0 12px 30px rgba(0, 0, 0, .72))
    drop-shadow(0 0 17px rgba(244, 122, 36, .24));
  animation:
    headlessTitleHeat 4.8s ease-in-out infinite,
    headlessTitleGlow 2.9s ease-in-out infinite;
}

html[data-motion="full"] .hero-copy h1::after {
  display: block;
}

@keyframes headlessHeroDrift {
  0% { transform: translate3d(-1.6%, .55%, 0) scale(1.045); }
  100% { transform: translate3d(1.8%, -.75%, 0) scale(1.09); }
}

@media (max-width: 1180px) {
  .docs-shell {
    display: block;
    max-width: none;
  }

  .docs-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    height: auto;
    max-height: none;
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 8px 18px;
    padding: 10px 16px 8px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .docs-sidebar .brand {
    margin: 0;
    padding: 4px;
  }

  .docs-sidebar .sidebar-status {
    width: min(100%, 300px);
    margin: 0;
    justify-self: end;
  }

  .docs-sidebar .docs-nav {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 4px;
    scrollbar-width: thin;
  }

  .docs-sidebar .nav-group {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
  }

  .docs-sidebar .nav-group h2,
  .docs-sidebar .nav-group h3,
  .docs-sidebar .sidebar-actions {
    display: none;
  }

  .docs-sidebar .nav-item {
    width: auto;
    min-width: max-content;
    min-height: 36px;
    grid-template-columns: 24px auto;
    gap: 6px;
    padding: 6px 9px;
  }

  .docs-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: 16px;
  }

  .docs-main > .topbar,
  .doc-section,
  .hero-section {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .docs-main > .topbar {
    padding-inline: 0;
  }

  .hero-section {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 18px;
    padding-bottom: 40px;
  }

  .hero-scene {
    height: 100%;
  }

  .hero-copy {
    width: min(100%, 720px);
    max-width: 720px;
    padding: 74px 0 20px;
  }

  .hero-product-preview {
    width: min(100%, 760px);
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  html,
  body,
  .docs-shell,
  .docs-main,
  .hero-section,
  .hero-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .docs-sidebar {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px 12px 6px;
  }

  .docs-sidebar .sidebar-status {
    display: none;
  }

  .docs-main {
    padding-inline: 12px;
  }

  .topbar-actions .btn.primary {
    display: none;
  }

  .hero-section {
    padding-bottom: 28px;
  }

  .hero-copy {
    padding: 92px 0 12px;
  }

  .hero-copy > p,
  .hero-copy .hero-tagline,
  .badge-row,
  .hero-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .hero-copy > p,
  .hero-copy .hero-tagline {
    overflow-wrap: break-word;
  }

  .hero-copy .hero-tagline {
    font-size: 11px;
    line-height: 1.55;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(48px, 15vw, 58px);
  }

  .product-preview-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-preview-body nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 9px;
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .product-preview-body nav button {
    flex: 0 0 auto;
    width: auto;
  }

  html[data-motion="full"] .hero-figure {
    animation-duration: 15s;
  }

  html[data-motion="full"] .hero-copy h1::after {
    opacity: .38;
  }
}

/* Live network 2026: precise SVG anchors + modern interactive surface. */
.guild-network-stage {
  --network-pointer-x: 50%;
  --network-pointer-y: 50%;
  min-height: 540px;
  border-color: rgba(255, 137, 50, .18);
  border-radius: 22px;
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgba(255, 111, 24, .105), transparent 25%),
    linear-gradient(145deg, #08090c 0%, #050609 58%, #090706 100%);
  background-size: 36px 36px, 36px 36px, auto, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 211, 169, .045),
    inset 0 -90px 120px rgba(0, 0, 0, .32),
    0 30px 80px rgba(0, 0, 0, .2);
}

.guild-network-stage::before {
  z-index: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 133, 47, .02) 34%, rgba(255, 179, 101, .1) 50%, rgba(255, 133, 47, .02) 66%, transparent 100%),
    repeating-linear-gradient(90deg, transparent 0 90px, rgba(255, 131, 42, .025) 91px 92px);
  opacity: .64;
  animation: headlessNetworkScanModern 14s linear infinite;
}

.guild-network-stage::after {
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(circle 220px at var(--network-pointer-x) var(--network-pointer-y), rgba(255, 137, 50, .095), transparent 72%),
    radial-gradient(circle at 50% 50%, transparent 35%, rgba(0, 0, 0, .5) 100%);
  opacity: 1;
  animation: none;
}

.guild-network-stage:hover,
.guild-network-stage:focus-within {
  border-color: rgba(255, 151, 68, .38);
  box-shadow:
    inset 0 1px 0 rgba(255, 211, 169, .06),
    inset 0 -90px 120px rgba(0, 0, 0, .3),
    0 32px 90px rgba(0, 0, 0, .28),
    0 0 0 1px rgba(255, 122, 27, .035);
}

.network-ambient {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.network-ambient i {
  --ambient-size: 3px;
  --ambient-x: 10%;
  --ambient-y: 80%;
  --ambient-drift: 42px;
  --ambient-time: 10s;
  position: absolute;
  left: var(--ambient-x);
  top: var(--ambient-y);
  width: var(--ambient-size);
  height: var(--ambient-size);
  border-radius: 50%;
  background: #ffb36d;
  box-shadow: 0 0 9px rgba(255, 111, 24, .85);
  opacity: 0;
  animation: headlessNetworkEmber var(--ambient-time) ease-in-out infinite;
}

.network-ambient i:nth-child(2) { --ambient-x: 21%; --ambient-y: 62%; --ambient-size: 2px; --ambient-drift: 32px; --ambient-time: 12s; animation-delay: -7s; }
.network-ambient i:nth-child(3) { --ambient-x: 34%; --ambient-y: 88%; --ambient-size: 2px; --ambient-drift: 54px; --ambient-time: 9s; animation-delay: -3s; }
.network-ambient i:nth-child(4) { --ambient-x: 46%; --ambient-y: 71%; --ambient-size: 4px; --ambient-drift: 46px; --ambient-time: 13s; animation-delay: -10s; }
.network-ambient i:nth-child(5) { --ambient-x: 59%; --ambient-y: 84%; --ambient-size: 2px; --ambient-drift: 38px; --ambient-time: 11s; animation-delay: -4s; }
.network-ambient i:nth-child(6) { --ambient-x: 72%; --ambient-y: 67%; --ambient-size: 3px; --ambient-drift: 58px; --ambient-time: 14s; animation-delay: -8s; }
.network-ambient i:nth-child(7) { --ambient-x: 83%; --ambient-y: 91%; --ambient-size: 2px; --ambient-drift: 40px; --ambient-time: 10s; animation-delay: -6s; }
.network-ambient i:nth-child(8) { --ambient-x: 92%; --ambient-y: 74%; --ambient-size: 3px; --ambient-drift: 50px; --ambient-time: 12s; animation-delay: -2s; }

.network-drag-hint {
  position: absolute;
  z-index: 8;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 148, 64, .14);
  border-radius: 999px;
  background: rgba(7, 8, 11, .72);
  color: rgba(232, 216, 202, .58);
  font: 650 8px/1 var(--font-mono);
  letter-spacing: .055em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}

.network-drag-hint i {
  width: 6px;
  height: 6px;
  border: 1px solid #ff9c4e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 124, 28, .08), 0 0 10px rgba(255, 124, 28, .32);
  animation: headlessHintPulse 2.4s ease-in-out infinite;
}

.network-connections {
  z-index: 2;
  overflow: hidden;
}

.network-route,
.network-signal {
  transition: opacity 240ms ease, stroke-width 240ms ease, filter 240ms ease;
}

.network-route {
  stroke: url(#networkRouteGradient);
  stroke-width: 1.15;
  stroke-linecap: round;
  opacity: .54;
}

.network-route.is-active {
  stroke: url(#networkRouteGradient);
  stroke-width: 2;
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(255, 119, 27, .55));
}

.network-signal {
  stroke: url(#networkSignalGradient);
  stroke-width: 4;
  stroke-dasharray: 2 98;
  filter: drop-shadow(0 0 3px #ffb15e) drop-shadow(0 0 10px rgba(255, 91, 12, .8));
  animation-duration: 4s;
}

.network-signal.is-active {
  stroke: url(#networkSignalGradient);
  stroke-width: 5;
  animation-duration: 2.35s;
}

.network-receiver {
  fill: #fff4df;
  filter: drop-shadow(0 0 5px #ffb15e) drop-shadow(0 0 14px #ff6f17);
}

.guild-network-nodes {
  z-index: 5;
  transform-style: preserve-3d;
}

.guild-network-node {
  --node-float-x: 2px;
  width: 224px;
  min-height: 66px;
  gap: 11px;
  padding: 7px 10px 7px 7px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 16px;
  background:
    linear-gradient(112deg, rgba(255, 142, 55, .09), transparent 42%),
    rgba(10, 11, 14, .76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .025),
    0 12px 34px rgba(0, 0, 0, .2);
  backdrop-filter: blur(13px) saturate(120%);
  -webkit-backdrop-filter: blur(13px) saturate(120%);
  touch-action: none;
  user-select: none;
  animation: headlessGuildFloatModern 7.2s ease-in-out infinite;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, filter 220ms ease, opacity 220ms ease;
}

.guild-network-node.node-2,
.guild-network-node.node-4,
.guild-network-node.node-6 { padding: 7px 7px 7px 10px; }
.guild-network-node:nth-child(2) { --node-float-x: -3px; animation-delay: -1.2s; }
.guild-network-node:nth-child(3) { --node-float-x: 2px; animation-delay: -2.4s; }
.guild-network-node:nth-child(4) { --node-float-x: -2px; animation-delay: -3.6s; }
.guild-network-node:nth-child(5) { --node-float-x: 3px; animation-delay: -4.8s; }
.guild-network-node:nth-child(6) { --node-float-x: -2px; animation-delay: -6s; }

.guild-network-node::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 11px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 155, 76, 0);
  transition: box-shadow 220ms ease;
}

.guild-network-node:hover,
.guild-network-node:focus-visible,
.guild-network-node.active {
  border-color: rgba(255, 151, 68, .36);
  background:
    linear-gradient(112deg, rgba(255, 129, 34, .17), rgba(255, 129, 34, .035) 52%, transparent),
    rgba(11, 11, 14, .9);
  box-shadow:
    inset 0 1px 0 rgba(255, 221, 189, .055),
    0 16px 42px rgba(0, 0, 0, .3),
    0 0 26px rgba(255, 105, 18, .06);
}

.guild-network-node:hover::after,
.guild-network-node.active::after { box-shadow: inset 0 0 0 1px rgba(255, 155, 76, .05); }

.guild-network-node.active::before {
  z-index: -1;
  inset: -5px;
  border-color: rgba(255, 139, 48, .22);
  border-radius: 20px;
  background: radial-gradient(circle at 25% 50%, rgba(255, 119, 27, .14), transparent 62%);
  box-shadow: 0 0 34px rgba(255, 103, 16, .08);
}

.guild-network-avatar {
  width: 52px;
  height: 52px;
  overflow: visible;
  border: 1px solid rgba(255, 191, 132, .24);
  background: #101116;
  box-shadow:
    0 0 0 4px rgba(255, 126, 31, .025),
    0 8px 22px rgba(0, 0, 0, .32);
}

.guild-network-avatar::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -6px;
  border: 1px solid rgba(255, 143, 57, .12);
  border-radius: 50%;
  opacity: .55;
  transform: scale(.9);
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.guild-network-avatar img { border-radius: inherit; }

.guild-network-node:hover .guild-network-avatar,
.guild-network-node.active .guild-network-avatar {
  border-color: rgba(255, 171, 91, .74);
  box-shadow: 0 0 0 5px rgba(255, 126, 31, .055), 0 0 28px rgba(255, 105, 18, .2), 0 10px 24px rgba(0, 0, 0, .34);
}

.guild-network-node:hover .guild-network-avatar::before,
.guild-network-node.active .guild-network-avatar::before {
  border-color: rgba(255, 143, 57, .38);
  opacity: 1;
  transform: scale(1);
}

.guild-network-label { opacity: .78; }
.guild-network-label strong { color: #fff0e1; font-size: 11px; letter-spacing: -.01em; }
.guild-network-label small { margin-top: 5px; color: rgba(198, 181, 166, .64); font-size: 8.5px; letter-spacing: .035em; }

.network-core {
  z-index: 7;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(255, 161, 78, .52);
  background:
    radial-gradient(circle at 40% 32%, rgba(255, 173, 94, .13), transparent 30%),
    linear-gradient(145deg, #17110d, #0a0a0c 70%);
  box-shadow:
    0 0 0 10px rgba(255, 121, 28, .025),
    0 0 0 24px rgba(255, 121, 28, .018),
    0 0 52px rgba(255, 97, 12, .2),
    inset 0 1px 0 rgba(255, 230, 204, .09);
  transition: left 110ms linear, top 110ms linear, border-color 220ms ease, box-shadow 220ms ease;
}

.network-core::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 18%, rgba(255, 156, 70, .8) 24%, transparent 31% 69%, rgba(255, 103, 18, .52) 75%, transparent 82%);
  -webkit-mask: radial-gradient(circle, transparent 65%, #000 67%);
  mask: radial-gradient(circle, transparent 65%, #000 67%);
  opacity: .7;
  animation: headlessCoreOrbit 9s linear infinite;
  pointer-events: none;
}

.network-core::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 9px;
  width: 8px;
  height: 8px;
  border: 2px solid #111114;
  border-radius: 50%;
  background: #61e6a2;
  box-shadow: 0 0 11px rgba(97, 230, 162, .9);
}

.network-core img {
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255, 219, 184, .11);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .45), 0 0 24px rgba(255, 101, 18, .11);
}

.network-core > span {
  inset: -20px;
  border-color: rgba(255, 143, 57, .2);
  animation-duration: 3.2s;
}

.network-core:hover,
.network-core:focus-visible {
  border-color: rgba(255, 182, 112, .85);
  outline: none;
  box-shadow:
    0 0 0 11px rgba(255, 121, 28, .04),
    0 0 0 26px rgba(255, 121, 28, .02),
    0 0 66px rgba(255, 97, 12, .3),
    inset 0 1px 0 rgba(255, 230, 204, .12);
}

.network-stage-status {
  z-index: 8;
  right: 16px;
  bottom: 16px;
  padding: 9px 12px;
  border-color: rgba(255, 151, 68, .22);
  border-radius: 999px;
  background: rgba(7, 8, 11, .8);
  color: rgba(235, 218, 202, .78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 10px 26px rgba(0,0,0,.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.guild-network-stage.is-dragging .guild-network-node:not(.is-dragging) { opacity: .58; }
.guild-network-node.is-dragging {
  z-index: 20;
  animation: none !important;
  transform: scale(1.025) !important;
  border-color: rgba(255, 174, 97, .72);
  box-shadow: 0 24px 58px rgba(0, 0, 0, .42), 0 0 34px rgba(255, 109, 18, .15);
  transition: none;
}
.guild-network-stage.is-dragging .network-core,
.guild-network-stage.is-dragging .guild-network-node { transition: none; }

@keyframes headlessGuildFloatModern {
  0%, 100% { transform: translate3d(0, 0, 0); }
  35% { transform: translate3d(var(--node-float-x), -5px, 0); }
  68% { transform: translate3d(calc(var(--node-float-x) * -.55), 2px, 0); }
}

@keyframes headlessNetworkScanModern {
  from { transform: translate3d(-42%, 0, 0); }
  to { transform: translate3d(42%, 0, 0); }
}

@keyframes headlessNetworkEmber {
  0%, 12% { opacity: 0; transform: translate3d(0, 18px, 0) scale(.65); }
  28% { opacity: .58; }
  74% { opacity: .24; }
  100% { opacity: 0; transform: translate3d(14px, calc(var(--ambient-drift) * -1), 0) scale(1.1); }
}

@keyframes headlessCoreOrbit { to { transform: rotate(360deg); } }
@keyframes headlessHintPulse {
  0%, 100% { opacity: .55; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 900px) and (min-width: 701px) {
  .guild-network-node { width: 194px; }
  .guild-network-node.node-1,
  .guild-network-node.node-3 { left: 2%; }
  .guild-network-node.node-2,
  .guild-network-node.node-4 { right: 2%; }
}

@media (max-width: 700px) {
  .guild-network-stage { min-height: 0; border-radius: 18px; }
  .network-ambient,
  .network-drag-hint { display: none; }
  .network-core { width: 86px; height: 86px; transition: box-shadow 220ms ease; }
  .network-core img { width: 60px; height: 60px; }
  .network-core::before { inset: -8px; }
  .network-core > span { inset: -13px; }
  .guild-network-nodes { transform: none; }
  .guild-network-node,
  .guild-network-node.node-1,
  .guild-network-node.node-2,
  .guild-network-node.node-3,
  .guild-network-node.node-4,
  .guild-network-node.node-5,
  .guild-network-node.node-6 {
    width: 100%;
    min-height: 58px;
    padding: 8px;
    border-radius: 13px;
    animation: none;
  }
  .guild-network-avatar { width: 42px; height: 42px; }
  .network-stage-status { position: relative; right: auto; bottom: auto; width: max-content; max-width: 100%; margin: 16px auto 0; }
}

@media (prefers-reduced-motion: reduce) {
  .guild-network-stage::before,
  .network-ambient i,
  .network-drag-hint i,
  .network-core::before,
  .guild-network-node { animation: none !important; }
}

html[data-performance="lite"] .guild-network-stage::before,
html[data-performance="lite"] .network-ambient i,
html[data-performance="lite"] .network-core::before,
html[data-performance="lite"] .guild-network-node,
html[data-motion="reduced"] .guild-network-stage::before,
html[data-motion="reduced"] .network-ambient i,
html[data-motion="reduced"] .network-drag-hint i,
html[data-motion="reduced"] .network-core::before,
html[data-motion="reduced"] .guild-network-node {
  animation: none !important;
}

/* Page zoom: docked in the navigation so it never covers page content. */
:root {
  --page-zoom: 1;
}

html,
body { overflow-x: clip; }

.docs-shell {
  width: 100%;
  max-width: none;
  zoom: var(--page-zoom);
}

.page-zoom-control {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 34px 50px 34px;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 151, 68, .26);
  border-radius: 11px;
  background: rgba(7, 8, 11, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 8px 22px rgba(0,0,0,.28), 0 0 18px rgba(255,105,18,.05);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  transition: opacity 220ms ease, border-color 220ms ease;
}

body.is-booting .page-zoom-control,
body.public-maintenance .page-zoom-control {
  opacity: 0;
  pointer-events: none;
}

.page-zoom-control:hover,
.page-zoom-control:focus-within { border-color: rgba(255, 171, 91, .52); }

.page-zoom-control button {
  min-width: 0;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  color: #f4dfcb;
  font: 760 18px/1 var(--font-mono, monospace);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.page-zoom-control button:hover,
.page-zoom-control button:focus-visible {
  border-color: rgba(255, 153, 70, .42);
  background: rgba(255, 126, 31, .11);
  color: #ffb66f;
  outline: none;
  transform: translateY(-1px);
}

.page-zoom-control button:active { transform: scale(.95); }
.page-zoom-control button:disabled { opacity: .28; cursor: not-allowed; transform: none; }
.page-zoom-control .page-zoom-value { color: #ff9d4f; font-size: 10px; letter-spacing: .025em; }

/* Hero image: cursor light, technical depth and calm cinematic motion. */
.hero-scene {
  --hero-pointer-x: 68%;
  --hero-pointer-y: 32%;
}

.hero-scan-grid,
.hero-aurora {
  position: absolute;
  inset: -4%;
  pointer-events: none;
}

.hero-scan-grid {
  z-index: 1;
  opacity: .2;
  background:
    linear-gradient(rgba(255, 170, 94, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 170, 94, .075) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 42%, #000 0%, rgba(0,0,0,.7) 38%, transparent 72%);
  mask-image: radial-gradient(ellipse at 72% 42%, #000 0%, rgba(0,0,0,.7) 38%, transparent 72%);
  transform: perspective(900px) rotateX(62deg) translate3d(0, 24%, 0) scale(1.18);
  transform-origin: 68% 72%;
}

.hero-aurora {
  z-index: 2;
  opacity: .72;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle 260px at var(--hero-pointer-x) var(--hero-pointer-y), rgba(255, 183, 104, .16), rgba(255, 111, 24, .055) 42%, transparent 74%),
    radial-gradient(ellipse at 69% 27%, rgba(255, 109, 20, .13), transparent 42%),
    linear-gradient(112deg, transparent 34%, rgba(255, 191, 125, .045) 49%, transparent 62%);
  transition: background-position 300ms ease;
}

.hero-aurora::before {
  content: "";
  position: absolute;
  inset: -20% -35%;
  background: linear-gradient(108deg, transparent 41%, rgba(255, 221, 178, .11) 49%, rgba(255, 126, 31, .06) 53%, transparent 61%);
  transform: translate3d(-22%, 0, 0);
}

.hero-aurora::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 14%;
  width: clamp(180px, 26vw, 390px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 156, 73, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 121, 28, .018), 0 0 0 68px rgba(255, 121, 28, .012);
}

html[data-motion="full"] .hero-scan-grid { animation: heroGridBreath 10s ease-in-out infinite alternate; }
html[data-motion="full"] .hero-aurora { animation: heroAuroraBreath 5.4s ease-in-out infinite; }
html[data-motion="full"] .hero-aurora::before { animation: heroLensSweep 9s ease-in-out infinite; }
html[data-motion="full"] .hero-aurora::after { animation: heroOrbitEcho 12s linear infinite; }

/* Anti Nuke full specification. */
.antinuke-doc-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.antinuke-doc-layout { align-items: start; }
.antinuke-doc-reader { display: grid; gap: 0; }
.antinuke-doc-reader > ul { margin-bottom: 20px; }

.antinuke-doc-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 22px;
}

.antinuke-doc-facts > div {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 9px;
  background: rgba(255,255,255,.018);
}

.antinuke-doc-facts span,
.antinuke-doc-facts strong { display: block; }
.antinuke-doc-facts span { color: var(--text-muted); font: 650 8px/1 var(--font-mono, monospace); letter-spacing: .08em; text-transform: uppercase; }
.antinuke-doc-facts strong { margin-top: 8px; color: #ffe4c9; font-size: 12px; line-height: 1.35; }

.antinuke-doc-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.antinuke-doc-groups section {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(244,135,47,.14);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(244,122,36,.045), rgba(8,8,10,.5));
}

.antinuke-doc-groups h4 { margin: 0 0 12px; color: #ffb775; font-size: 12px; }
.antinuke-doc-groups section > div { display: flex; flex-wrap: wrap; gap: 6px; }
.antinuke-doc-groups code {
  max-width: 100%;
  padding: 5px 7px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 6px;
  background: rgba(0,0,0,.25);
  color: #d9c8b7;
  font: 600 9px/1.35 var(--font-mono, monospace);
}

.antinuke-doc-console { position: sticky; top: 90px; }
.antinuke-doc-command-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.antinuke-deployment {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
  gap: 26px;
  align-items: start;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(244,135,47,.18);
}

.antinuke-deployment-head h3 { margin: 8px 0 10px; color: #fff1e3; font-size: clamp(22px, 2.7vw, 34px); line-height: 1.08; }
.antinuke-deployment-head p { margin: 0; color: var(--text-secondary); line-height: 1.6; }
.antinuke-deployment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.antinuke-deployment-grid article {
  position: relative;
  min-width: 0;
  min-height: 138px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 11px;
  background: rgba(12,11,12,.72);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.antinuke-deployment-grid article:hover { transform: translateY(-3px); border-color: rgba(244,135,47,.34); background: rgba(244,122,36,.055); }
.antinuke-deployment-grid article > span { color: rgba(244,135,47,.45); font: 700 10px/1 var(--font-mono, monospace); }
.antinuke-deployment-grid h4 { margin: 18px 0 7px; color: #f6e9dc; font-size: 14px; }
.antinuke-deployment-grid p { margin: 0; color: var(--text-muted); font-size: 11px; line-height: 1.55; }

@keyframes heroGridBreath {
  from { opacity: .11; transform: perspective(900px) rotateX(62deg) translate3d(-1%, 25%, 0) scale(1.16); }
  to { opacity: .25; transform: perspective(900px) rotateX(62deg) translate3d(1%, 21%, 0) scale(1.22); }
}

@keyframes heroAuroraBreath {
  0%, 100% { opacity: .54; filter: saturate(.9); }
  50% { opacity: .82; filter: saturate(1.18); }
}

@keyframes heroLensSweep {
  0%, 14% { opacity: 0; transform: translate3d(-24%, 0, 0); }
  34% { opacity: .72; }
  64% { opacity: .18; }
  82%, 100% { opacity: 0; transform: translate3d(24%, 0, 0); }
}

@keyframes heroOrbitEcho { to { transform: rotate(360deg); } }

@media (max-width: 920px) {
  .antinuke-doc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .antinuke-doc-console { position: relative; top: auto; }
  .antinuke-deployment { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .page-zoom-control {
    grid-template-columns: 34px 48px 34px;
    border-radius: 11px;
  }
  .page-zoom-control button { height: 32px; }
  .hero-scan-grid { opacity: .11; background-size: 36px 36px; }
  .hero-aurora { opacity: .46; }
  .antinuke-doc-facts,
  .antinuke-doc-groups,
  .antinuke-deployment-grid { grid-template-columns: 1fr; }
  .antinuke-doc-tabs button:last-child { grid-column: auto; }
  .antinuke-doc-groups code { font-size: 8.5px; }
  .antinuke-deployment-grid article { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scan-grid,
  .hero-aurora,
  .hero-aurora::before,
  .hero-aurora::after { animation: none !important; }
}
