:root {
  color-scheme: dark;
  --ink-1000: #070b0f;
  --ink-950: #0b1117;
  --ink-900: #101820;
  --ink-850: #14212b;
  --ink-800: #1a2833;
  --ink-700: #2a3a47;
  --steel-500: #718392;
  --steel-400: #94a4b0;
  --steel-300: #b8c4cc;
  --paper: #f4f7f8;
  --paper-strong: #ffffff;
  --paper-muted: #e7edf0;
  --text: #e8eef2;
  --text-strong: #ffffff;
  --text-muted: #9dafbb;
  --line: rgba(184, 196, 204, 0.16);
  --line-strong: rgba(184, 196, 204, 0.28);
  --brand: #007da3;
  --brand-bright: #25a9ce;
  --brand-soft: rgba(0, 125, 163, 0.14);
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --success: #45b987;
  --danger: #d95d67;
  --warning: #d4af37;
  --sidebar-width: 18.5rem;
  --toc-width: 15.5rem;
  --header-height: 4rem;
  --content-max: 56rem;
  --radius-sm: 0.45rem;
  --radius-md: 0.8rem;
  --radius-lg: 1.1rem;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  --display: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif;
  --body: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  --utility: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

html[data-theme="light"] {
  color-scheme: light;
  --ink-1000: #e8eef1;
  --ink-950: #eef3f5;
  --ink-900: #f7fafb;
  --ink-850: #ffffff;
  --ink-800: #edf3f5;
  --ink-700: #d2dde2;
  --steel-500: #667987;
  --steel-400: #536774;
  --steel-300: #374d5b;
  --paper: #101820;
  --paper-strong: #071017;
  --paper-muted: #273a46;
  --text: #1e303c;
  --text-strong: #0b1820;
  --text-muted: #5e717e;
  --line: rgba(26, 40, 51, 0.12);
  --line-strong: rgba(26, 40, 51, 0.22);
  --brand-soft: rgba(0, 125, 163, 0.09);
  --gold-soft: rgba(212, 175, 55, 0.13);
  --shadow: 0 24px 70px rgba(44, 64, 76, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(0, 125, 163, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 125, 163, 0.025) 1px, transparent 1px),
    var(--ink-950);
  background-size: 3rem 3rem;
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--brand-bright);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

code {
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: var(--ink-800);
  padding: 0.1rem 0.35rem;
  color: var(--text-strong);
  font-size: 0.87em;
}

kbd {
  display: inline-flex;
  min-width: 1.7rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 0.35rem;
  background: var(--ink-850);
  padding: 0.08rem 0.42rem;
  color: var(--text-strong);
  font-size: 0.78rem;
  line-height: 1.4;
}

:focus-visible {
  outline: 3px solid rgba(37, 169, 206, 0.52);
  outline-offset: 3px;
}

::selection {
  background: rgba(0, 125, 163, 0.38);
  color: #fff;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.65rem;
  left: 50%;
  transform: translate(-50%, -150%);
  border-radius: var(--radius-sm);
  background: var(--paper-strong);
  padding: 0.65rem 1rem;
  color: var(--ink-950);
  font-weight: 800;
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.reading-progress {
  position: fixed;
  z-index: 500;
  inset: 0 0 auto 0;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.reading-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand-bright);
  box-shadow: 0 0 12px rgba(37, 169, 206, 0.55);
}

.site-sidebar {
  position: fixed;
  z-index: 200;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(7, 11, 15, 0.96);
  box-shadow: 18px 0 55px rgba(0, 0, 0, 0.12);
  color: #dce6eb;
}

.sidebar-brand {
  display: flex;
  min-height: 6.2rem;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(184, 196, 204, 0.12);
  padding: 1.15rem 1.25rem;
  color: #fff;
  text-decoration: none;
}

.sidebar-brand:hover {
  color: #fff;
}

.sidebar-brand img {
  width: 9rem;
  height: auto;
}

.sidebar-brand-copy {
  display: flex;
  flex-direction: column;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(184, 196, 204, 0.2);
  line-height: 1.1;
}

.sidebar-brand-copy strong {
  font-family: var(--display);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.sidebar-brand-copy small {
  margin-top: 0.3rem;
  color: #8397a5;
  font-family: var(--utility);
  font-size: 0.58rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 0.85rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 164, 176, 0.26) transparent;
}

.sidebar-group + .sidebar-group {
  margin-top: 1.2rem;
}

.sidebar-group-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.35rem;
  padding: 0 0.65rem;
  color: #708594;
  font-family: var(--utility);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sidebar-group-title::before {
  width: 0.36rem;
  height: 0.36rem;
  border: 1px solid #537080;
  content: "";
}

.sidebar-nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.65rem;
  align-items: start;
  border-radius: 0.5rem;
  padding: 0.52rem 0.65rem;
  color: #a9bac4;
  font-size: 0.85rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}

