
.tool-markdown-doc {
  color: #374151;
  border: 0;
  border-radius: 0;
  padding: 0 0 var(--tool-section-padding, 24px);
  background: transparent;
  box-shadow: none;
}
.tool-markdown-divider {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 1.5rem 0 1.5rem;
}
html.dark .tool-markdown-doc,
html[theme-mode="dark"] .tool-markdown-doc {
  color: rgb(209, 213, 219);
}
html.dark .tool-markdown-divider,
html[theme-mode="dark"] .tool-markdown-divider {
  border-top-color: #374151;
}
.tool-markdown-header {
  display: flex;
  align-items: center;
  padding-bottom: 20px;
}
.tool-markdown-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
  color: #fff;
}
.tool-markdown-title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
}
html.dark .tool-markdown-title,
html[theme-mode="dark"] .tool-markdown-title {
  color: rgb(243, 244, 246);
}
.tool-markdown-body h1,
.tool-markdown-body h2,
.tool-markdown-body h3,
.tool-markdown-body h4,
.tool-markdown-body h5,
.tool-markdown-body h6 {
  margin: 1.5rem 0 1rem;
  font-weight: 700;
  color: #24292f;
  line-height: 1.35;
}
.tool-markdown-body h1 {
  font-size: 2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #d8dee4;
}
.tool-markdown-body h2 {
  font-size: 1.5em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #d8dee4;
}
.tool-markdown-body h3 {
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0 0 0.5rem;
  border: 0;
  border-bottom: 1px solid #d0d7de;
  background: transparent;
}
.tool-markdown-body .tool-markdown-h3-icon {
  font-size: 0.8em;
  color: var(--tool-doc-accent-color, #6366f1);
  margin-top: 0;
}
.no-flex-gap .tool-markdown-body h3 > * + * {
  margin-left: 0.45rem;
}
.tool-markdown-body h4 {
  font-size: 1em;
}
.tool-markdown-body h5 {
  font-size: 0.875em;
}
.tool-markdown-body h6 {
  font-size: 0.85em;
  color: #57606a;
}
html.dark .tool-markdown-body h1,
html.dark .tool-markdown-body h2,
html.dark .tool-markdown-body h3,
html.dark .tool-markdown-body h4,
html.dark .tool-markdown-body h5,
html.dark .tool-markdown-body h6,
html[theme-mode="dark"] .tool-markdown-body h1,
html[theme-mode="dark"] .tool-markdown-body h2,
html[theme-mode="dark"] .tool-markdown-body h3,
html[theme-mode="dark"] .tool-markdown-body h4,
html[theme-mode="dark"] .tool-markdown-body h5,
html[theme-mode="dark"] .tool-markdown-body h6 {
  color: #f0f6fc;
}
html.dark .tool-markdown-body h1,
html.dark .tool-markdown-body h2,
html[theme-mode="dark"] .tool-markdown-body h1,
html[theme-mode="dark"] .tool-markdown-body h2 {
  border-bottom-color: #30363d;
}
html.dark .tool-markdown-body h3,
html[theme-mode="dark"] .tool-markdown-body h3 {
  border-bottom-color: #30363d;
}
.tool-markdown-body h1:first-child,
.tool-markdown-body h2:first-child,
.tool-markdown-body h3:first-child {
  margin-top: 0;
}
.tool-markdown-body p {
  margin: 0 0 1rem;
  line-height: 1.85;
}
.tool-markdown-body *:last-child {
  margin-bottom: 0;
}
.tool-markdown-body ul,
.tool-markdown-body ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}
.tool-markdown-body ul {
  list-style: disc;
}
.tool-markdown-body ol {
  list-style: decimal;
}
.tool-markdown-body li {
  line-height: 1.8;
}
.tool-markdown-body li + li {
  margin-top: 0.45rem;
}
.tool-markdown-body code {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}
.tool-markdown-body :not(pre) > code {
  padding: 0.2em 0.4em;
  border-radius: 0.375rem;
  background: rgba(175, 184, 193, 0.2);
  font-size: 85%;
}
html.dark .tool-markdown-body :not(pre) > code,
html[theme-mode="dark"] .tool-markdown-body :not(pre) > code {
  background: rgba(110, 118, 129, 0.4);
}
.tool-markdown-body a {
  color: #0969da;
  text-decoration: none;
}
.tool-markdown-body a:hover {
  text-decoration: underline;
}
html.dark .tool-markdown-body a,
html[theme-mode="dark"] .tool-markdown-body a {
  color: #58a6ff;
}


