/* Display copy is part of the interactive UI, not a draggable text surface.
   Keep native editing, caret movement and keyboard focus intact in form fields. */
html,
body,
body * {
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
[contenteditable=""],
[contenteditable="true"],
[contenteditable="plaintext-only"],
[contenteditable=""] *,
[contenteditable="true"] *,
[contenteditable="plaintext-only"] * {
  -webkit-user-select: text;
  user-select: text;
}

/* Clear the old beige selection paint even on a programmatic display range. */
::selection {
  color: inherit;
  background: transparent;
  text-shadow: none;
}

input::selection,
textarea::selection,
[contenteditable]::selection,
[contenteditable] *::selection {
  color: HighlightText;
  background: Highlight;
}

.copy-fallback-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 8px;
  background: var(--surface);
  color: var(--ink);
  font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}
