:root {
  color-scheme: light;
  --header-height: 64px;
  --sidebar-width: 264px;
  --toc-width: 224px;
  --page: #ffffff;
  --sidebar: #f8fafc;
  --surface: #ffffff;
  --surface-subtle: #f7f9fc;
  --text: #111827;
  --text-strong: #090d16;
  --muted: #667085;
  --faint: #98a2b3;
  --border: #e5e9f0;
  --border-strong: #d7dde7;
  --accent: #4968ee;
  --accent-soft: #eef2ff;
  --teal: #16a394;
  --teal-soft: #eafaf7;
  --code: #0c1424;
  --code-border: #1d2a40;
  --code-text: #dbe6f7;
  --success: #18a66a;
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #0c111c;
  --sidebar: #101724;
  --surface: #111925;
  --surface-subtle: #151e2c;
  --text: #e7ebf3;
  --text-strong: #ffffff;
  --muted: #9da9ba;
  --faint: #738096;
  --border: #253044;
  --border-strong: #354158;
  --accent: #8ea4ff;
  --accent-soft: #1a2748;
  --teal: #58d3c4;
  --teal-soft: #102f31;
  --code: #080e19;
  --code-border: #26364e;
  --code-text: #d9e5f5;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0;
  transition: background-color 180ms ease, color 180ms ease;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg {
  display: block;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--page) 94%, transparent);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  max-width: 1600px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 0;
  line-height: 1.2;
}

.brand-copy strong {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 720;
}

.brand-copy span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 560;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-nav a {
  position: relative;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.top-nav a::after {
  position: absolute;
  right: 12px;
  bottom: 1px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--text-strong);
}

.top-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.console-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.console-link:hover {
  color: var(--accent);
}

.console-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.icon-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-subtle);
  color: var(--text-strong);
}

.icon-button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 26%, transparent);
  outline-offset: 2px;
}

.icon-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-button.square {
  width: 36px;
  padding: 0;
}

.search-trigger {
  padding: 0 8px 0 10px;
}

.search-trigger kbd {
  min-width: 42px;
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  color: var(--faint);
  font-family: inherit;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
}

.theme-icon-moon,
html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: block;
}

.menu-toggle,
.sidebar-close {
  display: none;
}

.docs-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 824px) var(--toc-width);
  justify-content: center;
  min-height: 100vh;
  padding-top: var(--header-height);
}

.sidebar {
  position: sticky;
  top: var(--header-height);
  align-self: start;
  height: calc(100vh - var(--header-height));
  overflow: auto;
  border-right: 1px solid var(--border);
  background: var(--sidebar);
  scrollbar-width: thin;
}

.sidebar-head {
  display: none;
}

#sidebar-nav {
  padding: 30px 24px 96px;
}

.nav-group + .nav-group {
  margin-top: 26px;
}

.nav-group-title {
  display: block;
  margin: 0 10px 8px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 720;
}

.sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 38px;
  margin: 2px 0;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.4;
}

.sidebar-link::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
}

.sidebar-link:hover {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--text-strong);
}

.sidebar-link.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 680;
}

.sidebar-link.active::before {
  opacity: 1;
}

.sidebar-footer {
  position: fixed;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  width: var(--sidebar-width);
  min-height: 50px;
  padding: 0 24px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: color-mix(in srgb, var(--sidebar) 94%, transparent);
  color: var(--faint);
  font-size: 11px;
  backdrop-filter: blur(12px);
}

.sidebar-footer a {
  margin-left: auto;
  color: var(--accent);
  font-weight: 650;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 14%, transparent);
}

.doc-main {
  min-width: 0;
  padding: 48px 64px 72px;
}

#doc-content {
  outline: none;
}

.doc-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 760;
}

.doc-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

h1,
h2,
h3 {
  color: var(--text-strong);
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 780;
  line-height: 1.18;
}

h2 {
  margin: 44px 0 14px;
  padding-top: 4px;
  font-size: 24px;
  font-weight: 740;
  line-height: 1.35;
}

h3 {
  margin: 28px 0 10px;
  font-size: 17px;
  font-weight: 720;
  line-height: 1.4;
}

