/* ─── undo bar ─────────────────────────────────────────────────────────
   Ui::UndoBarComponent. Bottom-left, clear of the command orb; fades out on
   its own so it never needs dismissing. */

.undo-bar {
  position: fixed;
  left: 1rem;
  bottom: calc(1.25rem + 14px + env(safe-area-inset-bottom, 0));
  right: calc(72px + 2rem);
  max-width: 420px;
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.35rem 0.35rem 0.35rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--ink-2);
  animation: undo-bar-out 0.3s ease 6s forwards;
}
.undo-bar-message { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.undo-bar-form { display: contents; }
.undo-bar-action {
  flex: none;
  min-height: 36px;
  padding: 0 0.85rem;
  border: 1px solid var(--cyan-dim);
  border-radius: var(--radius);
  background: rgba(122, 217, 255, 0.10);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.undo-bar-action:hover { border-color: var(--cyan); }

@keyframes undo-bar-out { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  .undo-bar { animation-duration: 0s; }
}
