/* Image references share the same theme in workspaces and embedded editors. */
:root {
  --supercanv-mention-text: #536b00;
  --supercanv-mention-border: #d0e896;
  --supercanv-mention-surface: #fff;
}

.theme-dark {
  --supercanv-mention-text: #d8ff36;
  --supercanv-mention-border: #697c25;
  --supercanv-mention-surface: #171717;
}

:root :is(.quick-prompt-mention-token.image, .prompt-ai-image-token, .generator-rh-mention-token, .mention-image-token, .canvas-assistant-composer-ref.is-image-ref) {
  color: var(--supercanv-mention-text);
  background: color-mix(in srgb, var(--lime, #d8ff36) 24%, var(--supercanv-mention-surface));
  border-color: var(--supercanv-mention-border);
}

:root :is(.quick-prompt-mention-token.image, .prompt-ai-image-token, .generator-rh-mention-token, .mention-image-token, .canvas-assistant-composer-ref.is-image-ref) > :is(b, span, i, svg) {
  color: inherit;
}

:root .canvas-assistant-composer-ref.is-image-ref:is(:hover, .is-selected, :focus-visible) {
  box-shadow: 0 0 0 1px var(--supercanv-mention-border);
}
