:root[data-theme] {
  color-scheme: dark;
  --handbook-paper: radial-gradient(ellipse 78% 36% at 76% 35%, #112031, #11203100 85%), linear-gradient(154deg, #0a1221 0%, #070f1c 49%, #03080f 100%);
  --paper: #070f1c;
  --ink: #f8fafc;
  --muted: #c1d2e7;
  --accent: #38bdf8;
  --signal: #38bdf8;
  --scroll-thumb: rgb(182 208 231 / 32%);
  --scroll-thumb-hover: rgb(182 208 231 / 56%);
  --accent-soft: rgb(56 189 248 / 12%);
  --line: rgb(248 250 252 / 9%);
  --line-strong: rgb(248 250 252 / 16%);
  --surface: #102147;
  --panel: #0f2044;

  /* Controls and image surfaces */
  --module-bg: #0a1733;
  --module-border: rgb(168 206 245 / 12%);

  --stage-bg: #102249;
  --row-hover: rgb(255 255 255 / 4%);
  --studio-mount: #f5f9fd;

  --assembly-paper: #101f3a;
  --assembly-lighting: radial-gradient(ellipse 48% 56% at 50% 53%, rgb(88 126 171 / 18%), transparent);
  --assembly-lettering: linear-gradient(180deg, #253956, #3b5474);
  --assembly-ink: var(--ink);
  --assembly-control-border: rgb(168 206 245 / 35%);

  --control-bg: #122652;
  --control-bg-hover: #19336b;
  --control-border: rgb(168 206 245 / 16%);
  --dropdown-bg: #0b1938;
  --dropdown-border: rgb(168 206 245 / 16%);

  --header-glass: 35 49 72;
  --header-panel-glass: 32 45 64;
  --header-surface: rgb(var(--header-glass) / 76%);
  --header-surface-open: rgb(var(--header-glass) / 84%);
  --header-panel: rgb(var(--header-panel-glass) / 89%);
  --header-border: rgb(209 219 228 / 26%);

  --action-hover: var(--accent);
  --spec-shade: rgb(255 255 255 / 3%);
}

:root[data-theme].no-js .flyslice-logo { filter: brightness(0) invert(1); }
:root[data-theme] :is(.button-dark, .product-consult, .header-contact) {
  background: var(--accent);
  color: #061527;
  border-color: transparent;
}
:root[data-theme] :is(.button-dark, .product-consult, .header-contact):hover {
  background: #7dd3fc;
  color: #04101f;
}

/* Luminous studio mount preserves multi-color corporate partner marks in dark mode */
:root[data-theme] .partner-logo-stage {
  background: var(--studio-mount);
  isolation: isolate;
}
:root[data-theme] .partner-logo-stage img {
  mix-blend-mode: multiply;
}

:root[data-theme] .technical-diagram {
  --diagram-fill: #0d1d40;
  --diagram-line: rgb(168 206 245 / 22%);
  --diagram-deep: #16376e;
  --diagram-deep-stroke: #38bdf8;
  --diagram-spec: #38bdf8;
  --diagram-paper: #f8fafc;
  --diagram-inverse-muted: #bae6fd;
  --diagram-surface: #102249;
}
