:root {
  --jz-control-radius: 10px;
  --jz-control-radius-compact: 8px;
}

/* Primary, secondary and tertiary actions share one rounded geometry. */
:where(.jz-page, .jzm-page, .jzm-cart) :is(
  button,
  a.jz-button,
  a[role="button"],
  .jzm-product-card__link,
  .jzm-add-button,
  .jzb-hero-catalog-link,
  .jzb-workspace-launch,
  .jzb-copy-button,
  .jzb-final-3d-link,
  .jzc-output__actions > a,
  .jzcb-primary-button,
  .jzcb-secondary-button,
  .jzcb-review-button
) {
  border-radius: var(--jz-control-radius);
}

:where(.jz-page, .jzm-page, .jzm-cart) :is(
  .jz-language,
  .jzm-cart-trigger,
  .jzm-icon-button,
  .jzb-copy-button,
  .jzb-workspace-launch
) {
  border-radius: var(--jz-control-radius-compact);
}

:where(.jz-page, .jzm-page, .jzm-cart) .jz-menu-button.jz-menu-button {
  border-radius: 50%;
}

/* Compact controls keep rounded corners without turning into capsules. */
:where(.jz-page, .jzm-page, .jzm-cart) :is(
  .jz-filters button,
  .jz-network-controls button
) {
  border-radius: var(--jz-control-radius-compact);
}

:where(.jz-page, .jzm-page, .jzm-cart) :is(
  .jz-foundry-tabs button,
  .jz-capability-card__action,
  .jz-engine-card > a,
  .jz-nav__links a
) {
  border-radius: var(--jz-control-radius);
}

/*
 * Design-system guard rail for page-specific selectors that previously
 * overrode the shared 10px action geometry with capsule radii.
 */
.jz-account-entry,
.jz-nav__links .jz-nav-account,
.jz-account-promo__actions .jz-button,
.jzb-context__links .jz-button,
.jzm-tool-gate .jz-button,
.jzp-page .jz-button,
.jzp-error button,
.jzp-record a,
.jzde-cad-federation__actions a {
  border-radius: var(--jz-control-radius);
}

.jzb-language-links a,
.jzm-filter {
  border-radius: var(--jz-control-radius-compact);
}

/* The engineering page used an earlier !important capsule declaration. */
.jzde-button {
  border-radius: var(--jz-control-radius) !important;
}

@media (max-width: 680px) {
  :where(.jz-page, .jzm-page, .jzm-cart) :is(
    .jz-button,
    .jzm-product-card__link,
    .jzm-add-button,
    .jzb-hero-catalog-link,
    .jzb-workspace-launch,
    .jzb-copy-button,
    .jzb-final-3d-link,
    .jzc-output__actions > button,
    .jzc-output__actions > a,
    .jzcb-primary-button,
    .jzcb-secondary-button,
    .jzcb-review-button
  ) {
    min-block-size: 48px;
    white-space: normal;
  }
}
