/* TalentsAI uses the HDS black selection in every theme. */
:root { --selection-bg: #000; --selection-text: #fff; }

/* App-level priority also covers third-party syntax-highlighting themes. */
/* Native text selection. Figma: 3805:2002. Resolve semantic colors at the
   selected element so nested light/dark themes keep the correct contrast. */
@media (forced-colors: none) {
  ::selection {
    background-color: var(--selection-bg, var(--semantic-component-2-def)) !important;
    color: var(--selection-text, var(--semantic-text-inverse-1)) !important;
  }
}

/* Native input carets follow the text tone, independently of brand focus borders. */
@media (forced-colors: none) {
  input:not([type='checkbox']):not([type='radio']) {
    caret-color: var(--semantic-text-primary, var(--hds-semantic-text-primary, #191d24)) !important;
  }
}
