:root {
  --ink: #e8edf3;
  --muted: #96a4b5;
  --panel: #101923;
  --panel-2: #162330;
  --line: rgba(176, 196, 216, .13);
  --accent: #f4bb49;
  --page: #0b1118;
}

* { box-sizing: border-box; }
body { min-height: 100vh; background: var(--page); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: #84baff; }
a:hover { color: #bad7ff; }
.topbar { height: 70px; position: sticky; z-index: 1030; top: 0; display: flex; align-items: center; background: #101923; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); line-height: 1.05; min-width: 184px; }
.brand:hover { color: white; }
.brand-mark { width: 37px; height: 37px; border-radius: 11px; display: grid; place-items: center; color: #1b1d20; background: var(--accent); font-weight: 900; font-size: 20px; box-shadow: 0 4px 16px #f4bb4938; }
.brand strong { display: block; letter-spacing: .02em; font-size: 14px; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.top-search { display: flex; width: min(100%, 480px); gap: 8px; }
.top-search .form-control { color: var(--ink); background: #0b1118; border-color: var(--line); }
.top-search .form-control::placeholder { color: #758397; }
.top-search .form-control:focus { border-color: #d8a33f; box-shadow: 0 0 0 .2rem #d8a33f2b; }
.top-search .btn { flex: 0 0 auto; font-weight: 700; }
.app-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: calc(100vh - 70px); }
.sidebar { position: sticky; top: 70px; height: calc(100vh - 70px); overflow: hidden; padding: 23px 12px 12px; background: #0f1720; border-right: 1px solid var(--line); }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 14px; color: #d5dee8; font-weight: 750; letter-spacing: .02em; font-size: 13px; }
.sidebar-heading span { padding: 3px 8px; border-radius: 20px; color: #abb8c7; background: #202d39; font-size: 11px; }
.page-nav { overflow-y: auto; flex: 1; padding: 0 2px; scrollbar-color: #344351 transparent; scrollbar-width: thin; }
.page-link { display: flex; flex-direction: column; gap: 2px; margin: 2px 0; padding: 9px 11px; border-radius: 8px; color: #c4d0dc; text-decoration: none; line-height: 1.25; font-size: 13px; }
.page-link:hover { color: white; background: #1a2734; }
.page-link.active { color: #fff; background: #263442; box-shadow: inset 3px 0 var(--accent); }
.page-link small { color: #8292a5; font-size: 10px; overflow-wrap: anywhere; }
.page-link .search-snippet { margin-top: 4px; color: #9baaba; font-size: 11px; line-height: 1.4; }
.page-nav .page-link small { display: none; }
.nav-section-title { padding: 8px 10px 6px; color: var(--accent); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.empty-search { padding: 10px; color: var(--muted); font-size: 13px; }
.nav-reset { display: inline-block; padding: 10px; color: var(--accent); font-size: 12px; }
.sidebar-foot { display: grid; grid-template-columns: 10px 1fr; gap: 3px 8px; align-items: center; padding: 14px 10px 5px; border-top: 1px solid var(--line); color: #9eacbb; font-size: 11px; }
.sidebar-foot a { grid-column: 2; color: #8bbdff; text-decoration: none; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #73d49a; box-shadow: 0 0 9px #73d49a80; }
.reading-area { min-width: 0; width: min(100%, 1440px); margin: 0 auto; padding: 39px clamp(18px, 4vw, 64px) 35px; }
.article-head { padding-bottom: 20px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 14px; color: #90a0b1; font-size: 12px; overflow-wrap: anywhere; }
.breadcrumbs a { text-decoration: none; }
.breadcrumb-home { display: inline-grid; place-items: center; color: #d5dee8; }
.breadcrumb-home svg { display: block; width: 14px; height: 14px; }
.breadcrumb-separator { color: #637386; }
.breadcrumb-part { color: #91a2b4; }
.breadcrumb-part:hover, .breadcrumb-current { color: #edf2f7; }
.article-head h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); font-weight: 790; letter-spacing: -.035em; line-height: 1.13; }
.article-description { max-width: 78ch; margin: 0; color: #aebccc; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.file-pill { display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid #8da3b73d; border-radius: 5px; color: #d6e3ef; background: #1d2a37; font-size: 9px; font-weight: 800; letter-spacing: .07em; }
.wiki-content { min-width: 0; color: #dce4ec; font-size: 16px; line-height: 1.72; overflow-wrap: anywhere; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(26px, 4vw, 52px); align-items: start; }
.page-sidebar { position: sticky; top: 94px; display: grid; gap: 13px; }
.info-card { padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #111b25; }
.info-card h2 { margin: 0 0 9px; color: #e8edf3; font-size: 12px; font-weight: 750; letter-spacing: .03em; }
.info-card p { margin: 0; color: #aebccc; font-size: 12px; line-height: 1.55; }
.info-card dl { display: grid; gap: 11px; margin: 0; }
.info-card dl > div { display: grid; gap: 3px; }
.info-card dt { color: #8393a5; font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.info-card dd { margin: 0; color: #d2dbe5; font-size: 12px; overflow-wrap: anywhere; }
.source-path { color: #9bc7ff !important; }
.source-shortcut a { display: inline-block; margin-top: 10px; color: #9bc7ff; font-size: 11px; text-decoration: none; }
.source-shortcut a:hover { text-decoration: underline; }
.wiki-content > :first-child { margin-top: 0; }
.wiki-content h1, .wiki-content h2, .wiki-content h3, .wiki-content h4, .wiki-content h5 { margin: 1.8em 0 .65em; color: #f5f7fa; font-weight: 760; line-height: 1.24; letter-spacing: -.018em; }
.wiki-content h1 { font-size: clamp(26px, 3.5vw, 34px); }
.wiki-content h2 { font-size: clamp(22px, 3vw, 28px); }
.wiki-content h3 { font-size: 22px; }
.wiki-content h4 { font-size: 19px; }
.wiki-content p, .wiki-content ul, .wiki-content ol, .wiki-content blockquote, .wiki-content table, .wiki-content pre { margin-bottom: 1.15em; }
.wiki-content ul, .wiki-content ol { padding-left: 1.6em; }
.wiki-content li + li { margin-top: .35em; }
.wiki-content img { display: block; width: 100%; max-width: 100%; border-radius: 9px; cursor: zoom-in; }
.wiki-content figure { max-width: 100%; margin: 1.3rem 0; }
.wiki-content figure.image { display: inline-block; vertical-align: top; }
.wiki-content figure.image img { width: 100%; }
.wiki-content figcaption { color: var(--muted); font-size: 13px; }
.wiki-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.wiki-content th, .wiki-content td { padding: 8px 11px; border: 1px solid #455362; }
.wiki-content th { color: white; background: #1b2936; }
.wiki-content blockquote { padding: 10px 16px; border-left: 3px solid var(--accent); color: #bac7d4; background: #141e28; }
.wiki-content blockquote > :last-child { margin-bottom: 0; }
.wiki-content pre { padding: 16px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; background: #070c11; color: #d6e7f7; font-size: 13px; }
.wiki-content code { color: #ffd078; }
.wiki-content pre code { color: inherit; }
.wiki-content hr { margin: 2rem 0; border-color: #42505e; }
.wiki-content iframe, .wiki-content video { max-width: 100%; }
.wiki-content .image_resized { max-width: 100%; }
.search-banner { padding: 11px 14px; margin: -12px 0 26px; border: 1px solid #d8a33f55; border-radius: 8px; background: #d8a33f12; color: #dbe3ec; font-size: 13px; }
.search-banner span { color: var(--accent); font-weight: 700; }
.search-banner strong { float: right; color: #aebccc; font-weight: 500; }
.search-results-page > h1 { margin: 0 0 7px; font-size: clamp(27px, 4vw, 36px); font-weight: 780; letter-spacing: -.035em; }
.search-results-page > p { margin: 0 0 21px; color: #9aa9b9; font-size: 13px; }
.search-result { display: block; padding: 17px 18px; margin-bottom: 11px; border: 1px solid var(--line); border-radius: 10px; background: #101923; color: inherit; text-decoration: none; }
.search-result:hover { border-color: #d8a33f75; background: #14202b; color: inherit; }
.search-result-category { display: inline-block; margin-bottom: 6px; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.search-result h2 { margin: 0 0 3px; color: #eef2f6; font-size: 18px; font-weight: 700; }
.search-result > small { color: #8292a5; font-size: 10px; }
.search-result p { margin: 9px 0 0; color: #aebccc; font-size: 13px; line-height: 1.55; }
.search-empty-state { padding: 20px; border: 1px dashed #455362; border-radius: 10px; color: #aebccc; }
.source-card { margin-top: 52px; padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, #131e29, #101720); }
.source-card-title { display: flex; gap: 11px; align-items: center; margin-bottom: 15px; }
.source-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: #18202a; background: var(--accent); font-size: 18px; font-weight: 900; }
.source-card-title strong, .source-card-title small { display: block; }
.source-card-title strong { font-size: 14px; }
.source-card-title small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.source-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; }
.source-details > div { display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.detail-label { color: #8696a8; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.source-details a { color: #9bc7ff; text-decoration: none; }
.source-details a:hover { text-decoration: underline; }
.source-details code { color: var(--accent); overflow-wrap: anywhere; word-break: break-all; font-size: 10px; }
.credit-note { margin: 14px 0 0; color: #8998a9; font-size: 11px; line-height: 1.5; }
.not-found { padding: 70px 20px; text-align: center; }
.not-found-code { color: #32404e; font-size: clamp(70px, 15vw, 140px); font-weight: 900; line-height: 1; }
.not-found p { color: #9eacbb; }
.mobile-nav { color: var(--ink); background: #0f1720; }
.mobile-nav .offcanvas-header { border-bottom: 1px solid var(--line); }
.mobile-nav .offcanvas-title { font-size: 17px; font-weight: 750; }

@media (max-width: 991.98px) {
  .app-shell { display: block; }
  .reading-area { padding-top: 27px; }
  .wiki-content { font-size: 15px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .page-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-shortcut { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .topbar { height: 62px; }
  .topbar > .container-fluid { gap: 9px !important; }
  .brand { min-width: 0; }
  .brand-mark { width: 33px; height: 33px; }
  .top-search { width: auto; flex: 1; gap: 5px; }
  .top-search .form-control { min-width: 0; padding: 7px 9px; font-size: 12px; }
  .top-search .btn { padding: 7px 9px; font-size: 12px; }
  .reading-area { padding: 22px 16px 28px; }
  .breadcrumbs { margin-bottom: 14px; }
  .source-details { grid-template-columns: 1fr; }
  .page-sidebar { grid-template-columns: minmax(0, 1fr); }
  .source-shortcut { grid-column: auto; }
  .search-banner strong { float: none; display: block; margin-top: 3px; }
}
