/* ── One cursor rule for the whole portal ──
   Everything that reacts to a click shows the pointing finger, including cards and menu items
   that can also be dragged (they used to show an open hand, which reads as "drag only").
   Pure drag handles keep the hand; a drag in progress keeps the closed hand (.menu-sorting).
   :where() keeps the specificity at zero, so more specific !important rules still win. */
:where(
  button, a[href], summary, select, label[for],
  [role=button], [role=tab], [role=menuitem], [role=menuitemradio], [role=option], [role=switch], [role=link],
  [data-action], [data-cal], [data-call], [data-notice], [data-chat-action], [data-drive-action],
  [onclick], .clickable, [draggable=true],
  input[type=checkbox], input[type=radio], input[type=color], input[type=file], input[type=range],
  input[type=submit], input[type=button], input[type=reset],
  label:has(> input[type=checkbox]), label:has(> input[type=radio]), label:has(input[type=file])
):not(:disabled):not([aria-disabled=true]) { cursor: pointer !important; }

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

/* Text fields keep the text cursor even inside clickable rows */
:where(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]):not([type=range]):not([type=submit]):not([type=button]):not([type=reset]), textarea, [contenteditable=true]) { cursor: text !important; }

/* Pure drag handles: these are grabbed, not clicked */
:where(.menu-grip, .dash-grip, .dp-grip, .drag-handle, [data-drag-handle]) { cursor: grab !important; }
:where(.menu-grip, .dash-grip, .dp-grip, .drag-handle, [data-drag-handle]):active { cursor: grabbing !important; }

/* While something is being dragged */
.menu-sorting, .menu-sorting * { cursor: grabbing !important; }
