/* V2 for Zovanion public HTML pages (home / landing / privacy / 404).
   The existing page --purple token is read by the standalone browser adapter.
   Native selection is restored automatically when the overlay cannot be used. */
/* RoundSelect V2: native selection remains the source of truth; SVG is visual only. */
/* Preserve the selected element's readable foreground (especially light templates).
   Without currentColor, --sel-text can stay white after the native background is hidden. */
html.rounded-selection-enabled ::selection {
  background-color: transparent !important;
  color: currentColor !important;
}
html.rounded-selection-enabled :is(input, textarea, select, [contenteditable])::selection {
  background-color: Highlight !important;
  color: HighlightText !important;
}
.rounded-selection-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 2147483647;
  pointer-events: none;
  user-select: none;
}
.rounded-selection-shape {
  /* An alpha highlight drawn over text, using that text's current --sel-bg template. */
  fill: rgba(124, 92, 252, .42); /* Fallback for engines without color-mix. */
  fill: color-mix(in srgb, var(--highlight-color, #7c5cfc) 42%, transparent);
  pointer-events: none;
}
@media (hover: none) and (pointer: coarse), (forced-colors: active) {
  .rounded-selection-overlay { display: none !important; }
  html.rounded-selection-enabled ::selection {
    background-color: Highlight !important;
    color: HighlightText !important;
  }
}