.locale-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.locale-switch-btn__label {
  line-height: 1;
}
.locale-switch-btn__caret {
  font-size: 0.625rem;
  line-height: 1;
  opacity: 0.8;
}
.locale-switch-btn--icon {
  padding: 0;
}
.locale-switch-btn--icon .locale-switch-btn__icon {
  font-size: 1rem;
  line-height: 1;
}
.no-flex-gap .locale-switch-btn > * + * {
  margin-left: 6px;
}


.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  min-height: var(--top-header-height);
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid #e5e7eb;
  background: rgba(247, 249, 252, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(226, 232, 240, 0.9);
}
.top-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-shrink: 0;
}
.top-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.top-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  flex-shrink: 0;
}
.top-brand span {
  white-space: nowrap;
  font-size: 0.9rem;
}
.left-nav-collapse,
.mobile-nav-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
.left-nav-collapse:hover,
.mobile-nav-toggle:hover {
  border-color: #bfdbfe;
  color: #2563eb;
  background: #f8fbff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}
.top-menu-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex: 1;
  min-width: 0;
  margin-left: auto;
}
.top-header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 8px;
}
.top-header-controls .icon-btn,
.top-header-controls .locale-btn {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 8px;
}
.top-header-controls .locale-btn {
  gap: 0;
}
.top-header-controls .locale-btn i {
  margin: 0;
}
.top-header-controls .icon-btn i {
  font-size: 1rem;
  line-height: 1;
}
.top-header-controls [data-tooltip]:not([data-tooltip=""]) {
  position: relative;
}
.top-header-controls [data-tooltip]:not([data-tooltip=""])::before,
.top-header-controls [data-tooltip]:not([data-tooltip=""])::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
  z-index: 120;
}
.top-header-controls [data-tooltip]:not([data-tooltip=""])::before {
  content: "";
  top: calc(100% + 2px);
  transform: translateX(-50%) translateY(-4px);
  border-width: 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent rgba(15, 23, 42, 0.92);
}
.top-header-controls [data-tooltip]:not([data-tooltip=""])::after {
  content: attr(data-tooltip);
  top: calc(100% + 7px);
  transform: translateX(-50%) translateY(-4px);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}
