.docs-page {
    background: #f4f5f7;
}

.docs-page .main-content {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(232, 234, 239, 0.66) 1px, transparent 1px) 50% 0 / 80px 80px,
        #f4f5f7;
}

.docs-page .footer {
    padding-block: 2.4rem;
}

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

.manual-shell {
    width: min(100%, 1490px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 116px 32px 96px;
    display: grid;
    grid-template-columns: 272px minmax(0, 820px) 210px;
    align-items: start;
    justify-content: center;
    gap: 42px;
}

.manual-sidebar {
    position: sticky;
    top: 112px;
    max-height: calc(100vh - 132px);
    border: 1px solid #e0e2e7;
    border-radius: 18px;
    overflow: hidden;
    color: #252833;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 40px rgba(28, 34, 49, 0.06);
    backdrop-filter: blur(18px);
}

.manual-sidebar__top {
    padding: 17px;
    border-bottom: 1px solid #ebecef;
    background: #fff;
}

.manual-sidebar__home {
    padding: 4px 4px 15px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #1e2028;
    text-decoration: none;
}

.manual-sidebar__home > i {
    width: 37px;
    height: 37px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #151721;
    font-size: 18px;
}

.manual-sidebar__home strong,
.manual-sidebar__home small {
    display: block;
}

.manual-sidebar__home strong {
    font-size: 0.92rem;
}

.manual-sidebar__home small {
    margin-top: 2px;
    color: #8a8e99;
    font-size: 10px;
}

.manual-search {
    position: relative;
}

.manual-search > i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 12px;
    color: #777b87;
    font-size: 15px;
    transform: translateY(-50%);
    pointer-events: none;
}

.manual-search input {
    width: 100%;
    min-height: 42px;
    padding: 0 42px 0 36px;
    border: 1px solid #dfe1e6;
    border-radius: 10px;
    outline: none;
    color: #232631;
    background: #f6f7f9;
    font: inherit;
    font-size: 0.82rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.manual-search input:focus {
    border-color: #9e87e8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(117, 82, 218, 0.1);
}

.manual-search input::placeholder {
    color: #9296a1;
}

.manual-search kbd {
    position: absolute;
    top: 50%;
    right: 9px;
    padding: 2px 5px;
    border: 1px solid #dcdee3;
    border-radius: 5px;
    color: #8b8e98;
    background: #fff;
    font: inherit;
    font-size: 9px;
    transform: translateY(-50%);
}

.manual-search__results {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    right: -8px;
    left: -8px;
    max-height: min(420px, 55vh);
    padding: 6px;
    border: 1px solid #dfe1e7;
    border-radius: 12px;
    overflow-y: auto;
    display: none;
    background: #fff;
    box-shadow: 0 20px 50px rgba(23, 27, 39, 0.16);
}

.manual-search__results.is-open {
    display: block;
}

.manual-search__results a {
    padding: 10px 11px;
    border-radius: 8px;
    display: block;
    color: #242731;
    text-decoration: none;
}

.manual-search__results a:hover {
    background: #f2f1f7;
}

.manual-search__results strong,
.manual-search__results small {
    display: block;
}

.manual-search__results strong {
    font-size: 0.82rem;
}

.manual-search__results small {
    margin-top: 3px;
    overflow: hidden;
    color: #808490;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manual-search__empty {
    padding: 13px 10px;
    color: #777b87;
    font-size: 0.78rem;
    text-align: center;
}

.manual-nav {
    max-height: calc(100vh - 258px);
    padding: 12px 10px 18px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d8dae0 transparent;
}

.manual-nav section + section {
    margin-top: 14px;
}

.manual-nav h2 {
    margin: 0 9px 5px;
    color: #999ca6;
    font-size: 10px;
    font-weight: 760;
    letter-spacing: 0.08em;
}

.manual-nav a {
    position: relative;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    color: #545966;
    font-size: 0.8rem;
    line-height: 1.35;
    text-decoration: none;
    transition: color 150ms ease, background 150ms ease;
}

.manual-nav a:hover {
    color: #1e212b;
    background: #f2f3f6;
}

.manual-nav a.is-active {
    color: #5134ad;
    background: #efecfa;
    font-weight: 680;
}

.manual-nav a.is-active::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 2px;
    border-radius: 999px;
    background: #7853df;
}

.manual-reader {
    min-width: 0;
}

.manual-reader__breadcrumb {
    min-height: 32px;
    margin: 1px 0 12px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #9699a3;
    font-size: 11px;
}

.manual-reader__breadcrumb a {
    color: #6c707c;
    text-decoration: none;
}

