:root {
  --ink: #18202d;
  --ink-strong: #0b1220;
  --muted: #657083;
  --subtle: #8a95a6;
  --line: #e2e7ee;
  --line-strong: #cbd4df;
  --paper: #ffffff;
  --paper-soft: #f7f9fc;
  --page: #edf1f5;
  --navy: #08111f;
  --navy-soft: #101d2f;
  --blue: #9b5f08;
  --cyan: #d89113;
  --green: #168f63;
  --gold: #b68123;
  --gold-soft: #fff5dc;
  --warning: #bd5b25;
  --warning-soft: #fff3eb;
  --header-height: 68px;
  --sidebar-width: 252px;
  --outline-width: 188px;
  --content-width: 940px;
  --site-header-height: 72px;
  --manual-toolbar-height: 58px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  line-height: 1.72;
}

body.menu-open,
body.search-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan), #e0ab3b);
  transition: width 0.08s linear;
}

.manual-header {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  height: var(--header-height);
  color: #f7faff;
  background: rgba(8, 17, 31, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(5, 12, 22, 0.16);
}

.manual-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
}

.manual-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.manual-brand img {
  display: block;
  width: 118px;
  max-height: 42px;
  object-fit: contain;
}

.manual-header__title {
  min-width: 150px;
  display: grid;
  padding-left: 17px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  line-height: 1.25;
}

.manual-header__title span {
  color: #8ea0b9;
  font-size: 11px;
}

.manual-header__title strong {
  margin-top: 2px;
  color: #f6f9fd;
  font-size: 13px;
  font-weight: 700;
}

.manual-search {
  position: relative;
  width: min(520px, 38vw);
  height: 40px;
  display: flex;
  align-items: center;
  margin-left: auto;
  color: #8796aa;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.manual-search:focus-within {
  color: #b8c8dc;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(70, 160, 255, 0.7);
}

.manual-search > svg {
  width: 18px;
  height: 18px;
  margin-left: 13px;
  flex: 0 0 auto;
}

.manual-search input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 40px 0 10px;
  color: #f5f8fc;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.manual-search input::placeholder {
  color: #8796aa;
}

.manual-search input::-webkit-search-cancel-button {
  display: none;
}

.manual-search button,
.search-results__head button,
.sidebar-head button {
  display: grid;
  place-items: center;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.manual-search button {
  position: absolute;
  right: 8px;
  width: 30px;
  height: 30px;
}

.manual-search button svg,
.search-results__head button svg,
.sidebar-head button svg {
  width: 17px;
  height: 17px;
}

.manual-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.version-tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  color: #dce6f3;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}

.icon-button,
.mobile-menu-button {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  color: #dce6f3;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.icon-button:hover,
.mobile-menu-button:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
}

.icon-button svg,
.mobile-menu-button svg {
  width: 18px;
  height: 18px;
}

.mobile-menu-button {
  display: none;
  font-size: 13px;
  font-weight: 700;
}

.manual-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--outline-width);
  min-height: 100vh;
  padding-top: var(--header-height);
}

.manual-sidebar {
  width: var(--sidebar-width);
}

.sidebar-backdrop {
  display: none;
}

.sidebar-panel {
  position: fixed;
  z-index: 40;
  inset: var(--header-height) auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 22px 14px 18px;
  background: #f8fafc;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px 12px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
}

.sidebar-head button {
  display: none;
  width: 32px;
  height: 32px;
}

.chapter-nav {
  display: grid;
  gap: 3px;
}

.chapter-nav a {
  min-height: 43px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  padding: 4px 8px;
  color: #526071;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.chapter-nav a:hover {
  color: var(--ink-strong);
  background: #eef3f8;
}

.chapter-nav a.is-active {
  color: #0b5fc2;
  background: #e8f2ff;
  border-left-color: var(--blue);
}

.chapter-nav span {
  color: #9aa5b5;
  font-size: 10px;
  font-weight: 800;
}

.chapter-nav a.is-active span {
  color: var(--blue);
}

.chapter-nav strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-support {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: auto;
  padding: 14px 12px;
  color: #d6e5f8;
  background: var(--navy-soft);
  border-radius: 7px;
}

