.command-docs-page {
    --docs-primary: var(--brand-primary);
    --docs-primary-dark: var(--accent-600);
    --docs-cyan: #13b8d4;
    --docs-text: var(--text-main);
    --docs-muted: var(--text-sub);
    --docs-border: var(--border-color);
    --docs-surface: var(--bg-card);
    --docs-soft: var(--bg-sub);
    background: var(--bg-main);
    color: var(--docs-text);
}

[data-theme="dark"] .command-docs-page,
[data-theme="dark"].command-docs-page {
    --docs-primary-dark: #aeb6ff;
}

.command-docs-page code { color: inherit; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.docs-hero, .docs-detail-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--docs-border); background: var(--docs-surface); }
.docs-hero-inner { position: relative; z-index: 1; padding: 34px 0 40px; text-align: center; }
.docs-detail-hero-inner { position: relative; z-index: 1; padding: 38px 0 48px; }
.docs-glow { position: absolute; border-radius: 50%; filter: blur(12px); opacity: .35; pointer-events: none; }
.docs-glow-one { width: 340px; height: 340px; top: -180px; left: 7%; background: #6673ff; }
.docs-glow-two { width: 260px; height: 260px; right: 8%; bottom: -150px; background: #20d6cb; }
.docs-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; color: var(--docs-muted); font-size: .84rem; }
.docs-hero .docs-breadcrumb { justify-content: center; }
.docs-breadcrumb a { color: var(--docs-muted); text-decoration: none; }
.docs-breadcrumb a:hover { color: var(--docs-primary); }
.docs-breadcrumb i { font-size: .6rem; opacity: .65; }
.docs-eyebrow, .docs-section-label { color: var(--docs-primary); font-size: .76rem; font-weight: 800; letter-spacing: .1em; }
.docs-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.docs-hero h1 { margin: 12px 0 9px; font-size: clamp(2rem, 4vw, 2.85rem); font-weight: 900; letter-spacing: -.045em; }
.docs-hero > div > p { max-width: 680px; margin: 0 auto; color: var(--docs-muted); font-size: 1.05rem; line-height: 1.75; }
.docs-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.docs-stats span { padding: 7px 12px; border: 1px solid var(--docs-border); border-radius: 999px; background: var(--docs-surface); color: var(--docs-muted); font-size: .82rem; box-shadow: 0 6px 20px rgba(35, 46, 85, .05); }
.docs-stats strong { color: var(--docs-text); }
.docs-search { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; width: min(720px, 100%); margin: 22px auto 0; padding: 7px 7px 7px 16px; border: 1px solid rgba(88, 101, 242, .24); border-radius: 14px; background: var(--docs-surface); box-shadow: 0 10px 28px rgba(50, 61, 125, .1); }
.docs-search > i { color: var(--docs-primary); }
.docs-search input { min-width: 0; padding: 9px 4px; border: 0; outline: 0; background: transparent; color: var(--docs-text); }
.docs-search input::placeholder { color: var(--docs-muted); }
.docs-search-clear { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--docs-muted); text-decoration: none; }
.docs-search-clear:hover { background: var(--docs-soft); color: var(--docs-text); }
.docs-search button { padding: 10px 20px; border: 0; border-radius: 12px; background: var(--docs-primary); color: #fff; font-weight: 800; }

.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; padding-top: 38px; padding-bottom: 80px; }
.docs-sidebar { position: sticky; top: 82px; align-self: start; max-height: calc(100vh - 102px); overflow: auto; padding: 12px; border: 1px solid var(--docs-border); border-radius: 14px; background: var(--docs-surface); }
.docs-sidebar-heading { padding: 7px 10px 12px; color: var(--docs-muted); font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
.docs-group-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--docs-muted); font-size: .84rem; text-decoration: none; }
.docs-group-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-group-link i { width: 20px; text-align: center; }
.docs-group-link b { min-width: 27px; padding: 2px 6px; border-radius: 20px; background: var(--docs-soft); font-size: .72rem; text-align: center; }
.docs-group-link:hover, .docs-group-link.active { background: rgba(88, 101, 242, .11); color: var(--docs-primary); }
.docs-sidebar > .docs-group-link { margin-bottom: 6px; font-weight: 800; }
.docs-sidebar-section { border-top: 1px solid var(--docs-border); }
.docs-sidebar-section summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 24px 12px 10px; border-radius: 9px; color: var(--docs-text); font-size: .84rem; font-weight: 850; cursor: pointer; list-style: none; }
.docs-sidebar-section summary::-webkit-details-marker { display: none; }
.docs-sidebar-section summary::after { position: absolute; right: 9px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: rotate(45deg) translateY(-2px); transition: transform .16s ease; }
.docs-sidebar-section[open] summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.docs-sidebar-section summary:hover, .docs-sidebar-section.active summary { color: var(--docs-primary); }
.docs-sidebar-section summary span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.docs-sidebar-section summary i { width: 19px; text-align: center; color: var(--docs-primary); }
.docs-sidebar-section summary b { min-width: 27px; padding: 2px 6px; border-radius: 20px; background: var(--docs-soft); color: var(--docs-muted); font-size: .68rem; text-align: center; }
.docs-sidebar-groups { display: grid; gap: 2px; padding: 0 0 9px 14px; }
.docs-sidebar-groups .docs-group-link { border-left: 1px solid var(--docs-border); border-radius: 0 8px 8px 0; }
.docs-results-head, .docs-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.docs-results-head h2, .docs-panel-heading h2 { margin: 5px 0 0; font-size: 1.55rem; font-weight: 850; letter-spacing: -.025em; }
.docs-result-count { flex: none; padding: 6px 10px; border-radius: 20px; background: var(--docs-soft); color: var(--docs-muted); font-size: .82rem; font-weight: 700; }
.docs-feature-areas { display: grid; gap: 56px; }
.docs-feature-area { min-width: 0; scroll-margin-top: 86px; }
.docs-feature-area-head { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 24px; padding: 18px; border: 1px solid var(--docs-border); border-radius: 14px; background: var(--docs-soft); }
.docs-feature-area-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; background: var(--docs-primary); color: #fff; }
.docs-feature-area-head h3 { margin: 2px 0 1px; font-size: 1.28rem; font-weight: 900; letter-spacing: -.025em; }
.docs-feature-area-head p { margin: 0; color: var(--docs-muted); font-size: .82rem; }
.docs-feature-area-count { padding: 6px 9px; border: 1px solid var(--docs-border); border-radius: 8px; background: var(--docs-surface); color: var(--docs-muted); font-size: .74rem; font-weight: 750; }
.docs-command-groups { display: grid; gap: 34px; }
.docs-command-group { min-width: 0; scroll-margin-top: 88px; }
.docs-command-group-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 15px; padding-bottom: 14px; border-bottom: 1px solid var(--docs-border); }
.docs-command-group-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.docs-command-group-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid rgba(88, 101, 242, .16); border-radius: 10px; background: rgba(88, 101, 242, .09); color: var(--docs-primary); }
.docs-command-group-head h4 { margin: 0; color: var(--docs-text); font-size: 1.08rem; font-weight: 850; }
.docs-command-group-head p { margin: 3px 0 0; color: var(--docs-muted); font-size: .8rem; }
.docs-command-group-head > a { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 9px; border-radius: 9px; background: var(--docs-soft); color: var(--docs-primary); font-size: .75rem; font-weight: 800; text-decoration: none; }
.docs-command-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.docs-command-card { display: flex; flex-direction: column; min-height: 224px; padding: 19px; border: 1px solid var(--docs-border); border-radius: 14px; background: var(--docs-surface); box-shadow: 0 6px 20px rgba(35, 46, 85, .045); transition: transform .2s, border-color .2s, box-shadow .2s; }
.docs-command-card:hover { transform: translateY(-3px); border-color: rgba(88, 101, 242, .35); box-shadow: 0 15px 35px rgba(35, 46, 85, .1); }
.docs-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.docs-command-type { color: var(--docs-muted); font-size: .72rem; font-weight: 750; }
.docs-command-type i { margin-right: 4px; color: var(--docs-primary); }
.docs-risk { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 99px; font-size: .69rem; font-weight: 800; }
.docs-risk-safe { background: rgba(35, 168, 105, .12); color: #18804e; }
.docs-risk-admin { background: rgba(230, 157, 39, .14); color: #a26300; }
.docs-risk-dangerous { background: rgba(223, 62, 76, .13); color: #b42635; }
.docs-command-card h3 { margin: 18px 0 10px; font-size: 1.02rem; }
.docs-command-card h3 a { color: var(--docs-text); text-decoration: none; }
.docs-command-card h3 code { padding: 6px 9px; border-radius: 8px; background: var(--docs-soft); color: var(--docs-primary-dark); overflow-wrap: anywhere; }
[data-theme="dark"] .docs-command-card h3 code { color: #adb5ff; }
.docs-command-card > p { display: -webkit-box; flex-grow: 1; overflow: hidden; color: var(--docs-muted); font-size: .88rem; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.docs-card-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; padding-top: 12px; border-top: 1px solid var(--docs-border); color: var(--docs-muted); font-size: .73rem; }
.docs-card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--docs-primary); font-size: .83rem; font-weight: 800; text-decoration: none; }
.docs-empty { padding: 64px 24px; border: 1px dashed var(--docs-border); border-radius: 20px; text-align: center; background: var(--docs-surface); }
.docs-empty > i { margin-bottom: 14px; color: var(--docs-primary); font-size: 2rem; }
.docs-empty p { color: var(--docs-muted); }
.docs-start-guide { margin-top: 34px; padding: 28px; border: 1px solid var(--docs-border); border-radius: 20px; background: linear-gradient(135deg, rgba(88, 101, 242, .1), var(--docs-surface)); }
.docs-start-guide h2 { margin: 5px 0 18px; font-size: 1.35rem; }
.docs-start-guide ol { padding-left: 1.25rem; color: var(--docs-muted); line-height: 1.8; }
.docs-start-guide strong { color: var(--docs-text); }

.docs-detail-hero h1 { margin: 15px 0 12px; font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 900; }
.docs-detail-hero h1 code { padding: 6px 12px; border-radius: 12px; background: rgba(88, 101, 242, .1); color: var(--docs-primary-dark); overflow-wrap: anywhere; }
[data-theme="dark"] .docs-detail-hero h1 code { color: #b5bcff; }
.docs-detail-hero-inner > p { max-width: 760px; margin: 0; color: var(--docs-muted); font-size: 1.03rem; line-height: 1.7; }
.docs-detail-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.docs-detail-badges > span { padding: 7px 10px; border: 1px solid var(--docs-border); border-radius: 99px; background: var(--docs-surface); color: var(--docs-muted); font-size: .78rem; font-weight: 700; }
.docs-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 265px; gap: 32px; padding-top: 42px; padding-bottom: 80px; }
.docs-detail-content { min-width: 0; }
.docs-panel, .docs-related { scroll-margin-top: 100px; margin-bottom: 20px; padding: 28px; border: 1px solid var(--docs-border); border-radius: 20px; background: var(--docs-surface); box-shadow: 0 8px 28px rgba(35, 46, 85, .04); }
.docs-panel-note { margin: 14px 0 0; color: var(--docs-muted); font-size: .88rem; line-height: 1.7; }
.docs-command-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 14px 13px 18px; border: 1px solid var(--docs-border); border-radius: 12px; background: #171b29; color: #f0f3ff; }
.docs-command-copy-row code { min-width: 0; overflow-wrap: anywhere; }
.docs-command-copy-row button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; background: rgba(255,255,255,.08); color: #d9dded; font-size: .76rem; }
.docs-command-copy-row button:hover { background: rgba(255,255,255,.16); }
.docs-risk-callout { display: flex; gap: 14px; padding: 17px; border-left: 4px solid; border-radius: 12px; }
.docs-risk-callout > i { margin-top: 3px; }
.docs-risk-callout strong { display: block; margin-bottom: 3px; }
.docs-risk-callout p { margin: 0; font-size: .86rem; line-height: 1.6; }
.docs-risk-callout-safe { border-color: #25a769; background: rgba(35, 168, 105, .09); }
.docs-risk-callout-admin { border-color: #df981f; background: rgba(230, 157, 39, .1); }
.docs-risk-callout-dangerous { border-color: #df3e4c; background: rgba(223, 62, 76, .09); }
.docs-permission-list, .docs-choice-list, .docs-aliases { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.docs-permission-list span, .docs-choice-list span, .docs-aliases span { padding: 6px 9px; border-radius: 8px; background: var(--docs-soft); color: var(--docs-muted); font-size: .78rem; }
.docs-permission-list i { color: #25a769; }
.docs-param-list { display: grid; gap: 12px; }
.docs-param-item { padding: 17px; border: 1px solid var(--docs-border); border-radius: 13px; background: var(--docs-soft); }
.docs-param-name { display: flex; align-items: center; gap: 9px; }
.docs-param-name code { color: var(--docs-primary); font-weight: 800; }
.docs-param-name span { padding: 3px 7px; border-radius: 20px; font-size: .67rem; font-weight: 800; }
.docs-param-name .required { background: rgba(223, 62, 76, .12); color: #ba2938; }
.docs-param-name .optional { background: rgba(88, 101, 242, .11); color: var(--docs-primary); }
.docs-param-item p { margin: 9px 0 5px; font-size: .9rem; }
.docs-param-item > small, .docs-range { color: var(--docs-muted); font-size: .77rem; }
.docs-example-list { display: grid; gap: 9px; }
.docs-aliases { align-items: center; color: var(--docs-muted); font-size: .82rem; }
.docs-trouble-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.docs-trouble-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
.docs-trouble-list li > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(88, 101, 242, .11); color: var(--docs-primary); font-weight: 900; }
.docs-trouble-list strong { display: block; margin: 3px 0 4px; }
.docs-trouble-list p { margin: 0; color: var(--docs-muted); font-size: .86rem; line-height: 1.65; }
.docs-panel-heading > a { color: var(--docs-primary); font-size: .82rem; font-weight: 800; text-decoration: none; }
.docs-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.docs-related-grid a { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 14px 38px 14px 14px; border: 1px solid var(--docs-border); border-radius: 12px; color: var(--docs-text); text-decoration: none; }
.docs-related-grid code { color: var(--docs-primary); font-weight: 800; overflow-wrap: anywhere; }
.docs-related-grid span { color: var(--docs-muted); font-size: .76rem; line-height: 1.45; }
.docs-related-grid i { position: absolute; top: 18px; right: 14px; color: var(--docs-primary); }
.docs-detail-aside { align-self: start; position: sticky; top: 92px; display: grid; gap: 15px; }
.docs-toc, .docs-aside-action { padding: 20px; border: 1px solid var(--docs-border); border-radius: 16px; background: var(--docs-surface); }
.docs-toc { display: grid; gap: 5px; }
.docs-toc strong { margin-bottom: 7px; font-size: .84rem; }
.docs-toc a { padding: 7px 9px; border-left: 2px solid var(--docs-border); color: var(--docs-muted); font-size: .8rem; text-decoration: none; }
.docs-toc a:hover { border-color: var(--docs-primary); color: var(--docs-primary); }
.docs-aside-action > i { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 11px; background: rgba(88, 101, 242, .12); color: var(--docs-primary); }
.docs-aside-action strong { display: block; }
.docs-aside-action p { margin: 7px 0 14px; color: var(--docs-muted); font-size: .79rem; line-height: 1.55; }
.docs-aside-action .btn-yg { width: 100%; justify-content: center; font-size: .8rem; }
.docs-copy-feedback { position: fixed; z-index: 1100; right: 24px; bottom: 24px; margin: 0; padding: 11px 16px; border-radius: 10px; background: #171b29; color: #fff; font-size: .82rem; box-shadow: 0 12px 32px rgba(0,0,0,.25); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; }
.docs-copy-feedback.visible { opacity: 1; transform: translateY(0); }
.docs-not-found { min-height: 60vh; padding-top: 100px; padding-bottom: 100px; text-align: center; }
.docs-not-found > i { color: var(--docs-primary); font-size: 3rem; }
.docs-not-found h1 { margin-top: 18px; }
.docs-not-found p { color: var(--docs-muted); }

@media (max-width: 991.98px) {
    .docs-layout { grid-template-columns: 1fr; gap: 24px; }
    .docs-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; max-height: none; overflow: visible; padding: 12px; }
    .docs-sidebar-heading, .docs-sidebar > .docs-group-link { grid-column: 1 / -1; }
    .docs-sidebar-section { border: 1px solid var(--docs-border); border-radius: 10px; }
    .docs-sidebar-groups { padding-right: 8px; }
    .docs-group-link b { margin-left: 6px; }
    .docs-detail-layout { grid-template-columns: 1fr; }
    .docs-detail-aside { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767.98px) {
    .docs-hero-inner { padding: 38px 0 44px; }
    .docs-hero h1 { font-size: 2rem; }
    .docs-search { grid-template-columns: auto minmax(0, 1fr) auto; border-radius: 15px; }
    .docs-search button { grid-column: 1 / -1; }
    .docs-search-clear { display: none; }
    .docs-layout { padding-top: 28px; padding-bottom: 56px; }
    .docs-command-grid, .docs-related-grid { grid-template-columns: 1fr; }
    .docs-sidebar { grid-template-columns: 1fr; }
    .docs-feature-areas { gap: 42px; }
    .docs-feature-area-head { grid-template-columns: 40px minmax(0, 1fr); padding: 15px; }
    .docs-feature-area-icon { width: 40px; height: 40px; }
    .docs-feature-area-count { grid-column: 2; justify-self: start; }
    .docs-command-groups { gap: 30px; }
    .docs-command-group-head { align-items: flex-start; }
    .docs-command-group-head p { display: none; }
    .docs-command-card { min-height: 215px; }
    .docs-detail-hero-inner { padding: 28px 0 36px; }
    .docs-detail-layout { padding-top: 25px; padding-bottom: 55px; }
    .docs-panel, .docs-related { padding: 20px; border-radius: 16px; }
    .docs-detail-aside { grid-template-columns: 1fr; }
    .docs-toc { display: none; }
    .docs-command-copy-row button span { display: none; }
    .docs-copy-feedback { right: 14px; bottom: 14px; left: 14px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .docs-command-card, .docs-copy-feedback { transition: none; }
}