.sidebar-nav-link + .sidebar-nav-link {
  margin-top: 0.12rem;
}

.sidebar-nav-link:hover {
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
}

.sidebar-nav-link[aria-current="page"] {
  background: rgba(0, 125, 163, 0.16);
  color: #fff;
}

.sidebar-nav-link[aria-current="page"]::before {
  position: absolute;
  top: 0.65rem;
  bottom: 0.65rem;
  left: -0.85rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand-bright);
  box-shadow: 0 0 10px rgba(37, 169, 206, 0.45);
  content: "";
}

.nav-glyph {
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  border: 1px solid rgba(148, 164, 176, 0.24);
  border-radius: 0.24rem;
  color: #7f95a3;
  font-family: var(--utility);
  font-size: 0.56rem;
  font-style: normal;
}

.sidebar-nav-link[aria-current="page"] .nav-glyph {
  border-color: rgba(37, 169, 206, 0.55);
  color: #6ed4ee;
}

.sidebar-footer {
  border-top: 1px solid rgba(184, 196, 204, 0.12);
  padding: 0.8rem 1.25rem 1rem;
  color: #718793;
  font-family: var(--utility);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

html[data-theme="light"] .site-sidebar {
  border-right-color: rgba(26, 40, 51, 0.14);
  background: rgba(247, 250, 251, 0.98);
  box-shadow: 18px 0 55px rgba(44, 64, 76, 0.09);
  color: #1e303c;
}

html[data-theme="light"] .sidebar-brand {
  border-bottom-color: rgba(26, 40, 51, 0.12);
  color: #0b1820;
}

html[data-theme="light"] .sidebar-brand:hover {
  color: #007da3;
}

html[data-theme="light"] .sidebar-brand-copy {
  border-left-color: rgba(26, 40, 51, 0.18);
}

html[data-theme="light"] .sidebar-brand-copy small {
  color: #667987;
}

html[data-theme="light"] .sidebar-scroll {
  scrollbar-color: rgba(83, 103, 116, 0.32) transparent;
}

html[data-theme="light"] .sidebar-group-title {
  color: #667987;
}

html[data-theme="light"] .sidebar-group-title::before {
  border-color: rgba(0, 125, 163, 0.5);
}

html[data-theme="light"] .sidebar-nav-link {
  color: #536774;
}

html[data-theme="light"] .sidebar-nav-link:hover {
  background: rgba(0, 125, 163, 0.07);
  color: #0b1820;
}

html[data-theme="light"] .sidebar-nav-link[aria-current="page"] {
  background: rgba(0, 125, 163, 0.11);
  color: #005f7d;
}

html[data-theme="light"] .nav-glyph {
  border-color: rgba(83, 103, 116, 0.28);
  color: #667987;
}

html[data-theme="light"] .sidebar-nav-link[aria-current="page"] .nav-glyph {
  border-color: rgba(0, 125, 163, 0.45);
  background: rgba(255, 255, 255, 0.62);
  color: #007da3;
}

html[data-theme="light"] .sidebar-footer {
  border-top-color: rgba(26, 40, 51, 0.12);
  color: #667987;
}

.site-header {
  position: fixed;
  z-index: 150;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  display: flex;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 17, 23, 0.92);
  background: color-mix(in srgb, var(--ink-950) 90%, transparent);
  padding: 0 1.5rem;
  backdrop-filter: blur(14px);
}

html[data-theme="light"] .site-header {
  background: rgba(238, 243, 245, 0.94);
  background: color-mix(in srgb, var(--ink-950) 90%, transparent);
}

