:root {
  color-scheme: light;
  color: #202124;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Noto Sans", sans-serif;
  font-synthesis: none;
  font-size: 15px;
  line-height: 1.85;
  --muted: #5f6368;
  --line: #e2e5e9;
  --accent: #1967d2;
  --surface: #f8f9fa;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 104px; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #174ea6; }
a, summary { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { color: #174ea6; background: #d2e3fc; }
.container { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); }
.header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: baseline; gap: 16px; font: 650 23px var(--mono); letter-spacing: -.055em; text-decoration: none; color: inherit; }
.brand span { font: 500 13px/1.5 system-ui, sans-serif; letter-spacing: 0; color: var(--muted); padding-left: 16px; border-left: 1px solid var(--line); }
.header nav { display: flex; gap: 22px; font-size: 13px; }
.header nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; white-space: nowrap; color: var(--muted); text-decoration: none; }
.header nav a[aria-current] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }
.skip { position: absolute; top: -80px; left: 20px; z-index: 4; padding: 10px 16px; background: #fff; }
.skip:focus { position: fixed; top: 12px; }
.docs-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 64px; align-items: start; }
.docs-sidebar { position: sticky; top: 108px; padding: 36px 0; max-height: calc(100dvh - 108px); overflow-y: auto; }
.nav-group + .nav-group { margin-top: 24px; }
.nav-group > p { margin: 0 0 8px; font: 11px/1.7 var(--mono); color: #80868b; }
.nav-group ul { margin: 0; padding: 0; list-style: none; }
.nav-group a { display: flex; align-items: center; min-height: 38px; padding: 5px 0; color: var(--muted); text-decoration: none; font-size: 13px; }
.nav-group a:hover { color: var(--accent); }
.source-link { display: block; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; text-decoration: none; }
main { min-width: 0; max-width: 820px; padding-top: 48px; }
.mobile-contents { display: none; }
.doc-heading { padding-bottom: 44px; }
.eyebrow { color: var(--muted); font: 11px/1.7 var(--mono); letter-spacing: .05em; }
.doc-heading .eyebrow { margin: 0 0 20px; }
h1, h2, h3 { font-weight: 600; }
h1 { margin: 0; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.23; letter-spacing: -.04em; text-wrap: balance; }
:lang(zh-CN) h1 { line-height: 1.3; letter-spacing: -.035em; }
.lead { margin: 22px 0 0; font-size: 17px; color: var(--muted); max-width: 66ch; }
.note { font-size: 13px; color: var(--muted); }
.doc-heading .note { margin-top: 18px; margin-bottom: 0; }
main > section { padding: 44px 0 48px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.section-heading { margin-bottom: 24px; }
.section-heading .eyebrow { margin: 0 0 12px; }
h2 { margin: 0; font-size: clamp(25px, 2.7vw, 31px); line-height: 1.35; letter-spacing: -.025em; }
h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.45; }
.subheading { margin-top: 36px; }
p { margin: 12px 0; max-width: 78ch; }
code { font: .9em/1.7 var(--mono); overflow-wrap: anywhere; }
p code, td code, dd code { padding: 2px 4px; border: 1px solid #edf0f2; border-radius: 4px; background: var(--surface); }
pre { margin: 16px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); white-space: pre-wrap; overflow-wrap: anywhere; }
pre code { font-size: 13px; user-select: all; }
.steps { display: grid; gap: 36px; margin: 0; padding: 0; list-style: none; counter-reset: setup; }
.steps > li { position: relative; padding-left: 40px; counter-increment: setup; }
.steps > li::before { content: "0" counter(setup); position: absolute; top: 0; left: 0; color: var(--accent); font: 12px/2 var(--mono); }
.steps > li > :last-child, .scenarios article > :last-child { margin-bottom: 0; }
.next-step { color: var(--muted); border-left: 2px solid #d2e3fc; padding-left: 14px; font-size: 14px; }
.table-wrap { margin: 24px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: start; font-size: 14px; overflow-wrap: anywhere; }
th { color: var(--muted); font-size: 12px; font-weight: 600; background: var(--surface); }
th, td { vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
th:first-child { width: 29%; }
tbody tr:last-child td { border-bottom: 0; }
.scenarios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.scenarios article { min-width: 0; }
.scenarios p { font-size: 14px; color: var(--muted); }
.scenarios pre { padding: 14px; }
.scenarios pre code { font-size: 12px; }
details { margin-top: 20px; border: 1px solid var(--line); border-radius: 6px; padding: 0 18px; background: #fff; }
summary { cursor: pointer; min-height: 46px; padding-block: 10px; font-size: 14px; font-weight: 500; }
summary::marker { color: #80868b; }
details > :last-child:not(summary) { margin-bottom: 18px; }
.steps details { margin-top: 12px; }
.principles { display: grid; gap: 24px; }
.principles article { padding-left: 18px; border-left: 2px solid var(--line); }
.principles h3 { font-size: 16px; margin-bottom: 8px; }
.principles p { margin: 0; color: var(--muted); font-size: 14px; }
.help details { margin-top: 12px; }
.help details p { color: var(--muted); font-size: 14px; }
.footer { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding: 20px 0 36px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer span { margin-right: auto; font-family: var(--mono); font-size: 12px; }
.footer a { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 1000px) {
  .container { width: calc(100% - 48px); }
  .docs-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 36px; }
  .scenarios { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 86px; }
  .container { width: calc(100% - 32px); }
  .header { min-height: 64px; gap: 14px; }
  .brand { font-size: 21px; }
  .brand span { display: none; }
  .header nav { gap: 16px; font-size: 12px; }
  .docs-layout { display: block; }
  .docs-sidebar { display: none; }
  main { padding-top: 20px; max-width: none; }
  .mobile-contents { display: block; margin: 0 0 28px; }
  .mobile-contents nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; padding-block: 8px; }
  .mobile-contents .nav-group + .nav-group { margin-top: 0; }
  .nav-group a { min-height: 44px; }
  .doc-heading { padding-bottom: 32px; }
  h1 { font-size: clamp(31px, 6.6vw, 40px); }
  .lead { font-size: 16px; }
  main > section { padding: 32px 0 36px; }
  .section-heading { margin-bottom: 22px; }
  .steps { gap: 30px; }
  .steps > li { padding-left: 30px; }
  .steps > li::before { font-size: 11px; }
  th, td { padding: 11px 10px; }
  th:first-child { width: 34%; }
  pre { padding: 14px; }
  details { padding-inline: 14px; }
  .footer span { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
