/* Keep the approved V4C.5.4 canvas orbit; the DOM core is only a click cue. */
.context-lens-core {
  inset: 0 auto auto 0;
}

.context-lens-core:not(.is-clickable) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.context-lens-core.is-visible {
  opacity: 0;
}

.context-lens-core.is-visible.is-clickable {
  opacity: 1;
}

/* Native controls remain usable while the custom cursor is being suspended. */
body.cursor-orbit-enabled :is(input, textarea, select, [contenteditable]:not([contenteditable="false"])) {
  cursor: auto !important;
}

body.menu-open,
body.menu-open *,
body.detail-open,
body.detail-open * {
  cursor: auto !important;
}

body:is(.menu-open, .detail-open) :is(a[href], button, summary, [role="button"]) {
  cursor: pointer !important;
}

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .motion-toggle {
    display: none !important;
  }

  body.cursor-orbit-enabled,
  body.cursor-orbit-enabled * {
    cursor: auto !important;
  }

  body.cursor-orbit-enabled :is(a[href], button, summary, [role="button"]) {
    cursor: pointer !important;
  }
}