.header-context {
  min-width: 0;
}

.header-context small {
  display: block;
  color: var(--text-muted);
  font-family: var(--utility);
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-context strong {
  display: block;
  overflow: hidden;
  color: var(--text-strong);
  font-family: var(--display);
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-button,
.mobile-nav-toggle {
  display: inline-flex;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.48rem;
  background: var(--ink-850);
  padding: 0 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
}

.header-button:hover,
.mobile-nav-toggle:hover {
  border-color: var(--line-strong);
  color: var(--text-strong);
}

.header-button svg,
.mobile-nav-toggle svg {
  width: 1rem;
  height: 1rem;
}

.header-button kbd {
  margin-left: 0.25rem;
}

.mobile-nav-toggle {
  display: none;
  width: 2.25rem;
  padding: 0;
}

.manual-shell {
  min-height: 100vh;
  padding-top: var(--header-height);
  padding-left: var(--sidebar-width);
}

.doc-main {
  width: min(var(--content-max), calc(100vw - var(--sidebar-width) - var(--toc-width) - 5rem));
  margin: 0 auto;
  padding: 2.3rem 0 5rem;
}

.doc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.45rem;
  color: var(--text-muted);
  font-family: var(--utility);
  font-size: 0.68rem;
}

.doc-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.doc-breadcrumb a:hover {
  color: var(--brand-bright);
}

.doc-breadcrumb i {
  color: var(--steel-500);
  font-style: normal;
}

.doc-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(0, 125, 163, 0.13), transparent 42%),
    var(--ink-900);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.7rem);
}

.doc-hero::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 8rem;
  height: 100%;
  border-left: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, transparent 0 11px, rgba(37, 169, 206, 0.045) 11px 12px);
  content: "";
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.8rem;
  color: var(--brand-bright);
  font-family: var(--utility);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.5rem;
  height: 1px;
  background: var(--brand-bright);
  content: "";
}

.doc-hero h1,
.home-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 43rem;
  margin: 0;
  color: var(--text-strong);
  font-family: var(--display);
  font-size: clamp(2.35rem, 6vw, 4.4rem);
  font-stretch: condensed;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.doc-hero .lead {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.45rem;
}

.meta-chip,
.role-badge,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 99rem;
  background: var(--ink-850);
  padding: 0.28rem 0.62rem;
  color: var(--text-muted);
  font-family: var(--utility);
  font-size: 0.66rem;
  line-height: 1.25;
}

.meta-chip::before,
.status-chip::before {
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: var(--brand-bright);
  content: "";
}

.role-badge {
  border-color: rgba(0, 125, 163, 0.26);
  background: var(--brand-soft);
  color: var(--text);
}

.role-badge.admin {
  border-color: rgba(212, 175, 55, 0.28);
  background: var(--gold-soft);
}

.doc-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 1rem 0 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.doc-summary > div {
  min-height: 5.5rem;
  background: var(--ink-900);
  padding: 1rem;
}

.doc-summary small {
  display: block;
  color: var(--text-muted);
  font-family: var(--utility);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-summary strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-strong);
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.3;
}

.doc-section {
  position: relative;
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
  margin-top: 3rem;
  padding-top: 0.2rem;
}

