:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --bg: #0a0d0a;
  --panel: #101510;
  --panel-up: #151c15;
  --line: #29342a;
  --text: #f1f5ef;
  --muted: #afbaad;
  --subtle: #82907f;
  --green: #a4ff53;
  --top: 112px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); scroll-padding-top: calc(var(--top) + 24px); }
body { margin: 0; min-width: 320px; font-size: 16px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { color: #16210f; background: var(--green); }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 12; inset: 9px auto auto 10px; transform: translateY(-150%); background: var(--green); color: #13200d; padding: 9px 15px; border-radius: 6px; }
.skip-link:focus { transform: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: #0b100cee;
  backdrop-filter: blur(16px);
}
.top-row, .section-tabs { max-width: 1500px; margin: auto; padding: 0 34px; }
.top-row { height: 65px; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(210px, 470px) minmax(220px, 1fr); gap: 26px; align-items: center; }
.brand-row, .brand, .top-links, .search-trigger, .section-tabs { display: flex; align-items: center; }
.brand-row { min-width: 0; gap: 9px; }
.brand { width: fit-content; gap: 9px; font-size: 17px; font-weight: 700; white-space: nowrap; }
.brand img { display: block; object-fit: contain; }
.brand-sub { color: #a3b29d; font-weight: 500; }
.top-links { justify-content: flex-end; gap: 17px; white-space: nowrap; font-size: 14px; color: #b7c0b3; }
.top-links a:hover { color: var(--green); }
.top-links .product-link { border: 1px solid #364433; border-radius: 7px; padding: 7px 12px; color: #dbefcc; }
.search-trigger {
  width: 100%;
  min-height: 40px;
  gap: 10px;
  padding: 0 10px 0 13px;
  border: 1px solid #334034;
  border-radius: 8px;
  background: #111711;
  color: #a5b1a3;
  font-size: 14px;
  text-align: left;
}
.search-trigger:hover { border-color: #5b6e55; color: var(--text); }
.search-trigger span { flex: 1; }
.search-trigger svg, .search-head svg, .icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; flex: none; }
kbd, .key-button { min-height: 22px; border: 1px solid #334034; border-radius: 4px; background: #1a2019; color: #a9b4a5; font: 12px ui-monospace, Consolas, monospace; padding: 3px 5px; white-space: nowrap; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #324232; border-radius: 7px; background: #141b14; }
.menu-toggle { display: none; }
.section-tabs { gap: clamp(14px, 2.5vw, 35px); min-height: 46px; overflow: auto; scrollbar-width: none; }
.section-tabs::-webkit-scrollbar { display: none; }
.section-tabs a { position: relative; display: flex; min-height: 46px; align-items: center; color: #a9b5a6; font-size: 14px; white-space: nowrap; }
.section-tabs a:hover { color: var(--text); }
.section-tabs a[aria-current="true"] { color: var(--green); }
.section-tabs a[aria-current="true"]::after { content: ""; position: absolute; height: 2px; background: var(--green); border-radius: 2px; inset: auto 0 0; }
.reading-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: #a4ff5366; transform: scaleX(0); transform-origin: left; }

.layout {
  max-width: 1500px;
  margin: auto;
  padding: 0 34px;
  display: grid;
  grid-template-columns: minmax(190px, 244px) minmax(0, 1fr) minmax(155px, 207px);
  gap: clamp(24px, 4vw, 59px);
  align-items: start;
}
.sidebar, .toc { position: sticky; top: calc(var(--top) + 1px); height: calc(100dvh - var(--top) - 1px); }
.sidebar { min-width: 0; display: flex; flex-direction: column; padding: 29px 16px 20px 0; border-right: 1px solid #252e25; }
.sidebar-inner { min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #445241 transparent; padding: 0 5px 12px 0; }
.sidebar-name { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; padding: 2px 6px 22px; }
.sidebar-name strong { font-size: 17px; }
.sidebar-name span { font-size: 13px; color: var(--subtle); }
.nav-group { margin-bottom: 13px; }
.nav-group summary { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 33px; padding: 4px 6px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 650; color: #dbe3d9; border-radius: 6px; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: ""; flex: none; width: 6px; height: 6px; margin-right: 3px; border-right: 1px solid #95a492; border-bottom: 1px solid #95a492; transform: rotate(-45deg); transition: transform .2s ease; }
.nav-group[open] summary::after { transform: rotate(45deg) translateY(-2px); }
.nav-group summary:hover { background: #151d15; }
.nav-items { margin: 5px 0 0 5px; padding: 1px 0 1px 8px; border-left: 1px solid #344134; }
.nav-link { display: block; margin: 2px 0; padding: 6px 8px; color: #adbaab; font-size: 14px; line-height: 1.48; border-radius: 5px; }
.nav-link:hover { color: var(--text); background: #111911; }
.nav-link[aria-current="page"] { color: var(--green); background: #202d18; box-shadow: inset 2px 0 var(--green); }
.sidebar-resource { display: grid; flex: none; gap: 5px; margin: auto 4px 0 0; padding: 11px 10px; border: 1px solid #334532; background: #121a12; border-radius: 8px; font-size: 13px; }
.sidebar-resource:hover { border-color: #829b70; }
.sidebar-resource span { display: flex; gap: 5px; align-items: baseline; justify-content: space-between; }
.sidebar-resource b { font: 12px ui-monospace, Consolas, monospace; color: #b7f789; }
.sidebar-resource small { color: #a0ac9d; font-size: 12px; }
.sidebar-backdrop { display: none; }

main { min-width: 0; max-width: 920px; padding: 41px 0 32px; outline: none; }
.article-body { animation: article-enter 170ms ease-out both; }
@keyframes article-enter { from { opacity: .88; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.article-head { position: relative; isolation: isolate; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.is-overview .article-head { padding: 26px 29px 30px; border-radius: 13px; border: 1px solid #334333; background: radial-gradient(ellipse at right top, #a4ff531a, transparent 62%), linear-gradient(140deg,#121b13,#101510 65%); }
.is-overview .article-head::before {
  position: absolute; content: ""; inset: 0; z-index: -1; border-radius: inherit; opacity: .43;
  background: repeating-linear-gradient(90deg,#667d631c 0 1px,transparent 1px 44px),
    repeating-linear-gradient(0deg,#667d631c 0 1px,transparent 1px 44px);
  mask-image: linear-gradient(to left,#000,transparent 60%);
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: #a7b8a3; font-size: 14px; margin-bottom: 15px; }
.breadcrumb a:hover { color: var(--green); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(34px, 4.2vw, 57px); line-height: 1.1; letter-spacing: -.045em; overflow-wrap: anywhere; }
.lead { max-width: 690px; margin-top: 17px; color: #c5d0c2; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; margin-top: 18px; font-size: 13px; color: #93a18f; }
.doc-stage { border: 1px solid #41563a; background: #182419; border-radius: 6px; padding: 4px 7px; color: #bcf398; }
.directory-cards, .cards { display: grid; gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.directory-cards { margin-top: 19px; }
.directory-cards a, .card { display: grid; gap: 7px; min-width: 0; border: 1px solid #2c392e; padding: 15px 16px; background: #111812; border-radius: 9px; transition: border-color .2s, background .2s, transform .2s; }
.directory-cards a:hover, .card:hover { border-color: #667f59; background: #152016; transform: translateY(-2px); }
.directory-cards svg { width: 21px; height: 21px; stroke: var(--green); stroke-width: 1.4; stroke-linecap: round; fill: none; }
.directory-cards span, .card p { font-size: 14px; color: #b1beaf; line-height: 1.55; }
.doc-section { padding: 32px 0 0; overflow-wrap: anywhere; }
.doc-section h2 { color: #eef4ed; font-size: clamp(21px, 2vw, 28px); line-height: 1.3; letter-spacing: -.018em; margin-bottom: 15px; }
.doc-section p, .doc-section :is(ul, ol), .doc-section > a, .doc-section > div:not(.flow), .doc-section > :is(figure,aside) { margin-bottom: 14px; }
.doc-section p, .doc-section li { color: #c3cec1; line-height: 1.78; }
.doc-section :is(ul,ol) { margin-top: 0; padding-left: 24px; }
.doc-section li + li { margin-top: 6px; }
.doc-section li::marker { color: #9bc882; }
.doc-section a:not(.anchor-link,.card) { color: #b8f794; text-decoration: underline; text-decoration-color: #658954; text-underline-offset: 4px; }
.doc-section a:hover { color: var(--green); }
.doc-section .anchor-link { margin-left: 7px; opacity: 0; font-size: 15px; color: var(--green); }
.doc-section h2:hover .anchor-link, .anchor-link:focus-visible { opacity: 1; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.doc-section :not(pre) > code { padding: 2px 5px; border: 1px solid #354135; background: #171f17; border-radius: 4px; color: #cfedbe; font-size: .9em; }
.code-frame { overflow: hidden; border: 1px solid #303d30; border-radius: 8px; background: #101610; }
.code-toolbar { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 12px; border-bottom: 1px solid #2d392d; color: #a1b19e; background: #151d15; font-size: 13px; }
.code-toolbar button { padding: 4px 7px; border: 0; border-radius: 5px; color: #c5e4b3; background: transparent; font-size: 13px; }
.code-toolbar button:hover { background: #233423; color: #deffca; }
pre.code { margin: 0; overflow: auto; padding: 15px; color: #d1e8c8; font-size: 14px; line-height: 1.65; }
.table-wrap { width: 100%; overflow: auto; border: 1px solid #2b382c; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 1.55; }
th, td { min-width: 95px; padding: 10px 12px; border-bottom: 1px solid #263328; vertical-align: top; }
th { background: #172117; color: #ebf5e5; }
td { color: #bbc7b9; }
tr:last-child td { border-bottom: 0; }
.notice, .article-note { display: grid; gap: 6px; padding: 13px 15px; border: 1px solid #354d31; border-left: 3px solid #a4ff53; border-radius: 7px; background: #142015; color: #bfceb9; line-height: 1.65; }
.notice strong, .article-note strong { color: #d7efc8; }
.notice p:last-child, .article-note p:last-child { margin: 0; }
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 9px; margin: 18px 0; }
.flow div { display: grid; align-items: center; flex: 1 1 100px; min-width: 78px; padding: 9px 8px; background: #142014; border: 1px solid #3b5039; color: #d9edce; font-size: 13px; text-align: center; line-height: 1.45; border-radius: 6px; }
.flow b { align-self: center; color: var(--green); }
.doc-figure { margin: 15px 0; border: 1px solid #2e3d2f; border-radius: 9px; overflow: hidden; background: #101610; }
.doc-figure img { display: block; width: 100%; height: auto; }
.doc-figure figcaption { padding: 10px 13px; background: #111a12; color: #adbaaa; font-size: 14px; line-height: 1.6; }

.toc { padding-top: 43px; padding-bottom: 20px; overflow: auto; scrollbar-width: thin; }
.toc-title { display: block; font-size: 14px; margin: 0 0 12px; }
.toc nav { display: grid; gap: 1px; border-left: 1px solid #314333; }
.toc nav a { padding: 5px 9px 5px 10px; color: #a3b09f; font-size: 13px; line-height: 1.5; }
.toc nav a:hover { color: var(--text); }
.toc nav a[aria-current="location"] { color: var(--green); box-shadow: inset 2px 0 var(--green); }
.back-top { display: inline-block; margin: 15px 0 20px; font-size: 13px; color: #99aa96; }
.back-top:hover { color: var(--green); }
.page-pagination { margin-top: 40px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.page-pagination a { display: grid; gap: 5px; padding: 13px; border: 1px solid #303d30; background: #111711; border-radius: 7px; }
.page-pagination a:hover { border-color: #6d8a62; }
.page-pagination a:last-child { text-align: right; }
.page-pagination small { color: #92a58f; font-size: 13px; }
.page-pagination strong { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.doc-footer { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid #29372a; }
.footer-links, .language-switch { display: flex; flex-wrap: wrap; gap: 8px 15px; color: #a9b7a8; font-size: 13px; }
.footer-links a:hover, .language-switch a:hover { color: var(--green); }
.language-switch { gap: 4px; }
.language-switch a { padding: 5px 7px; border: 1px solid transparent; border-radius: 5px; }
.language-switch a[aria-current="true"] { color: var(--green); border-color: #3c5237; background: #182318; }
.filing-info { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; font-size: 13px; color: #a3b7a1; }

dialog { max-width: calc(100% - 24px); width: 620px; margin: min(16vh,110px) auto auto; padding: 0; border: 1px solid #415442; border-radius: 13px; background: #101711; color: var(--text); box-shadow: 0 22px 70px #0009; }
dialog[open] { animation: article-enter .18s ease-out both; }
dialog::backdrop { background: #030703b8; backdrop-filter: blur(4px); }
.search-head { display: flex; align-items: center; gap: 11px; padding: 13px; border-bottom: 1px solid #324334; }
.search-head svg { color: #a7bba3; }
.search-head input { flex: 1; min-width: 0; border: 0; padding: 7px 2px; background: transparent; }
.search-head input:focus { outline: 0; }
#search-results { max-height: min(48dvh, 410px); overflow: auto; padding: 8px; }
.result { display: grid; gap: 4px; margin: 2px 0; border: 1px solid transparent; border-radius: 7px; padding: 9px 10px; }
.result:hover, .result:focus-visible { border-color: #456344; background: #192719; outline: none; }
.result strong { color: #daefcf; font-size: 15px; }
.result small { color: #9cac98; font-size: 12px; }
.result span, .search-empty { color: #c0ccbc; font-size: 14px; line-height: 1.5; }
.search-empty { padding: 20px 12px; }
.search-hint { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 13px; border-top: 1px solid #2d3a30; color: #9baa99; font-size: 12px; }

.nav-group[open] > .nav-items { animation: doc-navigation-in 160ms ease-out both; }
@keyframes doc-navigation-in { from { opacity: .72; transform: translateY(-3px); } }
.toc a, .nav-link, .section-tabs a, .result, .language-switch a, .page-pagination a {
  transition: background-color 150ms, border-color 150ms, color 150ms;
}
.result[data-keyboard-selected], .result:focus-visible { border-color: #6b9e5c; background: #1b2b19; }
.code-toolbar button { min-width: 90px; transition: color 150ms, background-color 150ms; }
.code-toolbar button[data-feedback="copied"] { color: #c9ff9b; background: #21341d; }
.code-toolbar button[data-feedback="select"] { color: #d6e5cd; background: #243021; }
.doc-section[data-anchor-target] > h2 { box-shadow: -3px 0 #8eed5b; }
.doc-section:focus { outline: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sidebar-backdrop:not([hidden]) { animation: docs-scrim-in 160ms ease-out both; }
@keyframes docs-scrim-in { from { opacity: 0; } }

@media (max-width: 1160px) {
  .layout { grid-template-columns: minmax(180px, 218px) minmax(0,1fr); gap: 29px; }
  .toc { display: none; }
  .top-row { grid-template-columns: minmax(175px,1fr) minmax(190px,410px) minmax(175px,1fr); gap: 15px; }
  .top-row, .section-tabs, .layout { padding-inline: 23px; }
}
@media (max-width: 790px) {
  :root { --top: 103px; }
  .top-row { height: 58px; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; }
  .top-row, .section-tabs, .layout { padding-inline: 16px; }
  .brand { gap: 4px; font-size: 15px; }
  .brand img { width: 26px; height: 26px; }
  .top-links a:first-child { display: none; }
  .top-links .product-link { padding: 6px 8px; font-size: 12px; }
  .search-trigger { width: fit-content; justify-self: end; min-height: 36px; padding-inline: 9px; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .section-tabs { min-height: 45px; gap: 21px; }
  .section-tabs a { min-height: 45px; }
  .menu-toggle { display: grid; }
  .layout { display: block; }
  .sidebar { position: fixed; z-index: 4; top: var(--top); left: 0; bottom: 0; height: auto; width: min(300px, 86vw); padding: 17px 13px 13px; border-right: 1px solid #364735; background: #101810; transform: translateX(-102%); visibility: hidden; transition: transform .22s ease, visibility .22s; }
  .sidebar.open { transform: translateX(0); visibility: visible; }
  .sidebar-backdrop { position: fixed; display: block; z-index: 3; inset: var(--top) 0 0; width: 100%; border: 0; background: #030603bc; }
  body:has(.sidebar.open) { overflow: hidden; }
  main { max-width: 680px; margin-inline: auto; padding-top: 24px; }
}
@media (max-width: 450px) {
  .brand-sub { display: none; }
  .is-overview .article-head { padding: 20px 16px 23px; }
  .directory-cards a, .card { padding: 11px; }
  .directory-cards span { font-size: 13px; }
  .doc-section { padding-top: 26px; }
  th, td { min-width: 100px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .article-body { animation: none; }
}
