:root {
  color-scheme: light;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; }
a { color: #0645ad; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  border-bottom: 1px solid #111;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-row,
.footer-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-row {
  min-height: 76px;
  padding: 10px 0;
}

.footer-row {
  justify-content: space-between;
}

.wordmark {
  flex: 0 0 auto;
  color: #111;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .08em;
}
.wordmark span { font-weight: 400; }

.creator-cards {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-start;
}

.creator-card {
  width: 205px;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #111;
  background: #fff;
  padding: 8px;
}

.creator-avatars {
  display: flex;
  gap: 5px;
}
.creator-avatars a { display: block; }
.creator-avatars img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border: 1px solid #111;
}

.creator-info { min-width: 0; }
.creator-info > strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;
}
.creator-links {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 5px;
}
.creator-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #111;
  text-decoration: none;
  font-size: 11px;
  white-space: nowrap;
}
.bili-logo {
  width: 14px;
  height: 14px;
  padding: 2px;
  background: #00aeec;
}
.creator-links a:hover,
.creator-links a:focus-visible { text-decoration: underline; }

.header-row > nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  white-space: nowrap;
}
nav a { color: #111; text-decoration: none; }
nav a:hover, nav a:focus-visible { text-decoration: underline; }

.hero { padding: 56px 0 52px; border-bottom: 1px solid #111; }
.hero-content { max-width: 940px; }
.readme-logo { width: min(520px, 100%); height: auto; margin: 0 0 28px; object-fit: contain; object-position: left center; }
.kicker, .section-number { margin: 0 0 12px; font-size: 12px; letter-spacing: .13em; font-weight: 700; }
h1 { max-width: 820px; margin: 0; font-size: clamp(42px, 7vw, 78px); line-height: 1.02; letter-spacing: -.045em; }
.lead { max-width: 760px; margin: 28px 0 0; font-size: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.actions a { border: 1px solid #111; padding: 10px 16px; color: #111; text-decoration: none; }
.actions a.primary { background: #111; color: #fff; }
.actions a:hover, .actions a:focus-visible { text-decoration: underline; }
.section, .screenshot-section, .notice { padding: 56px 0; border-bottom: 1px solid #111; }
.alt { background: #f3f3f3; }
.two-column { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 70px; }
h2 { margin: 0; font-size: 28px; line-height: 1.15; }
.prose p:first-child { margin-top: 0; }
.prose p { max-width: 800px; font-size: 18px; }
.rows article { display: grid; grid-template-columns: minmax(210px, .75fr) 1.5fr; gap: 35px; padding: 22px 0; border-top: 1px solid #999; }
.rows article:last-child { border-bottom: 1px solid #999; }
.rows h3, .rows p { margin: 0; }
.rows h3 { font-size: 18px; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.gallery-controls { display: flex; align-items: center; gap: 0; border: 1px solid #111; }
.gallery-button { width: 48px; height: 42px; border: 0; background: #fff; color: #111; cursor: pointer; }
.gallery-button:first-child { border-right: 1px solid #111; }
.gallery-button:last-child { border-left: 1px solid #111; }
.gallery-button:hover, .gallery-button:focus-visible { background: #111; color: #fff; }
.gallery-count { min-width: 76px; text-align: center; font-variant-numeric: tabular-nums; }

.gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #111 #ddd;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  padding: 24px 0;
}

.gallery:focus-visible { outline: 2px solid #0645ad; outline-offset: 4px; }
.gallery::-webkit-scrollbar { height: 10px; }
.gallery::-webkit-scrollbar-track { background: #ddd; }
.gallery::-webkit-scrollbar-thumb { background: #111; }
.gallery-item { flex: 0 0 min(88vw, 1040px); margin: 0; scroll-snap-align: center; }
.gallery-item a { display: block; border: 1px solid #111; background: #e9e9e9; }
.gallery-item img { width: 100%; height: min(62vw, 650px); object-fit: contain; background: #e9e9e9; }
.gallery-item figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; font-size: 14px; }
.gallery-index { display: flex; gap: 8px; margin-top: 18px; }
.gallery-index button { min-width: 44px; border: 1px solid #111; background: #fff; padding: 6px 9px; cursor: pointer; }
.gallery-index button[aria-current="true"], .gallery-index button:hover, .gallery-index button:focus-visible { background: #111; color: #fff; }
.gallery-note { margin: 14px 0 0; font-size: 13px; color: #555; }

.component-table { border-top: 1px solid #111; }
.component-table > div { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid #999; }
.component-table p { margin: 0; }
.table-head { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.requirements { margin-top: 0; font-weight: 700; }
pre { overflow-x: auto; margin: 24px 0; padding: 20px; border: 1px solid #111; background: #f3f3f3; }
code { font-family: Consolas, "SFMono-Regular", monospace; font-size: .92em; }
.note { border-left: 4px solid #111; padding-left: 16px; }
.notice { background: #111; color: #fff; }
.notice p { margin: 0; max-width: 800px; }
footer { border-bottom: 1px solid #111; }
footer a { color: #111; }




.release-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; }
.release-links a { color: #111; }

@media (max-width: 900px) {
  .header-row { flex-wrap: wrap; align-items: center; }
  .header-row > nav { order: 2; margin-left: auto; font-size: 14px; }
  .creator-cards { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .creator-card { flex: 0 0 205px; }
  .hero { padding: 52px 0; }
  .two-column { grid-template-columns: 1fr; gap: 34px; }
  .readme-logo { margin-bottom: 22px; }
  h1 { font-size: clamp(39px, 12vw, 62px); }
  .lead { font-size: 18px; }
  .rows article { grid-template-columns: 1fr; gap: 8px; }
  .component-table > div { grid-template-columns: 1fr; gap: 5px; }
  .table-head { display: none !important; }
  .gallery-item { flex-basis: calc(100vw - 40px); }
  .gallery-item img { height: 62vw; }
  .footer-row { align-items: flex-start; flex-direction: column; padding: 18px 0; gap: 8px; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .site-header { position: static; }
  .header-row { display: flex; padding: 12px 0; }
  .header-row > nav { order: 2; width: auto; margin-left: auto; white-space: normal; }
  .creator-cards { order: 3; width: 100%; justify-content: flex-start; }
  .creator-card { flex: 0 0 205px; width: 205px; }
  .section, .screenshot-section, .notice { padding: 52px 0; }
  .section-head { align-items: flex-start; }
  .gallery-controls { flex: none; }
  .gallery-button { width: 40px; }
  .gallery-count { min-width: 66px; }
  .gallery-item { flex-basis: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  html, .gallery { scroll-behavior: auto; }
}

/* Multi-page documentation */
nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: #111; }

.page-hero { padding: 70px 0 54px; border-bottom: 1px solid #111; }
.page-hero.compact h1 { max-width: 980px; font-size: clamp(42px, 7vw, 72px); }
.page-hero.compact .lead { max-width: 920px; }
.compact-section { padding-top: 48px; }

.docs-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 64px; align-items: start; }
.side-index { position: sticky; top: 82px; display: grid; max-height: calc(100vh - 104px); overflow-y: auto; border-top: 1px solid #111; }
.side-index strong, .side-index a { padding: 9px 0; border-bottom: 1px solid #999; }
.side-index a { color: #111; text-decoration: none; font-size: 14px; }
.side-index a:hover, .side-index a:focus-visible { text-decoration: underline; }

.document-content, .document-narrow { min-width: 0; }
.document-narrow { width: min(860px, 100%); }
.document-content > section,
.document-narrow > section { padding: 0 0 48px; margin: 0 0 48px; border-bottom: 1px solid #999; }
.document-content > section:last-child,
.document-narrow > section:last-child { margin-bottom: 0; }
.document-content h2,
.document-narrow h2 { margin-bottom: 18px; }
.document-content h3,
.document-narrow h3 { margin: 28px 0 8px; }
.document-content p,
.document-content li,
.document-narrow p,
.document-narrow li { max-width: 850px; }
.document-content ol,
.document-content ul,
.document-narrow ol,
.document-narrow ul { padding-left: 23px; }
.document-content li,
.document-narrow li { margin: 8px 0; }

.definition-list { border-top: 1px solid #111; }
.definition-list > div { display: grid; grid-template-columns: minmax(180px, .55fr) 1.45fr; gap: 30px; padding: 16px 0; border-bottom: 1px solid #999; }
.definition-list p { margin: 0; }
.link-rows { border-top: 1px solid #111; }
.link-rows > a { display: grid; grid-template-columns: minmax(180px, .55fr) 1.45fr; gap: 30px; padding: 16px 0; border-bottom: 1px solid #999; color: #111; text-decoration: none; }
.link-rows > a:hover strong, .link-rows > a:focus-visible strong { text-decoration: underline; }

.release-history { min-width: 0; }
.release-entry { padding: 0 0 64px; margin: 0 0 64px; border-bottom: 2px solid #111; scroll-margin-top: 84px; }
.release-entry:last-child { margin-bottom: 0; }
.release-entry-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.release-entry-head h2 { max-width: 780px; }
.release-badge { font-size: 18px; white-space: nowrap; }
.release-meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #111; border-bottom: 1px solid #111; margin-bottom: 28px; }
.release-meta-grid > div { display: grid; gap: 4px; padding: 13px 14px; border-right: 1px solid #999; }
.release-meta-grid > div:last-child { border-right: 0; }
.release-meta-grid span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.release-entry > h3 { margin: 0 0 10px; font-size: 17px; }
.update-list { margin: 0; padding-left: 22px; }
.update-list li { margin: 8px 0; max-width: 900px; }
.release-note { display: grid; grid-template-columns: minmax(180px, .55fr) 1.45fr; gap: 30px; margin-top: 24px; padding: 16px 0; border-top: 1px solid #999; border-bottom: 1px solid #999; }
.release-note p { margin: 0; }

.contact-table { border-top: 1px solid #111; margin-bottom: 54px; }
.contact-table > div { display: grid; grid-template-columns: 190px minmax(0, 1fr) 170px; gap: 28px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid #999; }
.contact-table p { margin: 0; }
.contact-table a { text-align: right; }

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 36px; }
  .side-index { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid #999; }
  .side-index strong, .side-index a { padding: 8px 10px; border-right: 1px solid #999; }
  .release-meta-grid { grid-template-columns: 1fr 1fr; }
  .release-meta-grid > div:nth-child(2) { border-right: 0; }
  .release-meta-grid > div:nth-child(-n+2) { border-bottom: 1px solid #999; }
}

@media (max-width: 620px) {
  .page-hero { padding: 48px 0 38px; }
  .side-index { grid-template-columns: 1fr 1fr; }
  .release-entry-head { display: block; }
  .release-badge { display: block; margin-top: 12px; }
  .release-meta-grid { grid-template-columns: 1fr; }
  .release-meta-grid > div { border-right: 0; border-bottom: 1px solid #999; }
  .release-meta-grid > div:last-child { border-bottom: 0; }
  .definition-list > div,
  .link-rows > a,
  .release-note,
  .contact-table > div { grid-template-columns: 1fr; gap: 6px; }
  .contact-table a { text-align: left; }
}

.side-index .side-section-title {
  margin-top: 16px;
  border-top: 1px solid #111;
}

.side-index a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
}

@media (min-width: 821px) {
  .site-header .header-row { min-height: 74px; }
  .site-header .header-meta { flex-wrap: nowrap; }
  .site-header .creator-cards { flex: 0 0 auto; }
}

/* Documentation page tabs */
.doc-tabs-shell {
  border-bottom: 1px solid #111;
  background: #f3f3f3;
}

.doc-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 0;
  overflow-x: auto;
  white-space: nowrap;
}

.doc-tabs a {
  flex: 0 0 auto;
  padding: 13px 20px;
  border-left: 1px solid #999;
  color: #111;
  text-decoration: none;
}

.doc-tabs a:last-child {
  border-right: 1px solid #999;
}

.doc-tabs a:hover,
.doc-tabs a:focus-visible {
  text-decoration: underline;
}

.doc-tabs a[aria-current="page"] {
  background: #111;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 620px) {
  .doc-tabs-shell .wrap {
    width: 100%;
  }

  .doc-tabs a {
    padding: 12px 16px;
  }
}
/* End documentation page tabs */

/* Code-backed operator manual */
.operator-manual > section { scroll-margin-top: 112px; }
.operator-manual h3 { font-size: 18px; }
.action-rule {
  margin: 18px 0 24px;
  padding: 16px 18px;
  border: 1px solid #111;
  background: #f5f5f5;
}
.action-rule strong { display: block; font-size: 17px; }
.action-rule p { margin: 7px 0 0; }
.critical-rule { border-left: 7px solid #111; }
.procedure { margin: 18px 0; }
.numbered-procedure { list-style: none; padding: 0 !important; border-top: 1px solid #111; }
.numbered-procedure li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  margin: 0;
  border-bottom: 1px solid #999;
}
.numbered-procedure li > span { font-family: Consolas, monospace; font-weight: 700; }
.numbered-procedure p { margin: 3px 0 0; }
.source-path { margin-top: 24px; font-size: 13px; color: #555; }
.status-table,
.diagnostic-table,
.evidence-list { border-top: 1px solid #111; margin: 18px 0; }
.status-table > div,
.diagnostic-table > div,
.evidence-list > div {
  display: grid;
  grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr);
  gap: 26px;
  padding: 15px 0;
  border-bottom: 1px solid #999;
}
.status-table p,
.diagnostic-table p,
.evidence-list p { margin: 0; }
.capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 18px 0 24px;
  border-top: 1px solid #111;
  border-left: 1px solid #111;
}
.capability-grid > div { padding: 16px 18px; border-right: 1px solid #111; border-bottom: 1px solid #111; }
.capability-grid ul { margin-bottom: 0; }
@media (max-width: 620px) {
  .status-table > div,
  .diagnostic-table > div,
  .evidence-list > div,
  .capability-grid { grid-template-columns: 1fr; }
}