.home-section[id] {
  position: relative;
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.doc-section + .doc-section {
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}

.doc-section h2 {
  max-width: 44rem;
  margin: 0 0 1rem;
  color: var(--text-strong);
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.doc-section h3 {
  margin: 2rem 0 0.65rem;
  color: var(--text-strong);
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

.doc-section p,
.doc-section li {
  color: var(--text);
}

.doc-section > p:first-of-type {
  color: var(--text-muted);
  font-size: 1.03rem;
}

.doc-section ul,
.doc-section ol:not(.steps) {
  padding-left: 1.25rem;
}

.doc-section li + li {
  margin-top: 0.45rem;
}

.section-anchor-button {
  position: absolute;
  top: 0.55rem;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 0.35rem 0.5rem;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--utility);
  font-size: 0.62rem;
  opacity: 0;
  transition: opacity 140ms ease, border-color 140ms ease, color 140ms ease;
}

.doc-section:hover .section-anchor-button,
.home-section:hover .section-anchor-button,
.section-anchor-button:focus-visible {
  opacity: 1;
}

.section-anchor-button:hover {
  border-color: var(--line);
  color: var(--brand-bright);
}

.steps {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: manual-step;
}

.steps > li {
  position: relative;
  min-height: 3.6rem;
  padding: 0 0 1.4rem 3.7rem;
  counter-increment: manual-step;
}

.steps > li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(37, 169, 206, 0.38);
  border-radius: 0.5rem;
  background: var(--brand-soft);
  color: var(--brand-bright);
  content: counter(manual-step, decimal-leading-zero);
  font-family: var(--utility);
  font-size: 0.69rem;
  font-weight: 800;
}

.steps > li:not(:last-child)::after {
  position: absolute;
  top: 2.5rem;
  bottom: 0.1rem;
  left: 1.16rem;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.steps strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text-strong);
}

.steps p {
  margin: 0;
  color: var(--text-muted);
}

.callout {
  position: relative;
  margin: 1.35rem 0;
  border: 1px solid rgba(0, 125, 163, 0.3);
  border-left: 3px solid var(--brand-bright);
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  padding: 1rem 1.15rem;
}

.callout strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-strong);
  font-family: var(--display);
}

.callout p,
.callout ul {
  margin: 0;
  color: var(--text);
  font-size: 0.93rem;
}

.callout.warning {
  border-color: rgba(212, 175, 55, 0.34);
  border-left-color: var(--gold);
  background: var(--gold-soft);
}

.callout.danger {
  border-color: rgba(217, 93, 103, 0.34);
  border-left-color: var(--danger);
  background: rgba(217, 93, 103, 0.08);
}

.callout.success {
  border-color: rgba(69, 185, 135, 0.34);
  border-left-color: var(--success);
  background: rgba(69, 185, 135, 0.08);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.2rem 0;
}

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

.info-card,
.task-card,
.next-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-900);
  padding: 1.05rem;
}

.info-card h3,
.task-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.info-card p,
.task-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-code {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: var(--brand-bright);
  font-family: var(--utility);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.interface-map {
  overflow: hidden;
  margin: 1.4rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-1000);
  box-shadow: var(--shadow);
}

.interface-map figcaption,
.manual-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.interface-map figcaption strong,
.manual-figure figcaption strong {
  color: var(--text);
}

.manual-figure {
  overflow: hidden;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-1000);
}

.manual-figure img {
  width: 100%;
}

.schematic-ui {
  display: grid;
  min-height: 21rem;
  grid-template-columns: 11rem 1fr;
  color: #b8c4cc;
}

.schematic-sidebar {
  border-right: 1px solid rgba(184, 196, 204, 0.16);
  background: #0b1117;
  padding: 1rem 0.8rem;
}

.schematic-brand {
  width: 5rem;
  height: 1rem;
  margin-bottom: 1.4rem;
  border-radius: 0.15rem;
  background: linear-gradient(90deg, #e2e8f0 0 62%, #007da3 62% 85%, #d4af37 85%);
}

.schematic-nav-item {
  position: relative;
  height: 1.8rem;
  margin-bottom: 0.4rem;
  border-radius: 0.3rem;
  background: rgba(184, 196, 204, 0.06);
}

.schematic-nav-item.active {
  background: rgba(0, 125, 163, 0.22);
}

.schematic-nav-item.active::before {
  position: absolute;
  inset: 0 auto 0 -0.8rem;
  width: 2px;
  background: #25a9ce;
  content: "";
}

.schematic-workspace {
  background: #101820;
}

.schematic-toolbar {
  height: 3rem;
  border-bottom: 1px solid rgba(184, 196, 204, 0.13);
  background: #14212b;
}

.schematic-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  padding: 1rem;
}

.schematic-panel {
  min-height: 6.7rem;
  border: 1px solid rgba(184, 196, 204, 0.15);
  border-radius: 0.55rem;
  background: #14212b;
  padding: 0.8rem;
}

.schematic-panel.wide {
  grid-column: 1 / -1;
}

