/* A toolbar control being dragged (js/ui/drag/iconDrag.js): the page grabs, its ghost's rim shines,
   the control it left waits dashed for a cancelling return, a drop target glows and brightens.
   --drag-accent is the chosen accent where a skin re-points --accent at a fixed colour of its own. */
html.icon-dragging, html.icon-dragging * { cursor: grabbing !important; }
.icon-drag-source { opacity: 0.45; outline: 1px dashed var(--drag-accent, var(--accent-2)); outline-offset: 2px; }
/* The rim breathes over 1.4s (desktop SHINE_BEAT_MS); an svg mark shines along its own drawn edge. */
.icon-drag-ghost {
    --ghost-rim: 0 0 0 1.5px color-mix(in srgb, var(--drag-accent, var(--accent)) 90%, transparent),
                 0 0 12px color-mix(in srgb, var(--drag-accent, var(--accent)) 60%, transparent);
    animation: icon-ghost-shine 1.4s ease-in-out infinite alternate;
}
svg.icon-drag-ghost {
    --ghost-rim: none;
    --ghost-mark: drop-shadow(0 0 2px var(--drag-accent, var(--accent))) drop-shadow(0 0 7px var(--drag-accent, var(--accent)));
    animation-name: icon-ghost-shine-mark;
}
@keyframes icon-ghost-shine {
    from { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--drag-accent, var(--accent)) 40%, transparent),
                       0 0 4px color-mix(in srgb, var(--drag-accent, var(--accent)) 25%, transparent); }
    to   { box-shadow: var(--ghost-rim); }
}
/* Two shadows at both ends, in the accent alone: a list that changes length or colour mid-breath is
   blended through oklab, and the engines pass through near-white greens on the way (user report). */
@keyframes icon-ghost-shine-mark {
    from { filter: drop-shadow(0 0 0.5px var(--drag-accent, var(--accent))) drop-shadow(0 0 1px var(--drag-accent, var(--accent))); }
    to   { filter: var(--ghost-mark); }
}
/* Still under no motion: the rim held at its brightest. */
@media (prefers-reduced-motion: reduce) {
    .icon-drag-ghost { animation: none; box-shadow: var(--ghost-rim); filter: var(--ghost-mark, none); }
}
html[data-motion="none"] .icon-drag-ghost { animation: none; box-shadow: var(--ghost-rim); filter: var(--ghost-mark, none); }
.icon-drop-target {
    --drop-glow: 0 0 0 2px color-mix(in srgb, var(--drag-accent, var(--accent)) 45%, transparent),
                 0 0 10px color-mix(in srgb, var(--drag-accent, var(--accent)) 35%, transparent);
    box-shadow: var(--drop-glow);
    transition: box-shadow 140ms ease;
}
.icon-drop-target-over {
    --drop-glow: 0 0 0 2px var(--drag-accent, var(--accent)), 0 0 18px var(--drag-accent, var(--accent));
}
/* The canvas frame's own ring on a server project (layout/canvas/frame.css) outranks the class alone. */
.canvas-viewport.icon-drop-target { box-shadow: var(--drop-glow); }
