:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --line: #e4e9f1;
  --line-strong: #d8e0ec;
  --text: #172033;
  --muted: #64748b;
  --brand: #1677ff;
  --brand-strong: #0f5fd6;
  --brand-soft: rgba(22, 119, 255, 0.08);
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.04);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "SF Pro Display",
    "SF Pro Text",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(216, 224, 236, 0.95);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.nav-link {
  position: relative;
  color: var(--muted);
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1rem;
  height: 2px;
  border-radius: 9999px;
  background: var(--brand);
}

.doc-search-trigger {
  display: inline-flex;
  min-width: 12rem;
  max-width: 22rem;
  height: 2.75rem;
  flex: 1 1 18rem;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  border: 1px solid #dfe5ee;
  border-radius: 0.72rem;
  padding: 0 0.55rem 0 0.8rem;
  background: #f8fafc;
  color: #667085;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.doc-search-trigger:hover {
  border-color: #b7cae8;
  background: #ffffff;
  color: #344054;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.doc-search-trigger:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.2);
  outline-offset: 2px;
}

.doc-search-trigger svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.doc-search-trigger > span {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.82rem;
  font-weight: 550;
}

.doc-search-trigger kbd {
  display: inline-flex;
  min-height: 1.55rem;
  align-items: center;
  border: 1px solid #dfe4ec;
  border-radius: 0.4rem;
  padding: 0 0.42rem;
  background: #ffffff;
  color: #98a2b3;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
}

body.doc-search-open {
  overflow: hidden;
}

.doc-search-dialog {
  width: min(calc(100vw - 2rem), 56rem);
  max-width: none;
  max-height: min(82dvh, 48rem);
  overflow: visible;
  border: 0;
  border-radius: 1rem;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.doc-search-dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(5px);
}

.doc-search-panel {
  display: grid;
  max-height: min(82dvh, 48rem);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.24);
}

.doc-search-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.doc-search-input-row {
  display: grid;
  min-height: 4.2rem;
  grid-template-columns: 1.25rem minmax(0, 1fr) 2.75rem 2.75rem;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid #e4e7ec;
  padding: 0.55rem 0.65rem 0.55rem 1rem;
}

.doc-search-input-row > svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #475467;
}

.doc-search-input-row input {
  width: 100%;
  min-width: 0;
  height: 3rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: #101828;
  font-size: 1rem;
  line-height: 1.5;
  outline: 0;
}

.doc-search-input-row input::placeholder {
  color: #98a2b3;
}

.doc-search-input-row input::-webkit-search-cancel-button {
  display: none;
}

.doc-search-clear,
.doc-search-close {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.68rem;
  background: transparent;
  color: #667085;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.doc-search-clear:hover,
.doc-search-close:hover {
  background: #f2f4f7;
  color: #1d2939;
}

.doc-search-clear:focus-visible,
.doc-search-close:focus-visible,
.doc-search-result-link:focus-visible,
.doc-search-suggestions button:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.2);
  outline-offset: 2px;
}

.doc-search-clear svg,
.doc-search-close svg {
  width: 1.15rem;
  height: 1.15rem;
}

.doc-search-meta {
  min-height: 2.5rem;
  border-bottom: 1px solid #eef1f5;
  padding: 0.72rem 1rem;
  color: #667085;
  font-size: 0.76rem;
  font-weight: 600;
}

.doc-search-results {
  min-height: 14rem;
  max-height: min(60dvh, 37rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.55rem;
}

.doc-search-result-link {
  display: grid;
  min-height: 6.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  border: 1px solid transparent;
  border-radius: 0.78rem;
  padding: 0.82rem 0.88rem;
  color: #344054;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.doc-search-result-link + .doc-search-result-link {
  margin-top: 0.28rem;
}

.doc-search-result-link:hover,
.doc-search-result-link.is-selected {
  border-color: #bfd4f3;
  background: #f3f7fd;
}

.doc-search-result-copy {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.doc-search-result-path {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.2rem;
  overflow: hidden;
  color: #7b8798;
  font-size: 0.7rem;
  font-weight: 550;
  white-space: nowrap;
}

.doc-search-result-path span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-search-result-path svg {
  width: 0.72rem;
  height: 0.72rem;
  flex: 0 0 auto;
  color: #b0b8c5;
}

.doc-search-result-copy > strong {
  color: #1d2939;
  font-size: 0.9rem;
  font-weight: 680;
  line-height: 1.45;
}

.doc-search-result-copy > small {
  color: #667085;
  font-size: 0.72rem;
  line-height: 1.45;
}

.doc-search-result-excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: #667085;
  font-size: 0.75rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.doc-search-result-module {
  display: inline-flex;
  min-height: 1.55rem;
  align-items: center;
  border-radius: 9999px;
  padding: 0 0.55rem;
  background: #eaf2ff;
  color: #1459c7;
  font-size: 0.66rem;
  font-weight: 680;
  white-space: nowrap;
}

.doc-search-result-link mark {
  border-radius: 0.2rem;
  padding: 0 0.08rem;
  background: #dbeafe;
  color: #1459c7;
}

.doc-reader-header h1[tabindex="-1"]:focus,
.doc-reader-section h2[tabindex="-1"]:focus {
  outline: none;
}

.doc-search-start,
.doc-search-empty {
  display: grid;
  min-height: 14rem;
  align-content: center;
  justify-items: center;
  gap: 0.45rem;
  padding: 2rem 1rem;
  color: #667085;
  text-align: center;
}

.doc-search-start > div:first-child,
.doc-search-empty {
  text-align: center;
}

.doc-search-start strong,
.doc-search-empty strong {
  display: block;
  color: #344054;
  font-size: 0.9rem;
}

.doc-search-start span,
.doc-search-empty span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  line-height: 1.55;
}

.doc-search-empty svg {
  width: 1.65rem;
  height: 1.65rem;
  margin-bottom: 0.3rem;
  color: #98a2b3;
}

.doc-search-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.doc-search-suggestions button {
  min-height: 2.75rem;
  border: 1px solid #d9e2ef;
  border-radius: 9999px;
  padding: 0 0.85rem;
  background: #ffffff;
  color: #475467;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.doc-search-suggestions button:hover {
  border-color: #b7cae8;
  background: #f3f7fd;
  color: #1459c7;
}

.doc-search-footer {
  display: flex;
  min-height: 2.8rem;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid #e4e7ec;
  padding: 0.55rem 0.85rem;
  background: #fafbfc;
  color: #7b8798;
  font-size: 0.68rem;
}

.doc-search-footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.doc-search-footer kbd {
  display: inline-flex;
  min-width: 1.45rem;
  height: 1.45rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe4ec;
  border-radius: 0.35rem;
  background: #ffffff;
  color: #667085;
  font-family: inherit;
  font-size: 0.66rem;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
}

@media (max-width: 1199px) {
  .doc-search-trigger {
    width: 2.75rem;
    min-width: 2.75rem;
    max-width: 2.75rem;
    flex: 0 0 2.75rem;
    justify-content: center;
    padding: 0;
  }

  .doc-search-trigger > span,
  .doc-search-trigger kbd {
    display: none;
  }
}

@media (max-width: 639px) {
  .doc-search-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
    border-radius: 0.85rem;
  }

  .doc-search-panel {
    max-height: calc(100dvh - 1rem);
    border-radius: 0.85rem;
  }

  .doc-search-input-row {
    min-height: 3.8rem;
    grid-template-columns: 1.15rem minmax(0, 1fr) 2.75rem 2.75rem;
    padding-left: 0.8rem;
  }

  .doc-search-input-row input {
    font-size: 1rem;
  }

  .doc-search-results {
    min-height: 12rem;
    max-height: calc(100dvh - 9rem);
    padding: 0.42rem;
  }

  .doc-search-result-link {
    min-height: 6rem;
    gap: 0.55rem;
    padding: 0.75rem;
  }

  .doc-search-result-module {
    padding: 0 0.45rem;
    font-size: 0.62rem;
  }

  .doc-search-footer {
    display: none;
  }
}

