.docs-center-page { background: #050b13; }
.docs-center-page main { min-height: calc(100vh - 73px); }

.docs-page-hero { position: relative; min-height: 250px; overflow: hidden; border-bottom: 1px solid rgba(145, 196, 227, .14); background: #06101b; }
.docs-page-hero-image { position: absolute; inset: 0; background: radial-gradient(circle at 78% 46%, rgba(63, 181, 229, .2), transparent 26%), linear-gradient(90deg, rgba(3, 10, 17, .98) 0%, rgba(3, 10, 17, .86) 54%, rgba(3, 10, 17, .42) 100%), linear-gradient(135deg, #06101b, #0a2131 63%, #06111b); }
.docs-page-hero::after { position: absolute; inset: 0; content: ""; opacity: .15; background-image: linear-gradient(rgba(75, 220, 255, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(75, 220, 255, .16) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(90deg, #000, transparent 72%); }
.docs-page-hero-content { position: relative; z-index: 1; min-height: 250px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: center; gap: 32px; padding: 38px 0 42px; }
.docs-page-hero-copy { position: relative; z-index: 3; max-width: 820px; }
.docs-page-preview { position: relative; z-index: 2; overflow: hidden; padding: 14px; border: 1px solid rgba(111, 194, 228, .2); border-radius: 14px; background: linear-gradient(145deg, rgba(11, 30, 44, .94), rgba(6, 16, 25, .9)); box-shadow: 0 25px 60px rgba(0, 0, 0, .28); pointer-events: none; }
.docs-page-preview::after { position: absolute; right: -8px; bottom: -18px; content: "DOC"; color: rgba(75, 220, 255, .035); font: 900 82px/1 Arial, sans-serif; }
.docs-preview-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 12px; color: #7893a2; font: 700 9px/1 Arial, sans-serif; letter-spacing: .12em; }
.docs-preview-head span { display: flex; align-items: center; gap: 7px; }
.docs-preview-head i { width: 6px; height: 6px; border-radius: 50%; background: #70f0b0; box-shadow: 0 0 9px rgba(112, 240, 176, .7); }
.docs-preview-head b { color: #4bdcff; font-size: 9px; }
.docs-preview-search { position: relative; z-index: 1; min-height: 39px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid rgba(145, 196, 227, .16); border-radius: 8px; color: #6e8796; background: rgba(3, 11, 18, .52); font-size: 10px; }
.docs-preview-search i { color: #4bdcff; }
.docs-preview-search em { padding: 5px 7px; border-radius: 5px; color: #052033; background: #4bdcff; font: 800 8px/1 Arial, sans-serif; font-style: normal; }
.docs-preview-tree { position: relative; z-index: 1; display: grid; gap: 5px; margin-top: 10px; }
.docs-preview-tree span { min-height: 35px; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 0 9px; border-radius: 7px; color: #9bb0bc; background: rgba(255, 255, 255, .018); font-size: 10px; }
.docs-preview-tree span.active { color: #06121c; background: linear-gradient(135deg, #4bdcff, #87edff); }
.docs-preview-tree i { color: #d9ad5b; }
.docs-preview-tree span.active i { color: #07526c; }
.docs-preview-tree small { color: #597584; font: 700 8px/1 Arial, sans-serif; }
.docs-preview-tree span.active small { color: #1d596e; }
.docs-page-kicker { display: inline-flex; align-items: center; gap: 10px; color: #4bdcff; font: 800 11px/1 Arial, sans-serif; letter-spacing: .18em; }
.docs-page-kicker::before { width: 28px; height: 2px; content: ""; background: #4bdcff; box-shadow: 0 0 13px rgba(75, 220, 255, .58); }
.docs-page-hero h1 { margin: 14px 0 11px; color: #f1f8fc; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.14; letter-spacing: -.04em; }
.docs-page-hero p { max-width: 760px; margin: 0; color: #9db0bc; font-size: 16px; line-height: 1.75; }
.docs-page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.docs-page-actions a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid rgba(166, 211, 232, .24); border-radius: 9px; color: #d5e3ea; background: rgba(7, 20, 31, .56); font-size: 14px; font-weight: 700; text-decoration: none; backdrop-filter: blur(8px); }
.docs-page-actions a.primary { color: #03101a; border-color: #4bdcff; background: #4bdcff; }
.docs-page-actions a:hover { border-color: rgba(75, 220, 255, .58); color: #4bdcff; }
.docs-page-actions a.primary:hover { color: #03101a; background: #87ecff; }

.docs-app { position: relative; padding: 30px 0 68px; scroll-margin-top: 82px; background: radial-gradient(circle at 18% 0%, rgba(48, 164, 255, .09), transparent 32%), #050b13; }
.docs-app-shell { width: min(1500px, calc(100% - 36px)); margin: 0 auto; }

.docs-app-toolbar { min-height: 84px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; padding: 13px 20px; border: 1px solid rgba(145, 196, 227, .17); border-bottom: 0; border-radius: 15px 15px 0 0; background: #091521; box-shadow: 0 18px 55px rgba(0, 0, 0, .24); }
.docs-title { min-width: 0; display: flex; align-items: center; gap: 14px; }
.docs-title-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border: 1px solid rgba(75, 220, 255, .28); border-radius: 12px; color: #4bdcff; background: rgba(75, 220, 255, .08); font-size: 19px; }
.docs-title > div { min-width: 0; }
.docs-title small { display: block; overflow: hidden; color: #4bdcff; font: 800 10px/1 Arial, sans-serif; letter-spacing: .14em; white-space: nowrap; text-overflow: ellipsis; }
.docs-title h2 { margin: 6px 0 2px; color: #edf8ff; font-size: 20px; line-height: 1.1; letter-spacing: -.025em; }
.docs-title p { margin: 0; color: #7f95a4; font-size: 12px; }


.docs-layout { position: relative; height: clamp(680px, calc(100vh - 175px), 940px); display: grid; grid-template-columns: 350px minmax(0, 1fr); overflow: hidden; border: 1px solid rgba(145, 196, 227, .17); border-radius: 0 0 15px 15px; background: #f4f6f8; box-shadow: 0 26px 80px rgba(0, 0, 0, .34); }
.docs-sidebar { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid rgba(145, 196, 227, .18); color: #bdd0dc; background: #0a1724; }
.docs-sidebar-head { min-height: 64px; flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid rgba(145, 196, 227, .13); background: #0d1c2b; }
.docs-directory-button { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 8px; border: 0; border-radius: 7px; color: #e6f2f9; background: transparent; white-space: nowrap; }
.docs-directory-button i { color: #4bdcff; }
.docs-directory-button strong { font-size: 13px; }
.docs-directory-button:hover, .docs-directory-button:focus-visible { color: #4bdcff; background: rgba(75, 220, 255, .08); outline: none; }
.docs-sidebar-search { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.docs-sidebar-search input { min-width: 0; height: 38px; padding: 0 10px; border: 1px solid rgba(145, 196, 227, .2); border-radius: 7px; outline: none; color: #eaf6fc; background: #091724; font-size: 12px; }
.docs-sidebar-search input::placeholder { color: #69808f; }
.docs-sidebar-search input:focus { border-color: rgba(75, 220, 255, .62); box-shadow: 0 0 0 2px rgba(75, 220, 255, .08); }
.docs-sidebar-search button { height: 38px; padding: 0 11px; border: 1px solid rgba(75, 220, 255, .36); border-radius: 7px; color: #052033; background: #4bdcff; font-size: 12px; font-weight: 800; }
.docs-sidebar-search button:hover { background: #81eaff; }
.docs-sidebar-search button:disabled { cursor: wait; opacity: .65; }

.docs-tree { flex: 1; overflow: auto; padding: 11px 9px 18px; scrollbar-color: #385063 #0a1724; scrollbar-width: thin; }
.docs-tree-loading { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 35px 10px; color: #718795; font-size: 13px; }
.docs-tree-list { list-style: none; margin: 0; padding: 0; }
.docs-tree-list .docs-tree-list { margin-left: 12px; padding-left: 11px; border-left: 1px solid rgba(123, 170, 198, .15); }
.docs-tree-item { margin: 1px 0; }
.docs-tree-folder > .docs-tree-list { display: none; }
.docs-tree-folder[data-expanded="true"] > .docs-tree-list { display: block; }
.docs-folder-button, .docs-page-link { width: 100%; min-height: 37px; display: flex; align-items: center; gap: 7px; padding: 7px 8px; border: 0; border-radius: 7px; color: #aebfca; background: transparent; text-align: left; text-decoration: none; font-size: 14px; line-height: 1.4; }
.docs-folder-button { color: #d5e3eb; font-weight: 700; }
.docs-folder-button:hover, .docs-page-link:hover { color: #fff; background: rgba(75, 220, 255, .075); }
.docs-folder-arrow { width: 14px; flex: none; color: #6f8796; text-align: center; transition: transform .16s ease; }
.docs-tree-folder[data-expanded="true"] > .docs-folder-button .docs-folder-arrow { transform: rotate(90deg); }
.docs-folder-icon { width: 15px; flex: none; color: #d9ad5b; text-align: center; }
.docs-page-icon { width: 15px; flex: none; color: #64899f; text-align: center; font-size: 11px; }
.docs-tree-label { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.docs-page-link.active { color: #06121c; background: linear-gradient(135deg, #4bdcff, #87edff); font-weight: 800; box-shadow: 0 7px 22px rgba(44, 190, 255, .16); }
.docs-page-link.active .docs-page-icon { color: #07526c; }
.docs-search-link { min-height: 55px; align-items: flex-start; }
.docs-search-copy { min-width: 0; display: block; }
.docs-search-copy strong { display: block; overflow: hidden; color: inherit; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.docs-search-copy small { display: -webkit-box; overflow: hidden; margin-top: 3px; color: #708797; font-size: 11px; font-weight: 400; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.docs-page-link.active .docs-search-copy small { color: #1d596e; }
.docs-tree-empty { padding: 34px 13px; color: #8499a7; text-align: center; font-size: 13px; line-height: 1.7; }

.docs-reader { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.docs-reader-bar { min-height: 52px; flex: none; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 0 18px; border-bottom: 1px solid #dbe3e9; color: #7b8e9b; background: #f7f9fb; font-size: 13px; }
.docs-reader-bar > span { overflow: hidden; color: #30495b; font-weight: 800; white-space: nowrap; text-align: center; text-overflow: ellipsis; }
.docs-reader-bar a, .docs-reader-bar button { border: 0; color: #607887; background: transparent; font: inherit; font-weight: 700; text-decoration: none; }
.docs-reader-bar a:hover, .docs-reader-bar button:hover { color: #087aa6; }
.docs-reader-bar a i { margin-left: 5px; }
.docs-mobile-tree { display: none; }
#docs-frame { width: 100%; height: 100%; flex: 1; display: block; border: 0; background: #f4f6f8; }
#docs-catalog-source { display: none; }
.docs-tree-backdrop { display: none; }

@media (max-width: 1100px) {
    .docs-layout { grid-template-columns: 320px minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .docs-page-hero, .docs-page-hero-content { min-height: 230px; }
    .docs-page-hero-content { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; padding: 36px 0 40px; }
    .docs-page-preview { padding: 12px; }
    .docs-app { padding-top: 14px; }
    .docs-app-shell { width: min(100% - 24px, 1500px); }
    .docs-title-icon { display: none; }
    .docs-layout { height: max(650px, calc(100vh - 154px)); grid-template-columns: 1fr; }
    .docs-sidebar { position: absolute; z-index: 50; inset: 0 auto 0 0; width: min(360px, 88vw); transform: translateX(-102%); box-shadow: 24px 0 55px rgba(0,0,0,.36); transition: transform .2s ease; }
    .docs-layout.sidebar-open .docs-sidebar { transform: translateX(0); }
    .docs-tree-backdrop { position: absolute; z-index: 49; inset: 0; border: 0; background: rgba(2, 7, 12, .58); }
    .docs-layout.sidebar-open .docs-tree-backdrop { display: block; }
    .docs-mobile-tree { display: inline-flex; align-items: center; gap: 7px; }
}

@media (max-width: 680px) {
    .docs-page-hero, .docs-page-hero-content { min-height: 200px; }
    .docs-page-hero-content { display: flex; padding: 34px 0 38px; }
    .docs-page-preview { display: none; }
    .docs-page-hero-copy { max-width: 100%; }
    .docs-page-hero h1 { font-size: clamp(30px, 9vw, 36px); }
    .docs-page-hero p { font-size: 14.5px; }
    .docs-page-actions { margin-top: 18px; }
    .docs-page-actions a { min-height: 42px; font-size: 13px; }
    .docs-app-toolbar { padding: 13px; }
    .docs-title small, .docs-title p { display: none; }
    .docs-title h2 { margin: 0; font-size: 18px; }
    .docs-reader-bar { grid-template-columns: auto 1fr; gap: 9px; padding-inline: 12px; }
    .docs-layout { height: 72vh; min-height: 620px; }
}

@media (max-width: 460px) {
    .docs-page-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .docs-app-shell { width: calc(100% - 16px); }
    .docs-app-toolbar { border-radius: 11px 11px 0 0; }
    .docs-layout { border-radius: 0 0 11px 11px; }
}

@media (max-width: 360px) {
    .docs-page-actions { grid-template-columns: 1fr; }
}
