/* Use the selected palette for workspace actions, including dynamically inserted buttons. */
.focused-workspace {
  --workspace-control-accent: var(--accent);
  --workspace-control-ink: var(--ui-11253d, #11253d);
  --workspace-control-edge: color-mix(in srgb, var(--workspace-control-accent) 45%, var(--line));
}
.focused-workspace #send {
  color: var(--workspace-control-ink);
  background-color: var(--workspace-control-accent);
  border-color: var(--workspace-control-accent);
}
.focused-workspace :is(.btn.alt:not(:where(.danger, .destructive, .message-actions *, .new-evidence *, .editlinks *, .workspace-document-preview *)), .composer-buttons button:not(#send)) {
  color: var(--workspace-control-accent);
  border-color: var(--workspace-control-edge);
}
.focused-workspace :is(.btn.alt:not(:where(.danger, .destructive, .message-actions *, .new-evidence *, .editlinks *, .workspace-document-preview *)), .composer-buttons button:not(#send)):hover:not(:disabled) {
  background-color: color-mix(in srgb, var(--workspace-control-accent) 12%, transparent);
  border-color: var(--workspace-control-accent);
}
.focused-workspace :is(button, [role="button"], select):focus-visible {
  outline-color: var(--workspace-control-accent);
}


@media(min-width:761px){.focused-workspace .mobile-reader-materials{display:none}}

/* Apply palette tokens to workspace controls inserted after initial render. */
body.focused-workspace .inline-action-confirmation .inline-action-button {
  font: 600 12px/1.4 system-ui;
  padding: 7px 12px;
  min-height: 32px;
  border-radius: 7px;
  margin: 0;
}
body.focused-workspace :is(.inline-action-button, .opportunity-add-confirm) {
  color: var(--workspace-control-ink);
  background-color: var(--workspace-control-accent);
  border-color: var(--workspace-control-accent);
}
body.focused-workspace :is(.inline-action-button, .opportunity-add-confirm):hover:not(:disabled) {
  background-color: color-mix(in srgb, var(--workspace-control-accent) 88%, var(--workspace-control-ink));
}
body.focused-workspace :is(.workspace-mobile-panes .mobile-pane-button, #clear-chat.clear-chat-trigger, #career-starts .career-start) {
  color: var(--workspace-control-accent);
  border-color: var(--workspace-control-edge);
  background-color: color-mix(in srgb, var(--workspace-control-accent) 9%, var(--workspace-control-ink));
}
body.focused-workspace :is(.workspace-mobile-panes .mobile-pane-button, #clear-chat.clear-chat-trigger, #career-starts .career-start):hover:not(:disabled) {
  color: var(--workspace-control-accent);
  border-color: var(--workspace-control-accent);
  background-color: color-mix(in srgb, var(--workspace-control-accent) 15%, var(--workspace-control-ink));
}
body.focused-workspace :is(.action-receipt .quiet-link, .inline-action-confirmation .quiet-link, .message-text a, .chat-sources-dialog a) {
  color: var(--workspace-control-accent);
}

/* Match buttons in chat cards and action questions to Add opportunity. */
body.focused-workspace #messages :is(.btn, .full-review-confirm):not(:where(.danger, .destructive)) {
  font: 600 12px/1.4 system-ui;
  padding: 7px 12px;
  min-height: 32px;
  width: fit-content;
  max-width: 100%;
  border-radius: 7px;
  margin: 0;
  color: var(--workspace-control-ink);
  background: var(--workspace-control-accent);
  border-color: var(--workspace-control-accent);
}
body.focused-workspace #messages .btn.alt:not(:where(.danger, .destructive)) {
  color: var(--workspace-control-accent);
  background: transparent;
  border-color: var(--workspace-control-edge);
}
body.focused-workspace #messages :is(.btn, .full-review-confirm):not(:where(.danger, .destructive, .alt)):hover:not(:disabled) {
  background: color-mix(in srgb, var(--workspace-control-accent) 88%, var(--workspace-control-ink));
}
body.focused-workspace #messages .btn.alt:not(:where(.danger, .destructive)):hover:not(:disabled) {
  background: color-mix(in srgb, var(--workspace-control-accent) 12%, transparent);
  border-color: var(--workspace-control-accent);
}
body.focused-workspace #messages .quiet-link:not(:where(.danger, .destructive)) {
  color: var(--workspace-control-accent);
}

/* Inherit the active palette in workspace dialogs and materials controls. */
body.focused-workspace .btn:not(:where(.alt, .secondary, .danger, .destructive)) {
  color: var(--workspace-control-ink);
  background: var(--workspace-control-accent);
  border-color: var(--workspace-control-accent);
}
body.focused-workspace .btn:not(:where(.alt, .secondary, .danger, .destructive)):hover:not(:disabled) {
  background: color-mix(in srgb, var(--workspace-control-accent) 88%, var(--workspace-control-ink));
}
body.focused-workspace :is(.btn.alt, .btn.secondary):not(:where(.danger, .destructive)) {
  color: var(--workspace-control-accent);
  border-color: var(--workspace-control-edge);
}
body.focused-workspace .revision-dialog .quiet-link:not(:where(.danger, .destructive)) {
  color: var(--workspace-control-accent);
}
