:root {
  color-scheme: light;
  --accent: #438cff;
  --accent-strong: #2f78ea;
  --accent-soft: #edf4ff;
  --ink: #1f293d;
  --text: #4f5f73;
  --muted: #758399;
  --faint: #98a4b5;
  --line: #e3e8ef;
  --line-strong: #d5dce7;
  --surface: #ffffff;
  --sidebar: #ffffff;
  --code-dark: #3d4656;
  --code-dark-border: #343c49;
  --code-light: #f5f8fb;
  --scroll-thumb: #bcc8d8;
  --scroll-thumb-hover: #9eacbe;
  --header-h: 56px;
  --sidebar-w: 280px;
  --radius: 6px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --zh: "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Source Code Pro", Menlo, Monaco, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--surface); }
body { margin: 0; min-width: 320px; background: var(--surface); color: var(--ink); font: 14px/22px var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.docs-sidebar { position: fixed; inset: var(--header-h) auto 0 0; z-index: 30; width: var(--sidebar-w); display: grid; grid-template-rows: 46.5px minmax(0,1fr); border-right: 1px solid #d4dee9; background: var(--sidebar); }
.docs-sidebar.search-in-topbar { grid-template-rows: minmax(0,1fr); }
.docs-sidebar.search-in-topbar.has-sidebar-tools { grid-template-rows: 46.5px minmax(0,1fr); }
.sidebar-brand { display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 16px 0; }
.sidebar-brand a { display: flex; align-items: baseline; gap: 5px; letter-spacing: -.01em; }
.sidebar-brand a { height: 20px; font-size: 14px; line-height: 20px; }
.sidebar-brand strong { font-size: 14px; }
.sidebar-brand span, .mobile-brand span { color: var(--accent-strong); font: 700 14px/20px var(--sans); }
.sidebar-theme { width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f7f9fc; color: #7e8ba0; font-size: 12px; }
.sidebar-tools { display: grid; grid-template-columns: minmax(0,165.0625px) minmax(0,75.9375px); gap: 6px; padding: 8px 16px; }
.sidebar-tools.search-moved { grid-template-columns: 1fr; }
.sidebar-find, .sidebar-guide, .sidebar-search { height: 30.5px; display: flex; align-items: center; border: 0; border-radius: 8px; background: #f4f7fa; color: #50617a; }
.sidebar-find { min-width: 0; justify-content: space-between; padding: 0 7px; text-align: left; }
.sidebar-find { background: #efefef; color: #414552; font-size: 14px; line-height: 20px; }
.sidebar-find span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-find kbd, .sidebar-search kbd { min-width: 18px; padding: 0 4px; border: 1px solid var(--line); border-radius: 4px; background: #f7f9fc; color: #8894a5; font: 12px/16px var(--mono); text-align: center; }
.sidebar-guide { justify-content: center; font-size: 14px; font-weight: 400; }
.sidebar-search { margin: 7px 9px 6px; padding: 0 8px; justify-content: space-between; text-align: left; }
.sidebar-scroll { overflow-y: auto; padding: 8px 4px 8px 16px; }
.sidebar-scroll,
.code-card pre,
.source-reference-examples,
html {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
}
.sidebar-scroll::-webkit-scrollbar,
.code-card pre::-webkit-scrollbar,
.source-reference-examples::-webkit-scrollbar,
html::-webkit-scrollbar { width: 10px; height: 10px; }
.sidebar-scroll::-webkit-scrollbar-track,
.code-card pre::-webkit-scrollbar-track,
.source-reference-examples::-webkit-scrollbar-track,
html::-webkit-scrollbar-track { background: transparent; }
.sidebar-scroll::-webkit-scrollbar-thumb,
.code-card pre::-webkit-scrollbar-thumb,
.source-reference-examples::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb {
  min-width: 52px;
  min-height: 52px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--scroll-thumb);
  background-clip: content-box;
}
.sidebar-scroll::-webkit-scrollbar-thumb:hover,
.code-card pre::-webkit-scrollbar-thumb:hover,
.source-reference-examples::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumb-hover);
  background-clip: content-box;
}
.sidebar-scroll::-webkit-scrollbar-button,
.code-card pre::-webkit-scrollbar-button,
.source-reference-examples::-webkit-scrollbar-button,
html::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.sidebar-scroll::-webkit-scrollbar-corner,
.code-card pre::-webkit-scrollbar-corner,
.source-reference-examples::-webkit-scrollbar-corner,
html::-webkit-scrollbar-corner { background: transparent; }
.nav-label { margin: 17px 8px 6px; color: #77859a; font-size: 12px; font-weight: 700; line-height: 16px; }
.nav-section { width: 248px; margin: 0 0 8px; }
.nav-intro { display: grid; gap: 4px; }
.nav-item { display: block; width: 248px; height: 28px; padding: 4px 8px 4px 16px; border-radius: 4px; color: #50617a; font-size: 14px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item:hover { color: var(--ink); background: #f2f5f9; }
.nav-item.active { color: var(--accent-strong); background: var(--accent-soft); font-weight: 500; }
.nav-disclosure { width: 248px; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.nav-trigger { width: 248px; height: 28px; display: flex; align-items: baseline; padding: 4px 8px; border: 0; border-radius: 4px; background: transparent; color: #1a2c44; font-size: 14px; font-weight: 500; line-height: 20px; text-align: left; }
.nav-trigger:hover { background: #f2f5f9; }
.nav-trigger span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-chevron { width: 12px; height: 12px; flex: 0 0 12px; margin: 3px 0 0 auto; color: #50617a; transform: translateY(1px); }
.nav-chevron svg { width: 12px; height: 12px; display: block; fill: currentColor; }
.nav-chevron-open { display: none !important; }
.nav-disclosure.is-open > .nav-trigger .nav-chevron-closed { display: none; }
.nav-disclosure.is-open > .nav-trigger .nav-chevron-open { display: block !important; }
.nav-disclosure .nav-section { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0 0 8px 16px; }
.nav-disclosure .nav-section[hidden] { display: none; }
.nav-children .nav-item { margin-left: -16px; padding-left: 16px; color: #50617a; }
.nav-children .nav-item.active { color: var(--accent-strong); }
.nav-interface-list { margin: 4px 0 8px; padding: 4px 0 2px 12px; }
.nav-interface-label { margin: 5px 0 3px; color: #8793a5; font-size: 12px; font-weight: 700; line-height: 16px; }
.nav-interface-list .nav-item { width: 220px; margin-left: 0; padding-left: 8px; font-size: 13px; }
.nav-subgroup { width: 248px; gap: 4px; margin: 0 0 0 -16px; }
.nav-subgroup > .nav-trigger { width: 248px; padding-left: 16px; font-weight: 500; }
.nav-subgroup > .nav-section { width: 248px; padding: 0 0 2px 16px; }
.nav-subgroup .nav-interface-list { margin-top: 0; }
.nav-interface-phase-group { width: 220px; gap: 2px; margin: 0; }
.nav-interface-phase-group > .nav-trigger { width: 220px; padding-left: 8px; color: #50617a; font-size: 13px; font-weight: 500; }
.nav-interface-phase-group > .nav-trigger:hover,
.nav-interface-phase-group.is-open > .nav-trigger { color: var(--ink); }
.nav-interface-phase-group > .nav-section { width: 220px; padding: 0 0 4px 16px; gap: 4px; }
.nav-interface-list .nav-interface-phase-list .nav-item { width: 204px; padding-left: 8px; }
.nav-subgroup.is-current > .nav-trigger { color: var(--accent-strong); }
.nav-standalone-page { margin-top: 0; font-weight: 500; }
.product-nav-group.is-open > .nav-trigger { color: var(--accent-strong); }

.docs-stage { min-width: 0; margin-left: var(--sidebar-w); padding-top: var(--header-h); }
.docs-topbar { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--header-h); display: flex; align-items: center; justify-content: flex-start; gap: 16px; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.98); }
.mobile-brand, .mobile-menu { display: none; }
.utility-nav { display: flex; align-items: center; gap: 24px; }
.utility-nav a { color: #617087; font-size: 14px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.utility-nav a:hover, .utility-nav a.active { color: var(--accent-strong); }
.portal-search { position: relative; width: min(420px, calc(100vw - 700px)); min-width: 280px; height: 34px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; margin-left: auto; padding: 2px; border: 1px solid var(--line-strong); border-radius: 8px; background: #f4f7fa; }
.portal-search:focus-within { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px rgba(67,140,255,.14); }
.portal-search-input { min-width: 0; width: 100%; padding: 0 8px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; line-height: 28px; }
.portal-search-input::placeholder { color: #617087; opacity: 1; }
.portal-search-input::-webkit-search-cancel-button { cursor: pointer; }
.portal-search-submit { height: 28px; padding: 0 13px; border: 0; border-radius: 6px; background: #236bce; color: #fff; font-size: 13px; font-weight: 600; line-height: 28px; white-space: nowrap; }
.portal-search-submit:hover { background: #1d5fb9; }
.portal-search-submit:active { transform: translateY(1px); }
.portal-search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-height: min(460px, calc(100dvh - var(--header-h) - 24px)); overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); box-shadow: 0 18px 48px rgba(39,52,73,.18); }
.portal-search-results[hidden] { display: none; }
.portal-search-result-list { padding: 6px; }
.portal-search-result { display: block; padding: 9px 10px; border-radius: 6px; }
.portal-search-result:hover, .portal-search-result:focus-visible { background: var(--accent-soft); outline-offset: -2px; }
.portal-search-result-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.portal-search-result-heading strong { min-width: 0; color: var(--ink); font-size: 14px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-search-result-heading small { flex: none; color: #718097; font-size: 11px; line-height: 16px; white-space: nowrap; }
.portal-search-result-summary { display: block; margin-top: 2px; color: var(--text); font-size: 12px; line-height: 18px; }
.portal-search-empty, .portal-search-count { margin: 0; color: var(--muted); font-size: 12px; line-height: 18px; }
.portal-search-empty { padding: 16px; text-align: center; }
.portal-search-count { padding: 8px 16px 10px; border-top: 1px solid var(--line); }
.theme-toggle { position: relative; width: 30px; height: 18px; flex: 0 0 30px; margin-left: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; }
.theme-toggle-track { position: absolute; inset: 3px 0; border-radius: 8px; background: #e4e7ec; transition: background .2s ease; }
.theme-toggle-thumb { position: absolute; top: 0; left: 0; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(31,41,61,.28); transform: translateX(0); transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.theme-icon { position: absolute; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s ease, transform .2s ease; }
.theme-icon-sun { color: #d99716; opacity: 1; transform: rotate(0) scale(1); }
.theme-icon-moon { color: #746cff; opacity: 0; transform: rotate(-35deg) scale(.55); }
.theme-toggle:hover .theme-toggle-track { background: #d7dbe3; }
.theme-toggle:active { transform: none; }

.reference-content { min-width: 0; }
.reference-row { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(390px, .98fr); border-bottom: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.reference-copy, .reference-example { min-width: 0; padding: 30px 36px 36px; }
.reference-copy { justify-self: end; width: min(100%, 640px); }
.reference-example { padding-left: 30px; padding-right: 34px; background: #fff; }
.intro-row .reference-copy, .intro-row .reference-example { padding-top: 38px; }
.section-heading-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
h1, h2, h3, p { margin-top: 0; }
.reference-copy h1 { margin-bottom: 16px; font-size: 24px; font-weight: 700; line-height: 32px; letter-spacing: -.02em; }
.reference-copy h2 { margin-bottom: 16px; font-size: 20px; font-weight: 700; line-height: 28px; letter-spacing: -.015em; }
.reference-copy > p { max-width: 64ch; margin-bottom: 13px; color: var(--text); }
.reference-copy a { color: var(--accent-strong); font-weight: 600; }
.section-actions { display: flex; gap: 4px; flex: none; }
.section-actions button, .quiet-action { padding: 3px 6px; border: 0; border-radius: 4px; background: transparent; color: #748198; font-size: 12px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.section-actions button:hover, .quiet-action:hover { background: #f4f6f9; color: var(--accent-strong); }
.help-note { padding-top: 3px; }
.help-note a { margin-left: 4px; }
.meta-list { margin: 24px 0 0; }
.meta-list div { display: grid; grid-template-columns: 112px 1fr; padding: 10px 0; border-top: 1px solid var(--line); }
.meta-list dt { color: #8793a5; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.meta-list dd { margin: 0; color: #42516a; }
code { font-family: var(--mono); }
.example-label { margin: 0 0 8px; color: #748198; font-size: 12px; font-weight: 700; line-height: 16px; text-transform: uppercase; }
.code-card { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.code-card.dark { border-color: var(--code-dark-border); background: var(--code-dark); color: #e8edf5; }
.code-card.light { background: var(--code-light); color: #4e5c70; }
.code-toolbar { height: 32px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 12px; font-weight: 600; line-height: 16px; }
.light .code-toolbar { border-color: var(--line); color: #718097; }
.code-toolbar button { padding: 2px 6px; border: 0; border-radius: 4px; background: transparent; color: inherit; font-size: 12px; line-height: 16px; }
.code-toolbar button:hover { background: rgba(255,255,255,.1); }
.light .code-toolbar button:hover { background: #eaf0f6; }
pre { margin: 0; padding: 14px 12px 16px; overflow: auto; white-space: pre; font: 14px/20px var(--mono); tab-size: 2; }
.code-card pre { max-height: min(56vh, 480px); }
.line-no { display: inline-block; width: 24px; color: #98a5b8; user-select: none; }
.dark .token-key { color: #a8c7ff; }
.dark .token-value { color: #8bd4a8; }
.light .token-key { color: #526e9e; }
.light .token-value { color: #31815c; }
.code-callout { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #f8fafc; color: #647388; }
.code-callout strong { display: block; margin-bottom: 2px; color: #3f4e64; font-size: 12px; line-height: 16px; }
.code-callout p { margin: 0; font-size: 14px; line-height: 22px; }
.feedback { margin-top: 21px; color: #8793a5; font-size: 12px; line-height: 16px; }
.feedback button { margin-left: 4px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #66758b; }
.attribute-list { margin-top: 20px; border-top: 1px solid var(--line); }
.attribute { padding: 13px 0; border-bottom: 1px solid var(--line); }
.attribute > div { display: flex; align-items: baseline; gap: 9px; }
.attribute code { color: #334761; font-size: 14px; font-weight: 700; line-height: 20px; }
.attribute span { color: #8b97a8; font-size: 12px; line-height: 20px; }
.attribute p { margin: 4px 0 0; color: var(--text); }
.status-table { margin-top: 18px; border-top: 1px solid var(--line); }
.status-table > div { display: grid; grid-template-columns: 44px 100px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 14px; line-height: 22px; }
.status-table code, .status-table strong { color: #33445c; }

.guide-content { position: relative; width: min(100%, 1040px); min-height: calc(100dvh - var(--header-h)); margin: 0 auto; padding: 38px 230px 70px 54px; }
.resource-page .guide-content { width: 100%; margin: 0; padding: 38px 54px 70px 56px; }
.guide-article { max-width: 690px; }
body[data-doc-page] .guide-content { width: 100%; margin: 0; padding: 38px 287px 70px 56px; }
body[data-doc-page] .guide-article { max-width: none; }
.guide-breadcrumb { margin-bottom: 22px; color: #8995a7; font-size: 12px; line-height: 16px; }
.guide-article h1 { max-width: 560px; margin: 0 0 14px; font-size: 24px; font-weight: 700; line-height: 32px; letter-spacing: -.02em; }
.inline-link { color: var(--accent-strong); font-weight: 600; }
.inline-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.guide-lead { max-width: 630px; margin-bottom: 38px; color: var(--text); font-size: 14px; line-height: 22px; }
.guide-doc-section { padding: 30px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); }
.guide-doc-section h2 { margin-bottom: 12px; font-size: 20px; font-weight: 700; line-height: 28px; letter-spacing: -.015em; }
.guide-doc-section > p { max-width: 64ch; margin-bottom: 17px; color: var(--text); }
body[data-doc-page] .guide-doc-section > p { max-width: none; }
.business-flow-list { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: business-step; }
.business-flow-list li { position: relative; min-height: 28px; margin: 0; padding: 11px 0 11px 38px; border-bottom: 1px solid var(--line); color: var(--text); counter-increment: business-step; }
.business-flow-list li:first-child { border-top: 1px solid var(--line); }
.business-flow-list li::before { content: counter(business-step); position: absolute; top: 11px; left: 2px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #d8e5fa; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; font-weight: 700; line-height: 16px; }
.screen-table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.screen-table { width: 100%; min-width: 680px; border-collapse: collapse; table-layout: fixed; }
.screen-table th { height: 74px; padding: 12px 10px; border-bottom: 1px solid var(--line); color: #40516a; background: #f7f9fc; font-size: 13px; font-weight: 600; line-height: 20px; text-align: left; vertical-align: top; }
.screen-table th + th, .screen-table td + td { border-left: 1px solid var(--line); }
.screen-table td { padding: 10px; vertical-align: top; }
.screen-table a { display: block; background: #f5f7fa; }
.screen-table img { display: block; width: 100%; height: 390px; object-fit: contain; object-position: center top; }
.screen-shot-stack { display: grid; gap: 10px; }
.screen-shot-stack img { height: 190px; }
.empty-visual-placeholder { min-height: 210px; display: grid; place-content: center; gap: 6px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: #fafbfd; color: var(--muted); text-align: center; }
.empty-visual-placeholder strong { color: #c53b3b; }
.doc-callout { display: grid; grid-template-columns: 110px 1fr; padding: 11px 13px; border: 1px solid #d9e6fb; border-radius: var(--radius); background: #f4f8ff; }
.doc-callout strong { color: #6b7b92; font-size: 12px; line-height: 16px; }
.doc-callout span { color: var(--accent-strong); font-weight: 600; }
.check-list { border-top: 1px solid var(--line); }
.check-list-item { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.check-list-item > span { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #d8e5fa; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; font-weight: 700; line-height: 16px; }
.check-list strong { display: block; margin-bottom: 2px; }
.check-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 22px; }
.check-list p a { color: var(--accent-strong); font-weight: 600; }
.reading-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.reading-grid a { padding: 16px; }
.reading-grid a + a { border-left: 1px solid var(--line); }
.reading-grid a:hover { background: #fafcff; }
.reading-grid small, .reading-grid strong, .reading-grid span { display: block; }
.reading-grid small { margin-bottom: 6px; color: #8894a5; font-size: 12px; line-height: 16px; }
.reading-grid strong { margin-bottom: 4px; color: var(--accent-strong); }
.reading-grid span { color: var(--muted); font-size: 14px; line-height: 22px; }
.integration-table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.integration-table { width: 100%; min-width: 560px; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 22px; }
.integration-table th { padding: 10px 14px; border-bottom: 1px solid var(--line-strong); background: #f7f9fc; color: #66758b; font-size: 12px; font-weight: 700; line-height: 16px; text-align: left; }
.integration-table th:first-child { width: 42%; }
.integration-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: #46566e; vertical-align: top; }
.integration-table tr:last-child td { border-bottom: 0; }
.integration-table td:first-child { color: #334761; font-weight: 600; }
.integration-table code { color: #334761; font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.flow-phase { padding: 26px 0 2px; scroll-margin-top: calc(var(--header-h) + 12px); }
.flow-phase h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--ink); font-size: 18px; font-weight: 700; line-height: 26px; }
.flow-phase h3 > span { width: 24px; height: 24px; display: grid; flex: 0 0 24px; place-items: center; border: 1px solid #d8e5fa; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; line-height: 16px; }
.flow-phase-note { margin: 0 0 16px; color: var(--text); font-size: 14px; line-height: 22px; }
.interaction-sequence { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; counter-reset: interaction-step; }
.interaction-sequence li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; padding: 12px 4px; border-bottom: 1px solid var(--line); counter-increment: interaction-step; }
.interaction-route { display: flex; align-items: center; gap: 7px; min-height: 24px; }
.interaction-route b { color: #9aa6b7; font-size: 13px; font-weight: 500; }
.interaction-route-single { justify-content: flex-start; }
.actor { display: inline-flex; align-items: center; justify-content: center; min-width: 68px; padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; color: #596a82; font-size: 12px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.actor-user { border-color: #d9e6fb; background: #f4f8ff; color: #315f9f; }
.actor-channel { border-color: #dce3ec; background: #f7f9fc; color: #53647a; }
.actor-zimu { border-color: #d8eadf; background: #f4faf6; color: #39714c; }
.interaction-sequence p { margin: 0; color: var(--text); font-size: 14px; line-height: 22px; }
.interaction-sequence p strong, .interaction-sequence p a { display: inline; margin-right: 8px; color: #334761; font-weight: 700; }
.interaction-sequence p a { color: var(--accent-strong); }
.interaction-sequence p a:hover { text-decoration: underline; text-underline-offset: 3px; }
.interaction-sequence p span { color: var(--muted); }
.interaction-sequence code { color: #40516a; font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.interaction-sequence p span a { margin: 0 3px; }
.domain-whitelist { grid-column: 2; margin-top: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.domain-whitelist summary { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 8px 12px; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 20px; cursor: pointer; list-style: none; }
.domain-whitelist summary::-webkit-details-marker { display: none; }
.domain-whitelist summary span { color: var(--muted); transition: transform .18s ease; }
.domain-whitelist[open] summary { border-bottom: 1px solid var(--line); }
.domain-whitelist[open] summary span { transform: rotate(180deg); }
.domain-list-actions { display: flex; justify-content: flex-end; padding: 10px 12px 2px; }
.domain-whitelist button { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--accent-strong); font: 600 12px/18px var(--sans); cursor: pointer; }
.domain-list-actions button { padding: 4px 10px; }
.domain-whitelist button:hover { border-color: #b8c9e4; background: var(--accent-soft); }
.domain-whitelist ul { margin: 0; padding: 6px 12px 12px; list-style: none; }
.domain-whitelist li { display: flex; grid-template-columns: none; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.domain-whitelist li:last-child { border-bottom: 0; }
.domain-whitelist code { min-width: 0; color: var(--text); overflow-wrap: anywhere; }
.domain-whitelist li button { flex: 0 0 auto; padding: 2px 8px; }
.guide-next { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--line); color: #8b97a8; font-size: 12px; line-height: 16px; }
.guide-next a { color: var(--accent-strong); font-size: 14px; font-weight: 600; }
.guide-next b { margin-left: 6px; }
.on-this-page { position: fixed; top: 88px; right: 71px; width: 160px; padding-left: 14px; border-left: 1px solid var(--line); }
.on-this-page p { margin-bottom: 8px; color: #596a82; font-size: 12px; font-weight: 700; line-height: 16px; }
.on-this-page a { display: block; padding: 4px 0; color: #8390a2; font-size: 12px; line-height: 16px; }
.on-this-page a:hover, .on-this-page a.active { color: var(--accent-strong); }
.on-this-page a.active { font-weight: 600; }

.docs-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 36px; border-top: 1px solid var(--line); color: #7c899b; font-size: 12px; line-height: 16px; }
.reference-content > .docs-footer { border-top: 0; }
.docs-footer a { color: var(--accent-strong); font-weight: 600; }

.api-document { width: 100%; margin: 0; padding: 42px 71px 72px 56px; }
.api-document-intro { width: 100%; margin-bottom: 44px; }
.api-document-intro.source-reference-row { padding: 0 0 44px; border: 0; border-bottom: 1px solid var(--line); }
.api-intro-copy, .api-intro-example { min-width: 0; }
.api-version { margin: 0 0 8px; color: var(--accent-strong); font-size: 12px; font-weight: 700; line-height: 16px; }
.api-document-intro h1 { margin: 0 0 14px; font-size: 24px; font-weight: 700; line-height: 32px; letter-spacing: -.02em; }
.api-intro-copy > p:last-child { margin: 0; color: var(--text); }
.source-document { min-width: 0; }
.source-group { min-width: 0; }
.source-group + .source-group { margin-top: 52px; padding-top: 38px; border-top: 1px solid var(--line); }
.source-group h2 { margin: 0 0 20px; font-size: 20px; font-weight: 700; line-height: 28px; letter-spacing: -.015em; scroll-margin-top: calc(var(--header-h) + 20px); }
.source-group-wide { max-width: 900px; }
.source-group-wide > h3 { margin: 40px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 700; line-height: 26px; scroll-margin-top: calc(var(--header-h) + 20px); }
.source-group-wide > h2 + h3 { margin-top: 0; padding-top: 0; border-top: 0; }
.source-document h4 { margin: 28px 0 12px; font-size: 16px; font-weight: 600; line-height: 20px; scroll-margin-top: calc(var(--header-h) + 20px); }
.source-group-heading { margin-bottom: 4px; }
.source-reference-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px; padding: 34px 0 42px; border-top: 1px solid var(--line); }
.source-reference-row:first-of-type { border-top: 0; }
.source-reference-copy, .source-reference-examples { min-width: 0; }
.source-reference-examples { position: sticky; top: calc(var(--header-h) + 18px); align-self: start; max-height: calc(100dvh - var(--header-h) - 36px); overflow-y: auto; overscroll-behavior: contain; }
.source-reference-copy > h3 { margin: 0 0 16px; font-size: 18px; font-weight: 700; line-height: 26px; letter-spacing: -.01em; scroll-margin-top: calc(var(--header-h) + 20px); }
.source-global-row { padding: 0; border-top: 0; }
.source-group-global .source-reference-copy > h3 { margin: 40px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.source-group-global .source-reference-copy > h2 + h3 { margin-top: 0; padding-top: 0; border-top: 0; }
body[data-doc-page="dictionary"] .source-group-global .source-reference-copy > h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.source-reference-copy .table-wrap table { min-width: 0; table-layout: fixed; }
.source-reference-copy .table-wrap th, .source-reference-copy .table-wrap td { overflow-wrap: anywhere; word-break: break-word; }
.parameter-list { margin: 14px 0 26px; border-top: 1px solid var(--line); }
.parameter-row { padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.parameter-row[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.parameter-row:target { padding-right: 10px; padding-left: 12px; border-radius: 4px; background: #f4f8ff; box-shadow: inset 3px 0 0 var(--accent); }
.parameter-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 9px; }
.parameter-name { color: #263b55; font-size: 14px; font-weight: 700; line-height: 20px; overflow-wrap: anywhere; word-break: break-word; }
.parameter-type, .parameter-required { color: #8793a5; font-size: 12px; line-height: 16px; }
.parameter-required { font-weight: 600; }
.parameter-required.is-required { color: #b13600; }
.parameter-copy { margin-top: 7px; color: var(--text); font-size: 14px; line-height: 22px; overflow-wrap: anywhere; word-break: break-word; }
.parameter-label { margin-right: 6px; color: #263b55; font: 700 14px/22px var(--zh); }
.parameter-description { color: var(--text); font-size: 14px; line-height: 22px; }
.parameter-enum-link { color: var(--accent-strong); font-weight: 600; border-bottom: 1px solid #b9d2fb; }
.parameter-enum-link:hover { border-bottom-color: var(--accent-strong); }
.parameter-description code { padding: 1px 4px; border-radius: 4px; background: #f2f5f8; color: #40516a; font-size: 12px; line-height: 20px; white-space: normal; }
.parameter-child-toggle { height: 28px; display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: #53657d; font-size: 12px; font-weight: 600; line-height: 16px; }
.parameter-child-toggle:hover { border-color: #b9c6d7; background: #f8fafc; color: #334761; }
.parameter-child-icon { width: 12px; color: #64758b; font-size: 14px; font-weight: 500; line-height: 12px; text-align: center; }
.parameter-children { margin-top: 10px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.parameter-children-title { padding: 10px 0 8px; border-bottom: 1px solid var(--line); color: #66758b; font-size: 12px; font-weight: 700; line-height: 16px; }
.parameter-children > .parameter-list { margin: 0; border-top: 0; }
.parameter-children > .parameter-list > .parameter-row:last-child { border-bottom: 0; }
.parameter-children .parameter-children { background: #f9fbfd; }
.parameter-variant-label { margin: 14px 0 6px; color: #53657d; font-size: 12px; font-weight: 700; line-height: 16px; }
.parameter-children-title + .parameter-variant-label { margin-top: 10px; }
.parameter-variant-label code { color: #3f5068; font-size: inherit; font-weight: inherit; }
.source-reference-examples > p:has(+ .source-code-card) { margin-bottom: 8px; color: #748198; font-size: 12px; font-weight: 700; line-height: 16px; text-transform: uppercase; }
.source-reference-examples .source-code-card:first-child { margin-top: 0; }
.source-reference-examples .source-code-card { margin-bottom: 18px; }
.missing-example { margin: 2px 0 0 !important; padding: 11px 13px; border: 1px solid #efcaca; border-radius: var(--radius); background: #fff7f7; }
.source-document p { max-width: 78ch; margin: 0 0 14px; color: var(--text); }
.source-document strong { color: #33445c; }
.source-document ol, .source-document ul { max-width: 78ch; margin: 0 0 18px; padding-left: 22px; color: var(--text); }
.source-document li + li { margin-top: 4px; }
.source-document hr { display: none; }
.source-document p > code, .source-document li > code, .source-document td code { padding: 1px 4px; border-radius: 4px; background: #f2f5f8; color: #40516a; font-size: 12px; line-height: 20px; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.source-document .notice { max-width: 78ch; margin: 14px 0; padding: 11px 13px; border: 1px solid #d9e6fb; border-radius: var(--radius); background: #f4f8ff; color: #53657d; }
.appendix-backlinks { display: flex; align-items: baseline; gap: 12px; margin: -6px 0 14px; color: #7e8b9e; font-size: 12px; line-height: 18px; }
.appendix-backlinks > div { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.appendix-backlinks a { color: var(--accent-strong); font-weight: 600; }
.appendix-backlinks a:hover { text-decoration: underline; text-underline-offset: 2px; }
.appendix-backlinks code { font-size: 12px; }
.table-wrap { max-width: 100%; margin: 14px 0 26px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
.table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.table-wrap::-webkit-scrollbar-thumb { min-width: 52px; min-height: 52px; border: 2px solid transparent; border-radius: 999px; background: var(--scroll-thumb); background-clip: content-box; }
.table-wrap::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); background-clip: content-box; }
.table-wrap::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.table-wrap table { width: 100%; min-width: 700px; border-collapse: collapse; background: #fff; font-size: 14px; line-height: 22px; }
.table-wrap th { padding: 10px 12px; border-bottom: 1px solid var(--line-strong); background: #f7f9fc; color: #66758b; font-size: 12px; font-weight: 700; line-height: 16px; text-align: left; white-space: nowrap; }
.table-wrap td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: #46566e; vertical-align: top; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { color: #334761; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.code-card.source-code-card { max-width: 100%; margin: 14px 0 26px; border-radius: 8px; }
.source-code-card .code-toolbar { height: 33px; padding: 0 12px; }
.source-code-card--request,
.source-code-card--utility { border-color: #474e5a; background: #3e444f; color: #f7f9fb; }
.source-code-card--request .code-toolbar,
.source-code-card--utility .code-toolbar { border-color: #474e5a; background: #3e444f; color: #d9e0e8; }
.source-code-card--request .code-toolbar button,
.source-code-card--utility .code-toolbar button { color: #f7f9fb; }
.source-code-card--request .code-toolbar button:hover,
.source-code-card--utility .code-toolbar button:hover { background: #4b5360; }
.source-code-card--request pre,
.source-code-card--utility pre { background: #3e444f; color: #f7f9fb; scrollbar-color: #737d8c transparent; }
.source-code-card--request .line-no,
.source-code-card--utility .line-no { color: #9aa6b5; }
.source-code-card--request pre::-webkit-scrollbar-thumb,
.source-code-card--utility pre::-webkit-scrollbar-thumb { background: #737d8c; background-clip: content-box; }
.source-code-card--request pre::-webkit-scrollbar-thumb:hover,
.source-code-card--utility pre::-webkit-scrollbar-thumb:hover { background: #8b96a5; background-clip: content-box; }
.source-code-card--response { border-color: #d4dee9; background: #f4f7fa; color: #1a2c44; }
.source-code-card--response .code-toolbar { border-color: #d4dee9; background: #ecf1f6; color: #1a2c44; }
.source-code-card--response .code-toolbar button { color: #50617a; }
.source-code-card--generated { box-shadow: inset 3px 0 0 #8b9bb0; }
.source-code-card--generated .code-toolbar span::after { content: ' · 结构示例'; font-weight: 500; opacity: .78; }
.source-code-card--response .code-toolbar button:hover { background: #dde6ef; color: #1a2c44; }
.source-code-card--response pre { background: #f4f7fa; color: #1a2c44; }
.source-code-card--response .line-no { color: #718097; }
.source-code-card pre { max-height: 480px; }
.source-code-card code { font: inherit; }
.needs-confirmation { color: #c53b3b !important; font-weight: 600; }
.needs-confirmation::selection { background: #f7dada; }
.api-document > .docs-footer { margin: 56px -71px -72px -56px; }

html[data-theme="dark"] {
  color-scheme: dark;
  --accent: #746cff;
  --accent-strong: #918aff;
  --accent-soft: rgba(95,76,254,.18);
  --ink: #f3f4f7;
  --text: #c7cbd4;
  --muted: #989daa;
  --faint: #747a88;
  --line: #30343e;
  --line-strong: #3b404c;
  --surface: #1b1e25;
  --sidebar: #14171d;
  --code-dark: #3e444f;
  --code-dark-border: #4a505d;
  --code-light: #20232a;
  --scroll-thumb: #4c5260;
  --scroll-thumb-hover: #626978;
}

html[data-theme="dark"] .docs-sidebar { border-right-color: var(--line); }
html[data-theme="dark"] .docs-topbar { background: rgba(20,23,29,.98); }
html[data-theme="dark"] .sidebar-find,
html[data-theme="dark"] .sidebar-guide,
html[data-theme="dark"] .sidebar-search,
html[data-theme="dark"] .mobile-menu { border-color: var(--line); background: #20242c; color: #aeb3c0; }
html[data-theme="dark"] .mobile-menu:hover { border-color: #464b57; background: #272b34; color: #e1e3e8; }
html[data-theme="dark"] .sidebar-find kbd,
html[data-theme="dark"] .sidebar-search kbd { border-color: #3b404c; background: #171a20; color: #858b99; }
html[data-theme="dark"] .utility-nav a { color: #a1a6b2; }
html[data-theme="dark"] .utility-nav a:hover,
html[data-theme="dark"] .utility-nav a.active { color: var(--accent-strong); }
html[data-theme="dark"] .nav-label,
html[data-theme="dark"] .nav-interface-label { color: #747a88; }
html[data-theme="dark"] .nav-item,
html[data-theme="dark"] .nav-children .nav-item,
html[data-theme="dark"] .nav-chevron { color: #a4a9b5; }
html[data-theme="dark"] .nav-trigger { color: #e4e6eb; }
html[data-theme="dark"] .nav-item:hover,
html[data-theme="dark"] .nav-trigger:hover { background: #22262e; color: #f3f4f7; }
html[data-theme="dark"] .nav-item.active { background: var(--accent-soft); color: #aaa5ff; }

html[data-theme="dark"] .portal-search { border-color: #3b404c; background: #20242c; }
html[data-theme="dark"] .portal-search:focus-within { border-color: var(--accent); background: #171a20; box-shadow: 0 0 0 2px rgba(145,138,255,.16); }
html[data-theme="dark"] .portal-search-input { color: #eef0f4; }
html[data-theme="dark"] .portal-search-input::placeholder { color: #a4a9b5; }
html[data-theme="dark"] .portal-search-submit { background: #918aff; color: #14171d; }
html[data-theme="dark"] .portal-search-submit:hover { background: #aaa5ff; }
html[data-theme="dark"] .portal-search-results { border-color: #3b404c; background: #1b1e25; box-shadow: 0 18px 48px rgba(0,0,0,.42); }
html[data-theme="dark"] .portal-search-result-heading strong { color: #eef0f4; }
html[data-theme="dark"] .portal-search-result-heading small { color: #989daa; }
html[data-theme="dark"] .portal-search-result-summary { color: #c7cbd4; }
html[data-theme="dark"] .portal-search-count { border-color: #30343e; }

html[data-theme="dark"] .theme-toggle-track { background: #5f4cfe; }
html[data-theme="dark"] .theme-toggle:hover .theme-toggle-track { background: #6c5cff; }
html[data-theme="dark"] .theme-toggle-thumb { border-color: #746cff; background: #14171d; box-shadow: 0 1px 4px rgba(0,0,0,.42); transform: translateX(12px); }
html[data-theme="dark"] .theme-icon-sun { opacity: 0; transform: rotate(35deg) scale(.55); }
html[data-theme="dark"] .theme-icon-moon { opacity: 1; transform: rotate(0) scale(1); }

html[data-theme="dark"] .reference-example,
html[data-theme="dark"] .screen-table-wrap,
html[data-theme="dark"] .integration-table-wrap,
html[data-theme="dark"] .table-wrap table { background: var(--surface); color: var(--ink); }
html[data-theme="dark"] .section-actions button,
html[data-theme="dark"] .quiet-action,
html[data-theme="dark"] .example-label,
html[data-theme="dark"] .feedback,
html[data-theme="dark"] .guide-breadcrumb,
html[data-theme="dark"] .docs-footer { color: #8f95a3; }
html[data-theme="dark"] .section-actions button:hover,
html[data-theme="dark"] .quiet-action:hover,
html[data-theme="dark"] .feedback button:hover,
html[data-theme="dark"] .reading-grid a:hover { background: #242831; color: var(--accent-strong); }
html[data-theme="dark"] .meta-list dt,
html[data-theme="dark"] .parameter-type,
html[data-theme="dark"] .parameter-required,
html[data-theme="dark"] .parameter-children-title,
html[data-theme="dark"] .integration-table th,
html[data-theme="dark"] .table-wrap th { color: #949aa8; }
html[data-theme="dark"] .meta-list dd,
html[data-theme="dark"] .attribute code,
html[data-theme="dark"] .status-table code,
html[data-theme="dark"] .status-table strong,
html[data-theme="dark"] .source-document strong,
html[data-theme="dark"] .integration-table td:first-child,
html[data-theme="dark"] .integration-table code,
html[data-theme="dark"] .interaction-sequence p strong,
html[data-theme="dark"] .parameter-name,
html[data-theme="dark"] .parameter-label,
html[data-theme="dark"] .parameter-variant-label code,
html[data-theme="dark"] .table-wrap td:first-child { color: #e2e4ea; }

html[data-theme="dark"] .code-callout,
html[data-theme="dark"] .empty-visual-placeholder,
html[data-theme="dark"] .doc-callout,
html[data-theme="dark"] .source-document .notice { border-color: #384052; background: #222733; color: #b8beca; }
html[data-theme="dark"] .code-callout strong,
html[data-theme="dark"] .doc-callout strong { color: #aab0bd; }
html[data-theme="dark"] .feedback button,
html[data-theme="dark"] .parameter-child-toggle { border-color: var(--line-strong); background: #20242c; color: #bdc2cc; }
html[data-theme="dark"] .parameter-child-toggle:hover { border-color: #505663; background: #292d36; color: #f0f1f4; }
html[data-theme="dark"] .parameter-child-icon { color: #9ba1ae; }
html[data-theme="dark"] .parameter-children { border-color: var(--line-strong); background: #1f2229; }
html[data-theme="dark"] .parameter-children .parameter-children { background: #171a20; }
html[data-theme="dark"] .parameter-row:target { background: var(--accent-soft); }
html[data-theme="dark"] .parameter-required.is-required { color: #ff9b73; }
html[data-theme="dark"] .parameter-enum-link { border-bottom-color: #5b5790; }
html[data-theme="dark"] .parameter-description code,
html[data-theme="dark"] .source-document p > code,
html[data-theme="dark"] .source-document li > code,
html[data-theme="dark"] .source-document td code { background: #272b34; color: #c5c9d2; }

html[data-theme="dark"] .screen-table th,
html[data-theme="dark"] .integration-table th,
html[data-theme="dark"] .table-wrap th { background: #22262e; color: #a8adba; }
html[data-theme="dark"] .screen-table a { background: #171a20; }
html[data-theme="dark"] .integration-table td,
html[data-theme="dark"] .table-wrap td { color: #c2c6cf; }
html[data-theme="dark"] .actor { border-color: #3b404c; background: #20242c; color: #bdc2cc; }
html[data-theme="dark"] .actor-user { border-color: #3d4c68; background: #202836; color: #9dbaf0; }
html[data-theme="dark"] .actor-channel { border-color: #414753; background: #242831; color: #bdc2cc; }
html[data-theme="dark"] .actor-zimu { border-color: #385345; background: #202b25; color: #92c9a5; }
html[data-theme="dark"] .interaction-route b { color: #747a88; }
html[data-theme="dark"] .interaction-sequence p strong,
html[data-theme="dark"] .interaction-sequence p a { color: #e2e4ea; }
html[data-theme="dark"] .interaction-sequence p a,
html[data-theme="dark"] .check-list p a { color: var(--accent-strong); }
html[data-theme="dark"] .interaction-sequence code { color: #c5c9d2; }
html[data-theme="dark"] .domain-whitelist,
html[data-theme="dark"] .domain-whitelist button { background: #202329; }
html[data-theme="dark"] .domain-whitelist button:hover { border-color: #515969; background: #2a2f37; }
html[data-theme="dark"] .on-this-page p { color: #afb4bf; }
html[data-theme="dark"] .on-this-page a { color: #838997; }

html[data-theme="dark"] .code-card.light,
html[data-theme="dark"] .source-code-card--response { border-color: #3b404c; background: #1f2229; color: #d9dde5; }
html[data-theme="dark"] .light .code-toolbar,
html[data-theme="dark"] .source-code-card--response .code-toolbar { border-color: #3b404c; background: #272b34; color: #d5d8df; }
html[data-theme="dark"] .source-code-card--response .code-toolbar button { color: #b1b6c2; }
html[data-theme="dark"] .light .code-toolbar button:hover,
html[data-theme="dark"] .source-code-card--response .code-toolbar button:hover { background: #343944; color: #f2f3f6; }
html[data-theme="dark"] .source-code-card--response pre { background: #1f2229; color: #d9dde5; }
html[data-theme="dark"] .source-code-card--response .line-no { color: #707684; }
html[data-theme="dark"] .light .token-key { color: #8fb0ef; }
html[data-theme="dark"] .light .token-value { color: #82c99b; }
html[data-theme="dark"] .missing-example { border-color: #673f45; background: #2a2024; }
html[data-theme="dark"] .needs-confirmation { color: #ff9696 !important; }
html[data-theme="dark"] .needs-confirmation::selection { background: #60383e; }

html.theme-transitioning body,
html.theme-transitioning .docs-topbar,
html.theme-transitioning .docs-sidebar,
html.theme-transitioning .reference-example,
html.theme-transitioning .code-card,
html.theme-transitioning .code-toolbar,
html.theme-transitioning .code-card pre,
html.theme-transitioning .parameter-children,
html.theme-transitioning .portal-search,
html.theme-transitioning .portal-search-results,
html.theme-transitioning table,
html.theme-transitioning th,
html.theme-transitioning td { transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }

button:active, a:active { transform: translateY(1px); }

@media (max-width: 1050px) {
  .reference-row { grid-template-columns: minmax(340px, 1fr) minmax(330px, .9fr); }
  .reference-copy, .reference-example { padding-left: 26px; padding-right: 26px; }
  .guide-content, body[data-doc-page] .guide-content { padding-right: 54px; }
  .on-this-page { display: none; }
  .portal-search { width: min(320px, calc(100vw - 700px)); }
}

@media (max-width: 980px) {
  .utility-nav > a:not(.active) { display: none; }
  .portal-search { width: min(420px, calc(100vw - 240px)); }
}

@media (max-width: 1180px) {
  .source-reference-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px; }
  .source-reference-examples { max-width: 760px; }
}

@media (max-width: 900px) {
  .source-reference-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .source-reference-examples { position: static; max-height: none; overflow: visible; }
  .api-intro-example:empty, .source-reference-examples:empty { display: none; }
  .api-document { padding-right: 34px; padding-left: 34px; }
  .api-document > .docs-footer { margin-right: -34px; margin-left: -34px; }
}

@media (max-width: 760px) {
  :root { --header-h: 50px; }
  body.sidebar-open { overflow: hidden; }
  .docs-sidebar { width: min(280px, 84vw); transform: translateX(-100%); transition: transform .18s ease; box-shadow: 16px 0 50px rgba(35,48,68,.16); }
  body.sidebar-open .docs-sidebar { transform: translateX(0); }
  .docs-stage { margin-left: 0; }
  .docs-topbar { justify-content: flex-start; gap: 10px; padding: 0 14px; }
  .mobile-brand { display: block; margin-right: auto; font-weight: 700; }
  .mobile-menu { display: block; padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #647388; font-size: 12px; line-height: 16px; }
  .utility-nav { display: flex; min-width: 0; gap: 0; }
  .utility-nav > a { display: none; }
  .portal-search { width: calc(100vw - 124px); min-width: 0; height: 32px; }
  .portal-search-input { padding: 0 7px; font-size: 13px; line-height: 26px; }
  .portal-search-submit { height: 26px; padding: 0 10px; font-size: 12px; line-height: 26px; }
  .portal-search-results { position: fixed; top: calc(var(--header-h) + 8px); right: 14px; left: 14px; width: auto; max-height: calc(100dvh - var(--header-h) - 22px); }
  .reference-row { display: block; }
  .reference-copy { width: 100%; border-right: 0; }
  .reference-copy, .reference-example, .intro-row .reference-copy, .intro-row .reference-example { padding: 26px 20px; }
  .reference-example { padding-top: 0; }
  .section-heading-line { gap: 10px; }
  .section-actions, .quiet-action { display: none; }
  .reference-copy h1 { font-size: 24px; line-height: 32px; }
  .reference-copy h2 { font-size: 20px; line-height: 28px; }
  .meta-list div { grid-template-columns: 92px 1fr; }
  pre { font-size: 14px; line-height: 20px; }
  .status-table > div { grid-template-columns: 42px 86px 1fr; gap: 7px; }
  .guide-content, body[data-doc-page] .guide-content { width: 100%; padding: 28px 20px 54px; }
  .guide-article h1 { font-size: 24px; line-height: 32px; }
  .guide-lead { font-size: 14px; line-height: 22px; }
  .reading-grid { grid-template-columns: 1fr; }
  .reading-grid a + a { border-top: 1px solid var(--line); border-left: 0; }
  .integration-table-wrap { margin-right: -20px; border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
  .interaction-sequence li { grid-template-columns: 1fr; gap: 7px; padding: 13px 2px; }
  .domain-whitelist { grid-column: 1; }
  .interaction-route { min-height: 22px; }
  .docs-footer { flex-direction: column; align-items: flex-start; padding: 18px 20px; }
  .api-document { width: 100%; padding: 28px 20px 54px; }
  .api-document-intro { margin-bottom: 34px; }
  .api-document-intro.source-reference-row { padding-bottom: 34px; }
  .source-group + .source-group { margin-top: 42px; padding-top: 30px; }
  .source-group-wide > h3 { margin-top: 34px; padding-top: 24px; }
  .source-reference-row { padding: 28px 0 34px; }
  .table-wrap { margin-right: -20px; border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
  .table-wrap table { min-width: 660px; }
  .source-reference-copy .table-wrap table { min-width: 620px; table-layout: auto; }
  .api-document > .docs-footer { margin: 44px -20px -54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
