html {
  scroll-behavior: smooth;
}

.manual-page {
  --manual-sidebar-title-size: 14px;
  --manual-sidebar-copy-size: 14px;
  --manual-toc-chapter-size: 14px;
  --manual-toc-item-size: 14px;
  --manual-eyebrow-size: 9px;
  --manual-document-title-size: 30px;
  --manual-document-copy-size: 14px;
  --manual-body-size: 14px;
  --manual-section-title-size: 22px;
  --manual-heading-size: 17px;
  --manual-subheading-size: 14px;
  --manual-small-heading-size: 14px;
  --manual-card-copy-size: 14px;
  --manual-caption-size: 12px;

  min-height: 100vh;
  background:
    linear-gradient(rgba(25, 31, 55, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 31, 55, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 96px 96px;
  color: var(--ink);
}

.manual-layout {
  display: grid;
  grid-template-columns: minmax(198px, 226px) minmax(0, 1fr);
  min-height: 100vh;
}

.manual-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: rgba(244, 247, 251, 0.9);
  backdrop-filter: blur(18px);
}

.manual-sidebar-inner {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 14px;
  padding: 22px 12px 16px;
}

.manual-sidebar-heading p {
  margin: 0;
  color: var(--ink);
  font-size: var(--manual-sidebar-title-size);
  font-weight: 680;
  line-height: 1.35;
}

.manual-sidebar-heading span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--manual-sidebar-copy-size);
  line-height: 1.45;
}

.manual-toc {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: rgba(10, 13, 24, 0.22) transparent;
}

.manual-toc a {
  display: block;
  border-radius: 8px;
  color: rgba(10, 13, 24, 0.62);
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.manual-toc a:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.manual-toc-chapter {
  margin-top: 4px;
  border: 1px solid transparent;
  padding: 6px 8px;
  font-size: var(--manual-toc-chapter-size);
  font-weight: 640;
  line-height: 1.4;
}

.manual-toc-chapter:first-child {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 32px rgba(25, 31, 55, 0.06);
  color: var(--ink);
}

.manual-toc-item {
  padding: 4px 8px 4px 18px;
  font-size: var(--manual-toc-item-size);
  font-weight: 400;
  line-height: 1.45;
}

.manual-document {
  min-width: 0;
  padding: 30px 34px 72px 38px;
}

.manual-document-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.manual-hero {
  margin: 0 0 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.manual-eyebrow {
  margin: 0 0 10px;
  color: var(--violet);
  font-family: var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--manual-eyebrow-size);
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.manual-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: var(--manual-document-title-size);
  font-weight: 640;
  letter-spacing: 0;
  line-height: 1.08;
}

.manual-hero > p:not(.manual-eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--manual-document-copy-size);
  font-weight: 520;
  line-height: 1.55;
}

.manual-content {
  display: grid;
  gap: 20px;
}

.manual-section {
  min-width: 0;
  scroll-margin-top: 96px;
}

.manual-section + .manual-section {
  padding-top: 1rem;
}