.header-auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.5rem;
}

.auth-pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.62rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.auth-pill-button:hover {
  transform: translateY(-1px);
}

.auth-pill-button:active {
  transform: translateY(0);
}

.auth-pill-button:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.2);
  outline-offset: 3px;
}

.auth-pill-button--secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: #334155;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.auth-pill-button--primary {
  border: 1px solid transparent;
  background: linear-gradient(180deg, #3e9cff 0%, #1677ff 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(22, 119, 255, 0.22);
}

.auth-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(22, 119, 255, 0.1);
  background: rgba(240, 247, 255, 0.96);
  padding: 0.68rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
}

.auth-status-chip::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: #10b981;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12);
}

body.auth-modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.auth-modal.is-open {
  display: flex;
}

.auth-modal.is-open .auth-dialog {
  animation: authDialogEnter 220ms ease-out both;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.auth-dialog {
  position: relative;
  width: 100%;
  max-width: 29rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.94));
  padding: 1.5rem;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.auth-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.05);
  color: #475569;
  cursor: pointer;
}

.auth-view-switch {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.05);
}

.auth-view-button {
  border: none;
  background: transparent;
  border-radius: 9999px;
  padding: 0.72rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.auth-view-button.is-active {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.auth-submode-switch {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.05);
}

.auth-submode-button {
  border: none;
  background: transparent;
  border-radius: 9999px;
  padding: 0.68rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.auth-submode-button.is-active {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.auth-demo-card {
  border-radius: 1.35rem;
  border: 1px solid rgba(22, 119, 255, 0.12);
  background: linear-gradient(180deg, rgba(240, 247, 255, 0.96), rgba(231, 241, 255, 0.92));
  padding: 1rem 1.05rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-field {
  display: grid;
  gap: 0.45rem;
}

.auth-field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.auth-field-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1rem;
}

.auth-field-meta--end {
  justify-content: flex-end;
}

.auth-input {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.95rem 1rem;
  font-size: 0.95rem;
  color: #0f172a;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.auth-input:focus {
  border-color: rgba(22, 119, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.1);
  background: #ffffff;
}

.auth-error {
  min-height: 1.3rem;
  font-size: 0.85rem;
  color: #dc2626;
}

.auth-helper-text {
  min-height: 1.1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #64748b;
}

.auth-inline-link {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
}

.auth-inline-link:hover {
  text-decoration: underline;
}

.auth-toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  z-index: 100;
  transform: translateX(-50%) translateY(1rem);
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  padding: 0.9rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.2);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.auth-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mobile-auth-group {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.mobile-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mobile-panel {
  display: none;
}

.mobile-panel.is-open {
  display: block;
}

.doc-layout {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.doc-sidebar {
  display: none;
  min-width: 0;
}

.doc-sidebar-inner {
  position: sticky;
  top: 5.7rem;
  max-height: calc(100vh - 6.8rem);
  overflow: auto;
  padding: 0.35rem 0.85rem 0.5rem 0;
  border-right: 1px solid var(--line);
}

.doc-nav-block {
  padding-right: 0.85rem;
}

.doc-nav-block + .doc-nav-block {
  margin-top: 1rem;
}

.doc-nav-group {
  margin: 0.15rem 0;
}

.doc-nav-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.doc-nav-row .doc-nav-link {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.doc-nav-link {
  display: block;
  position: relative;
  margin: 0.15rem 0;
  padding: 0.62rem 0.85rem 0.62rem 1rem;
  border-radius: 0.72rem;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--muted);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.doc-nav-link:hover {
  transform: translateX(1px);
  background: #eef5ff;
  color: var(--text);
}

.doc-nav-link:active {
  transform: translateX(0);
}

.doc-nav-link:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.16);
  outline-offset: 2px;
}

.doc-nav-link.is-current,
.doc-nav-link[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 600;
}

.doc-nav-link.is-current::before,
.doc-nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.72rem;
  bottom: 0.72rem;
  width: 2px;
  border-radius: 9999px;
  background: var(--brand);
}

.doc-nav-toggle {
  display: inline-flex;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.72rem;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.doc-nav-toggle:hover {
  background: #eef5ff;
  color: var(--brand-strong);
}

.doc-nav-toggle:active {
  background: #e4efff;
}

.doc-nav-toggle:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.16);
  outline-offset: 2px;
}

.doc-nav-toggle svg {
  width: 1rem;
  height: 1rem;
  transition: transform 180ms ease;
}

.doc-nav-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.doc-subnav {
  display: grid;
  gap: 0.15rem;
  margin: 0.2rem 0 0.45rem 1rem;
  padding: 0.2rem 0 0.2rem 0.7rem;
  border-left: 1px solid #dce6f3;
}

.doc-subnav[hidden] {
  display: none;
}

.doc-subnav-link {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #64748b;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.doc-subnav-link:hover {
  background: #f2f7ff;
  color: #1e293b;
}

.doc-subnav-link:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.16);
  outline-offset: 2px;
}

.doc-subnav-link.is-current,
.doc-subnav-link[aria-current="location"] {
  background: rgba(22, 119, 255, 0.08);
  color: var(--brand-strong);
  font-weight: 600;
}

.doc-subnav-grouping + .doc-subnav-grouping {
  margin-top: 0.35rem;
}

.doc-subnav-parent {
  min-height: 2.35rem;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 680;
}

.doc-subnav-nested {
  display: grid;
  gap: 0.08rem;
  margin: 0.05rem 0 0.25rem 0.7rem;
  border-left: 1px solid #e5ebf3;
  padding-left: 0.45rem;
}

.doc-subnav-link--nested {
  min-height: 2.15rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
}

.doc-main {
  min-width: 0;
}

.doc-anchor-target {
  scroll-margin-top: 7.25rem;
}

