/* Styles for the shared drag engine (JS/components/drag-list.js): `a-dragging-on` on body,
   `a-dragging` on the carried row, `a-dragover` on the zone under the cursor, and one inserted
   `.a-drop-line` marking the landing. Separate so hosts without CSS/alt/ still get it; tokens have classic
   fallbacks. Load before the CSS/alt/ sheets and CSS/alt/alt-focus.css, which stays last. */

/* Nothing else may claim the pointer or select text under a drag in flight. */
body.a-dragging-on{ user-select:none; }
.a-dragging{ opacity:.42; }
.a-dragover{
  /* Plain declaration first: dropped, the drag target gives no feedback at all. */
  background:var(--a-blue-soft, var(--accent-soft));
  background:color-mix(in srgb, var(--a-blue, var(--accent)) 10%, transparent);
  outline:1px dashed var(--a-blue, var(--accent)); outline-offset:-2px;
  border-radius:var(--a-r, 9px);
}
[data-nodrop="1"].a-dragover{ outline-color:var(--a-red, var(--red-text)); }
.a-drop-line{
  height:2px; margin:1px 0; border-radius:var(--a-r-pill, 999px);
  background:var(--a-blue, var(--accent)); flex:0 0 auto;
}
/* A row of chips (axis 'x'): the line is vertical and as tall as a chip. */
.a-drop-line.a-drop-line-x{ width:2px; height:20px; margin:0 1px; align-self:center; }

/* ---------- hold to merge: altDragDwell() (JS/components/drag-list.js) ----------
   On the item under the pointer (a list row or a board card, both position:relative): a dashed outline while the
   ring fills, solid with a wash once armed, dashed red when refused. The cue sits inside the item's own box so no
   scroll container clips it, and never takes the pointer. Every colour has a classic fallback, as above. */
.a-merge-arming{ outline:2px dashed var(--a-blue, var(--accent)); outline-offset:2px; }
/* `body .a-row` because this sheet loads before alt-tasks.css, whose `.a-row` and `.a-row:hover` backgrounds would
   otherwise win the cascade and drop the wash (measured on tasks.html). */
.a-merge-armed,
body .a-row.a-merge-armed{
  outline:2px solid var(--a-blue, var(--accent)); outline-offset:2px;
  background:var(--a-blue-soft, var(--accent-soft));
  background:color-mix(in srgb, var(--a-blue, var(--accent)) 12%, var(--a-panel, var(--panel)));
}
.a-merge-refused{ outline:2px dashed var(--a-red, var(--red-text)); outline-offset:2px; }
.alt-app .a-tcard.a-merge-armed{
  background:var(--a-blue-soft, var(--accent-soft));
  background:color-mix(in srgb, var(--a-blue, var(--accent)) 12%, var(--a-raised, var(--panel-2)));
}
.a-merge-cue{
  /* Fixed and positioned by altDragDwell(): above the target row, clear of the drag image. */
  position:fixed; right:8px; top:0; z-index:var(--z-float, 60);
  display:inline-flex; align-items:center; gap:6px; pointer-events:none; max-width:calc(100% - 16px);
}
.a-drag-ghost{
  position:fixed; left:-9999px; top:-9999px; max-width:240px; padding:5px 10px; border-radius:var(--a-r-sm, 6px);
  font:600 var(--a-fs-ctl-sm)/var(--a-lh-tight) var(--a-body, system-ui, sans-serif); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  background:var(--a-float, var(--panel-2)); color:var(--a-text, var(--text)); border:1px solid var(--a-line-strong, var(--border));
  box-shadow:var(--a-shadow-sm, none); pointer-events:none;
}
.a-merge-ring{
  --p:0; width:22px; height:22px; border-radius:50%; flex:0 0 auto;
  background:conic-gradient(var(--a-blue, var(--accent)) calc(var(--p) * 1%), var(--a-line, var(--border)) 0);
  display:grid; place-items:center;
}
.a-merge-ring::after{
  content:"\21C4"; width:15px; height:15px; border-radius:50%; display:grid; place-items:center;
  background:var(--a-panel, var(--panel)); color:var(--a-blue-text, var(--accent-text)); font-size:var(--a-fs-11); line-height:var(--a-lh-ctl);
}
.a-merge-hint{
  font-size:var(--a-fs-ctl-sm); font-weight:600; line-height:var(--a-lh-tight); padding:3px 8px; border-radius:var(--a-r-sm, 6px);
  background:var(--a-float, var(--panel-2)); color:var(--a-text, var(--text)); border:1px solid var(--a-line-strong, var(--border));
  box-shadow:var(--a-shadow-sm, none); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0;
}
.a-merge-hint.err{
  background:var(--a-red-soft, var(--red-soft)); border-color:var(--a-red, var(--red-text)); color:var(--a-red, var(--red-text));
}