.schematic-line {
  width: 65%;
  height: 0.42rem;
  margin-bottom: 0.55rem;
  border-radius: 3px;
  background: rgba(184, 196, 204, 0.18);
}

.schematic-line.short {
  width: 38%;
}

.schematic-signal {
  height: 2.8rem;
  margin-top: 0.75rem;
  background: linear-gradient(135deg, transparent 0 20%, rgba(0, 125, 163, 0.34) 20% 22%, transparent 22% 42%, rgba(212, 175, 55, 0.28) 42% 44%, transparent 44%);
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  margin: 1.4rem 0;
}

.flow-node {
  position: relative;
  min-height: 5.5rem;
  border: 1px solid var(--line);
  background: var(--ink-900);
  padding: 0.8rem;
}

.flow-node:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.flow-node:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.flow-node:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -0.28rem;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid var(--brand-bright);
  border-right: 2px solid var(--brand-bright);
  background: var(--ink-900);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.flow-node small {
  display: block;
  color: var(--brand-bright);
  font-family: var(--utility);
  font-size: 0.6rem;
}

.flow-node strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-strong);
  font-size: 0.83rem;
  line-height: 1.3;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-900);
}

.access-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.access-table th,
.access-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.78rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.access-table th {
  background: var(--ink-850);
  color: var(--text-muted);
  font-family: var(--utility);
  font-size: 0.63rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.access-table tbody tr:last-child td {
  border-bottom: 0;
}

.access-table td:first-child {
  color: var(--text-strong);
  font-weight: 700;
}

.access-yes,
.access-limited,
.access-no {
  display: inline-flex;
  min-width: 1.4rem;
  justify-content: center;
  border-radius: 99rem;
  padding: 0.12rem 0.42rem;
  font-family: var(--utility);
  font-size: 0.65rem;
  font-weight: 800;
}

.access-yes {
  background: rgba(69, 185, 135, 0.12);
  color: var(--success);
}

.access-limited {
  background: var(--gold-soft);
  color: var(--gold);
}

.access-no {
  background: rgba(148, 164, 176, 0.08);
  color: var(--text-muted);
}

.field-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
}

.field-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ink-900);
  padding: 0.8rem;
}

.field-item strong {
  display: block;
  color: var(--text-strong);
  font-size: 0.86rem;
}

.field-item small {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.checklist {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ink-900);
  padding: 0.75rem 0.85rem 0.75rem 2.65rem;
}

.checklist li::before {
  position: absolute;
  top: 0.78rem;
  left: 0.85rem;
  display: grid;
  width: 1.05rem;
  height: 1.05rem;
  place-items: center;
  border: 1px solid rgba(69, 185, 135, 0.4);
  border-radius: 0.24rem;
  color: var(--success);
  content: "✓";
  font-size: 0.68rem;
  font-weight: 900;
}

.on-this-page {
  position: fixed;
  z-index: 80;
  top: calc(var(--header-height) + 2.3rem);
  right: max(1rem, calc((100vw - var(--sidebar-width) - var(--content-max) - var(--toc-width)) / 2));
  width: var(--toc-width);
  max-height: calc(100vh - var(--header-height) - 4rem);
  overflow-y: auto;
  padding: 0 0.6rem 1rem 1.2rem;
}

.on-this-page-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-family: var(--utility);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.on-this-page-title::before {
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid var(--brand-bright);
  background: var(--brand-soft);
  content: "";
  transform: rotate(45deg);
}

.toc-link {
  position: relative;
  display: block;
  border-left: 1px solid var(--line);
  padding: 0.37rem 0 0.37rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc-link:hover {
  color: var(--text-strong);
}

.toc-link.active {
  border-left-color: var(--brand-bright);
  color: var(--text-strong);
}

.toc-link.active::before {
  position: absolute;
  top: 50%;
  left: -0.23rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 8px rgba(37, 169, 206, 0.5);
  content: "";
  transform: translateY(-50%);
}

.toc-copy {
  width: 100%;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ink-850);
  padding: 0.5rem 0.65rem;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.72rem;
}

.toc-copy:hover {
  color: var(--brand-bright);
}

.next-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.next-card {
  display: block;
  color: var(--text);
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease;
}