.doc-lead {
  max-width: 690px;
  margin: 14px 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

p {
  margin: 12px 0;
  color: var(--muted);
}

strong {
  color: var(--text-strong);
}

.copy-page {
  flex: 0 0 auto;
  padding: 0 12px;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--text-strong);
  background: var(--text-strong);
  color: var(--page);
}

.button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  margin: 28px 0 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step {
  min-height: 138px;
  padding: 22px;
}

.step:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.step:nth-child(-n + 2) {
  border-bottom: 1px solid var(--border);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

code {
  border-radius: 4px;
  background: var(--teal-soft);
  color: var(--teal);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.88em;
  font-weight: 580;
}

p code,
li code,
td code {
  padding: 2px 5px;
}

.code-shell {
  overflow: hidden;
  margin: 16px 0 24px;
  border: 1px solid var(--code-border);
  border-radius: var(--radius);
  background: var(--code);
  box-shadow: 0 8px 26px rgba(10, 17, 30, 0.08);
}

.code-head {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #8897ad;
  font-size: 11px;
  font-weight: 650;
}

.code-head .method {
  margin-right: 8px;
  color: #62d5c8;
}

.copy-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin-left: auto;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #afbbcb;
  cursor: pointer;
  font-size: 10px;
  font-weight: 680;
}

.copy-code:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.copy-code svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: var(--code-text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.72;
  tab-size: 2;
  scrollbar-width: thin;
}

pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: 450;
}

.notice {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 14px;
  margin: 20px 0 26px;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.notice::before {
  border-radius: 4px;
  background: var(--accent);
  content: "";
}

.notice.success::before {
  background: var(--teal);
}

.notice.warning::before {
  background: #d49422;
}

.notice strong,
.notice p {
  display: block;
  margin: 0;
}

.notice strong {
  font-size: 13px;
}

.notice p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.7;
}

.doc-table-wrap {
  margin: 16px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.doc-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 13px;
  line-height: 1.55;
}

.doc-table th,
.doc-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  background: var(--surface-subtle);
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 740;
}

.doc-table td {
  color: var(--muted);
}

.doc-table tr:last-child td {
  border-bottom: 0;
}

.status-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface-subtle);
  color: var(--text-strong);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 650;
}

.bullet-list,
.number-list {
  margin: 14px 0 24px;
  padding-left: 22px;
  color: var(--muted);
}

.bullet-list li,
.number-list li {
  margin: 7px 0;
  padding-left: 3px;
}

.price-equation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 26px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.price-equation span {
  color: var(--muted);
  font-size: 13px;
}

.price-equation strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 18px;
}

.toc {
  position: sticky;
  top: var(--header-height);
  align-self: start;
  height: calc(100vh - var(--header-height));
  padding: 42px 20px 30px 30px;
  overflow: auto;
  border-left: 1px solid var(--border);
  background: color-mix(in srgb, var(--page) 96%, var(--sidebar));
}

.toc > strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 760;
}

#toc-nav {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--border);
}

.toc-link {
  margin-left: -1px;
  padding: 6px 0 6px 13px;
  border-left: 1px solid transparent;
  color: var(--faint);
  font-size: 11px;
  font-weight: 550;
  line-height: 1.45;
}

.toc-link.sub {
  padding-left: 22px;
}

.toc-link:hover,
.toc-link.active {
  border-left-color: var(--accent);
  color: var(--accent);
}

.toc-help {
  display: grid;
  gap: 2px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 11px;
}

.toc-help span {
  color: var(--faint);
}

.toc-help a {
  color: var(--accent);
  font-weight: 650;
}

.doc-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pagination-link {
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.pagination-link:hover {
  border-color: var(--accent);
}

.pagination-link span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 650;
}

.pagination-link strong {
  color: var(--text-strong);
  font-size: 13px;
}

.pagination-link.next {
  text-align: right;
}

.pagination-link.hidden {
  visibility: hidden;
}

.doc-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  color: var(--faint);
  font-size: 11px;
}

.doc-footer code {
  background: transparent;
  color: var(--faint);
}

