/* Latest owner button palette, shared by public pages, workspace and dialogs.
   Color-only layer: component dimensions, shapes, motion and focus remain intact.
   Explicitly exclude navigation/view selectors, icon controls, destructive actions
   and disabled states. Important is limited to color/edge properties so legacy
   component specificity cannot reintroduce another primary or secondary palette. */
@media (forced-colors: none) {
  html body :is(
    button,
    input[type="button"], input[type="submit"], input[type="reset"],
    .button, .site-action, .site-desktop-signin,
    .bd-button, .bd-search-submit, .bd-plain-button, .bd-discovery .bd-view-business, .plain-button,
    .goal-sample-button, .pod-reset, .acc-checkout-back, .acc-checkout-edit,
    .catalog-button, .catalog-text-button, .dash-button, .dash-textlink,
    .workbench-button, .workbench-textlink, .operations-button, .operations-text-button,
    .lc-button, .campaign-button, .auth-enter, .plan-primary, .plan-button, .plan-text-button, .plan-edit,
    .workspace-create, .workspace-pill, .workspace-guide-toggle, .workspace-depth-toggle,
    .hero-cta, .marketing-hero-action, .accelerator-cta, .cf-primary, .cf-reset, .ne-primary,
    .echo-action
  ):not(:where(
    :disabled, [aria-disabled="true"], .announcement,
    .icon-button, .catalog-icon-button, .catalog-dialog-close, .workspace-dialog-close,
    .directory-dialog-close, .bd-dialog-close, .bd-map-detail-close, .lead-close,
    .playbook-chat-close, .menu-toggle, .mobile-nav-close, .workspace-menu, .workbench-save,
    /* The concierge has neutral secondary pills; only Continue and Send use blue. */
    .echo-concierge-launcher,
    .echo-concierge :is(button, .echo-action):not(.echo-contact-continue):not([data-echo-form] button[type="submit"]),
    .echo-concierge-controls button, .workspace-guide-heading button, .lc-dialog-top button,
    .lc-start-heading > .lc-button, .rail-controls button,
    [data-accelerator-rail], [data-map-zoom], [data-ne-move], [data-hero-film-close],
    .auth-gallery-dot, .review-pagination > button, [data-review-select],
    .specialist-hero-toggle, .review-motion-toggle, .goal-motion-toggle, .how-motion-toggle,
    .motion-control, .film-toggle,
    .lc-post-open, .lc-compose-launch, .step-tab, .specialist-hero-card, .playbook-card,
    .directory-card-open, .channel-tile, .engagement-video-trigger, .cf-media-link,
    .bd-map-place, .bd-map-pin, .bd-map-result, .lc-start-actions > *, .start-actions__card,
    [role="tab"], [role="menuitem"], [role="tablist"] *, [aria-pressed],
    .lc-tabs .lc-button, .lc-category-filters .lc-button, .setup-progress button,
    .specialist-switcher button, .bd-mode-switch button, .bd-view-switch button,
    .bd-category-chips button, .bd-profile-tabs button, .acc-checkout-progress button,
    [data-ne-device], [data-ne-template],
    .danger, .destructive, [data-destructive], [data-remove-cart], [data-ne-remove],
    [data-plan-remove-samples], [data-crm-reset], [data-lc-archive]
  )) {
    background-color: var(--brand-button-middle) !important;
    background-image: var(--brand-button-gradient) !important;
    color: var(--brand-ink) !important;
    border: 1px solid var(--brand-navy) !important;
    box-shadow: inset 0 1px 0 #ffffff8c, 0 3px 10px #10182714;
  }
}

/* Legacy text actions now have a filled surface, so reuse the existing pill
   treatment instead of leaving a square underlined link inside an Ink border.
   Scoped to those controls only: no card/nav shape changes. Concierge pills are owned by their component. */
html body :is(
  .plain-button, .bd-plain-button, .pod-reset,
  .plan-text-button, .plan-edit,
  button.how-text-link, button.text-link
):not(:where(
  :disabled, [aria-disabled="true"], [aria-pressed], [role="tab"], [role="menuitem"],
  .danger, .destructive, [data-destructive], [data-remove-cart], [data-ne-remove],
  [data-plan-remove-samples], [data-crm-reset], [data-lc-archive]
)) {
  padding: 10px var(--brand-space-3) !important;
  border-radius: var(--brand-radius-control) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

/* Approved secondary controls stay neutral, rather than competing with the primary action. */
@media (forced-colors: none) {
  html body :is(.button.secondary,.bd-button.secondary,.dash-button.secondary,.plan-button.secondary,.workbench-button.secondary,.operations-button.secondary,.lc-button.secondary,.campaign-button.secondary,.cf-reset,.acc-checkout-back,.acc-checkout-edit,.plan-edit,.site-desktop-signin,
    .plain-button,.bd-plain-button,.pod-reset,.catalog-text-button,.dash-textlink,
    .workbench-textlink,.operations-text-button,.plan-text-button,
    .catalog-button-secondary,.dash-button-secondary,.workbench-secondary,.operations-secondary,
    .lc-secondary,.campaign-button-secondary,.bd-secondary):not(:disabled):not([aria-disabled="true"]) {
    background-color: var(--brand-white) !important;
    background-image: none !important;
    color: var(--brand-ink) !important;
    border-color: var(--brand-ink) !important;
    box-shadow: inset 0 1px 0 #ffffff8c;
  }
  html body :is(.button,.site-action,.hero-cta,.accelerator-cta,.marketing-hero-action):not(:disabled):not([aria-disabled="true"]):hover {
    box-shadow: inset 0 1px 0 #ffffffcc, 0 3px 10px #10182714;
  }
  html body :is(.button,.site-action,.hero-cta,.accelerator-cta,.marketing-hero-action):not(:disabled):not([aria-disabled="true"]):active { box-shadow: inset 0 1px 0 #ffffff8c; }
}