.manual-reader__breadcrumb i {
    font-size: 14px;
}

.manual-article {
    padding: clamp(38px, 5vw, 68px) clamp(30px, 5.6vw, 70px);
    border: 1px solid #e0e2e7;
    border-radius: 20px;
    color: #282b35;
    background: #fff;
    box-shadow: 0 16px 46px rgba(31, 37, 51, 0.065);
}

.manual-article__header {
    padding-bottom: 38px;
    border-bottom: 1px solid #e8e9ed;
}

.manual-article__eyebrow {
    color: #7652d7;
    font-size: 11px;
    font-weight: 780;
    letter-spacing: 0.08em;
}

.manual-article h1 {
    margin: 11px 0 0;
    color: #171923;
    font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: clamp(2.55rem, 4.6vw, 4rem);
    font-weight: 650;
    line-height: 1.13;
    letter-spacing: -0.05em;
}

.manual-article__header > p {
    max-width: 650px;
    margin: 18px 0 0;
    color: #656a77;
    font-size: 1rem;
    line-height: 1.85;
}

.manual-article > section {
    padding-top: 52px;
}

.manual-article > section + section {
    margin-top: 54px;
    border-top: 1px solid #ececef;
}

.manual-article h2 {
    scroll-margin-top: 126px;
    margin: 0;
    color: #1c1e27;
    font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: clamp(1.72rem, 2.8vw, 2.25rem);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.manual-article > section > p {
    margin: 13px 0 0;
    color: #6a6f7b;
    line-height: 1.8;
}

.manual-note {
    margin-top: 30px;
    padding: 18px 18px;
    border: 1px solid #dfd9f3;
    border-radius: 13px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    background: #f6f3fd;
}

.manual-note > i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #6945ce;
    background: #eae4fa;
    font-size: 18px;
}

.manual-note strong,
.manual-note p {
    display: block;
}

.manual-note strong {
    color: #2c2c38;
    font-size: 0.88rem;
}

.manual-note p {
    margin: 4px 0 0;
    color: #777582;
    font-size: 0.77rem;
    line-height: 1.55;
}

.manual-note > a,
.manual-compare a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #6340c8;
    font-size: 0.78rem;
    font-weight: 720;
    text-decoration: none;
}

.manual-steps {
    margin: 27px 0 0;
    padding: 0;
    list-style: none;
}

.manual-steps li {
    position: relative;
    padding: 0 0 26px 68px;
}

.manual-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 39px;
    bottom: 5px;
    left: 21px;
    width: 1px;
    background: #dfe1e6;
}

.manual-steps li > span {
    position: absolute;
    top: 0;
    left: 0;
    width: 43px;
    height: 43px;
    border: 1px solid #dadce2;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #6b4bd0;
    background: #f8f7fb;
    font-size: 10px;
    font-weight: 800;
}

.manual-steps strong {
    display: block;
    padding-top: 1px;
    color: #282b35;
    font-size: 0.97rem;
}

.manual-steps p {
    margin: 5px 0 0;
    color: #727681;
    font-size: 0.86rem;
    line-height: 1.68;
}

.manual-chapter-list {
    margin-top: 24px;
    border-top: 1px solid #e5e6ea;
}

.manual-chapter-list > a {
    min-height: 92px;
    padding: 17px 4px;
    border-bottom: 1px solid #e5e6ea;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    color: #262933;
    text-decoration: none;
    transition: padding 160ms ease, background 160ms ease;
}

.manual-chapter-list > a:hover {
    padding-inline: 10px;
    background: #f8f8fa;
}

.manual-chapter-list > a > i:first-child {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #6d4bd0;
    background: #eeeafb;
    font-size: 19px;
}

.manual-chapter-list strong,
.manual-chapter-list small {
    display: block;
}

.manual-chapter-list strong {
    font-size: 0.94rem;
}

.manual-chapter-list small {
    margin-top: 5px;
    color: #7a7e89;
    font-size: 0.78rem;
    line-height: 1.55;
}

.manual-chapter-list > a > i:last-child {
    color: #a4a7af;
}

