/* Toast – jednoduchý, čitelný, přes všechno */
.toast {
  position: fixed;
  left: 50%;
  top: 50%;        
  transform: translateX(-50%) translateY(20px);
  z-index: 1100;                
  max-width: min(92vw, 520px);
  background: rgba(0,0,0,.85);
  color: #fff;
  padding: .75rem 1rem;
  border-radius: 10px;
  font-size: .95rem;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}

/* viditelný stav */
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* (volitelné) krátké zavibrování/ „shake“ horní lišty, když narazíme na limit */
.selection-bar.shake {
  animation: bar-shake .35s ease;
}
@keyframes bar-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px);  }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}