.doc-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.doc-module-card {
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(216, 224, 236, 0.9);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.doc-module-icon {
  display: inline-flex;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.doc-module-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.doc-module-name {
  font-size: 1rem;
  font-weight: 650;
  color: #0f172a;
}

.doc-breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: #7b8798;
}

.doc-breadcrumb a {
  color: #7b8798;
  transition: color 160ms ease;
}

.doc-breadcrumb a:hover {
  color: var(--text);
}

.doc-article {
  max-width: 860px;
  padding: 0 0 3.5rem;
}

.doc-article h1 {
  margin-top: 1rem;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--text);
}

.doc-article h3 {
  color: var(--text);
}

.doc-article p {
  font-size: 1rem;
  line-height: 1.82;
  color: var(--muted);
}

.doc-article ul,
.doc-article ol {
  color: var(--muted);
}

.doc-section + .doc-section {
  margin-top: 2.5rem;
  padding-top: 2.35rem;
  border-top: 1px solid var(--line);
}

.doc-section h2 {
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--text);
}

.doc-section p {
  margin-top: 0.9rem;
}

.doc-inline-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
}

.doc-list {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
}

.doc-quick-card,
.step-card,
.faq-card,
.doc-list-item,
.callout,
.warning-panel {
  display: block;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.doc-quick-card,
.faq-card,
.doc-list-item,
.callout,
.warning-panel {
  padding: 1.12rem 1.15rem;
}

.step-card {
  padding: 1.12rem 1.15rem;
  background: var(--surface);
}

.doc-quick-card:hover,
.step-card:hover,
.faq-card:hover,
.doc-list-item:hover {
  transform: translateY(-1px);
  border-color: #c7d8f2;
  box-shadow: var(--shadow);
}

.doc-quick-card:active,
.step-card:active,
.faq-card:active,
.doc-list-item:active {
  transform: translateY(0);
}

.doc-quick-card:focus-visible,
.step-card:focus-visible,
.faq-card:focus-visible,
.doc-list-item:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.16);
  outline-offset: 3px;
}

@keyframes authDialogEnter {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.callout {
  border-color: rgba(22, 119, 255, 0.18);
  background: linear-gradient(180deg, rgba(22, 119, 255, 0.06), rgba(22, 119, 255, 0.02));
}

.warning-panel {
  border-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.03));
}

.doc-quick-card p,
.step-card p,
.faq-card p,
.doc-list-item p,
.callout p,
.warning-panel p {
  margin-top: 0.55rem;
  font-size: 0.95rem;
  line-height: 1.74;
}

.doc-list-item-head {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.doc-list-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #8a96a8;
  text-transform: uppercase;
}

.doc-list-title {
  font-size: 1.12rem;
  font-weight: 650;
  color: var(--text);
}

.doc-list-cta,
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand);
}

.doc-list-cta:hover,
.source-link:hover {
  color: var(--brand-strong);
}

@media (min-width: 768px) {
  .doc-inline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .doc-layout {
    gap: 1.1rem;
  }

  .doc-sidebar {
    display: block;
  }

  .doc-sidebar-inner {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    border-right: 0;
  }

  .doc-nav-block {
    display: grid;
    gap: 0.15rem;
    overflow: visible;
    padding: 0.95rem;
    border: 1px solid rgba(216, 224, 236, 0.9);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  }

  .doc-nav-block + .doc-nav-block {
    margin-top: 0.75rem;
  }

  .doc-nav-link {
    margin: 0.1rem 0;
    padding: 0.72rem 0.95rem;
    border: 1px solid transparent;
    background: #f8fbff;
  }

  .doc-nav-link:hover {
    transform: translateY(-1px);
  }

  .doc-nav-link.is-current::before,
  .doc-nav-link[aria-current="page"]::before {
    display: none;
  }

  .doc-nav-group {
    margin: 0.1rem 0;
  }

  .doc-subnav {
    margin-left: 1.2rem;
  }

  .header-auth-actions {
    display: none;
  }

  .auth-dialog {
    padding: 1.15rem;
  }
}