@media (hover: hover) {
.top-header-controls [data-tooltip]:not([data-tooltip=""]):hover::before,
  .top-header-controls [data-tooltip]:not([data-tooltip=""]):hover::after,
  .top-header-controls [data-tooltip]:not([data-tooltip=""]):focus-visible::before,
  .top-header-controls [data-tooltip]:not([data-tooltip=""]):focus-visible::after {
    opacity: 1;
}
.top-header-controls [data-tooltip]:not([data-tooltip=""]):hover::before,
  .top-header-controls [data-tooltip]:not([data-tooltip=""]):focus-visible::before,
  .top-header-controls [data-tooltip]:not([data-tooltip=""]):hover::after,
  .top-header-controls [data-tooltip]:not([data-tooltip=""]):focus-visible::after {
    transform: translateX(-50%) translateY(0);
}
}
.menu-item {
  padding: 7px 10px;
  border-radius: 999px;
  color: #475569;
  text-decoration: none;
  font-size: 0.84375rem;
  font-weight: 600;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
.menu-item:hover {
  color: #2563eb;
  background: #eff6ff;
}
.menu-item.active {
  color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #dbeafe;
}
.mobile-nav-toggle {
  display: none;
}
.no-flex-gap .top-header-left > * + * {
  margin-left: 6px;
}
.no-flex-gap .top-brand > * + * {
  margin-left: 6px;
}
.no-flex-gap .top-menu-box > * + * {
  margin-left: 2px;
}
.no-flex-gap .top-header > .top-menu-box + .top-header-controls {
  margin-left: calc(8px + 0.6rem);
}
.no-flex-gap .top-header-controls > * + * {
  margin-left: 6px;
}
html.dark .top-header,
html[theme-mode="dark"] .top-header {
  border-bottom-color: rgba(17, 24, 39, 0.96);
  background: rgba(17, 24, 39, 0.96);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.96);
}
html.dark .top-brand,
html[theme-mode="dark"] .top-brand {
  color: #f8fafc;
}
html.dark .top-brand img,
html[theme-mode="dark"] .top-brand img,
html.dark .left-nav-collapse,
html.dark .mobile-nav-toggle,
html[theme-mode="dark"] .left-nav-collapse,
html[theme-mode="dark"] .mobile-nav-toggle {
  border-color: rgba(71, 85, 105, 0.82);
  background: rgba(31, 43, 61, 0.96);
  color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18);
}
html.dark .left-nav-collapse:hover,
html.dark .mobile-nav-toggle:hover,
html[theme-mode="dark"] .left-nav-collapse:hover,
html[theme-mode="dark"] .mobile-nav-toggle:hover {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(45, 60, 84, 0.96);
  color: #eff6ff;
}
html.dark .menu-item,
html[theme-mode="dark"] .menu-item {
  color: #cbd5e1;
}
html.dark .top-header-controls .icon-btn,
html.dark .top-header-controls .locale-btn,
html[theme-mode="dark"] .top-header-controls .icon-btn,
html[theme-mode="dark"] .top-header-controls .locale-btn {
  border-color: rgba(71, 85, 105, 0.82);
  background: rgba(31, 43, 61, 0.96);
  color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18);
}
html.dark .top-header-controls .icon-btn:hover,
html.dark .top-header-controls .locale-btn:hover,
html[theme-mode="dark"] .top-header-controls .icon-btn:hover,
html[theme-mode="dark"] .top-header-controls .locale-btn:hover {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(45, 60, 84, 0.96);
  color: #eff6ff;
}
html.dark .top-header-controls [data-tooltip]:not([data-tooltip=""])::before,
html[theme-mode="dark"] .top-header-controls [data-tooltip]:not([data-tooltip=""])::before {
  border-color: transparent transparent rgba(15, 23, 42, 0.96);
}
html.dark .top-header-controls [data-tooltip]:not([data-tooltip=""])::after,
html[theme-mode="dark"] .top-header-controls [data-tooltip]:not([data-tooltip=""])::after {
  background: rgba(15, 23, 42, 0.96);
  color: #e2e8f0;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.34);
}
html.dark .menu-item:hover,
html.dark .menu-item.active,
html[theme-mode="dark"] .menu-item:hover,
html[theme-mode="dark"] .menu-item.active {
  color: #93c5fd;
  background: rgba(31, 43, 61, 0.96);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18);
}
@media (max-width: 767px) {
.top-header {
    min-height: var(--top-header-height);
    padding: 0 var(--page-gutter);
}
.top-brand span,
  .left-nav-collapse,
  .top-menu-box {
    display: none;
}
.top-header-controls {
    margin-left: auto;
    gap: 4px;
}
.no-flex-gap .top-header > .top-menu-box + .top-header-controls {
    margin-left: auto;
}
.no-flex-gap .top-header-controls > * + * {
    margin-left: 4px;
}
.no-flex-gap .top-header > .top-header-controls + .mobile-nav-toggle,
  .no-flex-gap .top-header > .top-menu-box + .mobile-nav-toggle {
    margin-left: calc(4px + 0.6rem);
}
.mobile-nav-toggle {
    display: inline-flex;
    margin-left: 4px;
}
.top-brand img {
    width: 28px;
    height: 28px;
}
}

