First, don't panic! Accidentally cutting the quick can be a bit painful for your dog and might cause bleeding. Have styptic powder or cornstarch on hand; applying it to the bleeding nail can help stop the bleeding quickly. Gently soothe and reassure your dog, and give them a treat for being patient. If bleeding doesn't stop within a few minutes or seems excessive, consult your vet.