.next-card:hover {
  border-color: rgba(37, 169, 206, 0.42);
  color: var(--text-strong);
  transform: translateY(-2px);
}

.next-card small {
  display: block;
  color: var(--text-muted);
  font-family: var(--utility);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-card strong {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--display);
  line-height: 1.3;
}

.doc-footer {
  margin-top: 3rem;
  color: var(--text-muted);
  font-family: var(--utility);
  font-size: 0.65rem;
  text-align: center;
}

.home-main {
  width: min(76rem, calc(100vw - var(--sidebar-width) - 4rem));
  margin: 0 auto;
  padding: 2.6rem 0 5rem;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 31rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: linear-gradient(135deg, rgba(0, 125, 163, 0.14), transparent 42%), var(--ink-900);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 5vw, 4rem);
}

.home-hero p {
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.95rem;
  font-weight: 750;
  text-decoration: none;
}

.primary-link {
  background: var(--brand);
  color: #fff;
}

.primary-link:hover {
  background: #0b92bc;
  color: #fff;
}

.secondary-link {
  border: 1px solid var(--line-strong);
  background: var(--ink-850);
  color: var(--text);
}

.home-signal {
  position: relative;
  min-height: 19rem;
}

.home-signal::before {
  position: absolute;
  inset: 10% 4% 10% 8%;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background:
    linear-gradient(rgba(37, 169, 206, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 169, 206, 0.08) 1px, transparent 1px),
    var(--ink-1000);
  background-size: 2rem 2rem;
  content: "";
  transform: perspective(600px) rotateY(-7deg) rotateX(3deg);
}

.signal-trace {
  position: absolute;
  z-index: 1;
  inset: 22% 10% 23% 15%;
  filter: drop-shadow(0 0 10px rgba(37, 169, 206, 0.32));
}

.signal-trace svg {
  width: 100%;
  height: 100%;
}

.signal-label {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line-strong);
  border-radius: 0.35rem;
  background: var(--ink-850);
  padding: 0.3rem 0.48rem;
  color: var(--text-muted);
  font-family: var(--utility);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signal-label.one { top: 10%; left: 12%; }
.signal-label.two { top: 42%; right: 2%; }
.signal-label.three { bottom: 6%; left: 31%; }

.home-section {
  margin-top: 3.4rem;
}

.home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.home-section h2 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--display);
  font-size: 2rem;
}

.home-section-head p {
  max-width: 32rem;
  margin: 0;
  color: var(--text-muted);
  text-align: right;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.path-card {
  position: relative;
  overflow: hidden;
  min-height: 13rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-900);
  padding: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

.path-card::after {
  position: absolute;
  right: -2.2rem;
  bottom: -2.2rem;
  width: 7rem;
  height: 7rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.path-card:hover {
  border-color: rgba(37, 169, 206, 0.4);
  color: var(--text-strong);
}

.path-card small {
  color: var(--brand-bright);
  font-family: var(--utility);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.path-card h3 {
  margin: 1.3rem 0 0.5rem;
  color: var(--text-strong);
  font-family: var(--display);
  font-size: 1.25rem;
}

.path-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.search-dialog {
  width: min(43rem, calc(100vw - 2rem));
  max-height: min(42rem, calc(100vh - 2rem));
  margin-top: 8vh;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--ink-900);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.48);
  color: var(--text);
  padding: 0;
}

.search-dialog::backdrop {
  background: rgba(3, 7, 10, 0.72);
  backdrop-filter: blur(5px);
}

.search-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  padding: 1rem;
}

.search-head svg {
  width: 1.1rem;
  color: var(--text-muted);
}

.search-head input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text-strong);
  outline: 0;
}

.search-head button {
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--ink-850);
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--utility);
  font-size: 0.65rem;
}

.search-results {
  max-height: 31rem;
  overflow-y: auto;
  padding: 0.55rem;
}

.search-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.search-result:hover,
.search-result.active {
  background: var(--brand-soft);
  color: var(--text-strong);
}

.search-result-mark {
  display: grid;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  color: var(--brand-bright);
  font-family: var(--utility);
  font-size: 0.6rem;
}

.search-result strong {
  display: block;
  line-height: 1.35;
}

