/* Native image cursors keep the click hotspot accurate, without a JS overlay.
   Touch-only devices and forced-colour accessibility modes retain their cursors. */
@media (any-hover: hover) and (any-pointer: fine) and (forced-colors: none) {
  :root {
    --cromivio-cursor: url('/cursors/prisma.svg?v=1') 3 3, url('/cursors/prisma.png?v=1') 3 3, default;
    --cromivio-pointer: url('/cursors/prisma-active.svg?v=1') 3 3, url('/cursors/prisma-active.png?v=1') 3 3, pointer;
    cursor: var(--cromivio-cursor);
  }
  :root body { cursor: var(--cromivio-cursor); }

  /* Existing components have their own cursor rules; override that property only. */
  :root :is(a[href], button, summary, select, [role="button"], [role="tab"], [role="switch"],
    input:is([type="button"], [type="submit"], [type="reset"], [type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"]),
    .account-photo-copy label, .plan-option, .streamer-option, .room-choice-toggle, .check,
    label:has(> input:is([type="checkbox"], [type="radio"])), .color-wheel canvas),
  :root :is(a[href], button, summary, select, [role="button"], [role="tab"], [role="switch"],
    .account-photo-copy label, .plan-option, .streamer-option, .room-choice-toggle, .check,
    label:has(> input:is([type="checkbox"], [type="radio"]))) * {
    cursor: var(--cromivio-pointer) !important;
  }

  :root :is(textarea, input:not([type]),
    input:is([type="text"], [type="password"], [type="email"], [type="url"], [type="tel"], [type="search"], [type="number"]),
    [contenteditable]:not([contenteditable="false"])),
  :root [contenteditable]:not([contenteditable="false"]) * { cursor: text !important; }

  html:root body :is(:disabled, [aria-disabled="true"], [inert]),
  html:root body :is(:disabled, [aria-disabled="true"], [inert]) *,
  :root label:has(> input:is([type="checkbox"], [type="radio"]):disabled),
  :root label:has(> input:is([type="checkbox"], [type="radio"]):disabled) * { cursor: default !important; }

  :root #event-logo-pick:disabled, :root #event-logo-pick:disabled *,
  :root .venue-template-actions button:disabled,
  :root .venue-template-actions button:disabled * { cursor: wait !important; }
}
