/* Fluid mode: the page draws the solid square (.square-cursor-core) and hides the hardware
   pointer. Reduced motion keeps the native SVG image instead. .square-cursor is only a faint,
   hollow ink footprint for hover and press. */
.square-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  box-sizing: border-box;
  z-index: 2147483645;
  pointer-events: none;
  opacity: 0;
  border: 0.8px solid var(--cursor-ink, var(--red));
  border-radius: 3px 4px 3.5px 4px;
  background: transparent;
  contain: layout style;
}
.square-cursor::before,
.square-cursor::after {
  content: none;
  display: none;
}
.square-cursor-core {
  position: fixed;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  box-sizing: border-box;
  z-index: 2147483646;
  pointer-events: none;
  border-radius: 2px;
  background-color: var(--red);
  opacity: 0;
  transition:
    opacity 120ms linear,
    background-color 140ms linear;
  contain: layout style;
}
.square-cursor-core[data-visible='true'] {
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) and (forced-colors: none) {
  html.square-cursor-active,
  html.square-cursor-active * {
    cursor: var(--square-cursor-image, default) !important;
  }
  /* Only while the drawn square is live; any failure removes the class and the pointer returns. */
  html.square-cursor-fluid,
  html.square-cursor-fluid * {
    cursor: none !important;
  }
}
@media (hover: none), (pointer: coarse), (forced-colors: active) {
  .square-cursor,
  .square-cursor-core {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .square-cursor {
    display: none;
  }
}
.square-cursor[data-reduced='true'] {
  display: none;
}