.search-dialog {
  width: min(620px, calc(100vw - 32px));
  margin-top: 12vh;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.search-dialog::backdrop {
  background: rgba(8, 12, 20, 0.42);
  backdrop-filter: blur(4px);
}

.search-panel {
  overflow: hidden;
  border-radius: inherit;
}

.search-field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 17px;
  border-bottom: 1px solid var(--border);
}

.search-field > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--faint);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 520;
}

.search-field input::placeholder {
  color: var(--faint);
}

.search-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}

.search-close:hover {
  background: var(--surface-subtle);
  color: var(--text-strong);
}

.search-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.search-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 6px;
  color: var(--faint);
  font-size: 10px;
}

.search-meta strong {
  font-size: 11px;
}

.search-results {
  max-height: 430px;
  padding: 6px 8px 10px;
  overflow: auto;
}

.search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.search-result:hover,
.search-result.active {
  background: var(--accent-soft);
}

.search-result strong,
.search-result span {
  display: block;
}

.search-result strong {
  font-size: 13px;
}

.search-result span {
  margin-top: 2px;
  color: var(--faint);
  font-size: 11px;
}

.search-result svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--faint);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.empty-search {
  display: grid;
  place-items: center;
  min-height: 150px;
  color: var(--faint);
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--text-strong);
  color: var(--page);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #6ce7b2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mobile-scrim {
  display: none;
}

@media (max-width: 1180px) {
  .docs-shell {
    grid-template-columns: var(--sidebar-width) minmax(0, 850px);
  }

  .toc {
    display: none;
  }

  .topbar-inner {
    grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  }
}

@media (max-width: 920px) {
  .top-nav,
  .console-link,
  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }

  .topbar-inner {
    display: flex;
    justify-content: space-between;
  }

  .menu-toggle,
  .sidebar-close {
    display: inline-flex;
  }

  .search-trigger {
    width: 36px;
    padding: 0;
  }

  .docs-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    width: min(320px, calc(100vw - 48px));
    height: 100vh;
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateX(-104%);
    transition: transform 220ms ease;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    padding: 0 16px 0 24px;
    border-bottom: 1px solid var(--border);
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 720;
  }

  #sidebar-nav {
    padding-top: 22px;
  }

  .sidebar-footer {
    width: min(320px, calc(100vw - 48px));
  }

  .mobile-scrim {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    background: rgba(8, 12, 20, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  body.menu-open .mobile-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .doc-main {
    max-width: 850px;
    margin: 0 auto;
    padding: 42px 42px 64px;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 58px;
  }

  .topbar-inner {
    padding: 0 14px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .brand-copy span {
    display: none;
  }

  .top-actions {
    gap: 6px;
  }

  .icon-button,
  .icon-button.square,
  .search-trigger {
    width: 34px;
    height: 34px;
  }

  .doc-main {
    padding: 32px 20px 52px;
  }

  .doc-title-row {
    display: block;
  }

  h1 {
    font-size: 34px;
    line-height: 1.2;
  }

  h2 {
    margin-top: 38px;
    font-size: 22px;
  }

  .doc-lead {
    font-size: 15px;
    line-height: 1.8;
  }

  .copy-page {
    margin-top: 18px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 0;
  }

  .step:nth-child(odd) {
    border-right: 0;
  }

  .step:nth-child(-n + 3) {
    border-bottom: 1px solid var(--border);
  }

  .price-equation {
    align-items: flex-start;
    flex-direction: column;
  }

  .doc-pagination {
    grid-template-columns: 1fr;
  }

  .pagination-link.next {
    text-align: left;
  }

  .doc-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-dialog {
    width: calc(100vw - 20px);
    margin-top: 8vh;
  }

  .search-meta span {
    display: none;
  }

  pre {
    font-size: 11.5px;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    justify-content: center;
  }
}

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

@media print {
  .topbar,
  .sidebar,
  .toc,
  .doc-pagination,
  .copy-page,
  .copy-code,
  .toast {
    display: none !important;
  }

  .docs-shell {
    display: block;
    padding: 0;
  }

  .doc-main {
    max-width: none;
    padding: 0;
  }

  .code-shell {
    break-inside: avoid;
  }
}
