.pdoc {
  --pdoc-accent: #4fea9f;
  --pdoc-accent-rgb: 79, 234, 159;
  --pdoc-gold: #f5b82e;
  --pdoc-text: #eceef5;
  --pdoc-soft: #c9cad6;
  --pdoc-muted: #8f91a6;
  --pdoc-line: rgba(255, 255, 255, .07);
  --pdoc-card: linear-gradient(1deg, #212129 30%, #292932 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 34px;
  color: var(--pdoc-text);
  font-family: inherit;
  line-height: 1.5;
}
.pdoc *, .pdoc *::before, .pdoc *::after { box-sizing: border-box; }
.pdoc [hidden] { display: none !important; }
.pdoc a { text-decoration: none; }
.pdoc button { font-family: inherit; }
.pdoc h1, .pdoc h2, .pdoc h3, .pdoc h4 { margin: 0; padding: 0; border: 0; background: none; text-transform: none; letter-spacing: normal; }
.pdoc p { margin: 0; }
@keyframes pdocIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pdoc-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; overflow: hidden; padding: 28px 30px; border-radius: 26px; border: 1px solid rgba(var(--pdoc-accent-rgb), .16); background: radial-gradient(55% 140% at 0 0, rgba(var(--pdoc-accent-rgb), .15), transparent 60%), radial-gradient(45% 120% at 100% 100%, rgba(90, 140, 255, .12), transparent 60%), linear-gradient(135deg, #1f2924 0%, #1f1f27 45%, #1b1b22 100%); box-shadow: 0 18px 44px rgba(5, 5, 9, .4), inset 0 1px 0 rgba(255, 255, 255, .05); animation: pdocIn .4s ease both; }
.pdoc-hero__glow { position: absolute; z-index: 0; inset: 0; background-image: radial-gradient(rgba(var(--pdoc-accent-rgb), .14) 1px, transparent 1.5px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 55%); mask-image: linear-gradient(115deg, #000 0%, transparent 55%); opacity: .6; pointer-events: none; }
.pdoc-hero__main { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 640px; min-width: 0; }
.pdoc-hero__eyebrow { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(var(--pdoc-accent-rgb), .12); border: 1px solid rgba(var(--pdoc-accent-rgb), .3); color: var(--pdoc-accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pdoc-hero__eyebrow i { font-size: 15px; }
.pdoc .pdoc-hero__title { color: #fff; font-size: 32px !important; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.pdoc .pdoc-hero__text { color: #b9bbc9; font-size: 14px; font-weight: 500; line-height: 1.6; }
.pdoc-hero__stats { position: relative; z-index: 1; display: flex; gap: 10px; }
.pdoc-hero__stats span { display: flex; flex-direction: column; gap: 2px; min-width: 120px; padding: 12px 16px; border-radius: 16px; background: rgba(16, 16, 22, .55); border: 1px solid rgba(255, 255, 255, .1); }
.pdoc-hero__stats b { color: #fff; font-size: 20px; font-weight: 800; line-height: 1.1; }
.pdoc-hero__stats small { color: var(--pdoc-muted); font-size: 11.5px; font-weight: 700; }

.pdoc-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.pdoc-side { position: sticky; top: 90px; min-width: 0; }
.pdoc-side__inner { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 22px; background: var(--pdoc-card); border: 1px solid var(--pdoc-line); box-shadow: 0 10px 30px rgba(9, 10, 16, .35); }
.pdoc-search { position: relative; display: flex; align-items: center; }
.pdoc-search i { position: absolute; left: 13px; color: var(--pdoc-muted); font-size: 18px; pointer-events: none; }
.pdoc .pdoc-search input { width: 100%; height: 44px; margin: 0; padding: 0 14px 0 40px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; background: rgba(0, 0, 0, .25); box-shadow: none; outline: none; color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 600; transition: border-color .2s ease, box-shadow .2s ease; }
.pdoc .pdoc-search input::placeholder { color: var(--pdoc-muted); }
.pdoc .pdoc-search input:focus { border-color: rgba(var(--pdoc-accent-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--pdoc-accent-rgb), .1); }

.pdoc-nav { display: flex; flex-direction: column; gap: 4px; }
.pdoc .pdoc-nav__item { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 15px; border: 1px solid transparent; color: var(--pdoc-text); transition: background .2s ease, border-color .2s ease; }
.pdoc .pdoc-nav__item:hover { background: rgba(255, 255, 255, .04); color: var(--pdoc-text); }
.pdoc .pdoc-nav__item.is-active { background: linear-gradient(135deg, rgba(var(--pdoc-accent-rgb), .14), rgba(var(--pdoc-accent-rgb), .03)); border-color: rgba(var(--pdoc-accent-rgb), .35); }
.pdoc .pdoc-nav__item.is-active::before { content: ''; position: absolute; top: 12px; bottom: 12px; left: -1px; width: 3px; border-radius: 0 3px 3px 0; background: var(--pdoc-accent); }
.pdoc-nav__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--pdoc-soft); font-size: 19px; transition: background .2s ease, color .2s ease; }
.pdoc-nav__item.is-active .pdoc-nav__icon { background: var(--pdoc-accent); color: #0d1a14; }
.pdoc-nav__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pdoc-nav__text b { overflow: hidden; color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.pdoc-nav__text small { overflow: hidden; color: var(--pdoc-muted); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.pdoc-nav__empty { padding: 16px; border-radius: 14px; border: 1.5px dashed rgba(255, 255, 255, .08); color: var(--pdoc-muted); font-size: 12.5px; font-weight: 700; text-align: center; }

.pdoc .pdoc-help { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 15px; background: rgba(90, 180, 255, .07); border: 1px solid rgba(90, 180, 255, .18); color: var(--pdoc-text); transition: border-color .2s ease; }
.pdoc .pdoc-help:hover { border-color: rgba(90, 180, 255, .45); color: var(--pdoc-text); }
.pdoc-help__icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(90, 180, 255, .15); color: #5ab4ff; font-size: 19px; }
.pdoc-help__text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.pdoc-help__text b { color: #fff; font-size: 13px; font-weight: 800; }
.pdoc-help__text small { color: var(--pdoc-muted); font-size: 11.5px; }
.pdoc-help > i { color: var(--pdoc-muted); font-size: 20px; }

.pdoc-doc { min-width: 0; padding: 28px 32px 30px; border-radius: 24px; background: var(--pdoc-card); border: 1px solid var(--pdoc-line); box-shadow: 0 10px 30px rgba(9, 10, 16, .35); animation: pdocIn .45s ease both; }
.pdoc-doc__head { display: flex; align-items: flex-start; gap: 16px; }
.pdoc-doc__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(135deg, #8cf7c4, var(--pdoc-accent)); color: #0d1a14; font-size: 28px; box-shadow: 0 12px 26px -12px rgba(var(--pdoc-accent-rgb), .9); }
.pdoc-doc__titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pdoc-doc__crumb { display: inline-flex; align-items: center; gap: 3px; color: var(--pdoc-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pdoc-doc__crumb i { font-size: 14px; }
.pdoc .pdoc-doc__title { color: #fff; font-size: 28px !important; font-weight: 800; line-height: 1.15; letter-spacing: -.015em; }
.pdoc .pdoc-doc__summary { color: #b9bbc9; font-size: 14px; font-weight: 500; }
.pdoc-doc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; padding: 0 0 18px; border-bottom: 1px solid var(--pdoc-line); }
.pdoc-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); color: var(--pdoc-soft); font-size: 12px; font-weight: 700; }
.pdoc-chip i { color: var(--pdoc-accent); font-size: 16px; }
.pdoc-doc__actions { display: inline-flex; gap: 6px; margin-left: auto; }
.pdoc .pdoc-act { display: inline-flex; align-items: center; gap: 6px; height: 34px; margin: 0; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 11px; background: rgba(255, 255, 255, .04); color: var(--pdoc-text); font-size: 12.5px; font-weight: 700; cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.pdoc .pdoc-act i { font-size: 17px; }
.pdoc .pdoc-act:hover { border-color: rgba(var(--pdoc-accent-rgb), .45); color: var(--pdoc-accent); }
.pdoc .pdoc-act.is-done { background: var(--pdoc-accent); border-color: var(--pdoc-accent); color: #0d1a14; }

.pdoc-toc { margin: 20px 0 0; padding: 4px 16px; border-radius: 16px; background: rgba(0, 0, 0, .2); border: 1px solid var(--pdoc-line); }
.pdoc-toc summary { display: flex; align-items: center; gap: 8px; padding: 10px 0; color: #fff; font-size: 13.5px; font-weight: 800; cursor: pointer; list-style: none; }
.pdoc-toc summary::-webkit-details-marker { display: none; }
.pdoc-toc summary i { color: var(--pdoc-accent); font-size: 18px; }
.pdoc-toc summary span { margin-left: auto; padding: 2px 8px; border-radius: 7px; background: rgba(255, 255, 255, .06); color: var(--pdoc-muted); font-size: 11px; }
.pdoc-toc summary::after { content: ''; width: 8px; height: 8px; margin-left: 4px; border-right: 2px solid var(--pdoc-muted); border-bottom: 2px solid var(--pdoc-muted); transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.pdoc-toc[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.pdoc-toc__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; margin: 0; padding: 0 0 12px; list-style: none; counter-reset: none; }
.pdoc-toc__item a { display: block; overflow: hidden; padding: 6px 10px; border-radius: 9px; color: var(--pdoc-soft); font-size: 13px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; transition: background .15s ease, color .15s ease; }
.pdoc-toc__item a:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.pdoc-toc__item a.is-current { background: rgba(var(--pdoc-accent-rgb), .1); color: var(--pdoc-accent); }
.pdoc-toc__item--3 a { padding-left: 24px; font-size: 12.5px; color: var(--pdoc-muted); }

.pdoc-prose { margin-top: 22px; color: #d6d7e1; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.pdoc .pdoc-prose > *:first-child { margin-top: 0; }
.pdoc .pdoc-prose p { margin: 0 0 14px; }
.pdoc .pdoc-prose h2 { position: relative; margin: 34px 0 14px; padding: 0 0 0 16px; color: #fff; font-size: 21px !important; font-weight: 800; line-height: 1.3; scroll-margin-top: 100px; }
.pdoc .pdoc-prose h2::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 0; width: 4px; border-radius: 4px; background: linear-gradient(180deg, #8cf7c4, var(--pdoc-accent)); }
.pdoc .pdoc-prose h3 { margin: 24px 0 10px; color: #fff; font-size: 17px !important; font-weight: 800; line-height: 1.35; scroll-margin-top: 100px; }
.pdoc .pdoc-prose h4 { margin: 20px 0 8px; color: #fff; font-size: 15px !important; font-weight: 800; }
.pdoc .pdoc-prose b, .pdoc .pdoc-prose strong { color: #fff; font-weight: 700; }
.pdoc .pdoc-prose a { color: var(--pdoc-accent); border-bottom: 1px solid rgba(var(--pdoc-accent-rgb), .35); transition: border-color .15s ease; }
.pdoc .pdoc-prose a:hover { border-bottom-color: var(--pdoc-accent); }
.pdoc .pdoc-prose ul, .pdoc .pdoc-prose ol { margin: 0 0 16px; padding: 0; list-style: none; }
.pdoc .pdoc-prose ul li, .pdoc .pdoc-prose ol li { position: relative; margin: 0 0 8px; padding: 0 0 0 26px; }
.pdoc .pdoc-prose ul li::before { content: ''; position: absolute; top: .72em; left: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--pdoc-accent); box-shadow: 0 0 0 3px rgba(var(--pdoc-accent-rgb), .15); }
.pdoc .pdoc-prose ol { counter-reset: pdoc-ol; }
.pdoc .pdoc-prose ol li { counter-increment: pdoc-ol; padding-left: 34px; }
.pdoc .pdoc-prose ol li::before { content: counter(pdoc-ol); position: absolute; top: .2em; left: 0; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(var(--pdoc-accent-rgb), .14); color: var(--pdoc-accent); font-size: 11.5px; font-weight: 800; line-height: 1; }
.pdoc .pdoc-prose blockquote { margin: 0 0 16px; padding: 14px 18px; border-left: 4px solid var(--pdoc-gold); border-radius: 0 14px 14px 0; background: rgba(245, 184, 46, .07); color: #e7e8f0; }
.pdoc .pdoc-prose table { width: 100%; margin: 0 0 16px; border-collapse: collapse; font-size: 14px; }
.pdoc .pdoc-prose th, .pdoc .pdoc-prose td { padding: 10px 12px; border: 1px solid var(--pdoc-line); text-align: left; }
.pdoc .pdoc-prose th { background: rgba(255, 255, 255, .04); color: #fff; font-weight: 800; }
.pdoc .pdoc-prose img { max-width: 100%; height: auto; border-radius: 14px; }
.pdoc .pdoc-prose hr { margin: 26px 0; border: 0; border-top: 1px solid var(--pdoc-line); }
.pdoc .pdoc-prose code { padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: #fff; font-size: 13px; }
.pdoc .pdoc-prose h2.is-flash, .pdoc .pdoc-prose h3.is-flash { animation: pdocFlash 1.2s ease; }
@keyframes pdocFlash { 30% { color: var(--pdoc-accent); } }

.pdoc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--pdoc-line); }
.pdoc .pdoc-pager__link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--pdoc-line); color: var(--pdoc-text); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.pdoc .pdoc-pager__link:hover { border-color: rgba(var(--pdoc-accent-rgb), .45); background: rgba(var(--pdoc-accent-rgb), .05); color: var(--pdoc-text); transform: translateY(-2px); }
.pdoc-pager__link i { flex: 0 0 auto; color: var(--pdoc-accent); font-size: 22px; }
.pdoc-pager__link span { display: flex; flex-direction: column; min-width: 0; }
.pdoc-pager__link small { color: var(--pdoc-muted); font-size: 11.5px; font-weight: 700; }
.pdoc-pager__link b { overflow: hidden; color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.pdoc .pdoc-pager__link--next { justify-content: flex-end; text-align: right; }
.pdoc-pager__link--next span { align-items: flex-end; }

@media (max-width: 991px) {
  .pdoc-layout { grid-template-columns: minmax(0, 1fr); }
  .pdoc-side { position: static; }
  .pdoc-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .pdoc-nav::-webkit-scrollbar { display: none; }
  .pdoc .pdoc-nav__item { flex: 0 0 auto; max-width: 260px; background: rgba(255, 255, 255, .03); }
  .pdoc-nav__text small { display: none; }
  .pdoc .pdoc-nav__item.is-active::before { display: none; }
  .pdoc-help { display: none !important; }
}
@media (max-width: 640px) {
  .pdoc { gap: 14px; }
  .pdoc-hero { padding: 22px 18px; border-radius: 22px; }
  .pdoc .pdoc-hero__title { font-size: 25px !important; }
  .pdoc-hero__stats { width: 100%; }
  .pdoc-hero__stats span { flex: 1 1 0; min-width: 0; }
  .pdoc-doc { padding: 20px 16px 22px; border-radius: 20px; }
  .pdoc-doc__icon { width: 48px; height: 48px; border-radius: 15px; font-size: 24px; }
  .pdoc .pdoc-doc__title { font-size: 22px !important; }
  .pdoc-doc__actions { margin-left: 0; }
  .pdoc .pdoc-act span { display: none; }
  .pdoc-toc__list { grid-template-columns: minmax(0, 1fr); }
  .pdoc-prose { font-size: 14.5px; }
  .pdoc .pdoc-prose h2 { font-size: 19px !important; }
  .pdoc-pager { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .pdoc-hero, .pdoc-side, .pdoc-doc__actions, .pdoc-toc, .pdoc-pager { display: none !important; }
  .pdoc-layout { display: block; }
  .pdoc-doc { padding: 0; border: 0; background: none; box-shadow: none; }
  .pdoc .pdoc-doc__title, .pdoc .pdoc-prose, .pdoc .pdoc-prose h2, .pdoc .pdoc-prose h3, .pdoc .pdoc-prose b { color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  .pdoc *, .pdoc *::before, .pdoc *::after { animation: none !important; transition: none !important; }
}