.sidebar-support svg {
  width: 26px;
  height: 26px;
  color: #54b7d2;
}

.sidebar-support strong,
.sidebar-support a {
  display: block;
}

.sidebar-support strong {
  font-size: 12px;
}

.sidebar-support a {
  margin-top: 3px;
  color: #8fc7ff;
  font-size: 11px;
}

.manual-main {
  min-width: 0;
  padding: 34px 34px 70px;
}

.manual-content {
  width: min(var(--content-width), 100%);
  margin: 0 auto;
}

.manual-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: center;
  padding: 50px 48px;
  overflow: hidden;
  color: #f8fbff;
  background:
    linear-gradient(120deg, rgba(7, 16, 29, 0.98), rgba(11, 34, 55, 0.96)),
    var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(22, 37, 56, 0.15);
}

.manual-hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -130px;
  bottom: -230px;
  border: 1px solid rgba(89, 190, 217, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 54px rgba(60, 145, 191, 0.035),
    0 0 0 108px rgba(211, 167, 68, 0.025);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #75c7dc;
  font-size: 12px;
  font-weight: 800;
}

.hero-kicker span {
  width: 26px;
  height: 2px;
  background: #58b8d3;
}

.manual-hero h1 {
  margin: 18px 0 0;
  font-size: 46px;
  line-height: 1.22;
  letter-spacing: 0;
}

.manual-hero .hero-copy > p {
  max-width: 560px;
  margin: 20px 0 0;
  color: #b6c4d5;
  font-size: 16px;
  line-height: 1.9;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 26px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #92a6bc;
  font-size: 12px;
}

.hero-meta svg {
  width: 16px;
  height: 16px;
  color: #d7ae54;
}

.hero-system-map {
  position: relative;
  z-index: 2;
  width: 300px;
  height: 300px;
  justify-self: end;
}

.hero-system-map::before,
.hero-system-map::after {
  content: "";
  position: absolute;
  inset: 33px;
  border: 1px solid rgba(94, 181, 211, 0.2);
  border-radius: 50%;
}

.hero-system-map::after {
  inset: 73px;
  border-color: rgba(221, 177, 77, 0.18);
}

