body {
  cursor: auto;
}

a[href],
button,
input,
select,
textarea {
  cursor: pointer;
}

input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea {
  cursor: text;
}

@media (hover: hover) and (pointer: fine) {
  body,
  a[href],
  button,
  input,
  select,
  textarea {
    cursor: none !important;
  }
}

.realtime-cursors {
  z-index: 2147483647;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--realtime-cursors-document-height, 100vh);
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
  contain: strict;
  isolation: isolate;
  transition: opacity 180ms ease;
}

html.is-hhh-opening .realtime-cursors {
  opacity: 0;
}

body.hhh-project-viewer-booting .realtime-cursors,
body.hhh-project-viewer-open .realtime-cursors,
html.site-resume-open .realtime-cursors,
body.site-resume-open .realtime-cursors,
body:has(.site-resume-dialog.is-open) .realtime-cursors {
  visibility: hidden;
  opacity: 0;
}

.realtime-cursors__person {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  will-change: transform;
}

.realtime-cursors__arrow {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 30px;
  height: 30px;
  overflow: visible;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .15));
}

.realtime-cursors__arrow path {
  fill: var(--realtime-cursor-color);
  stroke: var(--realtime-cursor-color);
  stroke-width: 2;
  stroke-linejoin: round;
}

.realtime-cursors__label {
  position: absolute;
  top: 28px;
  left: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 50px;
  background: var(--realtime-cursor-color);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  font-family: Inter, "Inter Placeholder", Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1em;
  letter-spacing: 0;
  white-space: nowrap;
}

/* Keep the project viewer's duplicate cursor and the legacy ring retired.
   The global cursor remains active as the owner's named pointer. */
.hhh-project-viewer__side-cursor,
.cursor-ring,
.cursor-dot {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .realtime-cursors {
    transition: none;
  }
}
