.workspace-main > button.secondary-button.mb-4 { margin-inline-start: 1rem; }
@media (max-width: 767px) {
 .broker-toolbar .broker-actions > .broker-header-menu { position: static; }
 .workspace-title-row > .workspace-title-actions {
  margin-inline-start: 0;
  min-width: 0;
  justify-content: flex-start;
 }
}


:is(.primary-button, .secondary-button, .broker-outline-button, .workspace-ai-button, .action-pill, .text-action, :where(section[aria-labelledby="follow-up-heading"] > .border-t > button, dialog:has(ol[aria-label="Quick Start steps"] > [aria-current="step"]) .dialog-content > div:last-child > button:last-child), :where(.today-agenda-actions > button), :where(aside[aria-label="Analytics preferences"] > div > button)):not(.icon-button, :where(.secondary-button.min-w-11.shrink-0, dialog button.action-pill.flex-1, [aria-pressed], [aria-selected], [aria-checked], [role="tab"], [role="switch"])) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: .875rem;
  line-height: 1.25;
  text-align: center;
}
:is(.primary-button, .secondary-button, .broker-outline-button, .workspace-ai-button, .action-pill, .text-action, :where(section[aria-labelledby="follow-up-heading"] > .border-t > button, dialog:has(ol[aria-label="Quick Start steps"] > [aria-current="step"]) .dialog-content > div:last-child > button:last-child), :where(.today-agenda-actions > button), :where(aside[aria-label="Analytics preferences"] > div > button)):not(.icon-button, :where(.secondary-button.min-w-11.shrink-0, dialog button.action-pill.flex-1, [aria-pressed], [aria-selected], [aria-checked], [role="tab"], [role="switch"])) > svg {
  flex: none;
  width: 16px;
  height: 16px;
}
:is(.secondary-button, .broker-outline-button, .action-pill, :where(.today-agenda-actions > button), :where(aside[aria-label="Analytics preferences"] > div > button)):not(.icon-button, .primary-button, :where(.secondary-button.min-w-11.shrink-0, dialog button.action-pill.flex-1, [aria-pressed], [aria-selected], [aria-checked], [role="tab"], [role="switch"])) {
  position: relative;
  border: 0;
  background: transparent;
  color: rgb(var(--foreground));
  font-weight: 500;
}
:is(.secondary-button, .broker-outline-button, .action-pill, :where(.today-agenda-actions > button), :where(aside[aria-label="Analytics preferences"] > div > button)):not(.icon-button, .primary-button, :where(.secondary-button.min-w-11.shrink-0, dialog button.action-pill.flex-1, [aria-pressed], [aria-selected], [aria-checked], [role="tab"], [role="switch"]))::before {
  content: "";
  position: absolute;
  inset: var(--button-paint-inset, 0px) 0;
  border: 1px solid rgb(var(--control-line));
  border-radius: inherit;
  pointer-events: none;
}
:is(.secondary-button, .broker-outline-button, .action-pill, :where(.today-agenda-actions > button), :where(aside[aria-label="Analytics preferences"] > div > button)):not(.icon-button, .primary-button, :where(.secondary-button.min-w-11.shrink-0, dialog button.action-pill.flex-1, [aria-pressed], [aria-selected], [aria-checked], [role="tab"], [role="switch"])):hover:not(:disabled, [aria-disabled="true"])::before {
  border-color: rgb(var(--foreground));
}
.text-action:not(.icon-button) {
  padding-inline: 0;
  color: rgb(var(--action-text));
  font-weight: 500;
  text-underline-offset: 3px;
}
.text-action:hover { text-decoration: underline; }
@media (max-width: 1023px), (pointer: coarse) {
  :is(.primary-button, .secondary-button, .broker-outline-button, .action-pill, .workspace-ai-button, .text-action, :where(section[aria-labelledby="follow-up-heading"] > .border-t > button, dialog:has(ol[aria-label="Quick Start steps"] > [aria-current="step"]) .dialog-content > div:last-child > button:last-child), :where(.today-agenda-actions > button), :where(aside[aria-label="Analytics preferences"] > div > button)):not(.icon-button, :where(.secondary-button.min-w-11.shrink-0, dialog button.action-pill.flex-1, [aria-pressed], [aria-selected], [aria-checked], [role="tab"], [role="switch"])) {
    --button-paint-inset: 3px;
    min-height: 44px;
  }
  .primary-button:not(.icon-button, :where([aria-pressed], [aria-selected], [aria-checked], [role="tab"], [role="switch"])) {
    border-block: var(--button-paint-inset) solid transparent;
    background-clip: padding-box;
  }
}


/* Compatibility for controls in the existing staging bundle. */
.today-agenda-actions { flex-wrap: wrap; }
.today-agenda-actions > button > svg { margin-inline: 0; }

:where(aside[aria-label="Analytics preferences"] > div) { gap: .5rem; }
aside[aria-label="Analytics preferences"] > div > button {
  text-decoration: none;
}
section[aria-labelledby="follow-up-heading"] > .p-6 {
  padding-inline: 1.25rem;
}
:is(section[aria-labelledby="follow-up-heading"] > .border-t > button, dialog:has(ol[aria-label="Quick Start steps"] > [aria-current="step"]) .dialog-content > div:last-child > button:last-child) {
  padding-inline: 0;
  border: 0;
  background: transparent;
  color: rgb(var(--action-text));
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 3px;
}
:is(section[aria-labelledby="follow-up-heading"] > .border-t > button, dialog:has(ol[aria-label="Quick Start steps"] > [aria-current="step"]) .dialog-content > div:last-child > button:last-child)::before { content: none; }
:is(section[aria-labelledby="follow-up-heading"] > .border-t > button, dialog:has(ol[aria-label="Quick Start steps"] > [aria-current="step"]) .dialog-content > div:last-child > button:last-child):hover { text-decoration: underline; }

aside[aria-label="Subscription access"] button.secondary-button {
  background-color: rgb(var(--brand-blue-surface));
  color: rgb(var(--brand-onblue));
  font-weight: 600;
}
aside[aria-label="Subscription access"] button.secondary-button::before { content: none; }
aside[aria-label="Subscription access"] button.secondary-button:hover:not(:disabled) {
  background-color: rgb(var(--brand-blue-hover));
}
@media (max-width: 1023px), (pointer: coarse) {
  aside[aria-label="Subscription access"] button.secondary-button {
    border-block: var(--button-paint-inset) solid transparent;
    background-clip: padding-box;
  }
}
@media (max-width: 767px) {
  .workspace-title-actions > details > .broker-outline-button {
    padding-inline: 16px;
    gap: 8px;
    font-size: .875rem;
  }
}


/* The current bundle publishes the default Keystone accent inline. */
:root.dark:not([data-colorful="true"]):is([data-appearance-color="keystone"], :not([data-appearance-color], [style*="--brand-blue:"]), :not([data-appearance-color])[style*="--brand-blue: 65 148 203;"]) :is(
  .primary-button:is(button, a[href], [role="button"]):not(.icon-button, [aria-pressed], [aria-selected], [aria-checked], [aria-current], [role="tab"], [role="switch"]),
  aside[aria-label="Subscription access"] button.secondary-button
):not(.brokerage-brand-scope *) {
  --brand-blue-surface: 50 113 165;
  --brand-blue-hover: 45 106 157;
  --brand-onblue: 255 255 255;
}