.manual-body {
  color: #303746;
  font-size: var(--manual-body-size);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.manual-body :is(h1, h2, h3, h4) {
  margin: 0;
  color: var(--ink);
  font-weight: 640;
  letter-spacing: 0;
}

.manual-body h1 {
  margin-bottom: 0.62rem;
  font-size: var(--manual-section-title-size);
  line-height: 1.16;
}

.manual-body h2 {
  margin: 0.82rem 0 0.38rem;
  font-size: var(--manual-heading-size);
  line-height: 1.34;
}

.manual-body h3 {
  margin: 0.62rem 0 0.32rem;
  font-size: var(--manual-subheading-size);
  line-height: 1.36;
}

.manual-body h4 {
  margin: 0.52rem 0 0.28rem;
  font-size: var(--manual-small-heading-size);
  line-height: 1.4;
}

.manual-body p {
  margin: 0.26rem 0 !important;
  color: #303746;
}

.manual-body strong,
.manual-body b {
  color: var(--ink);
  font-weight: 680;
}

.manual-body :is(ol, ul) {
  margin: 0.32rem 0 0.6rem 1rem;
  padding-left: 0.7rem;
  color: #303746;
}

.manual-body ol:not(.manual-feature-grid) {
  list-style-type: disc;
}

.manual-body li {
  margin: 0.18rem 0;
  color: #303746;
}

.manual-body a {
  color: var(--violet);
  text-decoration: none;
}

.manual-body a:hover {
  text-decoration: underline;
}

.manual-body font {
  font-family: inherit !important;
  font-size: inherit !important;
}

.manual-body font[color="#2e74b5"],
.manual-body font[color="#1f4e79"],
.manual-body font[color="#1155cc"] {
  color: var(--violet) !important;
}

.manual-body hr {
  margin: 1.2rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.manual-body table {
  display: block;
  width: 100% !important;
  max-width: 100%;
  margin: 0.75rem 0 1.1rem;
  overflow-x: auto;
  border-collapse: collapse;
}

.manual-body th,
.manual-body td {
  min-width: 6.6rem;
  border-color: var(--line) !important;
  padding: 0.28rem 0.4rem !important;
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.48;
}

.manual-body th {
  background: rgba(128, 109, 255, 0.08) !important;
  color: var(--ink);
  font-weight: 650;
}

.manual-body td[bgcolor],
.manual-body th[bgcolor] {
  background: rgba(255, 255, 255, 0.62) !important;
}

.manual-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0.7rem 0 1.1rem;
}

.manual-feature-card {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(25, 31, 55, 0.07);
  padding: 10px;
}

.manual-feature-card .manual-feature-index {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(128, 109, 255, 0.28);
  border-radius: 999px;
  color: var(--violet);
  font-family: var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 650;
}

.manual-feature-card h3 {
  margin-top: 8px;
  font-size: var(--manual-subheading-size);
}

.manual-feature-card p {
  margin-top: 0.36rem;
  color: #485064;
  font-size: var(--manual-card-copy-size);
  line-height: 1.55;
}

.manual-feature-label {
  color: var(--ink);
  font-weight: 680;
}

.manual-screenshot {
  margin: 0.85rem 0 1.2rem;
}

.manual-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(25, 31, 55, 0.09);
}

.manual-screenshot figcaption,
.manual-figure figcaption,
.manual-caption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: var(--manual-caption-size);
  text-align: center;
  line-height: 1.5;
}

.manual-callout {
  margin: 0.65rem 0 0.9rem;
  border: 1px solid rgba(128, 109, 255, 0.2);
  border-radius: 8px;
  background: rgba(128, 109, 255, 0.08);
  padding: 8px 10px;
  color: #303746;
  font-size: 14px;
  line-height: 1.5;
}

.manual-callout strong {
  color: var(--ink);
}

.manual-faq-table td:first-child {
  font-weight: 650;
  color: var(--ink);
}

@media (max-width: 1180px) {
  .manual-page {
    --manual-document-title-size: 26px;
    --manual-section-title-size: 21px;
  }

  .manual-layout {
    grid-template-columns: minmax(198px, 226px) minmax(0, 1fr);
  }

  .manual-document {
    padding: 30px 24px 68px;
  }

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

@media (max-width: 860px) {
  .manual-page {
    --manual-document-title-size: 26px;
    --manual-document-copy-size: 14px;
    --manual-body-size: 14px;
    --manual-section-title-size: 21px;
    --manual-heading-size: 17px;
    --manual-subheading-size: 14px;
  }

  .manual-layout {
    display: block;
  }

  .manual-sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .manual-sidebar-inner {
    gap: 14px;
    padding: 18px 14px;
  }

  .manual-toc {
    max-height: 330px;
  }

  .manual-document {
    padding: 24px 14px 54px;
  }

  .manual-hero {
    margin-bottom: 22px;
    padding-bottom: 18px;
  }

  .manual-feature-grid {
    grid-template-columns: 1fr;
  }
}

.manual-feature-grid {
  padding-left: 0;
  list-style: none;
}

.manual-body th,
.manual-body td {
  border: 1px solid var(--line) !important;
}

.manual-body thead :is(th, td) {
  background: rgba(128, 109, 255, 0.08) !important;
  color: var(--ink);
  font-weight: 650;
}