.manual-compare {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.manual-compare > div {
    padding: 24px;
    border: 1px solid #e1e2e7;
    border-radius: 14px;
    background: #fafafb;
}

.manual-compare span {
    color: #6e4dd0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.manual-compare h3 {
    margin: 8px 0 0;
    color: #292b34;
    font-size: 1rem;
}

.manual-compare ul {
    margin: 16px 0 19px;
    padding-left: 18px;
    color: #6e727d;
    font-size: 0.79rem;
    line-height: 1.7;
}

.manual-next {
    margin-top: 60px;
    padding-top: 26px;
    border-top: 1px solid #e4e5e9;
}

.manual-next > span {
    color: #989ba4;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.manual-next > a {
    margin-top: 8px;
    padding: 15px 17px;
    border: 1px solid #dfe1e6;
    border-radius: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    color: #282b34;
    text-decoration: none;
}

.manual-next strong,
.manual-next small {
    display: block;
}

.manual-next strong {
    font-size: 0.9rem;
}

.manual-next small {
    grid-column: 1;
    margin-top: 3px;
    color: #858892;
    font-size: 0.72rem;
}

.manual-next i {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    color: #6946cf;
}

.manual-toc {
    position: sticky;
    top: 122px;
    padding: 12px 0 0 16px;
    border-left: 1px solid #dbdde3;
}

.manual-toc > strong {
    display: block;
    margin-bottom: 11px;
    color: #30333d;
    font-size: 11px;
}

.manual-toc > a,
.manual-toc nav a {
    padding: 6px 0;
    display: block;
    color: #7a7e89;
    font-size: 0.75rem;
    line-height: 1.45;
    text-decoration: none;
    transition: color 150ms ease, transform 150ms ease;
}

.manual-toc > a:hover,
.manual-toc nav a:hover,
.manual-toc nav a.is-active {
    color: #6040c1;
    transform: translateX(2px);
}

.manual-toc__help {
    margin-top: 26px;
    padding: 14px;
    border-radius: 11px;
    color: #6c707c;
    background: #e9eaee;
}

.manual-toc__help > i {
    color: #6746c7;
}

.manual-toc__help span,
.manual-toc__help a {
    display: block;
}

.manual-toc__help span {
    margin-top: 7px;
    font-size: 10px;
    line-height: 1.5;
}

.manual-toc__help a {
    margin-top: 7px;
    color: #5e3fc1;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.manual-drawer-toggle,
.manual-sidebar-overlay {
    display: none;
}

/* Article pages */
.manual-shell--article .manual-article {
    padding-top: 50px;
}

.manual-prose {
    color: #444853;
    font-size: 0.94rem;
    line-height: 1.82;
}

.manual-prose > h1:first-child {
    margin: 0 0 18px;
}

.manual-prose h2 {
    margin: 54px 0 18px;
    padding-top: 2px;
    border: 0;
}

.manual-prose h3 {
    margin: 34px 0 12px;
    color: #252832;
    font-size: 1.15rem;
}

.manual-prose p,
.manual-prose ul,
.manual-prose ol,
.manual-prose table,
.manual-prose blockquote,
.manual-prose pre,
.manual-prose figure {
    margin-top: 16px;
    margin-bottom: 16px;
}

.manual-prose ul,
.manual-prose ol {
    padding-left: 1.4rem;
}

.manual-prose li + li {
    margin-top: 6px;
}

.manual-prose a {
    color: #6442c7;
}

.manual-prose code {
    padding: 0.15em 0.38em;
    border-radius: 5px;
    color: #49358b;
    background: #f0edf8;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.86em;
}

.manual-prose pre {
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    color: #e5e3ec;
    background: #171923;
}

.manual-prose pre code {
    padding: 0;
    color: inherit;
    background: transparent;
}

.manual-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.manual-prose th,
.manual-prose td {
    padding: 11px 13px;
    border: 1px solid #e0e2e7;
    text-align: left;
    vertical-align: top;
}

.manual-prose th {
    color: #343640;
    background: #f4f5f7;
}

.manual-prose blockquote,
.docs-callout,
.docs-next-actions {
    margin: 22px 0;
    padding: 16px 18px;
    border: 1px solid #dfdaef;
    border-left: 3px solid #7652d6;
    border-radius: 10px;
    color: #585b67;
    background: #f6f3fc;
}

.docs-path-grid,
.docs-interface-grid {
    margin: 22px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

.docs-path-card,
.docs-interface-card {
    padding: 18px;
    border: 1px solid #e0e2e7;
    border-radius: 12px;
    background: #fafafb;
}

.docs-path-card h3,
.docs-interface-card h3 {
    margin-top: 0;
}

.docs-checklist {
    padding: 0 !important;
    list-style: none;
}

.docs-checklist li {
    position: relative;
    padding-left: 25px;
}

.docs-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #6544c4;
    font-weight: 800;
}

.docs-step {
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.docs-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #fff;
    background: #6040bf;
    font-size: 0.74rem;
    font-weight: 800;
}

.docs-role {
    padding: 2px 7px;
    border-radius: 5px;
    color: #5136a4;
    background: #eee9fa;
    font-size: 0.76rem;
    font-weight: 700;
}

.docs-screenshot {
    padding: 10px;
    border: 1px solid #dfe1e6;
    border-radius: 13px;
    background: #f8f8fa;
}

.docs-screenshot img,
.manual-prose img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.docs-screenshot figcaption,
.manual-prose figcaption {
    padding: 10px 7px 3px;
    color: #858995;
    font-size: 0.75rem;
    text-align: center;
}

.manual-pagination {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid #e2e3e7;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.manual-pagination a {
    padding: 14px 15px;
    border: 1px solid #dfe1e6;
    border-radius: 11px;
    color: #30333d;
    text-decoration: none;
}

.manual-pagination__next {
    text-align: right;
}

.manual-pagination a span,
.manual-pagination a strong {
    display: block;
}

.manual-pagination a span {
    color: #9497a0;
    font-size: 10px;
}

.manual-pagination a strong {
    margin-top: 4px;
    font-size: 0.8rem;
}

.docs-subsection {
    width: min(100% - 32px, 860px);
    min-height: 80vh;
    margin: 0 auto;
    padding: 126px 0 72px;
}

.docs-subsection > article {
    padding: 48px;
    border: 1px solid #e0e2e7;
    border-radius: 20px;
    background: #fff;
}

.docs-subsection__back {
    color: #6442c7;
    text-decoration: none;
}

.docs-subsection h1 {
    margin-top: 24px;
    font-family: "Source Han Serif SC", "Noto Serif SC", serif;
    font-size: 2.7rem;
}

.docs-subsection__lead {
    color: #6f737e;
}

.docs-subsection__links a {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #e0e2e7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #343640;
    text-decoration: none;
}

@media (max-width: 1240px) {
    .manual-shell {
        grid-template-columns: 260px minmax(0, 820px);
        gap: 34px;
    }

    .manual-toc {
        display: none;
    }
}

@media (max-width: 900px) {
    .manual-shell {
        width: 100%;
        padding: 102px 18px 72px;
        display: block;
    }

    .manual-sidebar {
        position: fixed;
        z-index: 1150;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(322px, calc(100vw - 48px));
        max-height: none;
        border: 0;
        border-radius: 0 16px 16px 0;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform 220ms ease;
    }

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

    .manual-nav {
        max-height: none;
    }

    .manual-sidebar-overlay {
        position: fixed;
        z-index: 1140;
        inset: 0;
        display: block;
        visibility: hidden;
        background: rgba(11, 13, 22, 0.52);
        opacity: 0;
        backdrop-filter: blur(3px);
        transition: opacity 180ms ease, visibility 180ms ease;
    }

    .manual-sidebar-overlay.is-open {
        visibility: visible;
        opacity: 1;
    }

    .manual-drawer-toggle {
        position: fixed;
        z-index: 1130;
        right: 18px;
        bottom: 18px;
        min-height: 46px;
        padding: 0 16px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        color: #fff;
        background: #171923;
        box-shadow: 0 16px 34px rgba(20, 22, 31, 0.28);
        font: inherit;
        font-size: 0.8rem;
    }

    .manual-drawer-toggle.is-open {
        z-index: 1160;
    }
}

@media (max-width: 620px) {
    .manual-shell {
        padding: 91px 0 56px;
    }

    .manual-reader__breadcrumb {
        margin-inline: 17px;
    }

    .manual-article {
        padding: 35px 20px 42px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .manual-article h1 {
        font-size: 2.5rem;
    }

    .manual-article__header {
        padding-bottom: 30px;
    }

    .manual-note {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .manual-note > a {
        grid-column: 2;
    }

    .manual-article > section {
        padding-top: 42px;
    }

    .manual-article > section + section {
        margin-top: 44px;
    }

    .manual-steps li {
        padding-left: 56px;
    }

    .manual-steps li > span {
        width: 38px;
        height: 38px;
    }

    .manual-steps li:not(:last-child)::after {
        top: 35px;
        left: 18px;
    }

    .manual-chapter-list > a {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .manual-chapter-list > a > i:last-child {
        display: none;
    }

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

    .docs-path-grid,
    .docs-interface-grid {
        grid-template-columns: 1fr;
    }

    .manual-prose table {
        display: block;
        overflow-x: auto;
    }

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

    .manual-pagination__next {
        grid-column: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .manual-shell *,
    .manual-shell *::before,
    .manual-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