.system-map__core {
  position: absolute;
  z-index: 2;
  inset: 102px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 10px;
  text-align: center;
  background: #132b43;
  border: 1px solid rgba(98, 196, 217, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(25, 168, 206, 0.16);
}

.system-map__core img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.system-map__core span,
.system-map__core strong {
  display: block;
}

.system-map__core span {
  margin-top: 4px;
  color: #d9edf4;
  font-size: 10px;
}

.system-map__core strong {
  color: #75c7dc;
  font-size: 9px;
}

.system-map__node {
  position: absolute;
  z-index: 3;
  min-width: 92px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  color: #dce8f5;
  background: rgba(15, 34, 54, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);
}

.system-map__node span {
  color: #d6a647;
  font-size: 8px;
}

.node-assets {
  top: 8px;
  left: 104px;
}

.node-agent {
  top: 84px;
  right: -3px;
}

.node-employee {
  right: 23px;
  bottom: 45px;
}

.node-task {
  bottom: 17px;
  left: 21px;
}

.node-review {
  top: 89px;
  left: -17px;
}

.quick-start,
.chapter {
  margin-top: 26px;
  padding: 38px 42px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31, 49, 72, 0.05);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.chapter-heading h2 {
  margin: 4px 0 0;
  color: var(--ink-strong);
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: 0;
}

.section-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-label,
.chapter-heading p {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.quick-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.quick-flow li {
  position: relative;
  min-width: 0;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px 13px;
  background: #fbfcfe;
  border-right: 1px solid var(--line);
}

.quick-flow li:last-child {
  border-right: 0;
}

.quick-flow li::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -5px;
  width: 8px;
  height: 8px;
  background: #fbfcfe;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}

.quick-flow li:last-child::after {
  display: none;
}

.quick-flow span,
.quick-flow strong,
.quick-flow small {
  display: block;
}

.quick-flow span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.quick-flow strong {
  margin-top: 9px;
  color: var(--ink-strong);
  font-size: 13px;
}

.quick-flow small {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 10px;
  line-height: 1.45;
}

.chapter {
  padding-top: 0;
}

.chapter-heading {
  min-height: 124px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 -42px 0;
  padding: 28px 42px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
}

.chapter-number {
  width: 58px;
  height: 58px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #ffffff;
  background: var(--navy-soft);
  border-radius: 7px;
  font-size: 19px;
  font-weight: 800;
  box-shadow: inset 0 -3px 0 rgba(38, 156, 202, 0.35);
}

.content-block {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.content-block:last-child {
  padding-bottom: 6px;
  border-bottom: 0;
}

.content-block > h3,
.agent-list h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0;
}

.content-block > h3 {
  position: relative;
  padding-left: 14px;
}

.content-block > h3::before {
  content: "";
  position: absolute;
  inset: 5px auto 5px 0;
  width: 3px;
  background: var(--blue);
  border-radius: 2px;
}

.content-block > p,
.content-block .lead {
  margin: 15px 0 0;
  color: #4c5869;
  font-size: 15px;
}

.statement {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 24px;
  padding: 20px;
  background: #f1f7ff;
  border-left: 3px solid var(--blue);
  border-radius: 0 6px 6px 0;
}

.statement span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.statement p {
  margin: 0;
  color: #33465e;
  font-size: 14px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.module-grid article {
  min-height: 150px;
  padding: 18px;
  background: #f9fbfd;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.module-grid img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.module-grid span {
  display: block;
  margin-top: 12px;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 750;
}

.module-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}

table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  color: #425063;
  background: #fff;
  font-size: 13px;
  line-height: 1.65;
}

th,
td {
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

th:last-child,
td:last-child {
  border-right: 0;
}

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

th {
  color: #233248;
  background: #edf3f8;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

tbody tr:nth-child(even) {
  background: #fafcfe;
}

tbody td:first-child {
  color: #173d68;
  font-weight: 650;
}

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

.steps li {
  position: relative;
  min-height: 78px;
  padding: 0 0 24px 54px;
  counter-increment: manual-step;
}

.steps li:last-child {
  min-height: 50px;
  padding-bottom: 0;
}

.steps li::before {
  content: counter(manual-step, decimal-leading-zero);
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.steps li::after {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 16px;
  width: 1px;
  background: #c9d8e8;
}

.steps li:last-child::after {
  display: none;
}

.steps strong {
  display: block;
  padding-top: 3px;
  color: var(--ink-strong);
  font-size: 14px;
}

.steps p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.principle-grid article,
.success-grid article {
  position: relative;
  min-height: 126px;
  padding: 20px 20px 18px 58px;
  background: #f9fbfd;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.principle-grid span,
.success-grid span {
  position: absolute;
  top: 20px;
  left: 18px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.principle-grid strong {
  color: var(--ink-strong);
  font-size: 14px;
}

.principle-grid p,
.success-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.definition-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 18px 20px;
  background: #eff8fa;
  border: 1px solid #cce6eb;
  border-radius: 7px;
}

.definition-card img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.definition-card span,
.definition-card strong {
  display: block;
}

.definition-card span {
  color: #52808b;
  font-size: 11px;
}

.definition-card strong {
  margin-top: 2px;
  color: #174d58;
  font-size: 15px;
}

.check-list,
.warning-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.warning-list li {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 14px 10px 43px;
  color: #4d5a6c;
  background: #f9fbfd;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
}

.check-list li::before,
.warning-list li::before {
  content: "✓";
  position: absolute;
  left: 15px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.warning-list li {
  background: #fffaf7;
  border-color: #f0ded3;
}

.warning-list li::before {
  content: "!";
  background: var(--warning);
}

.callout {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border-radius: 7px;
}

.callout svg {
  width: 25px;
  height: 25px;
}

.callout strong {
  color: var(--ink-strong);
  font-size: 14px;
}

.callout p {
  margin: 4px 0 0;
  font-size: 12px;
}

.callout-info {
  color: #39657a;
  background: #edf8fb;
  border: 1px solid #cde6ec;
}

.callout-warning {
  color: #8c4c2a;
  background: var(--warning-soft);
  border: 1px solid #efd6c7;
}

.geo-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  margin-top: 24px;
}

.geo-flow div {
  min-height: 106px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px;
  text-align: center;
  background: #f5f8fb;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.geo-flow span,
.geo-flow strong,
.geo-flow small {
  display: block;
}

.geo-flow span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.geo-flow strong {
  margin-top: 7px;
  color: var(--ink-strong);
  font-size: 11px;
}

.geo-flow small {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 9px;
  line-height: 1.45;
}

.geo-flow i {
  position: relative;
  height: 1px;
  background: #aebdcb;
}

.geo-flow i::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1px solid #8294a7;
  border-right: 1px solid #8294a7;
  transform: rotate(45deg);
}

.permission-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.permission-list article {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 14px 16px;
  background: #f9fbfd;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.permission-list span {
  color: #174b7d;
  font-size: 12px;
  font-weight: 750;
}

.permission-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.success-grid article {
  min-height: 96px;
  padding-top: 18px;
}

.success-grid span {
  top: 19px;
  color: var(--green);
}

.success-grid p {
  margin-top: 0;
}

.appendix .chapter-number {
  background: #725316;
  box-shadow: inset 0 -3px 0 rgba(255, 223, 148, 0.38);
}

.agent-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.agent-list article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  background: #f9fbfd;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.agent-list article > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy-soft);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.agent-list h3 {
  font-size: 16px;
}

.agent-list p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.agent-list dl {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 5px 10px;
  margin: 13px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.agent-list dt {
  color: var(--subtle);
}

.agent-list dd {
  margin: 0;
  color: #3f4c5e;
}

.manual-footer {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 26px;
  padding: 26px 30px;
  color: #aebcce;
  background: var(--navy);
  border-radius: 8px;
}

.manual-footer img {
  width: 96px;
}

.manual-footer strong {
  color: #f5f8fc;
  font-size: 13px;
}

.manual-footer p {
  margin: 2px 0 0;
  font-size: 11px;
}

.manual-footer a {
  color: #83bdf2;
  font-size: 12px;
  font-weight: 700;
}

.page-outline {
  width: var(--outline-width);
}

.page-outline.is-empty {
  visibility: hidden;
}

.page-outline__inner {
  position: fixed;
  top: calc(var(--header-height) + 34px);
  right: 0;
  width: var(--outline-width);
  padding: 0 20px 0 15px;
}

.page-outline__inner > strong {
  color: var(--subtle);
  font-size: 11px;
}

.page-outline nav {
  display: grid;
  gap: 1px;
  margin-top: 10px;
  border-left: 1px solid #ced6df;
}

.page-outline a {
  padding: 6px 0 6px 12px;
  color: #748093;
  font-size: 11px;
  line-height: 1.45;
  border-left: 2px solid transparent;
  transform: translateX(-1px);
}

.page-outline a:hover,
.page-outline a.is-active {
  color: var(--blue);
  border-left-color: var(--blue);
}

.back-to-top {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy-soft);
  border: 0;
  border-radius: 7px;
  box-shadow: 0 10px 25px rgba(10, 24, 41, 0.22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.search-results {
  position: fixed;
  z-index: 75;
  top: calc(var(--header-height) + 8px);
  left: 50%;
  width: min(640px, calc(100% - 32px));
  max-height: min(560px, calc(100vh - var(--header-height) - 24px));
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(8, 17, 31, 0.24);
  transform: translateX(-50%);
}

.search-results__head {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #f6f8fb;
  border-bottom: 1px solid var(--line);
}

.search-results__head strong {
  color: #334155;
  font-size: 13px;
}

.search-results__head button {
  width: 32px;
  height: 32px;
  color: #64748b;
}

.search-results__list {
  max-height: calc(min(560px, 100vh - var(--header-height) - 24px) - 50px);
  overflow-y: auto;
  padding: 8px;
}

.search-result {
  display: block;
  padding: 13px 14px;
  border-bottom: 1px solid #edf0f4;
  border-radius: 6px;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover {
  background: #f2f7fd;
}

.search-result strong,
.search-result span {
  display: block;
}

.search-result strong {
  color: #183b61;
  font-size: 13px;
}

.search-result span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.search-empty {
  padding: 42px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

mark {
  padding: 0 2px;
  color: #5f4200;
  background: #ffecab;
  border-radius: 2px;
}

.search-flash {
  animation: search-flash 1.35s ease;
}

@keyframes search-flash {
  0%,
  100% {
    background: var(--paper);
  }
  35% {
    background: #fff8dc;
  }
}

@media (max-width: 1320px) {
  .manual-shell {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }

  .page-outline {
    display: none;
  }
}

@media (max-width: 1040px) {
  .manual-header__title {
    display: none;
  }

  .manual-search {
    width: min(460px, 48vw);
  }

  .manual-hero {
    grid-template-columns: minmax(0, 1fr) 280px;
    padding: 42px 36px;
  }

  .hero-system-map {
    width: 270px;
    height: 270px;
  }

  .hero-system-map::before {
    inset: 25px;
  }

  .hero-system-map::after {
    inset: 65px;
  }

  .system-map__core {
    inset: 92px;
  }

  .node-assets {
    left: 89px;
  }

  .node-agent {
    top: 75px;
  }

  .node-review {
    top: 79px;
  }

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

  .quick-flow li {
    border-bottom: 1px solid var(--line);
  }

  .quick-flow li:nth-child(3) {
    border-right: 0;
  }

  .quick-flow li:nth-child(3)::after,
  .quick-flow li:last-child::after {
    display: none;
  }

  .quick-flow li:nth-child(n + 4) {
    border-bottom: 0;
  }

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

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

  .geo-flow i {
    width: 1px;
    height: 16px;
    justify-self: center;
  }

  .geo-flow i::after {
    top: auto;
    right: -3px;
    bottom: 0;
    transform: rotate(135deg);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 62px;
  }

  .manual-header__inner {
    gap: 10px;
    padding: 0 14px;
  }

  .manual-brand img {
    width: 102px;
  }

  .manual-search {
    width: auto;
    flex: 1;
  }

  .version-tag,
  .print-button {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .manual-shell {
    display: block;
  }

  .manual-sidebar {
    position: fixed;
    z-index: 90;
    inset: 0;
    width: auto;
    pointer-events: none;
  }

  .manual-sidebar.is-open {
    pointer-events: auto;
  }

  .sidebar-backdrop {
    position: absolute;
    inset: 0;
    display: block;
    background: rgba(5, 12, 22, 0.52);
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .manual-sidebar.is-open .sidebar-backdrop {
    opacity: 1;
  }

  .sidebar-panel {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(312px, calc(100vw - 42px));
    padding-top: 15px;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  .manual-sidebar.is-open .sidebar-panel {
    transform: translateX(0);
  }

  .sidebar-head {
    padding-bottom: 10px;
    color: #4d5b6c;
    font-size: 14px;
  }

  .sidebar-head button {
    display: grid;
  }

  .manual-main {
    padding: 20px 18px 50px;
  }

  .manual-hero {
    min-height: 380px;
    grid-template-columns: 1fr;
  }

  .hero-system-map {
    display: none;
  }

  .manual-hero h1 {
    font-size: 40px;
  }

  .principle-grid,
  .permission-list,
  .success-grid {
    grid-template-columns: 1fr;
  }

  .manual-footer {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .manual-footer a {
    display: none;
  }
}

@media (max-width: 560px) {
  .manual-header__inner {
    gap: 8px;
  }

  .manual-brand img {
    width: 90px;
  }

  .manual-search {
    height: 38px;
  }

  .manual-search input {
    font-size: 12px;
  }

  .manual-search > svg {
    width: 16px;
    height: 16px;
    margin-left: 10px;
  }

  .mobile-menu-button {
    min-width: 38px;
    width: 38px;
    padding: 0;
  }

  .mobile-menu-button span {
    display: none;
  }

  .manual-main {
    padding: 14px 10px 42px;
  }

  .manual-hero {
    min-height: 430px;
    align-items: end;
    padding: 34px 24px;
  }

  .manual-hero h1 {
    font-size: 34px;
  }

  .manual-hero .hero-copy > p {
    font-size: 14px;
  }

  .hero-meta {
    display: grid;
    gap: 7px;
  }

  .quick-start,
  .chapter {
    margin-top: 12px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .quick-start {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .chapter-heading {
    min-height: 104px;
    gap: 14px;
    margin-right: -20px;
    margin-left: -20px;
    padding: 22px 20px;
  }

  .chapter-number {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }

  .section-heading h2,
  .chapter-heading h2 {
    font-size: 22px;
  }

  .quick-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-flow li {
    min-height: 108px;
  }

  .quick-flow li:nth-child(2),
  .quick-flow li:nth-child(4) {
    border-right: 0;
  }

  .quick-flow li:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .quick-flow li:nth-child(3)::after {
    display: block;
  }

  .quick-flow li:nth-child(2)::after,
  .quick-flow li:nth-child(4)::after,
  .quick-flow li:last-child::after {
    display: none;
  }

  .quick-flow li:nth-child(4) {
    border-bottom: 1px solid var(--line);
  }

  .content-block {
    padding: 32px 0;
  }

  .content-block > h3 {
    font-size: 18px;
  }

  .content-block > p {
    font-size: 14px;
  }

  .statement {
    grid-template-columns: 1fr;
    gap: 5px;
  }

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

  .module-grid article {
    min-height: 124px;
  }

  .principle-grid article {
    min-height: 110px;
  }

  .permission-list article {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .agent-list article {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 17px 15px;
  }

  .agent-list article > span {
    width: 34px;
    height: 34px;
  }

  .agent-list dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .agent-list dd + dt {
    margin-top: 5px;
  }

  .manual-footer {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .manual-footer img {
    width: 100px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 16mm 14mm;
  }

  body {
    background: #fff;
  }

  .reading-progress,
  .manual-header,
  .manual-sidebar,
  .page-outline,
  .back-to-top,
  .search-results {
    display: none !important;
  }

  .manual-shell {
    display: block;
    padding: 0;
  }

  .manual-main {
    padding: 0;
  }

  .manual-content {
    width: 100%;
  }

  .manual-hero,
  .quick-start,
  .chapter {
    box-shadow: none;
    break-inside: avoid;
  }

  .manual-hero {
    min-height: 220px;
    grid-template-columns: 1fr;
    padding: 30px;
    color: #111827;
    background: #eef2f7;
    border-color: #cfd6df;
  }

  .manual-hero h1,
  .manual-hero .hero-copy > p,
  .hero-meta span {
    color: #111827;
  }

  .hero-system-map {
    display: none;
  }

  .quick-start,
  .chapter {
    margin-top: 16px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .chapter {
    break-before: page;
  }

  .chapter-heading {
    margin-right: -24px;
    margin-left: -24px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .content-block,
  .table-wrap,
  .principle-grid article,
  .agent-list article {
    break-inside: avoid;
  }

  .table-wrap {
    overflow: visible;
  }

  table {
    min-width: 0;
    font-size: 9px;
  }

  th,
  td {
    padding: 7px 8px;
  }

  .manual-footer {
    color: #4b5563;
    background: #eef2f7;
  }

  .manual-footer strong {
    color: #111827;
  }
}

/* Public site layout integration */
body.manual-page {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 7%, rgba(216, 137, 19, 0.12), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(247, 210, 116, 0.08), transparent 30%),
    linear-gradient(180deg, #07111d 0, #091522 640px, #edf1f5 1180px);
}

.manual-page .site-header {
  z-index: 80;
}

.manual-toolbar {
  position: sticky;
  z-index: 55;
  top: var(--site-header-height);
  height: var(--manual-toolbar-height);
  margin-top: var(--site-header-height);
  color: #f7f2e7;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 14, 23, 0.94);
  border-top: 1px solid rgba(248, 218, 141, 0.08);
  border-bottom: 1px solid rgba(248, 218, 141, 0.24);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.manual-toolbar__inner {
  width: min(var(--max), calc(100% - 48px));
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
}

.manual-toolbar__title {
  min-width: 250px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.2;
}

.manual-toolbar__title span {
  color: var(--gold-start);
  font-size: 11px;
  font-weight: 800;
}

.manual-toolbar__title strong {
  color: #f8f4ea;
  font-size: 13px;
}

.manual-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.manual-toolbar .manual-search {
  width: min(520px, 38vw);
  margin-left: auto;
  color: #c9b98f;
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(248, 218, 141, 0.2);
}

.manual-toolbar .manual-search:focus-within {
  color: #fff5d7;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(248, 218, 141, 0.62);
  box-shadow: 0 0 0 3px rgba(216, 137, 19, 0.1);
}

.manual-toolbar .manual-search input {
  color: #fffaf0;
}

.manual-toolbar .manual-search input::placeholder {
  color: #a89e8a;
}

.manual-toolbar .version-tag {
  color: #f8dfa0;
  background: rgba(216, 137, 19, 0.1);
  border-color: rgba(248, 218, 141, 0.22);
}

.manual-toolbar .icon-button,
.manual-toolbar .mobile-menu-button {
  color: #f5e7c4;
  border-color: rgba(248, 218, 141, 0.22);
}

.manual-toolbar .icon-button:hover,
.manual-toolbar .mobile-menu-button:hover {
  color: #fff8e6;
  background: rgba(216, 137, 19, 0.14);
  border-color: rgba(248, 218, 141, 0.42);
}

.manual-page .reading-progress {
  top: calc(var(--site-header-height) + var(--manual-toolbar-height) - 3px);
}

.manual-page .reading-progress span {
  background: linear-gradient(90deg, #9b5f08, var(--gold-start), #fff0bd);
}

.manual-page .manual-shell {
  min-height: calc(100vh - var(--site-header-height) - var(--manual-toolbar-height));
  padding-top: 0;
  background:
    linear-gradient(180deg, rgba(3, 9, 18, 0.1), transparent 460px),
    transparent;
}

.manual-page .sidebar-panel {
  position: sticky;
  inset: auto;
  top: calc(var(--site-header-height) + var(--manual-toolbar-height) + 14px);
  width: var(--sidebar-width);
  height: calc(100vh - var(--site-header-height) - var(--manual-toolbar-height) - 28px);
  color: #d8dde6;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    rgba(7, 16, 28, 0.94);
  border-right: 1px solid rgba(248, 218, 141, 0.18);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}

.manual-page .sidebar-head {
  color: #a9a18e;
}

.manual-page .chapter-nav a {
  color: #b6bfcb;
}

.manual-page .chapter-nav a:hover {
  color: #fff4d6;
  background: rgba(248, 218, 141, 0.075);
}

.manual-page .chapter-nav a.is-active {
  color: #fff1ca;
  background:
    linear-gradient(90deg, rgba(216, 137, 19, 0.2), rgba(216, 137, 19, 0.04));
  border-left-color: var(--gold-start);
}

.manual-page .chapter-nav span,
.manual-page .chapter-nav a.is-active span {
  color: #d4a747;
}

.manual-page .sidebar-support {
  color: #f3e4bd;
  background:
    linear-gradient(135deg, rgba(216, 137, 19, 0.16), rgba(255, 255, 255, 0.035)),
    rgba(16, 29, 47, 0.82);
  border: 1px solid rgba(248, 218, 141, 0.16);
}

.manual-page .sidebar-support svg,
.manual-page .sidebar-support a {
  color: var(--gold-start);
}

.manual-page .manual-main {
  padding-top: 34px;
}

.manual-page .manual-hero {
  background:
    radial-gradient(circle at 86% 16%, rgba(216, 137, 19, 0.18), transparent 28%),
    linear-gradient(120deg, rgba(6, 14, 26, 0.99), rgba(12, 33, 50, 0.97));
  border-color: rgba(248, 218, 141, 0.23);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 60px rgba(0, 0, 0, 0.24);
}

.manual-page .manual-hero .hero-copy {
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.manual-page .manual-hero .hero-copy::before,
.manual-page .manual-hero .hero-copy::after {
  display: none !important;
}

.manual-page .hero-kicker,
.manual-page .system-map__core strong {
  color: var(--gold-start);
}

.manual-page .hero-kicker span {
  background: var(--gold-start);
}

.manual-page .hero-system-map::before,
.manual-page .hero-system-map::after {
  border-color: rgba(248, 218, 141, 0.22);
}

.manual-page .system-map__core {
  background: #242117;
  border-color: rgba(248, 218, 141, 0.48);
  box-shadow: 0 0 34px rgba(216, 137, 19, 0.18);
}

.manual-page .system-map__node {
  background: rgba(24, 27, 25, 0.96);
  border-color: rgba(248, 218, 141, 0.2);
}

.manual-page .system-map__node span,
.manual-page .hero-meta svg {
  color: var(--gold-start);
}

.manual-page .quick-start,
.manual-page .chapter {
  border-color: rgba(139, 100, 17, 0.18);
  box-shadow: 0 12px 34px rgba(19, 30, 43, 0.08);
}

.manual-page .chapter-number {
  color: #3c2b06;
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 10px 26px rgba(139, 100, 17, 0.2);
}

.manual-page .appendix .chapter-number {
  color: #3c2b06;
  background: linear-gradient(135deg, #e7bd5d, #f8e4b0);
}

.manual-page .page-outline__inner {
  position: sticky;
  top: calc(var(--site-header-height) + var(--manual-toolbar-height) + 34px);
  right: auto;
  width: auto;
}

.manual-page .page-outline__inner > strong {
  color: #d7c79d;
}

.manual-page .page-outline nav {
  border-left-color: rgba(248, 218, 141, 0.28);
}

.manual-page .page-outline a {
  color: #a7afba;
}

.manual-page .page-outline a:hover,
.manual-page .page-outline a.is-active {
  color: var(--gold-start);
  border-left-color: var(--gold-start);
}

.manual-page .back-to-top {
  color: #3c2b06;
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
  box-shadow: 0 12px 30px rgba(80, 52, 8, 0.28);
}

.manual-page .back-to-top:hover {
  background: linear-gradient(135deg, #ffe6a6, #f6ce70);
}

.manual-page .search-results {
  top: calc(var(--site-header-height) + var(--manual-toolbar-height) + 8px);
  border-color: rgba(139, 100, 17, 0.28);
}

.manual-page .site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(248, 218, 141, 0.16);
}

.manual-page .qzm-floating-sidebar {
  display: none;
}

@media (max-width: 1080px) {
  .manual-toolbar__title {
    min-width: 205px;
  }

  .manual-toolbar__title span {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --site-header-height: 66px;
    --manual-toolbar-height: 56px;
  }

  .manual-toolbar__inner {
    width: calc(100% - 28px);
    gap: 9px;
  }

  .manual-toolbar__title,
  .manual-toolbar .version-tag,
  .manual-toolbar .print-button {
    display: none;
  }

  .manual-toolbar .manual-search {
    width: auto;
    flex: 1;
    margin-left: 0;
  }

  .manual-toolbar .mobile-menu-button {
    display: inline-flex;
  }

  .manual-page .manual-sidebar {
    position: fixed;
    z-index: 90;
    inset: 0;
    width: auto;
    pointer-events: none;
  }

  .manual-page .manual-sidebar.is-open {
    pointer-events: auto;
  }

  .manual-page .sidebar-panel {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(312px, calc(100vw - 42px));
    height: 100%;
    padding-top: 15px;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  .manual-page .manual-sidebar.is-open .sidebar-panel {
    transform: translateX(0);
  }

  .manual-page .sidebar-head {
    color: #f2e4bf;
  }
}

@media (max-width: 560px) {
  .manual-toolbar__inner {
    width: calc(100% - 20px);
  }

  .manual-toolbar .mobile-menu-button {
    min-width: 42px;
    width: 42px;
  }

  .manual-toolbar .mobile-menu-button span {
    display: none;
  }
}

@media print {
  .manual-page .site-header,
  .manual-toolbar,
  .manual-page .site-footer {
    display: none !important;
  }

  body.manual-page {
    background: #fff;
  }
}
