/* Shared sizes for the public pages, user center and admin console. */
body:is(.xh-unified-home, .xh-auth-page, .userConsoleV3, .adminResponsive, .xh-docs-page, .xh-marketplace-page) {
  --xh-type-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
  --xh-type-body: 15px;
  --xh-type-detail: 14px;
  --xh-type-label: 14px;
  --xh-type-page-title: 24px;
  --xh-type-section-title: 18px;
  --xh-space-xs: 4px;
  --xh-space-sm: 8px;
  --xh-space-md: 12px;
  --xh-space-lg: 16px;
  --xh-control-radius: 8px;
  --xh-control-height: 40px;
  --xh-control-compact-height: 34px;
  --xh-control-field-height: 44px;
  --xh-control-primary-height: 48px;
  --xh-table-body-size: 14px;
  --xh-table-header-size: 13px;
  --xh-table-header-height: 42px;
  --xh-table-cell-block: 10px;
  --xh-table-cell-inline: var(--xh-space-md);
  font-family: var(--xh-type-family);
  font-size: var(--xh-type-body);
}

body:is(.userConsoleV3, .xh-docs-page) {
  --xh-workspace-header-height: 64px;
  --xh-workspace-sidebar-width: 142px;
  --xh-workspace-main-padding: 24px 28px 42px;
}

body:is(.xh-unified-home, .userConsoleV3, .adminResponsive, .xh-docs-page)
:is(.btn, .consoleOverviewButton, .xh-home-button) {
  min-block-size: var(--xh-control-height);
  height: auto;
  padding: var(--xh-space-xs) var(--xh-space-lg);
  border-radius: var(--xh-control-radius);
  font-family: inherit;
  font-size: var(--xh-type-label);
  line-height: 1.4;
}

body:is(.userConsoleV3, .adminResponsive) .btn.sm {
  min-block-size: var(--xh-control-compact-height);
  padding-inline: var(--xh-space-md);
}

body:is(.userConsoleV3, .adminResponsive) :is(.tableToolbar, .consoleOverviewPanelHead) {
  gap: var(--xh-space-md);
}

body:is(.userConsoleV3, .adminResponsive, .xh-docs-page) :is(.table, :where(.docsMain) table) {
  font-size: var(--xh-table-body-size);
  line-height: 1.5;
}

body:is(.userConsoleV3, .adminResponsive, .xh-docs-page) :is(.table, :where(.docsMain) table) :is(th, td) {
  padding: var(--xh-table-cell-block) var(--xh-table-cell-inline);
}

body:is(.userConsoleV3, .adminResponsive, .xh-docs-page) :is(.table, :where(.docsMain) table) th {
  height: var(--xh-table-header-height);
  font-size: var(--xh-table-header-size);
  font-weight: 700;
}

@media (max-width: 980px) {
  body:is(.xh-unified-home, .userConsoleV3, .adminResponsive, .xh-docs-page) {
    --xh-control-compact-height: var(--xh-control-height);
    --xh-table-cell-inline: var(--xh-space-sm);
  }
}
