:is(.product-menu-positioner, .docs-product-menu-positioner) {
  --ant-color-bg-elevated: #fff;
  --ant-color-bg-container: #fff;
  --ant-color-border: #d9d9d9;
  --ant-color-border-secondary: #e8e8e8;
  --ant-color-fill-quaternary: #f7f7f7;
  --ant-color-fill-secondary: #f0f0f0;
  --ant-color-fill-tertiary: #f2f2f2;
  --ant-color-text: #111;
  --ant-color-text-description: #666;
  --ant-color-text-secondary: #666;
  --ant-color-text-tertiary: #888;
  position: fixed;
  z-index: 1290;
  height: auto;
  max-width: calc(100vw - 32px);
  font-family:
    Geist, 'Segoe UI Variable Display', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 18.4px;
}

:is(.product-menu-positioner, .docs-product-menu-positioner)[hidden] {
  display: none;
}

:is(.product-menu-positioner, .docs-product-menu-positioner) > [role='dialog'] {
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--ant-color-border-secondary);
  border-radius: 12px;
  background: var(--ant-color-bg-elevated);
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}

:is(.product-menu-positioner, .docs-product-menu-positioner) a {
  color: inherit;
  text-decoration: none;
}

.header-product-dialog {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 12px 0;
  background: #fff;
}

.header-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0 8px 12px;
}

.header-product-section,
.header-product-links {
  min-width: 0;
}

.header-product-heading {
  height: 28px;
  color: var(--ant-color-text-tertiary);
  font-size: 14px;
  line-height: 28px;
}

.header-product-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-product-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
}

.header-product-link:hover,
.header-product-link:focus-visible,
.header-product-update:hover,
.header-product-update:focus-visible {
  background: var(--ant-color-fill-quaternary);
  outline: none;
}

.header-product-link:focus-visible,
.header-product-update:focus-visible {
  box-shadow: inset 0 0 0 2px var(--ant-color-border);
}

.header-product-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ant-color-border-secondary);
  border-radius: 8px;
  background: #fafafa;
  color: #666;
}

.header-product-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.header-product-icon[data-product-icon='slack'] {
  color: #b12258;
}

.header-product-icon[data-product-icon='discord'] {
  color: #5865f2;
}

.header-product-icon[data-product-icon='telegram'] {
  color: #229ed9;
}

.header-product-icon[data-product-icon='imessage'] {
  color: #19b84b;
}

.header-product-copy,
.header-product-update-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.header-product-copy strong,
.header-product-update-copy strong {
  overflow: hidden;
  color: var(--ant-color-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-product-copy small,
.header-product-update-copy small {
  overflow: hidden;
  color: var(--ant-color-text-tertiary);
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-product-update {
  display: grid;
  min-height: 60px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-top: 1px solid var(--ant-color-border-secondary);
  border-radius: 0 0 11px 11px;
}

.header-product-new {
  padding: 2px 7px;
  border-radius: 6px;
  background: #eef4ff;
  color: #1677ff;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
}

.header-product-update-action {
  color: #1677ff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.header-pricing-dialog {
  padding: 10px;
}

.header-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.header-pricing-grid .header-resource-link {
  min-height: 92px;
  border-radius: 10px;
}

.header-community-layout {
  display: block;
}

.header-community-market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 767px) {
  .product-menu-positioner,
  .docs-product-menu-positioner {
    display: none !important;
  }
}
