/**
 * undo.css — Global undo toast (bottom-center, above the app bar).
 *
 * The toast is created lazily by js/core/undo.js on the first destructive
 * action. It slides up, shows the action label + an Undo button, and
 * auto-dismisses after a few seconds.
 */

.undo-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--app-bar-h) + 12px);
  transform: translate(-50%, 12px);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(480px, calc(100vw - 24px));
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition) ease, transform var(--transition) ease;
  z-index: 900;
}

.undo-toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.undo-toast__msg {
  font-size: 14px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.undo-toast__btn {
  flex: none;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: filter var(--transition) ease;
}

.undo-toast__btn:hover {
  filter: brightness(0.95);
}

.undo-toast__btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
}