@media (min-width: 1024px) {
  .doc-layout {
    grid-template-columns: 16.5rem minmax(0, 1fr);
    gap: 2rem;
  }

  .doc-sidebar {
    display: block;
  }

  .doc-list-item-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* Visual calm pass: align documentation pages with the quieter product UI. */
:root {
  --bg: #f6f8fb;
  --surface-soft: #f8fafc;
  --line: #e5eaf1;
  --text: #172033;
  --muted: #667085;
  --brand-strong: #1459c7;
  --brand-soft: rgba(22, 119, 255, 0.07);
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  background: linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
}

h1,
h2,
h3,
.doc-list-title {
  letter-spacing: 0 !important;
}

.auth-pill-button--primary {
  background: #1677ff;
  box-shadow: 0 10px 22px rgba(22, 119, 255, 0.18);
}

.auth-pill-button--secondary,
.auth-status-chip,
.doc-nav-block,
.doc-quick-card,
.step-card,
.faq-card,
.doc-list-item,
.callout,
.warning-panel {
  border-color: rgba(226, 232, 240, 0.86);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.doc-nav-link:hover,
.doc-quick-card:hover,
.step-card:hover,
.faq-card:hover,
.doc-list-item:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.doc-nav-link.is-current,
.doc-nav-link[aria-current="page"] {
  color: #1459c7;
  background: #eef5ff;
}

.doc-article h1 {
  font-size: 2.1rem;
  line-height: 1.16;
}

.auth-dialog {
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

@media (min-width: 768px) {
  .doc-article h1 {
    font-size: 2.35rem;
  }
}

/* Reading experience polish: premium documentation without sacrificing density. */
.doc-sidebar-inner {
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.74);
  padding: 0.75rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(14px);
}

.doc-nav-block {
  padding-right: 0;
}

.doc-nav-link {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}

.doc-article h1 {
  text-wrap: balance;
}

.doc-section h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.doc-section h2::before {
  content: "";
  flex: 0 0 auto;
  width: 0.3rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: linear-gradient(180deg, #59a7ff, #1677ff);
  box-shadow: 0 5px 12px rgba(22, 119, 255, 0.18);
}

.doc-quick-card,
.step-card,
.faq-card,
.doc-list-item,
.callout,
.warning-panel {
  border-radius: 1.25rem;
}

.doc-quick-card,
.step-card {
  position: relative;
  overflow: hidden;
}

.doc-quick-card::after,
.step-card::after {
  content: "";
  position: absolute;
  right: -2rem;
  top: -2rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: rgba(22, 119, 255, 0.04);
  pointer-events: none;
}

@media (max-width: 1023px) {
  .doc-sidebar-inner {
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
}

@media (max-width: 639px) {
  .doc-module-grid {
    grid-template-columns: 1fr;
  }

  .doc-article h1 {
    font-size: 2rem;
  }

  .doc-section + .doc-section {
    margin-top: 2.15rem;
    padding-top: 2rem;
  }
}

/* Module content keeps the original documentation shell and visual language. */
.doc-module-copy {
  display: grid;
  min-width: 0;
  gap: 0.22rem;
}

.doc-module-copy small {
  color: #7b8798;
  font-size: 0.82rem;
  line-height: 1.55;
}

.doc-module-arrow {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-left: auto;
  color: #94a3b8;
}

.doc-topic-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.doc-topic-heading h2 {
  margin-top: 0.1rem;
}

.doc-topic-heading h2::before {
  display: none;
}

.doc-topic-heading p {
  margin-top: 0.4rem;
  font-size: 0.92rem;
}

.doc-topic-icon {
  display: inline-flex;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.doc-topic-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.doc-entry-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.doc-subtopic-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.doc-subtopic-card {
  border: 1px solid rgba(216, 224, 236, 0.92);
  border-radius: 1.15rem;
  background: rgba(248, 251, 255, 0.72);
  padding: 1rem;
}

.doc-subtopic-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.doc-subtopic-heading > div {
  display: grid;
  gap: 0.18rem;
}

.doc-subtopic-heading > div > span {
  color: var(--brand-strong);
  font-size: 0.7rem;
  font-weight: 700;
}

.doc-subtopic-heading h3 {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
}

.doc-subtopic-heading > span {
  flex: 0 0 auto;
  border-radius: 9999px;
  background: #eef5ff;
  padding: 0.35rem 0.62rem;
  color: var(--brand-strong);
  font-size: 0.74rem;
  font-weight: 650;
}

.doc-subtopic-card > .doc-entry-list {
  margin-top: 0.85rem;
}

.doc-article-entry {
  overflow: hidden;
  border: 1px solid rgba(216, 224, 236, 0.9);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.doc-article-entry[open] {
  border-color: rgba(22, 119, 255, 0.2);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.doc-article-entry > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1.25rem;
  gap: 0.9rem;
  min-height: 4.75rem;
  align-items: center;
  padding: 1rem 1.1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.doc-article-entry > summary::-webkit-details-marker {
  display: none;
}

.doc-article-entry > summary:hover {
  background: #f8fbff;
}

.doc-article-entry > summary:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.16);
  outline-offset: -3px;
}

.doc-article-entry > summary > span:first-child {
  display: grid;
  min-width: 0;
  gap: 0.28rem;
}

.doc-article-entry > summary strong {
  font-size: 1rem;
  font-weight: 680;
}

.doc-article-entry > summary small {
  overflow: hidden;
  color: #7b8798;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.55;
  text-overflow: ellipsis;
}

.doc-entry-meta {
  border-radius: 9999px;
  background: #f1f5f9;
  padding: 0.35rem 0.62rem;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}

.doc-article-entry > summary > svg {
  width: 1.05rem;
  height: 1.05rem;
  color: #64748b;
  transition: transform 180ms ease;
}

.doc-article-entry[open] > summary > svg {
  transform: rotate(180deg);
}

.doc-entry-body {
  border-top: 1px solid var(--line);
  padding: 1.25rem 1.1rem 1.4rem;
}

.doc-entry-lead:empty {
  display: none;
}

.doc-entry-section + .doc-entry-section,
.doc-entry-lead + .doc-entry-section {
  margin-top: 1.55rem;
}

.doc-entry-section h3 {
  font-size: 1.05rem;
  font-weight: 680;
  line-height: 1.5;
}

.doc-entry-section h3 + p,
.doc-entry-section h3 + .doc-source-list,
.doc-entry-section h3 + .doc-source-table-wrap,
.doc-entry-section h3 + .doc-operation-list,
.doc-entry-section h3 + .doc-screenshot-stack {
  margin-top: 0.75rem;
}

.doc-entry-section p + p {
  margin-top: 0.55rem;
}

.doc-source-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.75;
}

.doc-source-list:not(.is-ordered) {
  list-style: disc;
}

.doc-source-list.is-ordered {
  list-style: decimal;
}

.doc-source-callout {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr);
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.doc-source-callout svg {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.28rem;
}

.doc-source-callout p {
  margin: 0;
}

.doc-source-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #ffffff;
}

.doc-source-table-wrap:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.16);
  outline-offset: 2px;
}

.doc-source-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: left;
}

.doc-source-table th,
.doc-source-table td {
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc-source-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 680;
}

.doc-source-table td {
  color: #64748b;
}

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

.doc-provider-table {
  min-width: 42rem;
  table-layout: fixed;
}

.doc-provider-table th:nth-child(1),
.doc-provider-table td:nth-child(1) {
  width: 20%;
}

.doc-provider-table th:nth-child(2),
.doc-provider-table td:nth-child(2) {
  width: 37%;
}

.doc-provider-table th:nth-child(3),
.doc-provider-table td:nth-child(3) {
  width: 43%;
}

.doc-provider-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #285fb8;
  font-weight: 620;
  text-decoration: none;
}

.doc-provider-link:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.doc-provider-link:focus-visible {
  border-radius: 0.25rem;
  outline: 3px solid rgba(22, 119, 255, 0.16);
  outline-offset: 2px;
}

.doc-provider-link > svg {
  width: 0.75rem;
  height: 0.75rem;
  flex: 0 0 auto;
  color: #94a3b8;
}

.doc-provider-logo {
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 1.125rem;
  object-fit: contain;
}

.doc-api-url,
.doc-model-list code {
  color: #52647d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  line-height: 1.55;
}

.doc-api-url {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.doc-model-list {
  display: grid;
  gap: 0.28rem;
}

.doc-model-list code {
  display: block;
}

.doc-model-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.38rem;
  flex-wrap: nowrap;
}

.doc-model-item code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.doc-model-capability {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 1.2rem;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  padding: 0.08rem 0.42rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.62rem;
  font-weight: 680;
  line-height: 1.35;
  white-space: nowrap;
}

.doc-article-table {
  min-width: 42rem;
  table-layout: fixed;
}

.doc-article-table th:nth-child(1),
.doc-article-table td:nth-child(1) {
  width: 20%;
}

.doc-article-table th:nth-child(2),
.doc-article-table td:nth-child(2) {
  width: 36%;
}

.doc-article-table th:nth-child(3),
.doc-article-table td:nth-child(3) {
  width: 44%;
}

.doc-article-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.24rem;
}