.search-result small {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.search-result em {
  color: var(--text-muted);
  font-family: var(--utility);
  font-size: 0.58rem;
  font-style: normal;
  text-transform: uppercase;
}

.search-empty {
  padding: 3rem 1rem;
  color: var(--text-muted);
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 800;
  right: 1rem;
  bottom: 1rem;
  transform: translateY(1rem);
  border: 1px solid rgba(37, 169, 206, 0.36);
  border-radius: var(--radius-sm);
  background: var(--ink-850);
  box-shadow: var(--shadow);
  padding: 0.7rem 0.9rem;
  color: var(--text-strong);
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.nav-backdrop {
  display: none;
}

@media (max-width: 76rem) {
  :root {
    --toc-width: 0rem;
  }

  .on-this-page {
    display: none;
  }

  .doc-main {
    width: min(var(--content-max), calc(100vw - var(--sidebar-width) - 3rem));
  }
}

@media (max-width: 62rem) {
  .site-sidebar {
    width: min(20rem, calc(100vw - 3.2rem));
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  body.nav-open .site-sidebar {
    transform: translateX(0);
  }

  .nav-backdrop {
    position: fixed;
    z-index: 190;
    inset: 0;
    display: block;
    background: rgba(3, 7, 10, 0.68);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .site-header {
    left: 0;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .manual-shell {
    padding-left: 0;
  }

  .doc-main,
  .home-main {
    width: min(var(--content-max), calc(100vw - 2.2rem));
  }

  .home-main {
    max-width: 68rem;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-signal {
    min-height: 15rem;
  }
}

@media (max-width: 44rem) {
  :root {
    --header-height: 3.7rem;
  }

  body {
    background-size: 2rem 2rem;
  }

  .site-header {
    padding: 0 0.75rem;
  }

  .header-context small,
  .header-button span,
  .header-button kbd {
    display: none;
  }

  .header-button {
    width: 2.25rem;
    padding: 0;
  }

  .doc-main,
  .home-main {
    width: calc(100vw - 1.35rem);
    padding-top: 1rem;
  }

  .doc-hero {
    padding: 1.35rem;
  }

  .doc-hero::after {
    width: 3.5rem;
  }

  .doc-hero h1,
  .home-hero h1 {
    font-size: clamp(2.15rem, 12vw, 3.2rem);
  }

  .doc-summary,
  .card-grid,
  .card-grid.three,
  .field-list,
  .path-grid,
  .next-links {
    grid-template-columns: 1fr;
  }

  .flow-line {
    grid-template-columns: 1fr;
  }

  .flow-node:first-child,
  .flow-node:last-child {
    border-radius: 0;
  }

  .flow-node:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .flow-node:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .flow-node:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -0.28rem;
    transform: translateX(50%) rotate(135deg);
  }

  .schematic-ui {
    min-height: 18rem;
    grid-template-columns: 4rem 1fr;
  }

  .schematic-brand {
    width: 2.2rem;
  }

  .schematic-content {
    grid-template-columns: 1fr;
  }

  .schematic-panel.wide {
    grid-column: auto;
  }

  .home-hero {
    min-height: auto;
    padding: 1.45rem;
  }

  .home-signal {
    min-height: 13rem;
  }

  .home-section-head {
    display: block;
  }

  .home-section-head p {
    margin-top: 0.5rem;
    text-align: left;
  }

  .section-anchor-button {
    position: static;
    margin-top: -0.6rem;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  :root {
    color-scheme: light;
    --ink-950: #fff;
    --ink-900: #fff;
    --ink-850: #fff;
    --ink-800: #f2f5f6;
    --text: #1e303c;
    --text-strong: #071017;
    --text-muted: #536774;
    --line: rgba(26, 40, 51, 0.2);
  }

  body {
    background: #fff;
  }

  .site-sidebar,
  .site-header,
  .on-this-page,
  .reading-progress,
  .section-anchor-button,
  .next-links,
  .toast {
    display: none !important;
  }

  .manual-shell {
    padding: 0;
  }

  .doc-main {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .doc-hero,
  .info-card,
  .callout,
  .table-wrap {
    break-inside: avoid;
    box-shadow: none;
  }

  a {
    color: inherit;
  }
}
