/*
 * Castock interaction defaults.
 * Static interface content behaves like an app surface; only genuinely
 * editable controls expose text selection and a visible insertion caret.
 */
body,
body * {
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

body {
  cursor: default;
}

body :is(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="url"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  input[type="datetime-local"],
  input[type="month"],
  input[type="time"],
  textarea,
  [role="textbox"],
  [contenteditable="true"],
  [contenteditable=""]
),
body :is([contenteditable="true"], [contenteditable=""]) * {
  -webkit-user-select: text;
  user-select: text;
  caret-color: auto;
  cursor: text;
}

body :is(
  a[href],
  button,
  summary,
  select,
  label[for],
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  input[type="checkbox"],
  input[type="radio"],
  input[type="file"],
  [role="button"],
  [role="link"],
  [role="tab"],
  [role="menuitem"]
) {
  cursor: pointer;
}

body :is(button, input, select, textarea):disabled,
body [aria-disabled="true"] {
  cursor: not-allowed;
}
