/* Notification toasts: `backwards`, not `both`, so a filled transform:none never kills the clickable
   toast's hover lift; .notify-leaving drops away rather than replaying the spring. */
.notify-toast {
    animation: notifyEnter 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    transition: transform 0.2s ease;
}
@keyframes notifyEnter {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}
.notify-toast.notify-leaving {
    animation: notifyLeave 0.26s cubic-bezier(0.4, 0, 1, 1) both;
    pointer-events: none;
}
@keyframes notifyLeave {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: translateY(14px) scale(0.94); }
}
@media (prefers-reduced-motion: reduce) {
    .notify-toast { animation: none; }
    .notify-toast.notify-leaving { animation: none; }
}

.coordinates-table tbody tr { transition: background-color 0.15s ease; }
.coordinates-table tbody tr.row-highlighted { animation: rowPulse 0.5s ease; }
.coordinates-table tbody tr.row-focused      { animation: focusPulse 0.5s ease; }

.project-row { transition: background 0.18s ease, border-color 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease; }
.project-row:not(.project-temp):hover { transform: translateX(3px); box-shadow: 0 3px 12px var(--shadow); }
.project-thumb img { transition: transform 0.3s ease; }
.project-row:hover .project-thumb img { transform: scale(1.06); }

.hotkey-cell { transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.hotkey-table tr td { transition: background 0.15s ease; }
.info-item { transition: background 0.15s ease; }
/* A settings row washes no background: its own control carries the hover (user report). */
.info-item:hover { background: var(--bg-coord-hover); }

/* Grows in only on a hidden → shown turn, never the first paint. Desktop twin: CanvasWidget's idleCardEnterT. */
@keyframes idleCardArrive {
    from { opacity: 0; transform: scale(0.86); }
    to   { opacity: 1; transform: none; }
}
.idle-create.idle-arriving .idle-create-btn {
    animation: idleCardArrive 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (prefers-reduced-motion: reduce) {
    .idle-create.idle-arriving .idle-create-btn { animation: none; }
}
.idle-create-btn { transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.idle-create-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 24px var(--shadow); }
/* The lift's 3px stays hoverable, or a pointer on the bottom edge flickers it (desktop: the resting rect). */
/* 5px = the 2px border (the margin and the strip start at the padding box) + the 3px lift. */
.idle-create-btn { overflow: clip; overflow-clip-margin: 5px; }
.idle-create-btn:hover::before { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 5px; }
.idle-create-icon { transition: transform 0.3s ease; }
.idle-create-btn:hover .idle-create-icon { transform: scale(1.12) translateY(-2px); }

input[type="text"],
input[type="number"],
input[type="color"],
input[type="password"],
input[type="url"],
input[type="search"],
select {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.ctx-checkbox-item, .ctx-radio-item { transition: background 0.12s ease; }

.deselect-btn { transition: background 0.2s ease, transform 0.12s ease; }
