.drag-order-hint {
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 12px;
  color: var(--page-muted, var(--muted, #627364));
}
.goal-order-controls { margin: 0 0 18px; }
.goal-order-controls .filters { margin: 0 0 10px; }
.goal-order-controls .drag-order-hint { margin: 0; }
.detail-main .detail-quick-add { margin: 0 0 16px; }
[data-reorder-scope] > [data-reorder-id],
[data-reorder-scope] > [data-reorder-id] * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
[data-reorder-scope] > [data-reorder-id] :is(input, textarea, [contenteditable="true"]) {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
[data-reorder-scope] > [data-reorder-id] {
  cursor: grab;
}
/* Cards keep their DOM slots until release. Only compositor transforms move. */
[data-reorder-scope].drag-order-active > [data-reorder-id] {
  position: relative;
  z-index: 1;
  transition: transform 140ms ease-out;
}
[data-reorder-scope].drag-order-active > [data-reorder-id]:hover {
  box-shadow: none;
  transform: none;
}
[data-reorder-scope].drag-order-active > .drag-order-lifted {
  z-index: 10;
  cursor: grabbing;
  opacity: 1;
  transition: none !important;
  will-change: transform;
  backface-visibility: hidden;
  box-shadow: 0 6px 16px #132a3c30;
}
/* Inner rows can follow the finger past a rounded stage edge during a drag. */
.stage:has([data-reorder-scope].drag-order-active) {
  overflow: visible;
  position: relative;
  z-index: 11;
}
.tree-node.drag-order-lifted {
  background: var(--panel-background, #fff);
  border-radius: 12px;
}
[data-reorder-scope] img { -webkit-user-drag: none; }
