/* CSS owns the actual pointer: its hotspot never trails behind the user's input. */
html.office-cursor-enabled,
html.office-cursor-enabled body {cursor:var(--office-cursor-arrow),default}
html.office-cursor-enabled :where(button,a[href],select,summary,[role="button"],[role="tab"],[role="checkbox"],[role="option"],input[type="button"],input[type="submit"],input[type="reset"],input[type="checkbox"],input[type="radio"],input[type="file"],input[type="range"],input[type="color"],label[for],label.upload-button,.qa-select-tag,.ticket-number-mode label) {cursor:var(--office-cursor-hand),pointer!important}
html.office-cursor-enabled :where(textarea,[contenteditable="true"],[contenteditable=""],input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"])) {cursor:text!important}
html.office-cursor-enabled .drag-handle {cursor:grab!important}
html.office-cursor-enabled :is(:disabled,[aria-disabled="true"],[inert]),
html.office-cursor-enabled :is(:disabled,[aria-disabled="true"],[inert]) * {cursor:not-allowed!important}
html.office-cursor-enabled.office-cursor-dragging,
html.office-cursor-enabled.office-cursor-dragging * {cursor:grabbing!important}

.office-cursor-layer {
  position:fixed;inset:0;z-index:2147483646;pointer-events:none!important;
  overflow:hidden;contain:strict;
}
.office-cursor-halo {
  position:absolute;top:0;left:0;pointer-events:none!important;
  width:36px;height:36px;margin:0;border-radius:50%;box-sizing:border-box;
  background:color-mix(in srgb,var(--office-cursor-color,#25745d) 6%,transparent);
  border:1px solid color-mix(in srgb,var(--office-cursor-color,#25745d) 8%,transparent);
  opacity:0;visibility:hidden;contain:layout style paint;will-change:transform;
  transition:width 180ms ease-out,height 180ms ease-out,background-color 180ms ease-out,opacity 360ms ease,visibility 0s linear 360ms;
}
html.office-cursor-enabled .office-cursor-halo.is-visible {opacity:1;visibility:visible;transition-delay:0s}
.office-cursor-halo[data-mode="action"],.office-cursor-halo[data-mode="grab"] {
  width:40px;height:40px;background:color-mix(in srgb,var(--office-cursor-color,#25745d) 8%,transparent);
}
.office-cursor-halo[data-mode="press"] {
  width:28px;height:28px;background:color-mix(in srgb,var(--office-cursor-color,#25745d) 12%,transparent);
}
.office-cursor-halo[data-mode="text"] {
  width:20px;height:20px;border-color:transparent;background:color-mix(in srgb,var(--office-cursor-color,#25745d) 3%,transparent);
}
html.office-cursor-enabled .office-cursor-halo.is-visible[data-mode="disabled"] {opacity:.35}
@media(prefers-reduced-motion:reduce) {.office-cursor-halo{transition:none}}
@media(forced-colors:active) {.office-cursor-halo{display:none}}

/* Friday fish cursors use the same fixed lip hotspot; other days keep the original rules above. */
html.office-cursor-enabled.office-cursor-fish .drag-handle{cursor:var(--office-fish-grab),grab!important}
html.office-cursor-enabled.office-cursor-fish :is(:disabled,[aria-disabled="true"],[inert]),
html.office-cursor-enabled.office-cursor-fish :is(:disabled,[aria-disabled="true"],[inert]) *{cursor:var(--office-fish-disabled),not-allowed!important}
html.office-cursor-enabled.office-cursor-fish.office-cursor-pressing,
html.office-cursor-enabled.office-cursor-fish.office-cursor-pressing *{cursor:var(--office-fish-press),default!important}
html.office-cursor-enabled.office-cursor-fish.office-cursor-dragging,
html.office-cursor-enabled.office-cursor-fish.office-cursor-dragging *{cursor:var(--office-fish-grabbing),grabbing!important}
html.office-cursor-enabled.office-cursor-fish :is([aria-busy="true"],[aria-busy="true"] *){cursor:var(--office-fish-wait),wait!important}
html.office-cursor-fish .office-cursor-halo{border-color:transparent;background:color-mix(in srgb,#82c8fa 8%,transparent)}