.doc-article-link {
  color: #1b5fc6;
  font-weight: 560;
  text-decoration-line: underline;
  text-decoration-color: rgba(27, 95, 198, 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.doc-article-link:hover {
  color: #104b9d;
  text-decoration-color: currentColor;
}

.doc-article-link:focus-visible {
  border-radius: 0.2rem;
  outline: 3px solid rgba(22, 119, 255, 0.18);
  outline-offset: 2px;
}

.doc-article-link-divider {
  color: #94a3b8;
  user-select: none;
}

.doc-operation-list {
  display: grid;
  gap: 1rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.doc-operation-step {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #ffffff;
}

.doc-operation-step-head {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1rem;
}

.doc-operation-step-head > span {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.72rem;
  background: #eef5ff;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 750;
}

.doc-operation-step-head small {
  display: block;
  color: #8a96a8;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.doc-operation-step-head p {
  margin-top: 0.2rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
}

.doc-operation-copy {
  display: grid;
  gap: 0.25rem;
  margin: 0.28rem 0 0;
  padding-left: 1.1rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
  list-style: disc;
}

.doc-screenshot-placeholder {
  margin: 0;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}

.doc-screenshot-placeholder.has-image {
  overflow: visible;
  border: 0;
  background: transparent;
}

.doc-screenshot-placeholder.has-image:not(.is-detail):not(.is-compact):not(.is-portrait) {
  width: min(100%, 34rem);
  margin-right: auto;
  margin-left: auto;
}

.doc-screenshot-placeholder.has-image.is-detail,
.doc-screenshot-placeholder.has-image.is-compact,
.doc-screenshot-placeholder.has-image.is-portrait {
  width: min(100%, 19.5rem);
  margin-right: auto;
  margin-left: auto;
}

.doc-screenshot-placeholder.has-image.is-portrait {
  width: fit-content;
  max-width: 100%;
}

.doc-screenshot-placeholder.has-image.is-detail .doc-screenshot-media {
  width: 100%;
}

.doc-screenshot-placeholder.has-image.is-detail .doc-screenshot-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.doc-screenshot-placeholder.has-image.is-portrait .doc-screenshot-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(26rem, 62vh);
  object-fit: contain;
  object-position: center;
}

.doc-screenshot-media {
  position: relative;
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: visible;
  border: 1px solid #e1e6ee;
  border-radius: 0;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  cursor: zoom-in;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.doc-screenshot-media:hover {
  border-color: #b9cdf4;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.11);
  transform: translateY(-1px);
}

.doc-screenshot-media:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 3px;
}

.doc-screenshot-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: contain;
}

.doc-screenshot-zoom-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 9999px;
  padding: 0.32rem 0.62rem;
  background: rgba(15, 23, 42, 0.76);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 650;
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.doc-screenshot-media:hover .doc-screenshot-zoom-hint,
.doc-screenshot-media:focus-visible .doc-screenshot-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.doc-screenshot-placeholder .doc-screenshot-caption {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.65rem 0.15rem 0;
}

.doc-screenshot-placeholder .doc-screenshot-caption span {
  flex: 0 0 auto;
  color: #98a2b3;
  font-size: 0.7rem;
  font-weight: 650;
}

.doc-screenshot-placeholder .doc-screenshot-caption strong {
  color: #667085;
  font-size: 0.75rem;
  font-weight: 550;
  line-height: 1.55;
}

.doc-image-dialog {
  width: min(94vw, 92rem);
  max-width: none;
  max-height: 94vh;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
}

.doc-image-dialog::backdrop {
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(5px);
}

.doc-image-dialog-panel {
  position: relative;
  display: grid;
  max-height: 94vh;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 0;
  background: #ffffff;
}

.doc-image-dialog img {
  border-radius: 0;
  display: block;
  max-width: 100%;
  max-height: calc(94vh - 3.5rem);
  margin: auto;
  object-fit: contain;
}

.doc-image-dialog p {
  margin: 0;
  border-top: 1px solid #e4e7ec;
  padding: 0.85rem 3.5rem 0.9rem 1rem;
  color: #475467;
  font-size: 0.82rem;
  line-height: 1.5;
}

.doc-image-dialog-close {
  position: absolute;
  z-index: 1;
  top: 0.65rem;
  right: 0.65rem;
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.doc-screenshot-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.doc-screenshot-stack .doc-screenshot-placeholder {
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 0;
}

.doc-screenshot-canvas {
  display: flex;
  min-height: 13rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  padding: 1.5rem;
  border: 1px dashed #bdc9d8;
  border-radius: 0.75rem;
  margin: 0.85rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    repeating-linear-gradient(135deg, #eef2f7 0, #eef2f7 12px, #f8fafc 12px, #f8fafc 24px);
  text-align: center;
}

.doc-screenshot-label {
  border-radius: 9999px;
  background: #eef5ff;
  padding: 0.36rem 0.72rem;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.doc-screenshot-icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.doc-screenshot-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.doc-screenshot-canvas strong {
  max-width: 34rem;
  color: #475569;
  font-size: 0.96rem;
}

.doc-screenshot-canvas small {
  color: #94a3b8;
  font-size: 0.78rem;
}

.doc-screenshot-placeholder figcaption {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0 0.9rem 0.95rem;
}

.doc-screenshot-placeholder figcaption div {
  display: grid;
  gap: 0.2rem;
}

.doc-screenshot-placeholder figcaption strong {
  color: #64748b;
  font-size: 0.76rem;
}

.doc-screenshot-placeholder figcaption span {
  color: #8a96a8;
  font-size: 0.76rem;
  line-height: 1.55;
}

@media (max-width: 639px) {
  .doc-article-entry > summary {
    grid-template-columns: minmax(0, 1fr) 1.1rem;
    gap: 0.65rem;
    padding: 0.9rem;
  }

  .doc-entry-meta {
    display: none;
  }

  .doc-entry-body {
    padding: 1.05rem 0.9rem 1.15rem;
  }

  .doc-operation-step-head {
    grid-template-columns: 2rem minmax(0, 1fr);
    padding: 0.85rem;
  }

  .doc-operation-step-head > span {
    width: 2rem;
    height: 2rem;
  }

  .doc-screenshot-canvas {
    min-height: 10.5rem;
    margin: 0.7rem;
    padding: 1.1rem;
  }

  .doc-screenshot-placeholder figcaption {
    grid-template-columns: 1fr;
    padding: 0 0.75rem 0.8rem;
  }
}

/* CodeBuddy-inspired single-article reader. The wxAgent header and visual tokens stay intact. */
body[data-docs-content-page] {
  background: #ffffff;
}

body[data-docs-content-page] main {
  padding-bottom: 4.5rem;
}

.doc-layout--reader {
  align-items: start;
}

@media (min-width: 1024px) {
  .doc-layout--reader .doc-sidebar {
    align-self: stretch;
  }
}

.docs-unified-navigation .doc-sidebar-inner,
.doc-layout--reader .doc-sidebar-inner {
  top: 5.35rem;
  max-height: calc(100vh - 6.1rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 0.8rem 2rem 0;
  box-shadow: none;
  backdrop-filter: none;
}

.docs-unified-navigation .doc-nav-block,
.doc-layout--reader .doc-nav-block {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.doc-reader-modules {
  display: grid;
  gap: 0.2rem;
}

.doc-reader-module {
  border-bottom: 1px solid transparent;
}

.doc-reader-module + .doc-reader-module {
  margin-top: 0.1rem;
}

.doc-reader-module-link {
  display: flex;
  min-height: 2.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border-radius: 0.55rem;
  padding: 0.58rem 0.65rem;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 650;
  transition: background-color 160ms ease, color 160ms ease;
}

.doc-reader-module-link:hover {
  background: #f3f6fa;
  color: #101828;
}

.doc-reader-module.is-active > .doc-reader-module-link {
  color: var(--brand-strong);
}

.doc-reader-tree {
  padding: 0.2rem 0 0.65rem;
}

.doc-tree-group {
  margin-top: 0.2rem;
}

.doc-tree-group > summary {
  display: flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border-radius: 0.45rem;
  padding: 0.42rem 0.55rem 0.42rem 0.8rem;
  color: #475467;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.doc-tree-group > summary::-webkit-details-marker {
  display: none;
}

.doc-tree-group > summary:hover {
  background: #f7f9fc;
  color: #1d2939;
}

.doc-tree-group > summary svg {
  width: 0.9rem;
  height: 0.9rem;
  color: #98a2b3;
  transition: transform 160ms ease;
}

.doc-tree-group[open] > summary svg {
  transform: rotate(90deg);
}

.doc-tree-group-body {
  margin: 0.12rem 0 0.38rem 0.8rem;
  border-left: 1px solid #e4e7ec;
  padding-left: 0.72rem;
}

.doc-tree-node + .doc-tree-node {
  margin-top: 0.55rem;
}

.doc-tree-node-title {
  padding: 0.26rem 0.5rem;
  color: #667085;
  font-size: 0.76rem;
  font-weight: 700;
}

.doc-tree-articles {
  display: grid;
  gap: 0.05rem;
}

.doc-tree-node .doc-tree-articles {
  margin-left: 0.55rem;
}

.doc-tree-articles--direct {
  padding: 0.08rem 0;
}

.doc-tree-article {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 0.42rem;
  padding: 0.34rem 0.5rem;
  color: #667085;
  font-size: 0.68rem;
  line-height: 1.45;
  transition: background-color 150ms ease, color 150ms ease;
}

.doc-tree-article-title {
  min-width: 0;
}

.doc-tree-article:hover {
  background: #f3f6fa;
  color: #1d2939;
}

.doc-tree-article.is-current {
  background: #eef5ff;
  color: var(--brand-strong);
  font-weight: 650;
}

.doc-reader-related {
  display: grid;
  gap: 0.05rem;
  margin-top: 1.35rem;
  border-top: 1px solid #e4e7ec;
  padding-top: 1rem;
}

.doc-reader-related-title {
  padding: 0 0.6rem 0.35rem;
  color: #98a2b3;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.doc-reader-related a {
  border-radius: 0.45rem;
  padding: 0.48rem 0.6rem;
  color: #667085;
  font-size: 0.75rem;
}

.doc-reader-related a:hover {
  background: #f7f9fc;
  color: #1d2939;
}

.doc-layout--reader .doc-main {
  width: 100%;
}

.doc-layout--reader .doc-article {
  width: 100%;
  max-width: 47rem;
  margin: 0 auto;
  padding-bottom: 0;
}

.doc-layout--reader .doc-breadcrumb {
  gap: 0.35rem;
  color: #98a2b3;
  font-size: 0.72rem;
}

.doc-layout--reader .doc-breadcrumb svg {
  width: 0.82rem;
  height: 0.82rem;
}

.doc-reader-header {
  margin-top: 1.4rem;
}

.doc-layout--reader .doc-article h1 {
  margin: 0;
  color: #1d2939;
  font-size: 1.72rem;
  font-weight: 650;
  line-height: 1.25;
}

.doc-article-lead {
  margin-top: 0.85rem;
  color: #475467 !important;
  font-size: 0.9rem !important;
  line-height: 1.7 !important;
}

.doc-layout--reader .doc-entry-lead {
  margin-top: 1.5rem;
}

.doc-reader-section {
  margin-top: 2.6rem;
  border-top: 1px solid #eaecf0;
  padding-top: 1.3rem;
}

.doc-reader-section h2 {
  color: #1d2939;
  font-size: 1.28rem;
  font-weight: 650;
  line-height: 1.35;
}

.doc-reader-section h2 + p,
.doc-reader-section h2 + .doc-source-list,
.doc-reader-section h2 + .doc-source-table-wrap,
.doc-reader-section h2 + .doc-operation-list,
.doc-reader-section h2 + .doc-source-callout,
.doc-reader-section h2 + .doc-screenshot-placeholder {
  margin-top: 1rem;
}

.doc-layout--reader .doc-article p,
.doc-layout--reader .doc-source-list {
  color: #475467;
  font-size: 0.9rem;
  line-height: 1.7;
}

.doc-layout--reader .doc-source-list {
  gap: 0.58rem;
  padding-left: 1.4rem;
}

.doc-layout--reader .callout,
.doc-layout--reader .warning-panel {
  border-radius: 0.7rem;
  box-shadow: none;
}

.doc-layout--reader .warning-panel {
  border-color: #fca5a5;
  background: #fef2f2;
}

.doc-layout--reader .doc-source-callout.is-note {
  border-color: #93c5fd;
  background: #eff6ff;
}

.doc-layout--reader .doc-source-callout.is-note svg {
  color: #2563eb;
  stroke-width: 2.1;
}

.doc-layout--reader .doc-source-callout.is-attention {
  border-color: #fca5a5;
  background: #fef2f2;
}

.doc-layout--reader .doc-source-callout.is-attention svg {
  color: #dc2626;
  stroke-width: 2.2;
}

.doc-layout--reader .doc-operation-list {
  gap: 1.7rem;
  margin-top: 1.25rem;
}

.doc-layout--reader .doc-source-table {
  font-size: 0.8rem;
  line-height: 1.55;
}

.doc-layout--reader .doc-source-table th,
.doc-layout--reader .doc-source-table td {
  padding: 0.62rem 0.72rem;
}

.doc-layout--reader .doc-provider-table th,
.doc-layout--reader .doc-provider-table td {
  padding-block: 0.68rem;
}

.doc-layout--reader .doc-operation-step {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.doc-layout--reader .doc-operation-step-head {
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0 0 0.9rem;
}

.doc-layout--reader .doc-operation-step-head > span {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

.doc-layout--reader .doc-operation-step-head small {
  color: #1677ff;
  font-size: 0.68rem;
}

.doc-layout--reader .doc-operation-step-head p {
  margin-top: 0.24rem;
  color: #344054;
  font-size: 0.9rem;
  line-height: 1.7;
}

.doc-layout--reader .doc-operation-copy {
  font-size: 0.9rem;
  line-height: 1.7;
}

.doc-layout--reader .doc-screenshot-placeholder {
  overflow: visible;
  margin: 0.2rem 0 0 2.8rem;
  border: 1px solid #dfe4ea;
  border-radius: 0;
  background: #f9fafb;
}

.doc-layout--reader .doc-screenshot-placeholder:not(.has-image) {
  width: min(100%, 34rem);
  margin-right: auto;
  margin-left: auto;
}

.doc-layout--reader .doc-reader-section > .doc-screenshot-placeholder {
  margin-left: 0;
}

.doc-layout--reader .doc-screenshot-placeholder.has-image.is-detail,
.doc-layout--reader .doc-screenshot-placeholder.has-image.is-compact,
.doc-layout--reader .doc-screenshot-placeholder.has-image.is-portrait {
  margin-right: auto;
  margin-left: auto;
}

.doc-layout--reader .doc-screenshot-canvas {
  min-height: 12rem;
  margin: 0;
  border: 0;
  border-bottom: 1px dashed #d0d5dd;
  border-radius: 0;
  background: linear-gradient(180deg, #fafbfc 0%, #f2f4f7 100%);
}

.doc-layout--reader .doc-screenshot-label {
  font-size: 0.7rem;
}

.doc-layout--reader .doc-screenshot-canvas strong {
  font-size: 0.84rem;
}

.doc-layout--reader .doc-screenshot-canvas small,
.doc-layout--reader .doc-screenshot-placeholder figcaption strong,
.doc-layout--reader .doc-screenshot-placeholder figcaption span {
  font-size: 0.7rem;
}

.doc-layout--reader .doc-screenshot-placeholder figcaption {
  padding: 0.85rem 1rem 1rem;
}

/* Continuous reading: instructions and their screenshots are visible together. */
.doc-reader-header .doc-entry-point {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
  margin-top: 1.2rem;
  color: #475467;
  font-size: 0.82rem;
  line-height: 1.8;
}

.doc-entry-point > span {
  flex-shrink: 0;
  color: #667085;
}

.doc-editorial-steps {
  counter-reset: doc-step;
  display: grid;
  gap: 2rem;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.doc-editorial-steps > li {
  position: relative;
  counter-increment: doc-step;
  padding-left: 2.8rem;
}

.doc-editorial-steps > li::before {
  content: counter(doc-step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: #f1f2fb;
  color: #525cc1;
  font-size: 0.73rem;
  font-weight: 650;
}

.doc-editorial-steps > li > strong {
  display: block;
  padding-top: 0.15rem;
  color: #283347;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.6;
}

.doc-layout--reader .doc-editorial-steps p {
  margin-top: 0.4rem;
  color: #475467;
  line-height: 1.85;
}

.doc-layout--reader .doc-editorial-steps .doc-screenshot-placeholder.has-image {
  margin: 1rem auto 0;
}

.doc-layout--reader .doc-screenshot-placeholder .doc-screenshot-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid #e4e7ec;
  text-align: left;
}

.doc-layout--reader .doc-screenshot-placeholder .doc-screenshot-caption strong {
  color: #344054;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.6;
}

.doc-layout--reader .doc-screenshot-placeholder .doc-screenshot-caption span {
  color: #667085;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.7;
}

.doc-screenshot-zoom-hint { opacity: 1; transform: none; }

/* Local editorial markers stay in the reading flow, next to the missing capture. */
.doc-capture-review,
.doc-capture-request {
  --doc-capture-ink: #854d0e;
  --doc-capture-border: #e6c36e;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--doc-capture-border);
  border-radius: 0.65rem;
  background: #fffbeb;
  color: var(--doc-capture-ink);
  overflow-wrap: anywhere;
}

.doc-capture-request { border-style: dashed; scroll-margin-top: 6rem; }
.doc-capture-review > strong,
.doc-capture-request > strong { display: block; font-size: 0.9rem; line-height: 1.7; }
.doc-layout--reader .doc-capture-review p,
.doc-layout--reader .doc-capture-request p { margin: 0.45rem 0; color: var(--doc-capture-ink); font-size: 0.85rem; line-height: 1.85; }
.doc-capture-request-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 0.5rem; font-size: 0.76rem; font-weight: 650; }
.doc-capture-request small { display: block; font-size: 0.75rem; line-height: 1.7; }
.doc-capture-review nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.doc-capture-review a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--doc-capture-ink); font-size: 0.82rem; text-decoration: underline; text-underline-offset: 0.2em; }
.doc-capture-review a:focus-visible { outline: 2px solid var(--doc-capture-ink); outline-offset: 3px; }

@media (max-width: 639px) {
  .doc-editorial-steps > li { padding-left: 2.3rem; }
  .doc-layout--reader .doc-screenshot-placeholder .doc-screenshot-caption { padding: 0.8rem 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  .doc-screenshot-media, .doc-screenshot-zoom-hint { transition: none; }
}

.doc-reader-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 3.5rem;
  border-top: 1px solid #eaecf0;
  padding-top: 1.5rem;
}

.doc-reader-pager-link {
  display: grid;
  gap: 0.25rem;
  min-height: 5rem;
  border: 1px solid #e4e7ec;
  border-radius: 0.65rem;
  padding: 0.9rem 1rem;
}

.doc-reader-pager-link:hover {
  border-color: #b8d4fb;
  background: #f8fbff;
}

.doc-reader-pager-link small {
  color: #98a2b3;
  font-size: 0.72rem;
}

.doc-reader-pager-link strong {
  color: #344054;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.5;
}

.doc-outline {
  display: none;
  min-width: 0;
}

.doc-outline-inner {
  position: sticky;
  top: 6.9rem;
  max-height: calc(100vh - 8rem);
  overflow: auto;
  border-left: 1px solid #e4e7ec;
  padding-left: 0.9rem;
}

.doc-outline-title {
  margin-bottom: 0.65rem;
  color: #344054;
  font-size: 0.8rem;
  font-weight: 700;
}

.doc-outline nav {
  display: grid;
  gap: 0.15rem;
}

.doc-outline a {
  border-radius: 0.38rem;
  padding: 0.38rem 0.45rem;
  color: #667085;
  font-size: 0.75rem;
  line-height: 1.45;
}

.doc-outline a:hover {
  background: #f7f9fc;
  color: var(--brand-strong);
}

.doc-mobile-index {
  display: none;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .doc-layout.doc-layout--reader {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .doc-layout.doc-layout--reader {
    grid-template-columns: 15.5rem minmax(0, 47rem) 12.5rem;
    justify-content: center;
    gap: 1.5rem;
  }

  .doc-layout--reader .doc-article {
    max-width: 47rem;
  }

  .doc-outline {
    display: block;
    align-self: stretch;
  }
}

@media (max-width: 1023px) {
  .doc-layout.doc-layout--reader {
    display: block;
  }

  .doc-layout--reader .doc-sidebar,
  .doc-layout--reader .doc-outline {
    display: none;
  }

  .doc-mobile-index {
    display: block;
    margin-bottom: 1.4rem;
    border: 1px solid #e4e7ec;
    border-radius: 0.7rem;
    background: #ffffff;
  }

  .doc-mobile-index > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.9rem;
    cursor: pointer;
    list-style: none;
  }

  .doc-mobile-index > summary::-webkit-details-marker {
    display: none;
  }

  .doc-mobile-index > summary span {
    display: grid;
    gap: 0.12rem;
    color: #344054;
    font-size: 0.82rem;
    font-weight: 650;
  }

  .doc-mobile-index > summary small {
    color: #98a2b3;
    font-size: 0.68rem;
    font-weight: 600;
  }

  .doc-mobile-index > summary svg {
    width: 1rem;
    height: 1rem;
    transition: transform 160ms ease;
  }

  .doc-mobile-index[open] > summary svg {
    transform: rotate(180deg);
  }

  .doc-mobile-index-body {
    max-height: 65vh;
    overflow: auto;
    border-top: 1px solid #e4e7ec;
    padding: 0.7rem;
  }

  .doc-mobile-index .doc-tree-group-body {
    padding-right: 0.25rem;
  }

  .doc-mobile-index .doc-tree-article {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
  }
}

@media (max-width: 639px) {
  body[data-docs-content-page] main {
    padding-top: 5.8rem;
  }

  .doc-layout--reader .doc-article h1 {
    font-size: 1.55rem;
  }

  .doc-reader-section {
    margin-top: 2.5rem;
  }

  .doc-reader-section h2 {
    font-size: 1.18rem;
  }

  .doc-layout--reader .doc-screenshot-placeholder {
    margin-left: 0;
  }

  .doc-layout--reader .doc-screenshot-canvas {
    min-height: 11.5rem;
  }

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

/* Numbered subsections within long-form documentation. */
.doc-article .doc-source-heading {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.6;
}

/* Account safety: full-length chapters with a quiet, existing outline. */
.doc-reader-section.doc-security-section {
  --security-color: #3778d7;
  --security-tint: #edf4ff;
  margin-top: 2rem;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}
.doc-security-section[data-security-chapter="2"] { --security-color: #15956e; --security-tint: #edf8f3; }
.doc-security-section[data-security-chapter="3"] { --security-color: #8452ca; --security-tint: #f4effb; }
.doc-security-section[data-security-chapter="4"] { --security-color: #c37b30; --security-tint: #fdf5eb; }
.doc-security-header {
  position: relative;
  padding: 1.6rem 5rem 1.6rem 1.75rem;
  border-left: 4px solid var(--security-color);
  border-radius: 13px 13px 0 0;
  background: var(--security-tint);
}
.doc-security-header h2 { margin: 0; font-size: 1.5rem; line-height: 1.5; }
.doc-layout--reader .doc-security-header p { margin: .4rem 0 0; color: #647287; }
.doc-security-number { position: absolute; right: 1.5rem; top: 1rem; font-size: 3.5rem; font-weight: 750; line-height: 1.3; color: var(--security-color); opacity: .2; }
.doc-security-body { padding: .2rem 1.75rem 1.75rem; }
.doc-security-body .doc-source-heading { display: flex; align-items: baseline; gap: .8rem; margin: 1.8rem 0 .85rem; font-size: 1.05rem; line-height: 1.75; }
.doc-security-item-number { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 1.6rem; height: 1.6rem; border-radius: 6px; background: var(--security-tint); color: var(--security-color); font-size: .8rem; }
.doc-layout--reader .doc-security-body > p { margin: .8rem 0 .8rem 2.4rem; line-height: 1.95; }
.doc-security-body .doc-source-list { margin: 1.2rem 0 1.2rem 2.4rem; padding: 1rem 1.25rem 1rem 2.25rem; background: #f8fafc; border-left: 2px solid var(--security-color); border-radius: 0 8px 8px 0; }
.doc-security-body .doc-source-callout { margin: 1.5rem 0 0 2.4rem; }
@media (max-width: 640px) {
  .doc-security-header { padding: 1.25rem 4.3rem 1.25rem 1rem; }
  .doc-security-header h2 { font-size: 1.3rem; }
  .doc-security-number { right: 1rem; font-size: 2.8rem; }
  .doc-security-body { padding: .1rem 1rem 1.25rem; }
  .doc-layout--reader .doc-security-body > p,
  .doc-security-body .doc-source-list,
  .doc-security-body .doc-source-callout { margin-left: 0; }
}

/* Product introduction shares the chapter framing; tables stay easy to compare. */
.doc-product-section[data-security-chapter="5"] { --security-color: #68778f; --security-tint: #f0f3f7; }
.doc-product-section[data-security-chapter="6"] { --security-color: #dc2626; --security-tint: #fef2f2; }
.doc-product-section .doc-security-header { min-height: 6rem; display: flex; align-items: center; }
.doc-product-intro-title { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.doc-product-intro-title img { flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; border-radius: 10px; box-shadow: 0 8px 18px rgba(22, 119, 255, .16); }
.doc-product-section .doc-security-body { padding-top: 1rem; }
.doc-layout--reader .doc-product-section .doc-security-body > p,
.doc-product-section .doc-security-body .doc-source-list,
.doc-product-section .doc-security-body .doc-source-callout { margin-left: 0; }
.doc-product-section .doc-source-table-wrap { margin: .3rem 0 0; border-radius: 8px; }
.doc-layout--reader .doc-product-section .doc-source-table { min-width: 0; width: 100%; }
.doc-product-section .doc-source-table th { background: var(--security-tint); color: #344054; }
.doc-product-section .doc-source-table td:first-child { width: 26%; font-weight: 600; color: #344054; }
.doc-layout--reader .doc-product-section .doc-source-table th,
.doc-layout--reader .doc-product-section .doc-source-table td { padding: 1rem; line-height: 1.85; }
.doc-product-section .doc-source-table tbody tr:nth-child(even) { background: #fafbfd; }
@media (max-width: 640px) {
  .doc-product-intro-title { gap: .6rem; }
  .doc-product-intro-title img { flex-basis: 2.15rem; width: 2.15rem; height: 2.15rem; border-radius: 9px; }
  .doc-layout--reader .doc-product-section .doc-source-table th,
  .doc-layout--reader .doc-product-section .doc-source-table td { padding: .75rem; overflow-wrap: anywhere; }
  .doc-product-section .doc-source-table td:first-child { width: 30%; }
}

/* Keep article links one level inside their module. */
.doc-tree-articles--single{margin-left:.8rem;padding:.08rem 0}

/* A complete release stays together in its own card. */
.doc-layout--reader .doc-reader-section.doc-release-card{margin-top:2rem;padding:1.8rem 2rem 2rem;border:1px solid #dce3f3;border-top:3px solid #8797e6;border-radius:18px;background:linear-gradient(145deg,#f5f7ff 0,#fff 35%);box-shadow:0 8px 24px #42578509;overflow-wrap:anywhere}
.doc-release-card > h2{color:#334f9a}
.doc-release-card > h2 + p{padding-bottom:1.2rem;border-bottom:1px solid #e5eaf4;color:#71809a}
@media(max-width:640px){.doc-layout--reader .doc-reader-section.doc-release-card{padding:1.3rem 1.1rem 1.5rem;border-radius:14px}}
