/* Moving state: let the browser draw a lightweight white-dot cursor. */
[data-cmp="Home"],
[data-cmp="Home"] * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='4' fill='white' stroke='%23000' stroke-opacity='.35' stroke-width='1'/%3E%3C/svg%3E") 6 6, auto !important;
}

[data-cmp="Home"] :is(a, button, summary, select, label[for], [role="button"], [role="link"], [tabindex]:not([tabindex="-1"])),
[data-cmp="Home"] :is(a, button, summary, select, label[for], [role="button"], [role="link"], [tabindex]:not([tabindex="-1"])) * {
  cursor: pointer !important;
}

[data-cmp="Home"] :is(input:not([type="button"]):not([type="submit"]):not([type="reset"]), textarea, [contenteditable="true"]),
[data-cmp="Home"] :is(input:not([type="button"]):not([type="submit"]):not([type="reset"]), textarea, [contenteditable="true"]) * {
  cursor: text !important;
}

[data-cmp="Home"] :is(button, input, select, textarea):disabled,
[data-cmp="Home"] [aria-disabled="true"] {
  cursor: not-allowed !important;
}

/* Idle state: hide the native dot and reveal the original rotating mark. */
html.biodex-cursor-idle [data-cmp="Home"],
html.biodex-cursor-idle [data-cmp="Home"] * {
  cursor: none !important;
}

.biodex-idle-cursor-icon {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483647;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .92);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .22);
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  transform-origin: center;
  will-change: transform, opacity;
}

.biodex-idle-cursor-mark {
  position: absolute;
  inset: 3px;
  display: block;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  will-change: transform;
  animation: biodex-idle-cursor-spin 2s linear infinite;
  animation-play-state: paused;
}

html.biodex-cursor-idle .biodex-idle-cursor-icon {
  opacity: 1;
}

html.biodex-cursor-idle .biodex-idle-cursor-mark {
  animation-play-state: running;
}

@keyframes biodex-idle-cursor-spin {
  to { transform: rotate(360deg); }
}

@media (hover: none), (pointer: coarse) {
  [data-cmp="Home"],
  [data-cmp="Home"] * {
    cursor: auto !important;
  }

  .biodex-idle-cursor-icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .biodex-idle-cursor-mark {
    animation: none;
  }
}
